GCC has the alloc_align attribute, which is similar to assume_aligned, except the attribute's parameter is the index of the integer parameter that needs aligning to.
This is the required LLVM changes to make this happen.
Differential D29598
LLVM Changes for alloc_align erichkeane on Feb 6 2017, 11:31 AM. Authored by
Details GCC has the alloc_align attribute, which is similar to assume_aligned, except the attribute's parameter is the index of the integer parameter that needs aligning to. This is the required LLVM changes to make this happen.
Diff Detail Event TimelineComment Actions There is no client of the API in LLVM? Can you link this revision to the one that is using this in Clang?
|
Please add function documentation here as well.