Skip to content

Commit c1a93e0

Browse files
committed
Move tests over to use the %use_no_opaque_pointers option
1 parent 5d1378d commit c1a93e0

File tree

572 files changed

+1482
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+1482
-769
lines changed

test/AutoDiff/IRGen/differentiable_function.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir %s
23

34
sil_stage raw
45

test/AutoDiff/IRGen/runtime.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -parse-stdlib %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -parse-stdlib %s -emit-ir | %FileCheck %s
2+
// RUN: %target-swift-frontend -parse-stdlib %s -emit-ir
23

34
import Swift
45
import _Differentiation

test/AutoDiff/IRGen/witness_table_differentiable_requirements.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -parse-sil %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -parse-sil %s -emit-ir | %FileCheck %s
2+
// RUN: %target-swift-frontend -parse-sil %s -emit-ir
23
// REQUIRES: CPU=x86_64
34

45
sil_stage canonical

test/AutoDiff/SIL/differentiability_witness_function_inst.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -Xllvm -sil-disable-pass=Simplification -emit-ir %s | %FileCheck %s --check-prefix=IRGEN --check-prefix %target-cpu
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -Xllvm -sil-disable-pass=Simplification -emit-ir %s | %FileCheck %s --check-prefix=IRGEN --check-prefix %target-cpu
19+
// RUN: %target-swift-frontend -Xllvm -sil-disable-pass=Simplification -emit-ir %s
1920
// NOTE: `%target-cpu`-specific FileCheck lines exist because lowered function types in LLVM IR differ between architectures.
2021

2122
// `shell` is required only to run `sed` as a

test/AutoDiff/SIL/differentiable_function_inst.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s --check-prefix=CHECK-IRGEN
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck %s --check-prefix=CHECK-IRGEN
19+
// RUN: %target-swift-frontend -emit-ir %s
1920

2021
// `shell` is required only to run `sed` as a
2122
// https://github.com/apple/swift/issues/54526 workaround.

test/AutoDiff/SIL/sil_differentiability_witness.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck --check-prefix=IRGEN %s
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck --check-prefix=IRGEN %s
19+
// RUN: %target-swift-frontend -emit-ir %s
1920

2021
// `shell` is required only to run `sed` as a
2122
// https://github.com/apple/swift/issues/54526 workaround.

test/AutoDiff/compiler_crashers_fixed/issue-58123-invalid-debug-info.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir -O -g %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir -O -g %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir -O -g %s
23

34
// https://github.com/apple/swift/issues/58123
45
// Mutating functions with control flow can cause assertion failure for

test/ClangImporter/CoreGraphics_test.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -module-name=cgtest -emit-ir -O %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -module-name=cgtest -emit-ir -O %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -module-name=cgtest -emit-ir -O %s
23

34
// Test some imported CG APIs
45
import CoreGraphics

test/ClangImporter/MixedSource/forward-declarations.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main
23

34
class Sub: Base {
45
// CHECK-LABEL: define{{.*}} void @"$s4main3SubC4testyyF"
@@ -13,4 +14,4 @@ class Sub: Base {
1314
// CHECK: call void @swift_release(%swift.refcounted* {{%.+}})
1415
// CHECK: ret void
1516
}
16-
}
17+
}

test/ClangImporter/cxx_interop_ir.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swiftxx-frontend -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions | %FileCheck %s
1+
// RUN: %target-swiftxx-frontend %use_no_opaque_pointers -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions | %FileCheck %s
2+
// RUN: %target-swiftxx-frontend -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions
23

34
// https://github.com/apple/swift/issues/55575
45
// We can't yet call member functions correctly on Windows.

test/ClangImporter/enum-anon-sized.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir %s -enable-objc-interop -import-objc-header %S/Inputs/enum-anon.h | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-%target-runtime %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s -enable-objc-interop -import-objc-header %S/Inputs/enum-anon.h | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-%target-runtime %s
2+
// RUN: %target-swift-frontend -emit-ir %s -enable-objc-interop -import-objc-header %S/Inputs/enum-anon.h
23

34
func verifyIsInt(_: inout Int) { }
45
func verifyIsInt32(_: inout Int32) { }

test/ClangImporter/objc_ir.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
// RUN: %empty-directory(%t)
33
// RUN: %build-clang-importer-objc-overlays
4-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -module-name objc_ir -I %S/Inputs/custom-modules -emit-ir -g -o - -primary-file %s | %FileCheck %s
4+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %use_no_opaque_pointers -module-name objc_ir -I %S/Inputs/custom-modules -emit-ir -g -o - -primary-file %s | %FileCheck %s
5+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -module-name objc_ir -I %S/Inputs/custom-modules -emit-ir -g -o - -primary-file %s
56

67
// REQUIRES: objc_interop
78
// REQUIRES: OS=macosx

test/Concurrency/Backdeploy/mangling.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir -o %t/new.ir
2+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir -o %t/new.ir
3+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir
34
// RUN: %FileCheck %s --check-prefix=NEW < %t/new.ir
4-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -o %t/old.ir -disable-availability-checking
5+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -o %t/old.ir -disable-availability-checking
6+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -disable-availability-checking
57
// RUN: %FileCheck %s --check-prefix=OLD < %t/old.ir
68

79
// Check that we add extra type metadata accessors for new kinds of functions

test/Concurrency/Backdeploy/weak_linking.swift

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
// RUN: %empty-directory(%t)
22

3-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx13.0 -module-name main -emit-ir -o %t/new.ir
3+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -target %target-cpu-apple-macosx13.0 -module-name main -emit-ir -o %t/new.ir
4+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx13.0 -module-name main -emit-ir
45
// RUN: %FileCheck %s --check-prefix=NEW < %t/new.ir
56

6-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir -o %t/backdeploy_56.ir
7+
// RUN: %target-swift-frontend %s %use_no_opaque_pointers -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir -o %t/backdeploy_56.ir
8+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx12.0 -module-name main -emit-ir
79
// RUN: %FileCheck %s --check-prefix=BACKDEPLOY56 < %t/backdeploy_56.ir
810

9-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -o %t/backdeployed_concurrency.ir -disable-availability-checking
11+
// RUN: %target-swift-frontend %s %use_no_opaque_pointers -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -o %t/backdeployed_concurrency.ir -disable-availability-checking
12+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -module-name main -emit-ir -disable-availability-checking
1013
// RUN: %FileCheck %s --check-prefixes=BACKDEPLOY_CONCURRENCY,BACKDEPLOY56 < %t/backdeployed_concurrency.ir
1114

12-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -O -module-name main -emit-ir -o %t/optimized.ir -disable-availability-checking
15+
// RUN: %target-swift-frontend %s %use_no_opaque_pointers -target %target-cpu-apple-macosx10.15 -O -module-name main -emit-ir -o %t/optimized.ir -disable-availability-checking
16+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.15 -O -module-name main -emit-ir -disable-availability-checking
1317
// RUN: %FileCheck %s --check-prefix=OPTIMIZED < %t/optimized.ir
1418

1519

test/DebugInfo/EagerTypeMetadata.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -Onone -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -Onone -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -Onone -emit-ir -g -o -
23

34
public class C<T>
45
{

test/DebugInfo/LoadableByAddress-allockstack.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// Check we don't crash when verifying debug info.
22
// Ideally this should print the output after loadable by address runs
33
// but there's no way of doing this in SIL (for IRGen passes).
4-
// RUN: %target-swift-frontend -emit-sil %s -Onone \
4+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-sil %s -Onone \
55
// RUN: -sil-verify-all -Xllvm -verify-di-holes -emit-ir \
66
// RUN: -Xllvm -sil-print-debuginfo -g -o - | %FileCheck %s
77

8+
// RUN: %target-swift-frontend -emit-sil %s -Onone \
9+
// RUN: -sil-verify-all -Xllvm -verify-di-holes -emit-ir \
10+
// RUN: -Xllvm -sil-print-debuginfo -g -o -
11+
812
struct m {
913
let major: Int
1014
let minor: Int

test/DebugInfo/LoadableByAddress.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %target-swift-frontend %s -module-name A -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -module-name A -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -module-name A -emit-ir -g -o -
3+
24
// REQUIRES: CPU=x86_64
35
public struct Continuation<A> {
46
private let magicToken = "Hello World"

test/DebugInfo/ProtocolContainer.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
func markUsed<T>(_ t: T) {}
45

test/DebugInfo/WeakCapture.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23
class A {
34
init(handler: (() -> ())) { }
45
}

test/DebugInfo/any.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
func markUsed<T>(_ t: T) {}
45

test/DebugInfo/async-args.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - \
22
// RUN: -module-name M -disable-availability-checking \
33
// RUN: -parse-as-library | %FileCheck %s
4+
5+
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
6+
// RUN: -module-name M -disable-availability-checking \
7+
// RUN: -parse-as-library
8+
49
// REQUIRES: concurrency
510

611
func use<T>(_ t: T) {}

test/DebugInfo/async-let-await.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - \
22
// RUN: -module-name M -disable-availability-checking \
33
// RUN: -parse-as-library | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
4+
5+
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
6+
// RUN: -module-name M -disable-availability-checking \
7+
// RUN: -parse-as-library
8+
49
// REQUIRES: concurrency
510

611
public func getVegetables() async -> [String] {

test/DebugInfo/async-let.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - \
22
// RUN: -module-name M -disable-availability-checking \
33
// RUN: -parse-as-library | %FileCheck %s --check-prefix=CHECK
4+
5+
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
6+
// RUN: -module-name M -disable-availability-checking \
7+
// RUN: -parse-as-library
8+
49
// REQUIRES: concurrency
510

611
public actor Alice {

test/DebugInfo/basic.swift

+8-4
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@
2020
// CHECK-LINETABLES-NOT: DIBasicType
2121
// --------------------------------------------------------------------
2222
// Now check that we do generate line+scope info with -g.
23-
// RUN: %target-swift-frontend %/s -emit-ir -g -o - \
23+
// RUN: %target-swift-frontend %use_no_opaque_pointers %/s -emit-ir -g -o - \
2424
// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
25+
// RUN: %target-swift-frontend %/s -emit-ir -g -o -
2526
// --------------------------------------------------------------------
2627
// Currently -gdwarf-types should give the same results as -g.
27-
// RUN: %target-swift-frontend %/s -emit-ir -gdwarf-types -o - \
28+
// RUN: %target-swift-frontend %use_no_opaque_pointers %/s -emit-ir -gdwarf-types -o - \
2829
// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
30+
// RUN: %target-swift-frontend %/s -emit-ir -gdwarf-types -o -
2931
// --------------------------------------------------------------------
3032
// Verify that -g -debug-info-format=dwarf gives the same results as -g.
31-
// RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=dwarf -o - \
33+
// RUN: %target-swift-frontend %use_no_opaque_pointers %/s -emit-ir -g -debug-info-format=dwarf -o - \
3234
// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
35+
// RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=dwarf -o -
3336
// --------------------------------------------------------------------
34-
// RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=codeview -o - \
37+
// RUN: %target-swift-frontend %use_no_opaque_pointers %/s -emit-ir -g -debug-info-format=codeview -o - \
3538
// RUN: | %FileCheck %s --check-prefixes CHECK,CV-CHECK
39+
// RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=codeview -o -
3640
// --------------------------------------------------------------------
3741
//
3842
// CHECK: foo

test/DebugInfo/byref-capture.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
func makeIncrementor(_ inc : Int64) -> () -> Int64
45
{

test/DebugInfo/catch_let.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
3+
24
enum MyError : Error {
35
case Yikes
46
}

test/DebugInfo/closure-args.swift

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
import Swift
45

@@ -22,9 +23,9 @@ func main() -> Void
2223
// CHECK: store %TSS* %{{.*}}, %TSS** %[[RANDOM_STR_ADDR]], align {{(4|8)}}
2324
// CHECK-DAG: !DILocalVariable(name: "lhs",{{.*}} line: [[@LINE+5]],
2425
// CHECK-DAG: !DILocalVariable(name: "rhs",{{.*}} line: [[@LINE+4]],
25-
// CHECK-DAG: !DILocalVariable(name: "random_string",{{.*}} line: 8,
26-
// CHECK-DAG: !DILocalVariable(name: "random_int",{{.*}} line: 9,
27-
// CHECK-DAG: !DILocalVariable(name: "out_only",{{.*}} line: 10,
26+
// CHECK-DAG: !DILocalVariable(name: "random_string",{{.*}} line: 9,
27+
// CHECK-DAG: !DILocalVariable(name: "random_int",{{.*}} line: 10,
28+
// CHECK-DAG: !DILocalVariable(name: "out_only",{{.*}} line: 11,
2829
{ (lhs : String, rhs : String) -> Bool in
2930
if rhs == random_string
3031
|| rhs.unicodeScalars.count == random_int

test/DebugInfo/dbgvalue-insertpt.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %target-swift-frontend -g -emit-ir -Xllvm '-sil-inline-never-functions=next' %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -g -emit-ir -Xllvm '-sil-inline-never-functions=next' %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -g -emit-ir -Xllvm '-sil-inline-never-functions=next' %s
3+
24
// FIXME: This test should be testing a non-shadow-copied value instead.
35
for i in 0 ..< 3 {
46
// CHECK: %[[ALLOCA:[0-9]+]] = alloca %TSiSg

test/DebugInfo/debug_info_expression.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend %s -sil-verify-all -g -emit-sil -o - | %FileCheck --check-prefix=CHECK-SIL %s
2-
// RUN: %target-swift-frontend -disable-debugger-shadow-copies -primary-file %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %use_no_opaque_pointers -disable-debugger-shadow-copies -primary-file %s -emit-ir -g -o - | %FileCheck %s
3+
// RUN: %target-swift-frontend -disable-debugger-shadow-copies -primary-file %s -emit-ir -g -o -
34
import Builtin
45
import Swift
56

test/DebugInfo/debug_value_addr.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -primary-file %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o -
23
// RUN: %target-swift-frontend %s -emit-sil -g -o - | %FileCheck -check-prefix=CHECK-SIL %s
34

45
// Verify that -Onone shadow copies are emitted for debug_value_addr

test/DebugInfo/debug_variable.sil

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swiftc_driver -g -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swiftc_driver %use_no_opaque_pointers -g -emit-ir %s | %FileCheck %s
2+
// RUN: %target-swiftc_driver -g -emit-ir %s
23
sil_stage canonical
34

45
import Builtin

test/DebugInfo/dynamic_layout.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
func markUsed<T>(_ t: T) {}
45

test/DebugInfo/generic_arg.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23
import StdlibUnittest
34
func foo<T>(_ x: T) -> () {
45
// CHECK: define {{.*}} @"$s11generic_arg3fooyyxlF"
@@ -11,7 +12,7 @@ func foo<T>(_ x: T) -> () {
1112
// CHECK: store %swift.type* %T, %swift.type** %[[T]],
1213
// CHECK: store %swift.opaque* %0, %swift.opaque** %[[X]],
1314
// CHECK-DAG: ![[T1]] = !DILocalVariable(name: "$\CF\84_0_0",{{.*}}flags: DIFlagArtificial)
14-
// CHECK-DAG: ![[X1]] = !DILocalVariable(name: "x", arg: 1,{{.*}}line: 3, type: ![[LET_TY2:[0-9]+]])
15+
// CHECK-DAG: ![[X1]] = !DILocalVariable(name: "x", arg: 1,{{.*}}line: 4, type: ![[LET_TY2:[0-9]+]])
1516
// CHECK-DAG: ![[LET_TY2]] = !DIDerivedType(tag: DW_TAG_const_type,{{.*}}baseType: ![[TY2:[0-9]+]])
1617
// CHECK-DAG: ![[TY2]] = !DICompositeType({{.*}}name: "$sxD"
1718
_blackHole(x)

test/DebugInfo/generic_arg2.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
// CHECK: define hidden swiftcc void @"$s12generic_arg25ClassC3foo{{.*}}, %swift.type* %U
45
// CHECK: call void @llvm.dbg.declare(metadata %swift.opaque** %y.debug, metadata ![[U:.*]], metadata !DIExpression(DW_OP_deref))

test/DebugInfo/generic_arg3.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23

34
func apply<Type>(_ T : Type, fn: (Type) -> Type) -> Type { return fn(T) }
45

test/DebugInfo/generic_arg4.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23
// REQUIRES: objc_interop
34
public struct Q<T> {
45
let x: T

test/DebugInfo/generic_arg5.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o -
23
public struct S<Type>
34
{
45
let value : Type

test/DebugInfo/generic_enum_closure.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -primary-file %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o -
23

34
struct __CurrentErrno {}
45
struct CErrorOr<T>

0 commit comments

Comments
 (0)