<div dir="ltr"><div><br></div><div>Let's say we the following: AllocaInst *alloca_inst = dyn_cast<AllocaInst>(&I) // I = instruction</div><div>Corresponding alloca instructions in IR are as follows:</div><div><br></div><div>%var1 = alloca [3 x i32], align 4<br></div><div>%var2 = alloca i32*, align 8<br></div><br clear="all"><div>How can I have the size and count (in case of array) of the allocated variables?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div>