[LLVMdev] inserting a fucntion call at the end of basic bloc
Duncan Sands
baldrick at free.fr
Mon Apr 25 02:33:33 PDT 2011
Hi Nabila,
> 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").
Ciao, Duncan.
More information about the llvm-dev
mailing list