[PATCH] CodeGen: Give pointer parameters 'align' attributes
David Majnemer
david.majnemer at gmail.com
Wed Sep 17 21:27:35 PDT 2014
Hi rsmith, hfinkel, nicholas, nlewycky,
A pointer passed into a function must be suitably aligned or else risks
undefined behavior. Pass this information over to the middle end
optimizers by annotating pointer parameters with 'align' attributes.
http://reviews.llvm.org/D5391
Files:
lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenFunction.h
lib/Headers/avxintrin.h
test/CXX/except/except.spec/p14-ir.cpp
test/CodeGen/address-space-field1.c
test/CodeGen/arm-arguments.c
test/CodeGen/arm64-arguments.c
test/CodeGen/ms-intrinsics.c
test/CodeGen/nonnull.c
test/CodeGen/packed-arrays.c
test/CodeGen/restrict.c
test/CodeGen/sparcv9-abi.c
test/CodeGen/stack-protector.c
test/CodeGen/systemz-inline-asm.c
test/CodeGen/transparent-union.c
test/CodeGen/vla.c
test/CodeGen/x86_64-arguments.c
test/CodeGenCXX/address-space-ref.cpp
test/CodeGenCXX/catch-undef-behavior.cpp
test/CodeGenCXX/constructor-destructor-return-this.cpp
test/CodeGenCXX/constructor-init.cpp
test/CodeGenCXX/copy-constructor-elim-2.cpp
test/CodeGenCXX/copy-constructor-synthesis-2.cpp
test/CodeGenCXX/copy-constructor-synthesis.cpp
test/CodeGenCXX/derived-to-base.cpp
test/CodeGenCXX/dllexport-members.cpp
test/CodeGenCXX/dllimport-members.cpp
test/CodeGenCXX/empty-nontrivially-copyable.cpp
test/CodeGenCXX/fp16-mangle.cpp
test/CodeGenCXX/implicit-copy-constructor.cpp
test/CodeGenCXX/mangle.cpp
test/CodeGenCXX/microsoft-abi-cdecl-method-sret.cpp
test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
test/CodeGenCXX/microsoft-abi-member-pointers.cpp
test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
test/CodeGenCXX/microsoft-abi-structors.cpp
test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp
test/CodeGenCXX/microsoft-abi-vmemptr-conflicts.cpp
test/CodeGenCXX/pod-member-memcpys.cpp
test/CodeGenCXX/x86_64-arguments.cpp
test/CodeGenObjCXX/arc-mangle.mm
test/CodeGenObjCXX/implicit-copy-constructor.mm
test/CodeGenOpenCL/address-spaces.cl
test/OpenMP/parallel_codegen.cpp
test/Profile/c-unprofiled-blocks.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5391.13819.patch
Type: text/x-patch
Size: 94160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140918/e0cc0569/attachment.bin>
More information about the cfe-commits
mailing list