Skip to content

Commit 94f6433

Browse files
committed
[Mangling] Undo test changes for staging of prefix
1 parent 6acc3cd commit 94f6433

32 files changed

+161
-162
lines changed

test/embedded/accessor-unavailable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ struct Foo {
1919
let foo = Foo()
2020
let _ = foo[5]
2121

22-
// CHECK: $e4main3FooVyS2icig
23-
// CHECK-NOT: $e4main3FooVyS2icis
22+
// CHECK: $s4main3FooVyS2icig
23+
// CHECK-NOT: $s4main3FooVyS2icis

test/embedded/array-zero-size-struct.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ public func copy(_ a: inout [MyStruct]) {
1919
var a = a
2020
}
2121

22-
// CHECK: define {{.*}}@"$e4mainAAyyF"
23-
// CHECK: define {{.*}}@"$e4main4copyyySayAA8MyStructVGzF"
22+
// CHECK: define {{.*}}@"$s4mainAAyyF"
23+
// CHECK: define {{.*}}@"$s4main4copyyySayAA8MyStructVGzF"

test/embedded/availability-code-removal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public func test() -> any Player {
2222
}
2323

2424
// CHECK-A: $s4main4testAA6Player_pyF
25-
// CHECK-B-NOT: $e4main4testAA6Player_pyF
25+
// CHECK-B-NOT: $s4main4testAA6Player_pyF

test/embedded/basic-irgen-no-stdlib.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public func main() {
2323
start(p: Concrete())
2424
}
2525

26-
// CHECK-LABEL: define {{.*}}void @"$e4main8ConcreteVACycfC"()
26+
// CHECK-LABEL: define {{.*}}void @"$s4main8ConcreteVACycfC"()
2727

28-
// CHECK-LABEL: define {{.*}}void @"$e4main5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"()
28+
// CHECK-LABEL: define {{.*}}void @"$s4main5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"()
2929

30-
// CHECK-LABEL: define {{.*}}void @"$e4mainAAyyF"()
30+
// CHECK-LABEL: define {{.*}}void @"$s4mainAAyyF"()
3131
// CHECK-NEXT: entry:
32-
// CHECK-NEXT: call swiftcc void @"$e4main8ConcreteVACycfC"()
33-
// CHECK-NEXT: call swiftcc void @"$e4main5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"()
32+
// CHECK-NEXT: call swiftcc void @"$s4main8ConcreteVACycfC"()
33+
// CHECK-NEXT: call swiftcc void @"$s4main5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"()
3434
// CHECK-NEXT: ret void
3535
// CHECK-NEXT: }

test/embedded/basic-modules-generics-no-stdlib.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public func main() {
5353
}
5454

5555
// CHECK: define {{.*}}i32 @main(i32 %0, ptr %1)
56-
// CHECK: define {{.*}}void @"$e4Main4BoolVACycfC"()
57-
// CHECK: define {{.*}}void @"$e4Main4mainyyF"()
58-
// CHECK: define {{.*}}void @"$e8MyModule14nonGenericFuncyyF"()
59-
// CHECK: define {{.*}}void @"$e8MyModule11genericFuncyxxlF4Main4BoolV_Tg5"()
60-
// CHECK: define {{.*}}void @"$e8MyModule14NonGenericTypeVACycfC"()
61-
// CHECK: define {{.*}}void @"$e8MyModule11GenericTypeVyACyxGxcfC4Main4BoolV_Tt1g5"()
62-
// CHECK: define {{.*}}void @"$e8MyModule17protocolBoundFuncyyxAA8ProtocolRzlF4Main4BoolV_Tg5"()
63-
// CHECK: define {{.*}}void @"$e8MyModule17protocolBoundFuncyyxAA8ProtocolRzlFAA11GenericTypeVy4Main4BoolVG_Tg5"()
56+
// CHECK: define {{.*}}void @"$s4Main4BoolVACycfC"()
57+
// CHECK: define {{.*}}void @"$s4Main4mainyyF"()
58+
// CHECK: define {{.*}}void @"$s8MyModule14nonGenericFuncyyF"()
59+
// CHECK: define {{.*}}void @"$s8MyModule11genericFuncyxxlF4Main4BoolV_Tg5"()
60+
// CHECK: define {{.*}}void @"$s8MyModule14NonGenericTypeVACycfC"()
61+
// CHECK: define {{.*}}void @"$s8MyModule11GenericTypeVyACyxGxcfC4Main4BoolV_Tt1g5"()
62+
// CHECK: define {{.*}}void @"$s8MyModule17protocolBoundFuncyyxAA8ProtocolRzlF4Main4BoolV_Tg5"()
63+
// CHECK: define {{.*}}void @"$s8MyModule17protocolBoundFuncyyxAA8ProtocolRzlFAA11GenericTypeVy4Main4BoolVG_Tg5"()

test/embedded/basic-modules-no-stdlib.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public func main() {
3939
}
4040

4141
// CHECK: define {{.*}}@main{{.*}} {
42-
// CHECK: define {{.*}}void @"$e4Main4mainyyF"{{.*}} {
43-
// CHECK: define {{.*}}void @"$e8MyModule10moduleMainyyF"{{.*}} {
44-
// CHECK: define {{.*}}void @"$e8MyModule8ConcreteVACycfC"{{.*}} {
45-
// CHECK: define {{.*}}void @"$e8MyModule5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"{{.*}} {
46-
// CHECK: define {{.*}}void @"$e8MyModule8ConcreteV4playyyF"{{.*}} {
42+
// CHECK: define {{.*}}void @"$s4Main4mainyyF"{{.*}} {
43+
// CHECK: define {{.*}}void @"$s8MyModule10moduleMainyyF"{{.*}} {
44+
// CHECK: define {{.*}}void @"$s8MyModule8ConcreteVACycfC"{{.*}} {
45+
// CHECK: define {{.*}}void @"$s8MyModule5start1pyx_tAA6PlayerRzlFAA8ConcreteV_Tg5"{{.*}} {
46+
// CHECK: define {{.*}}void @"$s8MyModule8ConcreteV4playyyF"{{.*}} {

test/embedded/builtins-misc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public func foo() -> Builtin.Int1 {
1313
return Builtin.ispod(MyStruct.self)
1414
}
1515

16-
// CHECK: define {{.*}}i1 @"$es3fooBi1_yF"()
16+
// CHECK: define {{.*}}i1 @"$ss3fooBi1_yF"()
1717
// CHECK-NEXT: entry:
1818
// CHECK-NEXT: ret i1 false
1919
// CHECK-NEXT: }
@@ -29,7 +29,7 @@ public struct MyGenericStruct<T> {
2929
}
3030
}
3131

32-
// CHECK: define {{.*}}i1 @"$es15MyGenericStructV3fooBi1_yFs0aC0V_Tg5"()
32+
// CHECK: define {{.*}}i1 @"$ss15MyGenericStructV3fooBi1_yFs0aC0V_Tg5"()
3333
// CHECK-NEXT: entry:
3434
// CHECK-NEXT: ret i1 false
3535
// CHECK-NEXT: }

test/embedded/classes-generic-no-stdlib.swift

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,49 @@ public func bar(t: T2) -> MyClass<T2> {
2222
return MyClass<T2>(t: t)
2323
}
2424

25-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvgAA2T1V_Tg5 {{.*}}{
26-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvsAA2T1V_Tg5 {{.*}}{
27-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvMAA2T1V_Tg5 {{.*}}{
28-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1tACyxGx_tcfCAA2T1V_Tt0g5 {{.*}}{
29-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassCfDAA2T1V_Tg5 {{.*}}{
25+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvgAA2T1V_Tg5 {{.*}}{
26+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvsAA2T1V_Tg5 {{.*}}{
27+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvMAA2T1V_Tg5 {{.*}}{
28+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1tACyxGx_tcfCAA2T1V_Tt0g5 {{.*}}{
29+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassCfDAA2T1V_Tg5 {{.*}}{
3030

31-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvgAA2T2V_Tg5 {{.*}}{
32-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvsAA2T2V_Tg5 {{.*}}{
33-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1txvMAA2T2V_Tg5 {{.*}}{
34-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassC1tACyxGx_tcfCAA2T2V_Tt0g5 {{.*}}{
35-
// CHECK-SIL-DAG: sil {{.*}}@$e4main7MyClassCfDAA2T2V_Tg5 {{.*}}{
31+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvgAA2T2V_Tg5 {{.*}}{
32+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvsAA2T2V_Tg5 {{.*}}{
33+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1txvMAA2T2V_Tg5 {{.*}}{
34+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassC1tACyxGx_tcfCAA2T2V_Tt0g5 {{.*}}{
35+
// CHECK-SIL-DAG: sil {{.*}}@$s4main7MyClassCfDAA2T2V_Tg5 {{.*}}{
3636

3737
// CHECK-SIL: sil_vtable MyClass {
38-
// CHECK-SIL: #MyClass.t!getter: <T> (MyClass<T>) -> () -> T : @$e4main7MyClassC1txvgAA2T1V_Tg5 // specialized MyClass.t.getter
39-
// CHECK-SIL: #MyClass.t!setter: <T> (MyClass<T>) -> (T) -> () : @$e4main7MyClassC1txvsAA2T1V_Tg5 // specialized MyClass.t.setter
40-
// CHECK-SIL: #MyClass.t!modify: <T> (MyClass<T>) -> () -> () : @$e4main7MyClassC1txvMAA2T1V_Tg5 // specialized MyClass.t.modify
41-
// CHECK-SIL: #MyClass.init!allocator: <T> (MyClass<T>.Type) -> (T) -> MyClass<T> : @$e4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5 // specialized MyClass.__allocating_init(t:)
42-
// CHECK-SIL: #MyClass.deinit!deallocator: @$e4main7MyClassCfDAA2T1V_Tg5 // specialized MyClass.__deallocating_deinit
38+
// CHECK-SIL: #MyClass.t!getter: <T> (MyClass<T>) -> () -> T : @$s4main7MyClassC1txvgAA2T1V_Tg5 // specialized MyClass.t.getter
39+
// CHECK-SIL: #MyClass.t!setter: <T> (MyClass<T>) -> (T) -> () : @$s4main7MyClassC1txvsAA2T1V_Tg5 // specialized MyClass.t.setter
40+
// CHECK-SIL: #MyClass.t!modify: <T> (MyClass<T>) -> () -> () : @$s4main7MyClassC1txvMAA2T1V_Tg5 // specialized MyClass.t.modify
41+
// CHECK-SIL: #MyClass.init!allocator: <T> (MyClass<T>.Type) -> (T) -> MyClass<T> : @$s4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5 // specialized MyClass.__allocating_init(t:)
42+
// CHECK-SIL: #MyClass.deinit!deallocator: @$s4main7MyClassCfDAA2T1V_Tg5 // specialized MyClass.__deallocating_deinit
4343
// CHECK-SIL: }
4444

4545
// CHECK-SIL: sil_vtable $MyClass<T2> {
46-
// CHECK-SIL: #MyClass.t!getter: <T> (MyClass<T>) -> () -> T : @$e4main7MyClassC1txvgAA2T2V_Tg5 // specialized MyClass.t.getter
47-
// CHECK-SIL: #MyClass.t!setter: <T> (MyClass<T>) -> (T) -> () : @$e4main7MyClassC1txvsAA2T2V_Tg5 // specialized MyClass.t.setter
48-
// CHECK-SIL: #MyClass.t!modify: <T> (MyClass<T>) -> () -> () : @$e4main7MyClassC1txvMAA2T2V_Tg5 // specialized MyClass.t.modify
49-
// CHECK-SIL: #MyClass.init!allocator: <T> (MyClass<T>.Type) -> (T) -> MyClass<T> : @$e4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5 // specialized MyClass.__allocating_init(t:)
50-
// CHECK-SIL: #MyClass.deinit!deallocator: @$e4main7MyClassCfDAA2T2V_Tg5 // specialized MyClass.__deallocating_deinit
46+
// CHECK-SIL: #MyClass.t!getter: <T> (MyClass<T>) -> () -> T : @$s4main7MyClassC1txvgAA2T2V_Tg5 // specialized MyClass.t.getter
47+
// CHECK-SIL: #MyClass.t!setter: <T> (MyClass<T>) -> (T) -> () : @$s4main7MyClassC1txvsAA2T2V_Tg5 // specialized MyClass.t.setter
48+
// CHECK-SIL: #MyClass.t!modify: <T> (MyClass<T>) -> () -> () : @$s4main7MyClassC1txvMAA2T2V_Tg5 // specialized MyClass.t.modify
49+
// CHECK-SIL: #MyClass.init!allocator: <T> (MyClass<T>.Type) -> (T) -> MyClass<T> : @$s4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5 // specialized MyClass.__allocating_init(t:)
50+
// CHECK-SIL: #MyClass.deinit!deallocator: @$s4main7MyClassCfDAA2T2V_Tg5 // specialized MyClass.__deallocating_deinit
5151
// CHECK-SIL: }
5252

5353

54-
// CHECK-IR: @"$e4main7MyClassCyAA2T2VGN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$e4main7MyClassCfDAA2T2V_Tg5", ptr null, ptr @"$e4main7MyClassC1txvgAA2T2V_Tg5", ptr @"$e4main7MyClassC1txvsAA2T2V_Tg5", ptr @"$e4main7MyClassC1txvMAA2T2V_Tg5", ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5" }>
55-
// CHECK-IR: @"$e4main7MyClassCyAA2T1VGN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$e4main7MyClassCfDAA2T1V_Tg5", ptr null, ptr @"$e4main7MyClassC1txvgAA2T1V_Tg5", ptr @"$e4main7MyClassC1txvsAA2T1V_Tg5", ptr @"$e4main7MyClassC1txvMAA2T1V_Tg5", ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5" }>
54+
// CHECK-IR: @"$s4main7MyClassCyAA2T2VGN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$s4main7MyClassCfDAA2T2V_Tg5", ptr null, ptr @"$s4main7MyClassC1txvgAA2T2V_Tg5", ptr @"$s4main7MyClassC1txvsAA2T2V_Tg5", ptr @"$s4main7MyClassC1txvMAA2T2V_Tg5", ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5" }>
55+
// CHECK-IR: @"$s4main7MyClassCyAA2T1VGN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$s4main7MyClassCfDAA2T1V_Tg5", ptr null, ptr @"$s4main7MyClassC1txvgAA2T1V_Tg5", ptr @"$s4main7MyClassC1txvsAA2T1V_Tg5", ptr @"$s4main7MyClassC1txvMAA2T1V_Tg5", ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5" }>
5656

57-
// CHECK-IR-DAG: define {{.*}}void @"$e4main7MyClassC1txvgAA2T1V_Tg5"(ptr swiftself %0)
58-
// CHECK-IR-DAG: define {{.*}}i1 @"$e4main7MyClassC1txvgAA2T2V_Tg5"(ptr swiftself %0)
59-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5"(ptr swiftself %0)
60-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5"(i1 %0, ptr swiftself %1)
61-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T1V_Tt0g5"()
62-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfCAA2T2V_Tt0g5"(i1 %0)
63-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfcAA2T1V_Tg5"(ptr swiftself %0)
64-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassC1tACyxGx_tcfcAA2T2V_Tg5"(i1 %0, ptr swiftself %1)
65-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassCfdAA2T1V_Tg5"(ptr swiftself %0)
66-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main7MyClassCfdAA2T2V_Tg5"(ptr swiftself %0)
67-
// CHECK-IR-DAG: define {{.*}}void @"$e4main7MyClassCfDAA2T1V_Tg5"(ptr swiftself %0)
68-
// CHECK-IR-DAG: define {{.*}}void @"$e4main7MyClassCfDAA2T2V_Tg5"(ptr swiftself %0)
69-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main3foo1tAA7MyClassCyAA2T1VGAG_tF"()
70-
// CHECK-IR-DAG: define {{.*}}ptr @"$e4main3bar1tAA7MyClassCyAA2T2VGAG_tF"(i1 %0)
57+
// CHECK-IR-DAG: define {{.*}}void @"$s4main7MyClassC1txvgAA2T1V_Tg5"(ptr swiftself %0)
58+
// CHECK-IR-DAG: define {{.*}}i1 @"$s4main7MyClassC1txvgAA2T2V_Tg5"(ptr swiftself %0)
59+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T1V_Tg5"(ptr swiftself %0)
60+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T2V_Tg5"(i1 %0, ptr swiftself %1)
61+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T1V_Tt0g5"()
62+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfCAA2T2V_Tt0g5"(i1 %0)
63+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfcAA2T1V_Tg5"(ptr swiftself %0)
64+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassC1tACyxGx_tcfcAA2T2V_Tg5"(i1 %0, ptr swiftself %1)
65+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassCfdAA2T1V_Tg5"(ptr swiftself %0)
66+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main7MyClassCfdAA2T2V_Tg5"(ptr swiftself %0)
67+
// CHECK-IR-DAG: define {{.*}}void @"$s4main7MyClassCfDAA2T1V_Tg5"(ptr swiftself %0)
68+
// CHECK-IR-DAG: define {{.*}}void @"$s4main7MyClassCfDAA2T2V_Tg5"(ptr swiftself %0)
69+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main3foo1tAA7MyClassCyAA2T1VGAG_tF"()
70+
// CHECK-IR-DAG: define {{.*}}ptr @"$s4main3bar1tAA7MyClassCyAA2T2VGAG_tF"(i1 %0)

test/embedded/classes-indirect-return.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
// REQUIRES: OS=macosx || OS=linux-gnu
55
// REQUIRES: swift_feature_Embedded
66

7-
// CHECK: sil @$e4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {
7+
// CHECK: sil @$s4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {
88

99
// CHECK-LABEL: sil_vtable $X<Int>
10-
// CHECK: #X.foo: <T> (X<T>) -> () -> T : @$e4main1XC3fooxyFSi_Tg5
10+
// CHECK: #X.foo: <T> (X<T>) -> () -> T : @$s4main1XC3fooxyFSi_Tg5
1111
// CHECK: }
1212

1313
open class X<T> {

test/embedded/classes-methods-no-stdlib.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class MySubClass: MyClass {
1212
override func foo() { }
1313
}
1414

15-
// CHECK: @"$e4main7MyClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$e4main7MyClassCfD", ptr null, ptr @"$e4main7MyClassC3fooyyF", ptr @"$e4main7MyClassC3baryyF", ptr @swift_deletedMethodError }>
16-
// CHECK: @"$e4main10MySubClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr @"$e4main7MyClassCN", ptr @"$e4main10MySubClassCfD", ptr null, ptr @"$e4main10MySubClassC3fooyyF", ptr @"$e4main7MyClassC3baryyF", ptr @"$e4main10MySubClassCACycfC" }>
15+
// CHECK: @"$s4main7MyClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$s4main7MyClassCfD", ptr null, ptr @"$s4main7MyClassC3fooyyF", ptr @"$s4main7MyClassC3baryyF", ptr @swift_deletedMethodError }>
16+
// CHECK: @"$s4main10MySubClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr, ptr, ptr }> <{ ptr @"$s4main7MyClassCN", ptr @"$s4main10MySubClassCfD", ptr null, ptr @"$s4main10MySubClassC3fooyyF", ptr @"$s4main7MyClassC3baryyF", ptr @"$s4main10MySubClassCACycfC" }>
1717

18-
// CHECK: define {{.*}}void @"$e4main4test1xyAA7MyClassC_tF"(ptr %0)
18+
// CHECK: define {{.*}}void @"$s4main4test1xyAA7MyClassC_tF"(ptr %0)
1919
public func test(x: MyClass) {
2020

2121
x.foo() // goes through the vtable
@@ -25,15 +25,15 @@ public func test(x: MyClass) {
2525
// CHECK: call swiftcc void %3(ptr swiftself %0)
2626

2727
x.bar() // does not go through the vtable
28-
// CHECK: call swiftcc void @"$e4main7MyClassC3baryyF"
28+
// CHECK: call swiftcc void @"$s4main7MyClassC3baryyF"
2929

3030
let y = MySubClass()
31-
// CHECK: call swiftcc ptr @"$e4main10MySubClassCACycfC"
31+
// CHECK: call swiftcc ptr @"$s4main10MySubClassCACycfC"
3232

3333
y.foo() // does not go through the vtable
34-
// CHECK: call swiftcc void @"$e4main10MySubClassC3fooyyF"
34+
// CHECK: call swiftcc void @"$s4main10MySubClassC3fooyyF"
3535

3636
y.bar() // does not go through the vtable
37-
// CHECK: call swiftcc void @"$e4main7MyClassC3baryyF"
37+
// CHECK: call swiftcc void @"$s4main7MyClassC3baryyF"
3838

3939
}

test/embedded/classes-no-stdlib.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55

66
public class MyClass {}
77

8-
// CHECK-DAG: @"$e4main7MyClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$e4main7MyClassCfD", ptr null, ptr @"$e4main7MyClassCACycfC" }>
9-
// CHECK-DAG: define {{.*}}ptr @"$e4main7MyClassCfd"
10-
// CHECK-DAG: define {{.*}}void @"$e4main7MyClassCfD"
11-
// CHECK-DAG: define {{.*}}ptr @"$e4main7MyClassCACycfC"
12-
// CHECK-DAG: define {{.*}}ptr @"$e4main7MyClassCACycfc"
8+
// CHECK-DAG: @"$s4main7MyClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr }> <{ ptr null, ptr @"$s4main7MyClassCfD", ptr null, ptr @"$s4main7MyClassCACycfC" }>
9+
// CHECK-DAG: define {{.*}}ptr @"$s4main7MyClassCfd"
10+
// CHECK-DAG: define {{.*}}void @"$s4main7MyClassCfD"
11+
// CHECK-DAG: define {{.*}}ptr @"$s4main7MyClassCACycfC"
12+
// CHECK-DAG: define {{.*}}ptr @"$s4main7MyClassCACycfc"
1313

1414
public func foo() -> MyClass {
1515
return MyClass()
1616
}
17-
// CHECK-DAG: define {{.*}}ptr @"$e4main3fooAA7MyClassCyF"
17+
// CHECK-DAG: define {{.*}}ptr @"$s4main3fooAA7MyClassCyF"
1818

1919
public class MySubClass: MyClass {}
2020

21-
// CHECK-DAG: @"$e4main10MySubClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr }> <{ ptr @"$e4main7MyClassCN", ptr @"$e4main10MySubClassCfD", ptr null, ptr @"$e4main10MySubClassCACycfC" }>
22-
// CHECK-DAG: define {{.*}}ptr @"$e4main10MySubClassCACycfC"
23-
// CHECK-DAG: define {{.*}}ptr @"$e4main10MySubClassCACycfc"
24-
// CHECK-DAG: define {{.*}}ptr @"$e4main10MySubClassCfd"
25-
// CHECK-DAG: define {{.*}}void @"$e4main10MySubClassCfD"
21+
// CHECK-DAG: @"$s4main10MySubClassCN" = {{.*}}<{ ptr, ptr, ptr, ptr }> <{ ptr @"$s4main7MyClassCN", ptr @"$s4main10MySubClassCfD", ptr null, ptr @"$s4main10MySubClassCACycfC" }>
22+
// CHECK-DAG: define {{.*}}ptr @"$s4main10MySubClassCACycfC"
23+
// CHECK-DAG: define {{.*}}ptr @"$s4main10MySubClassCACycfc"
24+
// CHECK-DAG: define {{.*}}ptr @"$s4main10MySubClassCfd"
25+
// CHECK-DAG: define {{.*}}void @"$s4main10MySubClassCfD"
2626

2727
public func bar() -> MyClass {
2828
return MySubClass()
2929
}
30-
// CHECK-DAG: define {{.*}}ptr @"$e4main3barAA7MyClassCyF"
30+
// CHECK-DAG: define {{.*}}ptr @"$s4main3barAA7MyClassCyF"

test/embedded/classes-stack-promotion.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ struct Main {
7171

7272
// Check that stack promotion did really happen
7373

74-
// CHECK-IR: define {{.*}}@"$e4main8MyStructVyAcA0B10FinalClassCcfC"
74+
// CHECK-IR: define {{.*}}@"$s4main8MyStructVyAcA0B10FinalClassCcfC"
7575
// CHECK-IR-NEXT: entry:
76-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
76+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
7777
// CHECK-IR-NEXT: call {{.*}}@swift_release
7878
// CHECK-IR-NEXT: ret void
7979
// CHECK-IR-NEXT: }
@@ -83,18 +83,18 @@ struct Main {
8383
// CHECK-IR-NEXT: alloca %T4main10MySubClassC
8484
// CHECK-IR-NEXT: alloca %T4main12MyFinalClassC
8585
// CHECK-IR-NEXT: call {{.*}}@swift_initStackObject
86-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
87-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
88-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
89-
// CHECK-IR-NEXT: call {{.*}}@"$e4main3bar1oyAA7MyClassC_tF"
86+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
87+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
88+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
89+
// CHECK-IR-NEXT: call {{.*}}@"$s4main3bar1oyAA7MyClassC_tF"
9090
// CHECK-IR-NEXT: call {{.*}}@swift_setDeallocating
91-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
92-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
91+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
92+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
9393
// CHECK-IR-NEXT: call {{.*}}@llvm.lifetime.end.p0
94-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
94+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
9595
// CHECK-IR-NEXT: call {{.*}}@swift_initStackObject
96-
// CHECK-IR-NEXT: call {{.*}}@"$es5print_10terminatorys12StaticStringV_ADtF"
97-
// CHECK-IR-NEXT: call {{.*}}@"$e4main8MyStructVyAcA0B10FinalClassCcfC"
96+
// CHECK-IR-NEXT: call {{.*}}@"$ss5print_10terminatorys12StaticStringV_ADtF"
97+
// CHECK-IR-NEXT: call {{.*}}@"$s4main8MyStructVyAcA0B10FinalClassCcfC"
9898
// CHECK-IR-NEXT: call {{.*}}@llvm.lifetime.end.p0
9999
// CHECK-IR-NEXT: ret {{.*}}0
100100
// CHECK-IR-NEXT: }

test/embedded/concurrency-builtins.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public func test() async {
1313
}
1414
}
1515

16-
// CHECK: define {{.*}}@"$e4main4testyyYaF"(ptr swiftasync %0)
16+
// CHECK: define {{.*}}@"$s4main4testyyYaF"(ptr swiftasync %0)
1717
// CHECK: entry:
1818
// CHECK: %result_type_info_record = alloca %swift.result_type_info_task_option
1919
// CHECK: call {{.*}}@llvm.coro.id.async

test/embedded/conditionals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ public func regular() { }
1111
#endif
1212

1313
// CHECK: define {{.*}}void @"$s12conditionals7regularyyF"()
14-
// EMBEDDED: define {{.*}}void @"$e12conditionals8embeddedyyF"()
14+
// EMBEDDED: define {{.*}}void @"$s12conditionals8embeddedyyF"()

test/embedded/fno-builtin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ public func foo() -> [Int] {
1313
return b
1414
}
1515

16-
// CHECK: define {{.*}}@"$e4main3fooSaySiGyF"()
16+
// CHECK: define {{.*}}@"$s4main3fooSaySiGyF"()

0 commit comments

Comments
 (0)