<div dir="ltr"><br><br><div class="gmail_quote">2011/4/25 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Nabila,<br>
<div class="im"><br>
> i would like insert a fucntion call at the end of each basic bloc<br>
<br>
</div>you can't, because only terminators are allowed at the end of a basic block.<br>
However you can try to insert the call before the terminator.<br></blockquote><div>Yes, i mean before the termininator,</div><div>My problem is how to call a method </div><div>suppose this fucntion</div><div>void A(int x)</div>
<div>{</div><div>  x=x+1;</div><div><br></div><div>} </div><div><br></div><div>should i define this function and declare it at the beginig of the module and create for it a basic bloc?</div><div>and then how to call it before each basic bloc terminitor</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
...<br>
<div class="im"><br>
> i tried to see an example with the demo, i saw that it instead of calling the<br>
> function, it repeats all the instruction that are existing in the function<br>
> Any help?<br>
<br>
</div>Turn off optimization in the demo (optimization level "None").<br>
<br>
Ciao, Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>