Hi there.
I know, there is already an old thread open, that explains how to evaluate a single function as llvm bitcode.
I would like to translate a whole program to it - in order to run it on Graal.
Hi there.
I know, there is already an old thread open, that explains how to evaluate a single function as llvm bitcode.
I would like to translate a whole program to it - in order to run it on Graal.
That old thread says to put it in a function, which makes sense because all the Graal examples’ languages use a main function. Like those languages, only part of the program should go into a main function (which won’t need to be called main
to put into code_llvm
), and that old thread suggests code_llvm
can include the rest of the module outside the main function with dump_module=true
(optimize=true
and raw=true
also look relevant). I have no idea if that’ll work because the old thread doesn’t go on to say, but that seems like a good starting point for a github project.