Skip to content

Commit b7bbd43

Browse files
committed
Gardening: Migrate test suite to GH issues: AutoDiff/SIL
1 parent 453fd22 commit b7bbd43

6 files changed

+27
-11
lines changed

test/AutoDiff/SIL/Serialization/differentiable_function_type.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
33
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
4-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
4+
5+
// https://github.com/apple/swift/issues/54526
6+
// Workaround because import declarations are not preserved in .sib files.
57
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
68
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck %s
79

8-
// NOTE(SR-12090): `shell` is required only to run `sed` as a SR-12090 workaround.
10+
// `shell` is required only to run `sed` as a
11+
// https://github.com/apple/swift/issues/54526 workaround.
912
// REQUIRES: shell
1013

1114
sil_stage raw

test/AutoDiff/SIL/differentiability_witness_function_inst.sil

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
// RUN: %empty-directory(%t)
88
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
99
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
10-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
10+
11+
// https://github.com/apple/swift/issues/54526
12+
// Workaround because import declarations are not preserved in .sib files.
1113
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
1214
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck %s
1315

@@ -16,7 +18,8 @@
1618
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s --check-prefix=IRGEN --check-prefix %target-cpu
1719
// NOTE: `%target-cpu`-specific FileCheck lines exist because lowered function types in LLVM IR differ between architectures.
1820

19-
// NOTE(SR-12090): `shell` is required only to run `sed` as a SR-12090 workaround.
21+
// `shell` is required only to run `sed` as a
22+
// https://github.com/apple/swift/issues/54526 workaround.
2023
// REQUIRES: shell
2124

2225
sil_stage raw

test/AutoDiff/SIL/differentiability_witness_function_inst_transpose.sil

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
// RUN: %empty-directory(%t)
1212
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
1313
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
14-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
14+
// https://github.com/apple/swift/issues/54526
15+
// Workaround because import declarations are not preserved in .sib files.
1516
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
1617
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck %s
1718

18-
// NOTE(SR-12090): `shell` is required only to run `sed` as a SR-12090 workaround.
19+
// `shell` is required only to run `sed` as a
20+
// https://github.com/apple/swift/issues/54526 workaround.
1921
// REQUIRES: shell
2022

2123
sil_stage raw

test/AutoDiff/SIL/differentiable_function_inst.sil

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
// RUN: %empty-directory(%t)
88
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
99
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
10-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
10+
11+
// https://github.com/apple/swift/issues/54526
12+
// Workaround because import declarations are not preserved in .sib files.
1113
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
1214
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck %s --check-prefix=CHECK-SIL
1315

1416
// IRGen test.
1517

1618
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s --check-prefix=CHECK-IRGEN
1719

18-
// NOTE(SR-12090): `shell` is required only to run `sed` as a SR-12090 workaround.
20+
// `shell` is required only to run `sed` as a
21+
// https://github.com/apple/swift/issues/54526 workaround.
1922
// REQUIRES: shell
2023

2124
// Would need to update for arm64e.

test/AutoDiff/SIL/linear_function_inst.sil

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
// RUN: %empty-directory(%t)
88
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
99
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
10-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
10+
11+
// https://github.com/apple/swift/issues/54526
12+
// Workaround because import declarations are not preserved in .sib files.
1113
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
1214
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck %s --check-prefix=CHECK-SIL
1315

test/AutoDiff/SIL/sil_differentiability_witness.sil

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
// RUN: %empty-directory(%t)
88
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name main
99
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.sil -module-name main
10-
// NOTE(SR-12090): Workaround because import declarations are not preserved in .sib files.
10+
11+
// https://github.com/apple/swift/issues/54526
12+
// Workaround because import declarations are not preserved in .sib files.
1113
// RUN: sed -e 's/import Swift$/import Swift; import _Differentiation/' %t/tmp.sil > %t/tmp_fixed.sil
1214
// RUN: %target-sil-opt %t/tmp_fixed.sil -module-name main -emit-sorted-sil | %FileCheck --check-prefix=ROUNDTRIP %s
1315

1416
// IRGen test.
1517

1618
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck --check-prefix=IRGEN %s
1719

18-
// NOTE(SR-12090): `shell` is required only to run `sed` as a SR-12090 workaround.
20+
// `shell` is required only to run `sed` as a
21+
// https://github.com/apple/swift/issues/54526 workaround.
1922
// REQUIRES: shell
2023

2124
sil_stage raw

0 commit comments

Comments
 (0)