[LLVMdev] inserting a fucntion call at the end of basic bloc
baldrick at free.fr
Mon Apr 25 02:33:33 PDT 2011
> i would like insert a fucntion call at the end of each basic bloc
you can't, because only terminators are allowed at the end of a basic block.
However you can try to insert the call before the terminator.
> i tried to see an example with the demo, i saw that it instead of calling the
> function, it repeats all the instruction that are existing in the function
> Any help?
Turn off optimization in the demo (optimization level "None").
More information about the llvm-dev