[LLVMdev] does llvm have some way to get the size of data type

Jeffrey Yasskin jyasskin at google.com
Fri May 7 20:47:37 PDT 2010


Try http://llvm.org/doxygen/classllvm_1_1ConstantExpr.html#a2ea738dfa37ea93c71756be89ba8d92
or http://llvm.org/doxygen/classllvm_1_1TargetData.html#64c154a7844026e76e18f792ee4ad4b3

On Fri, May 7, 2010 at 8:26 PM, Gang.Yao <ttoole9 at gmail.com> wrote:
> Hi:
>
> just like the c function sizeof(). I would avoid the usage of the c
> function call, and expect something like llvm
> intrinsic or some class providing this functionality.
>
> Does someone have experience in this?
> Thanks
>
>
> _______________________________________________
> 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