v2: Rebased against master, added flags for redirecting/suppressing output, added forking of demo execution.
v4: Output IRRT into irrt.bc
, fix run_demo_lli
emitting LLVM IR instead of bitcode.
I just found it to be intuitive that if you are removing the object files, then the output executable should also be removed.
If the test failed, the files won't be deleted anyways because the script will exit after running diff
, so it doesn't matter.
@sb10q Could you take a look at the "Thing to consider" section of the PR and let me know your view on this?
v3: Merged IRRT bitcode into main.bc
, clean up temporary files after execution.
This is necessary, as the nac3standalone
program will only generate LLVM bitcode for the module-under-compilation (rather than including the dependencies).