[LLVMdev] how to get the address of operand
Owen Anderson
resistor at mac.com
Tue Oct 30 19:57:03 PDT 2007
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 couldn’t 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 at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071030/a6af5ff4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071030/a6af5ff4/attachment.bin>
More information about the llvm-dev
mailing list