[LLVMdev] Equivalent alignment of __attribute__((__aligned__))

Garrison Venn gvenn.cfe.dev at gmail.com
Mon Feb 1 11:06:37 PST 2010


Is there a way using llvm::TargetData to determine the alignment of what would be equivalent 
to __attribute__((__aligned__))? I'm looking for something like a max alignment number for the
target platform so that I know what the max alignment of an address returned by malloc(...) will
be.

Thanks in advance

Garrison



More information about the llvm-dev mailing list