[LLVMdev] obtain the address and size of LLVM generated temporaries

Yuri yuri at rawbw.com
Tue Feb 22 14:29:13 PST 2011


On 02/22/2011 14:01, Chuck Zhao wrote:
> I wonder what is the right approach to obtain the address and size of
> LLVM (compiler) generated temporaries?
>
> E.g.
>
> %0 = %x + %y
> store i32 i0, i32 %z, align 4
>
> How can I get the address of %0 (which could be either a stack or heap
> variable)?
>    

This is not possible since such value can also be in register.

Yuri



More information about the llvm-dev mailing list