Skip to content

module IR code is not dumped on exit in kaleidoscope example #168114

@popescun

Description

@popescun

Documentation states that on ^D on Linux(I checked on MacOS) the llvm module should dump all generated IR code. It seems that somehow the code is flushed off before being printed, the only output is something like:

; ModuleID = 'global_module'
source_filename = "global_module"

The workaround was to implement a more deterministic program exit control using a predefined input token, e.g. exit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions