llvm-project/clang/test/Layout
Steven Wan a91916500d [AIX] "aligned" attribute should not decrease type alignment returned by __alignof__
`__alignof__(x)` always returns `ABIAlign` if the "x" is marked `__attribute__((aligned()))`. However, the "aligned" attribute should only increase the alignment of a struct, or struct member, unless it's used together with the "packed" attribute, or used as a part of a typedef, in which case, the "aligned" attribute can both increase and decrease alignment.

Reviewed By: sfertile

Differential Revision: https://reviews.llvm.org/D107598
2021-08-05 18:18:58 -04:00
..
aix-Wpacked-expecting-diagnostics.cpp
aix-Wpacked-no-diagnostics.cpp
aix-alignof-align-and-pack-attr.cpp [AIX] "aligned" attribute should not decrease type alignment returned by __alignof__ 2021-08-05 18:18:58 -04:00
aix-bitfield-alignment.c [PowerPC][AIX] Fix Zero-width bit fields wrt MaxFieldAlign. 2021-07-12 15:31:15 -04:00
aix-bitfield-alignment.cpp [AIX] Implement AIX special bitfield related alignment rules 2021-05-17 11:30:29 -04:00
aix-double-struct-member.cpp [Frontend] Add pragma align natural and sort out pragma pack stack effect 2021-01-13 10:53:24 -05:00
aix-no-unique-address-with-double.cpp
aix-pack-attr-on-base.cpp
aix-packed-bitfields.c [PowerPC][AIX] Packed zero-width bitfields do not affect alignment. 2021-08-04 11:03:25 -04:00
aix-power-alignment-typedef-2.cpp
aix-power-alignment-typedef.cpp
aix-power-natural-interaction.cpp [Frontend] Add pragma align natural and sort out pragma pack stack effect 2021-01-13 10:53:24 -05:00
aix-virtual-function-and-base-with-double.cpp
dump-canonical.cpp [clang] Add -fdump-record-layouts-canonical option 2021-07-05 17:35:37 -04:00
dump-complete.cpp [clang] Add cc1 option for dumping layout for all complete types 2021-06-22 16:27:26 -04:00
itanium-pack-and-align.cpp [AIX] Support two itanium alignment LIT testcases for AIX using regex 2020-10-13 16:47:01 -04:00
itanium-union-bitfield.cpp [SystemZ][z/OS] fix lit test related to alignment 2021-03-23 13:15:19 -04:00
ms-aligned-array.c
ms-vtordisp-local.cpp
ms-x86-alias-avoidance-padding.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-aligned-tail-padding.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-basic-layout.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-bitfields-vbases.cpp
ms-x86-declspec-empty_bases.cpp
ms-x86-empty-base-after-base-with-vbptr.cpp
ms-x86-empty-layout.c
ms-x86-empty-nonvirtual-bases.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-empty-virtual-base.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-lazy-empty-nonvirtual-base.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-member-pointers.cpp
ms-x86-misalignedarray.cpp
ms-x86-pack-and-align.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-primary-bases.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-size-alignment-fail.cpp
ms-x86-vfvb-alignment.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-vfvb-sharing.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms-x86-vtordisp.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
ms_struct-bitfields.c
no-unique-address.cpp
v6-empty.cpp
watchos-standard-layout.cpp