[LLVMdev] Finding the value of variables
amit poojary
amit.poojary.15 at gmail.com
Sun Mar 11 19:08:24 PDT 2012
Hello,
Are there any built in functions to find the value of a variable on the
current stack frame? How do I go about it?
Eg 1 :
%1 = alloca i32, align 4
store i32 0, i32* %1
How do I know the constant value that %1 contains?
Eg 2:
%struct.a = type { [10 x i32], float }
%as = alloca %struct.a*, align 4
How do I find the size of memory that has been allocated to 'as'?
Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120312/93e3a334/attachment.html>
More information about the llvm-dev
mailing list