<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><br>Thanks Sean. It clarified my query. <div><br></div><div>Do you have an answer to my other question (in a different mail-chain) listed below</div><div><br></div><div><br></div><div><span style="background-color: rgb(255, 255, 255);">Is there a simple way to check if a given instruction operand (represented by Value *) is a virtual register or otherwise? Context: I am creating a ModulePass for pointer Analysis.</span></div><div><br></div><div><br></div><div>BR/Nizam</div><div><br><hr id="zwchr"><b>From: </b>"Sean Silva" <chisophugis@gmail.com><br><b>To: </b>nizam@cse.iitm.ac.in<br><b>Cc: </b>"llvmdev" <llvmdev@cs.uiuc.edu><br><b>Sent: </b>Monday, February 3, 2014 8:24:00 AM<br><b>Subject: </b>Re: [LLVMdev] LoadInst result<br><br><div dir="ltr">Related: <<a href="http://llvm.org/docs/FAQ.html#what-api-do-i-use-to-store-a-value-to-one-of-the-virtual-registers-in-llvm-ir-s-ssa-representation" target="_blank">http://llvm.org/docs/FAQ.html#what-api-do-i-use-to-store-a-value-to-one-of-the-virtual-registers-in-llvm-ir-s-ssa-representation</a>><div>
<br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 1, 2014 at 3:43 AM, <span dir="ltr"><<a href="mailto:nizam@cse.iitm.ac.in" target="_blank">nizam@cse.iitm.ac.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:Times New Roman">Folks, <div><br></div><div> I have a LLVM instruction like the following
<div><div><br></div><div> %0 = load i32** %pp, align 8</div><div style="font-size:12pt;font-family:'Times New Roman'"><br></div></div></div><div>I have a LoadInst &inst handle to this instruction. In addition, i could access the pointer being loaded from using the inst.getPointerOperand...</div>
<div><br></div><div>However, is there a way to access the handle to the value being loaded? Essentially, i wanted to access the %0 in the statement listed.</div><div><br></div><div>The end goal is to do some amount of points-to analysis. I have this pointer %pp being loaded into %0 and later i have a store instruction storing %0 into some other pointer. If i cannot establish the %0 link here, i would not be able to establish points-to.</div>
<div><br></div><div>Any help in this regards would be appreciated. Thanks</div><div><br></div><div>BR/Nizam</div><div><br></div> <br><div><br></div></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br></div>
</div></div></body></html>