[LLVMdev] Get size of operand

Duncan Sands baldrick at free.fr
Mon Nov 12 02:00:11 PST 2012


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.

> --
> Sunil Rathee
> MTech
> IIT Delhi
>
> Not going along with the crowd can help you stand out in the crowd
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list