[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    Re: [LLVMdev] how to get the address of operand
From:       Owen Anderson <resistor () mac ! com>
Date:       2007-10-31 2:57:03
Message-ID: B1272174-4B41-4528-B5F7-94592647B53C () mac ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The value returned by the AllocaInst is a pointer to the stack address  
where the integer will be stored.

--Owen

On Oct 30, 2007, at 9:33 PM, Keoncheol Shin wrote:

> Hi,
> I tried to write code transformation pass using LLVM.
> But I couldnt find how to get the address of some operand (i.e. &  
> operation in C).
> If an integer type variable is generated by AllocaInst(), is there  
> any method to get the address of that variable?
>
> Thanks,
> Keoncheol
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


[Attachment #5 (text/html)]

<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">&nbsp;</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: 굴림; ">&amp;</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">&nbsp;</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>&nbsp;</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>&nbsp;</o:p></span></font></div></div>_______________________________________________<br>LLVM \
Developers mailing list<br><a \
href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>



["smime.p7s" (smime.p7s)]

0	*H
 010	+0	*H
 0?0 
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte \
Personal Freemail CA1+0)	*H 	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08 \
6 42http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 \
010UPrivateLabel2-1380 	*H
HP.
fg CL!6-6/P p<ab:~t%Pb'qW%ݩ9 \
Oe_N4[5MwV!x!5$F]_eO0f0 a 1ܔOJ3{0 	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
070805041319Z
080804041319Z010UAnderson1
0U*Owen10U
Owen Anderson10	*H
	resistor@mac.com1'0%	*H
	oanderson@macalester.edu10	*H
	owen@apple.com0"0
	*H
0
^ , oQh?1'-kɚ3o`ڒ'ߌI.REp5 \
ċ"B!5B,IE#8Lk"JCٺ_[8cTAfOUcqX`R!gMO*NTXbO \
3(j0$65t{%IQf9_=n6,Gmr{`/H٢J_"<H.h2~/Z̭ \
W}LERW0U0EU>0<resistor@mac.comoanderson@macalester.eduowen@apple.com0U00
 	*H
X+K윭zFLa&@&㬺+N`Qs5C@q`Dzؿ81PxJR8nO.N0^aH_C~swq3wE
 a,z100v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAa \
1ܔOJ3{0	+ o0	*H 	1	*H
0	*H
	1
071031025703Z0#	*H
	1Ab{m1w
mwj0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAa \
1ܔOJ3{0*H 	1x v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAa \
1ܔOJ3{0 	*H
>PElEh}XBzL޼m#
.<z@zxKLOf}
%`)RBƙھQl(32mLk{QEEBH؛˝J͋&yO \
Rp'DhGf^9NΛhDK֓=$S`h*ۘK?639$A靂yD8$Bƻጬ9AM5i)H
 e@h~



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic