llvm-project/clang/test/CodeGenObjCXX
Roman Lebedev 16d0381841
Return "[CGCall] Annotate `this` argument with alignment"
The original change was reverted because it was discovered
that clang mishandles thunks, and they receive wrong
attributes for their this/return types - the ones for the function
they will call, not the ones they have.

While i have tried to fix this in https://reviews.llvm.org/D100388
that patch has been up and stuck for a month now,
with little signs of progress.

So while it will be good to solve this for real,
for now we can simply avoid introducing the bug,
by not annotating this/return for thunks.

This reverts commit 6270b3a1ea,
relanding 0aa0458f14.
2021-05-13 20:33:14 +03:00
..
Inputs
2007-10-03-MetadataPointers.mm
2010-08-04-Template.mm
2010-08-06-X.Y-syntax.mm
address-safety-attr.mm
arc-attrs-abi.mm
arc-attrs.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-blocks.mm [ObjC][ARC] Don't enter the cleanup scope if the initializer expression 2021-04-29 16:04:30 -07:00
arc-constexpr.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-cxx11-init-list.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-cxx11-member-init.mm
arc-exceptions.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-forwarded-lambda-call.mm
arc-globals.mm
arc-indirect.mm Reapply "OpaquePtr: Turn inalloca into a type attribute" 2021-03-29 08:55:30 -04:00
arc-list-init-destruct.mm [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
arc-mangle.mm
arc-marker-funclet.mm
arc-move.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-new-delete.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-pseudo-destructors.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-references.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-returns-inner-reference-ptr.mm
arc-special-member-functions.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc-weak.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
arc.mm [ObjC][ARC] Don't enter the cleanup scope if the initializer expression 2021-04-29 16:04:30 -07:00
auto-release-result-assert.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
block-default-arg.mm
block-id.mm
block-in-template-inst.mm
block-nested-in-lambda.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
block-var-layout.mm
blocks.mm
boxing.mm
catch-id-type.mm
copy.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
copyable-property-object.mm
crash-function-type.mm
debug-info-block-capture-this.mm
debug-info-cyclic.mm
debug-info-line.mm
debug-info.mm
designated-initializers.mm [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
destroy.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
encode.mm [ObjC] Encode pointers to C++ classes as "^v" if the encoded string 2021-02-18 09:38:26 -08:00
exception-cxx.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
exceptions-legacy.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
exceptions.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
externally-initialized-selectors.mm
foreach-statement.mm
gc.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
implementation-in-extern-c.mm
implicit-copy-assign-operator.mm [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
implicit-copy-constructor.mm [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
inheriting-constructor-cleanup.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
instantiate-return.mm
ivar-objects.mm
lambda-expressions.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
lambda-to-block.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
literals.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
lvalue-reference-getter.mm [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
mangle-blocks.mm
mangle.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
message-reference.mm [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
message.mm
method-local-extern-mangle.mm
microsoft-abi-arc-param-order.mm Reapply "OpaquePtr: Turn inalloca into a type attribute" 2021-03-29 08:55:30 -04:00
mrc-weak.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
msabi-objc-extensions.mm
msabi-objc-types.mm
msabi-stret.mm
nested-ehlocation.mm
nrvo.mm Revert "Revert "As a follow-up to my initial mail to llvm-dev here's a first pass at the O1 described there."" 2019-11-26 20:28:52 -08:00
objc-container-subscripting-1.mm
objc-container-subscripting.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
objc-struct-cxx-abi.mm Return "[CGCall] Annotate `this` argument with alignment" 2021-05-13 20:33:14 +03:00
objc-weak.mm [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
objfw-exceptions.mm [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
os_log.mm [CodeGen] Emit a call instruction instead of an invoke if the called 2020-07-15 14:47:45 -07:00
personality-abuse.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
personality.mm [clang][cli] Squash multiple cc1 -fxxx-exceptions flags into single -exception-model=xxx option 2020-12-15 10:15:58 +01:00
pr14474-gline-tables-only.mm
property-derived-to-base-conv.mm
property-dot-copy-elision.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
property-dot-copy.mm
property-dot-reference.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
property-lvalue-capture.mm [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
property-lvalue-lambda.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
property-object-conditional-exp.mm
property-object-reference-1.mm
property-object-reference-2.mm [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
property-object-reference.mm
property-objects.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
property-reference.mm [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
refence-assign-write-barrier.mm
references.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
return.mm [Frontend] Drop unneeded CC1 options 2020-04-21 19:59:28 -07:00
rtti.mm
selector-expr-lvalue.mm
subst-sel.mm
synthesized-property-cleanup.mm [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
ubsan-nullability-return-notypeloc.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
unknown-anytype.mm [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
write-barrier-global-assign.mm