[LLVMdev] Test compiler help

Reid Kleckner rnk at mit.edu
Tue Aug 18 10:02:35 PDT 2009


>> 3. When the program is running, I'd like to print some values. As
>> Kaleidoscope "returns" the value to the JIT, it's easy to give the
>> answer, but in my case it won't happen. Do I need to create a simple
>> IR routine to print doubles or is there something easy to use for that
>> purpose?
>
> Yes, you'll probably need to implement printing functionality.

Or you could link in clang-compiled C code that does it, or call out
to code that does it.

Reid



More information about the llvm-dev mailing list