<br>Yeah that's true. But I want somewhat different. Through Instruction how do u know that? If an instruction like %a = alloca i32 is there, how to get the variable 'a' ? Then on that variable we can check as you have said Right? How to capture that variable ?<br>
<br><div class="gmail_quote">On 21 July 2010 16:07, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Soumya_Prasad_Ukil,<br>
<div class="im"><br>
> Can you guys tell how to recognize local & global variables ? Is there<br>
> any macro on Value* defined in LLVM?<br>
<br>
</div>Global variable: isa<GlobalVariable>(V)<br>
Local variable: isa<AllocaInst>(V)<br>
<div><div></div><div class="h5"><br>
Ciao,<br>
<br>
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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>regards,<br>soumya prasad ukil<br>