[LLVMdev] Equivalent alignment of __attribute__((__aligned__))
Chris Lattner
clattner at apple.com
Mon Feb 1 11:09:20 PST 2010
On Feb 1, 2010, at 11:06 AM, Garrison Venn wrote:
> 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.
Not currently. The alignment implied by attribute(aligned) is probably not something that TargetData should have, but I think it *does* make sense to have the minimal guaranteed alignment of malloc.
-Chris
More information about the llvm-dev
mailing list