Get size of operand

Hi,
Within the basic block I got the instructions and so the operands i got the operands. Can we get the size of the operands. Specifically, if operand
is of type structure, Can we get size of this operand?

Hi Sunil,

Within the basic block I got the instructions and so the operands i got the
operands. Can we get the size of the operands. Specifically, if operand
is of type structure, Can we get size of this operand?

you can get "sizeof" for types using getTypeAllocSize.

Ciao, Duncan.