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

Dan Gohman gohman at apple.com
Mon May 10 11:40:07 PDT 2010


On May 8, 2010, at 2:20 AM, Erick Tryzelaar wrote:

> Hello! You can do this:
> 
> http://nondot.org/sabre/LLVMNotes/SizeOf-OffsetOf-VariableSizedStructs.txt

Also, the ConstantExpr class has getSizeOf, getOffsetOf, and
getAlignOf utility functions which make this easy.

Dan




More information about the llvm-dev mailing list