Finding the value of variables

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.