[test] Match nocapture to succeed both on main and rebranch

Both the syntax and relative order of the LLVM `nocapture` parameter
attribute changed upstream in 29441e4f5fa5f5c7709f7cf180815ba97f611297.
To reduce conflicts with rebranch, adjust FileCheck patterns to expect
both syntaxes and orders anywhere the presence of the attribute is not
critical to the test. These changes are temporary and will be cleaned
up once rebranch is merged into main.
This commit is contained in:
Anthony Latsis
2025-05-08 13:51:53 +01:00
parent 2faa94712a
commit 55e5618eab
95 changed files with 446 additions and 442 deletions

View File

@@ -14,7 +14,7 @@ func simple(_ placeholder: Int64) throws -> () {
// CHECK: define {{.*}}void @"$s8ErrorVar6simpleyys5Int64VKF"(
// CHECK-SAME: i64
// CHECK-SAME: %swift.refcounted* {{.*}}swiftself
// CHECK-SAME: %swift.error** noalias nocapture dereferenceable(4)
// CHECK-SAME: %swift.error** noalias {{(nocapture|captures\(none\))}} dereferenceable(4)
// CHECK: #dbg_declare
// CHECK: #dbg_declare({{.*}}, ![[ERROR:[0-9]+]], !DIExpression(DW_OP_deref)
// CHECK-DAG: ![[ERRTY:.*]] = !DICompositeType({{.*}}identifier: "$ss5Error_pD"