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

Erick Tryzelaar idadesub at users.sourceforge.net
Sat May 8 02:20:58 PDT 2010


Hello! You can do this:

http://nondot.org/sabre/LLVMNotes/SizeOf-OffsetOf-VariableSizedStructs.txt

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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100508/1b8c58e6/attachment.html>


More information about the llvm-dev mailing list