<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The value returned by the AllocaInst is a pointer to the stack address where the integer will be stored.<div><br class="webkit-block-placeholder"></div><div>--Owen</div><div><br><div><div>On Oct 30, 2007, at 9:33 PM, Keoncheol Shin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="KO" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">Hi,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">I tried to write code transformation pass using LLVM.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">But I couldn</span></font><font face="Arial"><span lang="EN-US" style="font-family: Arial; ">’</span></font><font face="굴림"><span lang="EN-US" style="font-family: 굴림; ">t find how to get the address of some operand (i.e.<span class="Apple-converted-space"> </span></span></font><font face="Arial"><span lang="EN-US" style="font-family: Arial; ">‘</span></font><font face="굴림"><span lang="EN-US" style="font-family: 굴림; ">&</span></font><font face="Arial"><span lang="EN-US" style="font-family: Arial; ">’</span></font><font face="굴림"><span lang="EN-US" style="font-family: 굴림; "><span class="Apple-converted-space"> </span>operation in C).<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">If an integer type variable is generated by AllocaInst(), is there any method to get the address of that variable?<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">Thanks,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; ">Keoncheol<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; "><font size="2" face="굴림"><span lang="EN-US" style="font-size: 10pt; font-family: 굴림; "><o:p> </o:p></span></font></div></div>_______________________________________________<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" style="color: blue; text-decoration: underline; ">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" style="color: blue; text-decoration: underline; ">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></span></blockquote></div><br></div></body></html>