[PATCH] Support the assume_aligned function attribute
hfinkel at anl.gov
hfinkel at anl.gov
Sun Jul 20 14:49:22 PDT 2014
Hi rsmith, aaron.ballman,
In addition to __builtin_assume_aligned, GCC also supports an assume_aligned attribute which specifies the alignment (and optional offset) of the function's return value. Building on the llvm.assume patches, and also functionality added in http://reviews.llvm.org/D149, this patch implements support for the assume_aligned attribute in Clang.
http://reviews.llvm.org/D4601
Files:
include/clang/Basic/Attr.td
lib/CodeGen/CGExpr.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/builtin-assume-aligned.c
test/Sema/builtin-assume-aligned.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4601.11704.patch
Type: text/x-patch
Size: 7797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140720/50d8c2c3/attachment.bin>
More information about the cfe-commits
mailing list