diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
commit | 4362261b0093730e46ffcad910e8b465cf0bb1cb (patch) | |
tree | b05fa6d247505d0ab46b16619f702532e189f698 /clang/test/CodeGenCXX | |
parent | 83e042a21b5392882ccc020baa9ade52851b5903 (diff) | |
download | bcm5719-llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.tar.gz bcm5719-llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.zip |
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
llvm-svn: 188447
Diffstat (limited to 'clang/test/CodeGenCXX')
157 files changed, 1047 insertions, 1047 deletions
diff --git a/clang/test/CodeGenCXX/DynArrayInit.cpp b/clang/test/CodeGenCXX/DynArrayInit.cpp index 4b4c2ecf1d3..fb865e35af4 100644 --- a/clang/test/CodeGenCXX/DynArrayInit.cpp +++ b/clang/test/CodeGenCXX/DynArrayInit.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -O3 -emit-llvm -o - %s | FileCheck %s // PR7490 -// CHECK: define signext i8 @_Z2f0v +// CHECK-LABEL: define signext i8 @_Z2f0v // CHECK: ret i8 0 // CHECK: } inline void* operator new[](unsigned long, void* __p) { return __p; } diff --git a/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp b/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp index 012c2231551..793bbde0502 100644 --- a/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp +++ b/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp @@ -7,10 +7,10 @@ struct A { ~A(); }; -// CHECK-NOT: define void @_ZN1AC1Ev -// CHECK: define void @_ZN1AC2Ev -// CHECK: define void @_ZN1AD1Ev -// CHECK: define void @_ZN1AD2Ev +// CHECK-NOT-LABEL: define void @_ZN1AC1Ev +// CHECK-LABEL: define void @_ZN1AC2Ev +// CHECK-LABEL: define void @_ZN1AD1Ev +// CHECK-LABEL: define void @_ZN1AD2Ev A::A() { } A::~A() { } diff --git a/clang/test/CodeGenCXX/address-of-fntemplate.cpp b/clang/test/CodeGenCXX/address-of-fntemplate.cpp index 162c6e5754f..71794520f0a 100644 --- a/clang/test/CodeGenCXX/address-of-fntemplate.cpp +++ b/clang/test/CodeGenCXX/address-of-fntemplate.cpp @@ -9,8 +9,8 @@ void test() { // CHECK: @_Z1fIiEvv void (*p2)() = f<int>; } -// CHECK: define linkonce_odr void @_Z1fIiEvT_ -// CHECK: define linkonce_odr void @_Z1fIiEvv +// CHECK-LABEL: define linkonce_odr void @_Z1fIiEvT_ +// CHECK-LABEL: define linkonce_odr void @_Z1fIiEvv namespace PR6973 { template<typename T> diff --git a/clang/test/CodeGenCXX/alloca-align.cpp b/clang/test/CodeGenCXX/alloca-align.cpp index 99d6ab5845f..079b55d2b03 100644 --- a/clang/test/CodeGenCXX/alloca-align.cpp +++ b/clang/test/CodeGenCXX/alloca-align.cpp @@ -6,19 +6,19 @@ struct s0 { int TheStores __attribute__((aligned(16))); }; -// CHECK: define void @f0 +// CHECK-LABEL: define void @f0 // CHECK: alloca %struct.s0, align 16 extern "C" void f0() { (void) s0(); } -// CHECK: define void @f1 +// CHECK-LABEL: define void @f1 // CHECK: alloca %struct.s0, align 16 extern "C" void f1() { (void) (struct s0) { 0, 0, 0, 0 }; } -// CHECK: define i32 @f2 +// CHECK-LABEL: define i32 @f2 // CHECK: alloca %struct.s1, align 2 struct s1 { short x; short y; }; extern "C" struct s1 f2(int a, struct s1 *x, struct s1 *y) { diff --git a/clang/test/CodeGenCXX/anonymous-namespaces.cpp b/clang/test/CodeGenCXX/anonymous-namespaces.cpp index 35c90bc61e4..abc700fef6c 100644 --- a/clang/test/CodeGenCXX/anonymous-namespaces.cpp +++ b/clang/test/CodeGenCXX/anonymous-namespaces.cpp @@ -28,12 +28,12 @@ namespace { struct E : public virtual EBase { virtual ~E() {} }; }; - // CHECK-1: define internal i32 @_ZN12_GLOBAL__N_13fooEv() + // CHECK-1-LABEL: define internal i32 @_ZN12_GLOBAL__N_13fooEv() int foo() { return 32; } - // CHECK-1: define internal i32 @_ZN12_GLOBAL__N_11A3fooEv() + // CHECK-1-LABEL: define internal i32 @_ZN12_GLOBAL__N_11A3fooEv() namespace A { int foo() { return 45; @@ -58,13 +58,13 @@ namespace test2 { struct C; } - // CHECK-2: define void @_ZN5test24testEv() + // CHECK-2-LABEL: define void @_ZN5test24testEv() // CHECK-2: call void @_ZN5test21A1BINS_12_GLOBAL__N_11CEE3fooEv() void test() { A::B<C>::foo(); } - // CHECK-2: define internal void @_ZN5test21A1BINS_12_GLOBAL__N_11CEE3fooEv() + // CHECK-2-LABEL: define internal void @_ZN5test21A1BINS_12_GLOBAL__N_11CEE3fooEv() } namespace { diff --git a/clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp b/clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp index 8dc4f4721dd..98e982ddf69 100644 --- a/clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp +++ b/clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp @@ -31,7 +31,7 @@ namespace PR7021 { union { long l; }; }; - // CHECK: define void @_ZN6PR70211fENS_1XES0_ + // CHECK-LABEL: define void @_ZN6PR70211fENS_1XES0_ void f(X x, X z) { X x1; @@ -61,7 +61,7 @@ namespace test2 { }; A::A() : b(10) { } - // CHECK: define void @_ZN5test21AC2Ev( + // CHECK-LABEL: define void @_ZN5test21AC2Ev( // CHECK-NOT: } // CHECK: store i32 10 // CHECK: } @@ -79,14 +79,14 @@ namespace PR10512 { }; }; - // CHECK: define void @_ZN7PR105121AC2Ev + // CHECK-LABEL: define void @_ZN7PR105121AC2Ev // CHECK: [[THISADDR:%[a-zA-z0-9.]+]] = alloca [[A:%"struct[A-Za-z0-9:.]+"]] // CHECK-NEXT: store [[A]]* [[THIS:%[a-zA-z0-9.]+]], [[A]]** [[THISADDR]] // CHECK-NEXT: [[THIS1:%[a-zA-z0-9.]+]] = load [[A]]** [[THISADDR]] // CHECK-NEXT: ret void A::A() {} - // CHECK: define void @_ZN7PR105121AC2Ei + // CHECK-LABEL: define void @_ZN7PR105121AC2Ei // CHECK: [[THISADDR:%[a-zA-z0-9.]+]] = alloca [[A:%"struct[A-Za-z0-9:.]+"]] // CHECK-NEXT: [[XADDR:%[a-zA-z0-9.]+]] = alloca i32 // CHECK-NEXT: store [[A]]* [[THIS:%[a-zA-z0-9.]+]], [[A]]** [[THISADDR]] @@ -100,7 +100,7 @@ namespace PR10512 { // CHECK-NEXT: ret void A::A(int x) : x(x) { } - // CHECK: define void @_ZN7PR105121AC2El + // CHECK-LABEL: define void @_ZN7PR105121AC2El // CHECK: [[THISADDR:%[a-zA-z0-9.]+]] = alloca [[A:%"struct[A-Za-z0-9:.]+"]] // CHECK-NEXT: [[XADDR:%[a-zA-z0-9.]+]] = alloca i64 // CHECK-NEXT: store [[A]]* [[THIS:%[a-zA-z0-9.]+]], [[A]]** [[THISADDR]] @@ -130,7 +130,7 @@ namespace test3 { }; A::A() : callback(0), callback_value(0) {} - // CHECK: define void @_ZN5test31AC2Ev( + // CHECK-LABEL: define void @_ZN5test31AC2Ev( // CHECK: [[THIS:%.*]] = load // CHECK-NEXT: [[UNION:%.*]] = getelementptr inbounds {{.*}} [[THIS]], i32 0, i32 0 // CHECK-NEXT: [[STRUCT:%.*]] = bitcast {{.*}}* [[UNION]] to diff --git a/clang/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp b/clang/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp index bd275f1c4da..7ac5b5839e8 100644 --- a/clang/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp +++ b/clang/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp @@ -1,9 +1,9 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -fno-rtti -emit-llvm -o - %s | FileCheck %s -// CHECK: define void @_ZN2B1D0Ev +// CHECK-LABEL: define void @_ZN2B1D0Ev // CHECK: [[T1:%.*]] = load void (%struct.B1*)** getelementptr inbounds (void (%struct.B1*)** bitcast ([5 x i8*]* @_ZTV2B1 to void (%struct.B1*)**), i64 2) // CHECK-NEXT: call void [[T1]](%struct.B1* [[T2:%.*]]) -// CHECK: define void @_Z6DELETEP2B1 +// CHECK-LABEL: define void @_Z6DELETEP2B1 // CHECK: [[T3:%.*]] = load void (%struct.B1*)** getelementptr inbounds (void (%struct.B1*)** bitcast ([5 x i8*]* @_ZTV2B1 to void (%struct.B1*)**), i64 2) // CHECK-NEXT: call void [[T3]](%struct.B1* [[T4:%.*]]) diff --git a/clang/test/CodeGenCXX/apple-kext-linkage.C b/clang/test/CodeGenCXX/apple-kext-linkage.C index 59d228e2300..e66b0389fcc 100644 --- a/clang/test/CodeGenCXX/apple-kext-linkage.C +++ b/clang/test/CodeGenCXX/apple-kext-linkage.C @@ -13,21 +13,21 @@ void foo() { Derived d1; // ok } -// CHECK: define internal i32 @_Z1fj( +// CHECK-LABEL: define internal i32 @_Z1fj( inline unsigned f(unsigned n) { return n == 0 ? 0 : n + f(n-1); } unsigned g(unsigned n) { return f(n); } // rdar://problem/10133200: give explicit instantiations external linkage in kernel mode -// CHECK: define void @_Z3barIiEvv() +// CHECK-LABEL: define void @_Z3barIiEvv() template <typename T> void bar() {} template void bar<int>(); -// CHECK: define internal i32 @_Z5identIiET_S0_( +// CHECK-LABEL: define internal i32 @_Z5identIiET_S0_( template <typename X> X ident(X x) { return x; } int foo(int n) { return ident(n); } -// CHECK: define internal void @_ZN7DerivedD1Ev( -// CHECK: define internal void @_ZN7DerivedD0Ev( -// CHECK: define internal void @_ZN7DeriveddlEPv( +// CHECK-LABEL: define internal void @_ZN7DerivedD1Ev( +// CHECK-LABEL: define internal void @_ZN7DerivedD0Ev( +// CHECK-LABEL: define internal void @_ZN7DeriveddlEPv( diff --git a/clang/test/CodeGenCXX/arm.cpp b/clang/test/CodeGenCXX/arm.cpp index 5578b2ab2b5..2fb9c49bb70 100644 --- a/clang/test/CodeGenCXX/arm.cpp +++ b/clang/test/CodeGenCXX/arm.cpp @@ -28,7 +28,7 @@ bar baz; // CHECK: call [[BAR:%.*]]* @_ZN3barC1Ev( // CHECK-NEXT: call i32 @atexit(void ()* @__dtor_baz) -// CHECK: define internal void @__dtor_baz() +// CHECK-LABEL: define internal void @__dtor_baz() // CHECK: call [[BAR]]* @_ZN3barD1Ev([[BAR]]* @baz) // Destructors and constructors must return this. @@ -41,7 +41,7 @@ namespace test1 { void bar() { foo(); } }; - // CHECK: define void @_ZN5test14testEv() + // CHECK-LABEL: define void @_ZN5test14testEv() void test() { // CHECK: [[AV:%.*]] = alloca [[A:%.*]], align 1 // CHECK: call [[A]]* @_ZN5test11AC1Ei([[A]]* [[AV]], i32 10) @@ -107,7 +107,7 @@ namespace test3 { }; void a() { - // CHECK: define void @_ZN5test31aEv() + // CHECK-LABEL: define void @_ZN5test31aEv() // CHECK: call noalias i8* @_Znam(i32 48) // CHECK: store i32 4 // CHECK: store i32 10 @@ -115,7 +115,7 @@ namespace test3 { } void b(int n) { - // CHECK: define void @_ZN5test31bEi( + // CHECK-LABEL: define void @_ZN5test31bEi( // CHECK: [[N:%.*]] = load i32* // CHECK: @llvm.umul.with.overflow.i32(i32 [[N]], i32 4) // CHECK: @llvm.uadd.with.overflow.i32(i32 {{.*}}, i32 8) @@ -128,7 +128,7 @@ namespace test3 { } void c() { - // CHECK: define void @_ZN5test31cEv() + // CHECK-LABEL: define void @_ZN5test31cEv() // CHECK: call noalias i8* @_Znam(i32 808) // CHECK: store i32 4 // CHECK: store i32 200 @@ -136,7 +136,7 @@ namespace test3 { } void d(int n) { - // CHECK: define void @_ZN5test31dEi( + // CHECK-LABEL: define void @_ZN5test31dEi( // CHECK: [[N:%.*]] = load i32* // CHECK: @llvm.umul.with.overflow.i32(i32 [[N]], i32 80) // CHECK: [[NE:%.*]] = mul i32 [[N]], 20 @@ -149,7 +149,7 @@ namespace test3 { } void e(A *x) { - // CHECK: define void @_ZN5test31eEPNS_1AE( + // CHECK-LABEL: define void @_ZN5test31eEPNS_1AE( // CHECK: icmp eq {{.*}}, null // CHECK: getelementptr {{.*}}, i64 -8 // CHECK: getelementptr {{.*}}, i64 4 @@ -161,7 +161,7 @@ namespace test3 { } void f(A (*x)[20]) { - // CHECK: define void @_ZN5test31fEPA20_NS_1AE( + // CHECK-LABEL: define void @_ZN5test31fEPA20_NS_1AE( // CHECK: icmp eq {{.*}}, null // CHECK: getelementptr {{.*}}, i64 -8 // CHECK: getelementptr {{.*}}, i64 4 @@ -180,7 +180,7 @@ namespace test4 { }; void a() { - // CHECK: define void @_ZN5test41aEv() + // CHECK-LABEL: define void @_ZN5test41aEv() // CHECK: call noalias i8* @_Znam(i32 48) // CHECK: store i32 4 // CHECK: store i32 10 @@ -188,7 +188,7 @@ namespace test4 { } void b(int n) { - // CHECK: define void @_ZN5test41bEi( + // CHECK-LABEL: define void @_ZN5test41bEi( // CHECK: [[N:%.*]] = load i32* // CHECK: @llvm.umul.with.overflow.i32(i32 [[N]], i32 4) // CHECK: @llvm.uadd.with.overflow.i32(i32 {{.*}}, i32 8) @@ -200,7 +200,7 @@ namespace test4 { } void c() { - // CHECK: define void @_ZN5test41cEv() + // CHECK-LABEL: define void @_ZN5test41cEv() // CHECK: call noalias i8* @_Znam(i32 808) // CHECK: store i32 4 // CHECK: store i32 200 @@ -208,7 +208,7 @@ namespace test4 { } void d(int n) { - // CHECK: define void @_ZN5test41dEi( + // CHECK-LABEL: define void @_ZN5test41dEi( // CHECK: [[N:%.*]] = load i32* // CHECK: @llvm.umul.with.overflow.i32(i32 [[N]], i32 80) // CHECK: [[NE:%.*]] = mul i32 [[N]], 20 @@ -221,7 +221,7 @@ namespace test4 { } void e(A *x) { - // CHECK: define void @_ZN5test41eEPNS_1AE( + // CHECK-LABEL: define void @_ZN5test41eEPNS_1AE( // CHECK: [[ALLOC:%.*]] = getelementptr inbounds {{.*}}, i64 -8 // CHECK: getelementptr inbounds {{.*}}, i64 4 // CHECK: bitcast @@ -233,7 +233,7 @@ namespace test4 { } void f(A (*x)[20]) { - // CHECK: define void @_ZN5test41fEPA20_NS_1AE( + // CHECK-LABEL: define void @_ZN5test41fEPA20_NS_1AE( // CHECK: [[ALLOC:%.*]] = getelementptr inbounds {{.*}}, i64 -8 // CHECK: getelementptr inbounds {{.*}}, i64 4 // CHECK: bitcast @@ -251,7 +251,7 @@ namespace test5 { ~A(); }; - // CHECK: define void @_ZN5test54testEPNS_1AE + // CHECK-LABEL: define void @_ZN5test54testEPNS_1AE void test(A *a) { // CHECK: [[PTR:%.*]] = alloca [[A:%.*]]*, align 4 // CHECK-NEXT: store [[A]]* {{.*}}, [[A]]** [[PTR]], align 4 @@ -267,7 +267,7 @@ namespace test6 { virtual ~A(); }; - // CHECK: define void @_ZN5test64testEPNS_1AE + // CHECK-LABEL: define void @_ZN5test64testEPNS_1AE void test(A *a) { // CHECK: [[AVAR:%.*]] = alloca [[A:%.*]]*, align 4 // CHECK-NEXT: store [[A]]* {{.*}}, [[A]]** [[AVAR]], align 4 @@ -290,7 +290,7 @@ namespace test7 { // Static and guard tested at top of file - // CHECK: define void @_ZN5test74testEv() + // CHECK-LABEL: define void @_ZN5test74testEv() void test() { // CHECK: [[T0:%.*]] = load i32* @_ZGVZN5test74testEvE1x // CHECK-NEXT: [[T1:%.*]] = and i32 [[T0]], 1 @@ -325,7 +325,7 @@ namespace test8 { // Static and guard tested at top of file - // CHECK: define void @_ZN5test84testEv() + // CHECK-LABEL: define void @_ZN5test84testEv() void test() { // CHECK: [[T0:%.*]] = load i32* @_ZGVZN5test84testEvE1x // CHECK-NEXT: [[T1:%.*]] = and i32 [[T0]], 1 @@ -394,7 +394,7 @@ namespace test9 { void testDelete(A *array) { delete[] array; } -// CHECK: define void @_ZN5test910testDeleteEPNS_1AE( +// CHECK-LABEL: define void @_ZN5test910testDeleteEPNS_1AE( // CHECK: [[BEGIN:%.*]] = load [[TEST9]]** // CHECK-NEXT: [[T0:%.*]] = icmp eq [[TEST9]]* [[BEGIN]], null // CHECK-NEXT: br i1 [[T0]], @@ -413,7 +413,7 @@ namespace test9 { // CHECK: call [[C]]* @_ZN5test21CD1Ev( // CHECK: ret [[C]]* undef - // CHECK: define linkonce_odr void @_ZTv0_n12_N5test21CD0Ev( + // CHECK-LABEL: define linkonce_odr void @_ZTv0_n12_N5test21CD0Ev( // CHECK: call void @_ZN5test21CD0Ev( // CHECK: ret void diff --git a/clang/test/CodeGenCXX/atomic.cpp b/clang/test/CodeGenCXX/atomic.cpp index 36bb4ef5608..653f16d2630 100644 --- a/clang/test/CodeGenCXX/atomic.cpp +++ b/clang/test/CodeGenCXX/atomic.cpp @@ -5,7 +5,7 @@ namespace PR11411 { void f(); }; - // CHECK: define linkonce_odr void @_ZN7PR114113PtrIiE1fEv + // CHECK-LABEL: define linkonce_odr void @_ZN7PR114113PtrIiE1fEv // CHECK-NOT: ret template<typename _Tp> inline void Ptr<_Tp>::f() { int* _refcount; diff --git a/clang/test/CodeGenCXX/atomicinit.cpp b/clang/test/CodeGenCXX/atomicinit.cpp index 38d012e6a9a..ee2e9e4cf24 100644 --- a/clang/test/CodeGenCXX/atomicinit.cpp +++ b/clang/test/CodeGenCXX/atomicinit.cpp @@ -18,7 +18,7 @@ struct B { _Atomic(B) b; -// CHECK: define void @_Z11atomic_initR1Ai +// CHECK-LABEL: define void @_Z11atomic_initR1Ai void atomic_init(A& a, int i) { // CHECK-NOT: atomic // CHECK: tail call void @_ZN1BC1Ei @@ -26,7 +26,7 @@ void atomic_init(A& a, int i) { // CHECK-NEXT: ret void } -// CHECK: define void @_Z16atomic_init_boolPU7_Atomicbb +// CHECK-LABEL: define void @_Z16atomic_init_boolPU7_Atomicbb void atomic_init_bool(_Atomic(bool) *ab, bool b) { // CHECK-NOT: atomic // CHECK: {{zext i1.*to i8}} @@ -40,7 +40,7 @@ struct AtomicBoolMember { AtomicBoolMember(bool b); }; -// CHECK: define void @_ZN16AtomicBoolMemberC2Eb +// CHECK-LABEL: define void @_ZN16AtomicBoolMemberC2Eb // CHECK: {{zext i1.*to i8}} // CHECK-NEXT: store i8 // CHECK-NEXT: ret void diff --git a/clang/test/CodeGenCXX/attr.cpp b/clang/test/CodeGenCXX/attr.cpp index 4748cda8cc4..8bcff363c72 100644 --- a/clang/test/CodeGenCXX/attr.cpp +++ b/clang/test/CodeGenCXX/attr.cpp @@ -26,7 +26,7 @@ void C::bar3() { } void C::bar4() { } // PR6635 -// CHECK: define i32 @_Z5test1v() +// CHECK-LABEL: define i32 @_Z5test1v() int test1() { return 10; } // CHECK at top of file extern "C" int test2() __attribute__((alias("_Z5test1v"))); diff --git a/clang/test/CodeGenCXX/bitfield.cpp b/clang/test/CodeGenCXX/bitfield.cpp index c224afac469..2c454b0c072 100644 --- a/clang/test/CodeGenCXX/bitfield.cpp +++ b/clang/test/CodeGenCXX/bitfield.cpp @@ -20,13 +20,13 @@ namespace N0 { unsigned b71 : 2; }; unsigned read00(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read00 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read00 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[and:.*]] = and i64 %[[val]], 16383 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read00 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read00 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 50 @@ -35,14 +35,14 @@ namespace N0 { return s->b00; } unsigned read01(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read01 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read01 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 14 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 3 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read01 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read01 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 48 @@ -52,14 +52,14 @@ namespace N0 { return s->b01; } unsigned read20(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read20 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read20 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 16 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 63 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read20 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read20 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 42 @@ -69,14 +69,14 @@ namespace N0 { return s->b20; } unsigned read21(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read21 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read21 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 22 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 3 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read21 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read21 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 40 @@ -86,14 +86,14 @@ namespace N0 { return s->b21; } unsigned read30(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read30 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read30 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 24 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 1073741823 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read30 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read30 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 10 @@ -103,14 +103,14 @@ namespace N0 { return s->b30; } unsigned read31(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read31 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read31 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 54 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 3 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read31 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read31 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 8 @@ -120,14 +120,14 @@ namespace N0 { return s->b31; } unsigned read70(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read70 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read70 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 56 // CHECK-X86-64: %[[and:.*]] = and i64 %[[shr]], 63 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read70 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read70 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i64 %[[val]], 2 @@ -137,13 +137,13 @@ namespace N0 { return s->b70; } unsigned read71(S* s) { - // CHECK-X86-64: define i32 @_ZN2N06read71 + // CHECK-X86-64-LABEL: define i32 @_ZN2N06read71 // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-X86-64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-X86-64: %[[shr:.*]] = lshr i64 %[[val]], 62 // CHECK-X86-64: %[[trunc:.*]] = trunc i64 %[[shr]] to i32 // CHECK-X86-64: ret i32 %[[trunc]] - // CHECK-PPC64: define zeroext i32 @_ZN2N06read71 + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N06read71 // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i64* // CHECK-PPC64: %[[val:.*]] = load i64* %[[ptr]] // CHECK-PPC64: %[[and:.*]] = and i64 %[[val]], 3 @@ -166,13 +166,13 @@ namespace N1 { char c; }; unsigned read(S* s) { - // CHECK-X86-64: define i32 @_ZN2N14read + // CHECK-X86-64-LABEL: define i32 @_ZN2N14read // CHECK-X86-64: %[[ptr:.*]] = getelementptr inbounds %{{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-X86-64: %[[val:.*]] = load i8* %[[ptr]] // CHECK-X86-64: %[[and:.*]] = and i8 %[[val]], 1 // CHECK-X86-64: %[[ext:.*]] = zext i8 %[[and]] to i32 // CHECK-X86-64: ret i32 %[[ext]] - // CHECK-PPC64: define zeroext i32 @_ZN2N14read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N14read // CHECK-PPC64: %[[ptr:.*]] = getelementptr inbounds %{{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-PPC64: %[[val:.*]] = load i8* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i8 %[[val]], 7 @@ -181,7 +181,7 @@ namespace N1 { return s->b; } void write(S* s, unsigned x) { - // CHECK-X86-64: define void @_ZN2N15write + // CHECK-X86-64-LABEL: define void @_ZN2N15write // CHECK-X86-64: %[[ptr:.*]] = getelementptr inbounds %{{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-X86-64: %[[x_trunc:.*]] = trunc i32 %{{.*}} to i8 // CHECK-X86-64: %[[old:.*]] = load i8* %[[ptr]] @@ -189,7 +189,7 @@ namespace N1 { // CHECK-X86-64: %[[old_and:.*]] = and i8 %[[old]], -2 // CHECK-X86-64: %[[new:.*]] = or i8 %[[old_and]], %[[x_and]] // CHECK-X86-64: store i8 %[[new]], i8* %[[ptr]] - // CHECK-PPC64: define void @_ZN2N15write + // CHECK-PPC64-LABEL: define void @_ZN2N15write // CHECK-PPC64: %[[ptr:.*]] = getelementptr inbounds %{{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-PPC64: %[[x_trunc:.*]] = trunc i32 %{{.*}} to i8 // CHECK-PPC64: %[[old:.*]] = load i8* %[[ptr]] @@ -210,12 +210,12 @@ namespace N2 { void *p; }; unsigned read(S* s) { - // CHECK-X86-64: define i32 @_ZN2N24read + // CHECK-X86-64-LABEL: define i32 @_ZN2N24read // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[and:.*]] = and i32 %[[val]], 16777215 // CHECK-X86-64: ret i32 %[[and]] - // CHECK-PPC64: define zeroext i32 @_ZN2N24read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N24read // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i32 %[[val]], 8 @@ -223,14 +223,14 @@ namespace N2 { return s->b; } void write(S* s, unsigned x) { - // CHECK-X86-64: define void @_ZN2N25write + // CHECK-X86-64-LABEL: define void @_ZN2N25write // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 // CHECK-X86-64: %[[old_and:.*]] = and i32 %[[old]], -16777216 // CHECK-X86-64: %[[new:.*]] = or i32 %[[old_and]], %[[x_and]] // CHECK-X86-64: store i32 %[[new]], i32* %[[ptr]] - // CHECK-PPC64: define void @_ZN2N25write + // CHECK-PPC64-LABEL: define void @_ZN2N25write // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 @@ -249,12 +249,12 @@ namespace N3 { unsigned b : 24; }; unsigned read(S* s) { - // CHECK-X86-64: define i32 @_ZN2N34read + // CHECK-X86-64-LABEL: define i32 @_ZN2N34read // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[and:.*]] = and i32 %[[val]], 16777215 // CHECK-X86-64: ret i32 %[[and]] - // CHECK-PPC64: define zeroext i32 @_ZN2N34read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N34read // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i32 %[[val]], 8 @@ -262,14 +262,14 @@ namespace N3 { return s->b; } void write(S* s, unsigned x) { - // CHECK-X86-64: define void @_ZN2N35write + // CHECK-X86-64-LABEL: define void @_ZN2N35write // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 // CHECK-X86-64: %[[old_and:.*]] = and i32 %[[old]], -16777216 // CHECK-X86-64: %[[new:.*]] = or i32 %[[old_and]], %[[x_and]] // CHECK-X86-64: store i32 %[[new]], i32* %[[ptr]] - // CHECK-PPC64: define void @_ZN2N35write + // CHECK-PPC64-LABEL: define void @_ZN2N35write // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 @@ -300,13 +300,13 @@ namespace N4 { // FIXME: We should widen this load as long as the function isn't being // instrumented by thread-sanitizer. // - // CHECK-X86-64: define i32 @_ZN2N44read + // CHECK-X86-64-LABEL: define i32 @_ZN2N44read // CHECK-X86-64: %[[gep:.*]] = getelementptr inbounds {{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-X86-64: %[[ptr:.*]] = bitcast [3 x i8]* %[[gep]] to i24* // CHECK-X86-64: %[[val:.*]] = load i24* %[[ptr]] // CHECK-X86-64: %[[ext:.*]] = zext i24 %[[val]] to i32 // CHECK-X86-64: ret i32 %[[ext]] - // CHECK-PPC64: define zeroext i32 @_ZN2N44read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N44read // CHECK-PPC64: %[[gep:.*]] = getelementptr inbounds {{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-PPC64: %[[ptr:.*]] = bitcast [3 x i8]* %[[gep]] to i24* // CHECK-PPC64: %[[val:.*]] = load i24* %[[ptr]] @@ -315,12 +315,12 @@ namespace N4 { return s->b; } void write(Base* s, unsigned x) { - // CHECK-X86-64: define void @_ZN2N45write + // CHECK-X86-64-LABEL: define void @_ZN2N45write // CHECK-X86-64: %[[gep:.*]] = getelementptr inbounds {{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-X86-64: %[[ptr:.*]] = bitcast [3 x i8]* %[[gep]] to i24* // CHECK-X86-64: %[[new:.*]] = trunc i32 %{{.*}} to i24 // CHECK-X86-64: store i24 %[[new]], i24* %[[ptr]] - // CHECK-PPC64: define void @_ZN2N45write + // CHECK-PPC64-LABEL: define void @_ZN2N45write // CHECK-PPC64: %[[gep:.*]] = getelementptr inbounds {{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-PPC64: %[[ptr:.*]] = bitcast [3 x i8]* %[[gep]] to i24* // CHECK-PPC64: %[[new:.*]] = trunc i32 %{{.*}} to i24 @@ -342,12 +342,12 @@ namespace N5 { struct Y { unsigned b : 24; } y; }; unsigned read(U* u) { - // CHECK-X86-64: define i32 @_ZN2N54read + // CHECK-X86-64-LABEL: define i32 @_ZN2N54read // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[and:.*]] = and i32 %[[val]], 16777215 // CHECK-X86-64: ret i32 %[[and]] - // CHECK-PPC64: define zeroext i32 @_ZN2N54read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N54read // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[val:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[shr:.*]] = lshr i32 %[[val]], 8 @@ -355,14 +355,14 @@ namespace N5 { return u->y.b; } void write(U* u, unsigned x) { - // CHECK-X86-64: define void @_ZN2N55write + // CHECK-X86-64-LABEL: define void @_ZN2N55write // CHECK-X86-64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-X86-64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-X86-64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 // CHECK-X86-64: %[[old_and:.*]] = and i32 %[[old]], -16777216 // CHECK-X86-64: %[[new:.*]] = or i32 %[[old_and]], %[[x_and]] // CHECK-X86-64: store i32 %[[new]], i32* %[[ptr]] - // CHECK-PPC64: define void @_ZN2N55write + // CHECK-PPC64-LABEL: define void @_ZN2N55write // CHECK-PPC64: %[[ptr:.*]] = bitcast %{{.*}}* %{{.*}} to i32* // CHECK-PPC64: %[[old:.*]] = load i32* %[[ptr]] // CHECK-PPC64: %[[x_and:.*]] = and i32 %{{.*}}, 16777215 @@ -387,7 +387,7 @@ namespace N6 { unsigned char b2 : 8; }; unsigned read(S* s) { - // CHECK-X86-64: define i32 @_ZN2N64read + // CHECK-X86-64-LABEL: define i32 @_ZN2N64read // CHECK-X86-64: %[[ptr1:.*]] = bitcast {{.*}}* %{{.*}} to i24* // CHECK-X86-64: %[[val1:.*]] = load i24* %[[ptr1]] // CHECK-X86-64: %[[ext1:.*]] = zext i24 %[[val1]] to i32 @@ -396,7 +396,7 @@ namespace N6 { // CHECK-X86-64: %[[ext2:.*]] = zext i8 %[[val2]] to i32 // CHECK-X86-64: %[[add:.*]] = add nsw i32 %[[ext1]], %[[ext2]] // CHECK-X86-64: ret i32 %[[add]] - // CHECK-PPC64: define zeroext i32 @_ZN2N64read + // CHECK-PPC64-LABEL: define zeroext i32 @_ZN2N64read // CHECK-PPC64: %[[ptr1:.*]] = bitcast {{.*}}* %{{.*}} to i24* // CHECK-PPC64: %[[val1:.*]] = load i24* %[[ptr1]] // CHECK-PPC64: %[[ext1:.*]] = zext i24 %[[val1]] to i32 @@ -408,14 +408,14 @@ namespace N6 { return s->b1 + s->b2; } void write(S* s, unsigned x) { - // CHECK-X86-64: define void @_ZN2N65write + // CHECK-X86-64-LABEL: define void @_ZN2N65write // CHECK-X86-64: %[[ptr1:.*]] = bitcast {{.*}}* %{{.*}} to i24* // CHECK-X86-64: %[[new1:.*]] = trunc i32 %{{.*}} to i24 // CHECK-X86-64: store i24 %[[new1]], i24* %[[ptr1]] // CHECK-X86-64: %[[new2:.*]] = trunc i32 %{{.*}} to i8 // CHECK-X86-64: %[[ptr2:.*]] = getelementptr inbounds {{.*}}* %{{.*}}, i32 0, i32 1 // CHECK-X86-64: store i8 %[[new2]], i8* %[[ptr2]] - // CHECK-PPC64: define void @_ZN2N65write + // CHECK-PPC64-LABEL: define void @_ZN2N65write // CHECK-PPC64: %[[ptr1:.*]] = bitcast {{.*}}* %{{.*}} to i24* // CHECK-PPC64: %[[new1:.*]] = trunc i32 %{{.*}} to i24 // CHECK-PPC64: store i24 %[[new1]], i24* %[[ptr1]] diff --git a/clang/test/CodeGenCXX/block-byref-cxx-objc.cpp b/clang/test/CodeGenCXX/block-byref-cxx-objc.cpp index 30f1f074b9b..616fd67ccc3 100644 --- a/clang/test/CodeGenCXX/block-byref-cxx-objc.cpp +++ b/clang/test/CodeGenCXX/block-byref-cxx-objc.cpp @@ -15,13 +15,13 @@ int main() return 0; } -// CHECK: define internal void @__Block_byref_object_copy_ +// CHECK-LABEL: define internal void @__Block_byref_object_copy_ // CHECK: call {{.*}} @_ZN1AC1ERKS_ -// CHECK: define internal void @__Block_byref_object_dispose_ +// CHECK-LABEL: define internal void @__Block_byref_object_dispose_ // CHECK: call {{.*}} @_ZN1AD1Ev -// CHECK: define internal void @__copy_helper_block_ +// CHECK-LABEL: define internal void @__copy_helper_block_ // CHECK: call void @_Block_object_assign -// CHECK: define internal void @__destroy_helper_block_ +// CHECK-LABEL: define internal void @__destroy_helper_block_ // CHECK: call void @_Block_object_dispose // rdar://problem/11135650 diff --git a/clang/test/CodeGenCXX/block-in-ctor-dtor.cpp b/clang/test/CodeGenCXX/block-in-ctor-dtor.cpp index 4ee6b1c10eb..bd37d4418d4 100644 --- a/clang/test/CodeGenCXX/block-in-ctor-dtor.cpp +++ b/clang/test/CodeGenCXX/block-in-ctor-dtor.cpp @@ -36,13 +36,13 @@ X::~X() { }; -// CHECK: define internal void @___ZN4ZoneC2Ev_block_invoke -// CHECK: define internal void @___ZN4ZoneC2Ev_block_invoke_ -// CHECK: define internal void @___ZN4ZoneD2Ev_block_invoke -// CHECK: define internal void @___ZN4ZoneD2Ev_block_invoke_ -// CHECK: define internal void @___ZN1XC1Ev_block_invoke -// CHECK: define internal void @___ZN1XC1Ev_block_invoke_ -// CHECK: define internal void @___ZN1XC2Ev_block_invoke -// CHECK: define internal void @___ZN1XC2Ev_block_invoke_ -// CHECK: define internal void @___ZN1XD2Ev_block_invoke -// CHECK: define internal void @___ZN1XD2Ev_block_invoke_ +// CHECK-LABEL: define internal void @___ZN4ZoneC2Ev_block_invoke +// CHECK-LABEL: define internal void @___ZN4ZoneC2Ev_block_invoke_ +// CHECK-LABEL: define internal void @___ZN4ZoneD2Ev_block_invoke +// CHECK-LABEL: define internal void @___ZN4ZoneD2Ev_block_invoke_ +// CHECK-LABEL: define internal void @___ZN1XC1Ev_block_invoke +// CHECK-LABEL: define internal void @___ZN1XC1Ev_block_invoke_ +// CHECK-LABEL: define internal void @___ZN1XC2Ev_block_invoke +// CHECK-LABEL: define internal void @___ZN1XC2Ev_block_invoke_ +// CHECK-LABEL: define internal void @___ZN1XD2Ev_block_invoke +// CHECK-LABEL: define internal void @___ZN1XD2Ev_block_invoke_ diff --git a/clang/test/CodeGenCXX/blocks-cxx11.cpp b/clang/test/CodeGenCXX/blocks-cxx11.cpp index 42d33ae8564..9ff5826ec5f 100644 --- a/clang/test/CodeGenCXX/blocks-cxx11.cpp +++ b/clang/test/CodeGenCXX/blocks-cxx11.cpp @@ -100,7 +100,7 @@ namespace test_block_in_lambda { }; lambda(); // make sure we emit the invocation function } - // CHECK: define internal void @"_ZZN20test_block_in_lambda4testENS_1AEENK3$_0clEv"( + // CHECK-LABEL: define internal void @"_ZZN20test_block_in_lambda4testENS_1AEENK3$_0clEv"( // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], align 8 // CHECK: [[THIS:%.*]] = load [[LAMBDA_T:%.*]]** // CHECK: [[TO_DESTROY:%.*]] = getelementptr inbounds [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5 diff --git a/clang/test/CodeGenCXX/blocks.cpp b/clang/test/CodeGenCXX/blocks.cpp index 81eef0e0282..8a6fdacf8d1 100644 --- a/clang/test/CodeGenCXX/blocks.cpp +++ b/clang/test/CodeGenCXX/blocks.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s namespace test0 { - // CHECK: define void @_ZN5test04testEi( + // CHECK-LABEL: define void @_ZN5test04testEi( // CHECK: define internal void @___ZN5test04testEi_block_invoke{{.*}}( // CHECK: define internal void @___ZN5test04testEi_block_invoke_2{{.*}}( void test(int x) { @@ -13,7 +13,7 @@ extern void (^out)(); namespace test1 { // Capturing const objects doesn't require a local block. - // CHECK: define void @_ZN5test15test1Ev() + // CHECK-LABEL: define void @_ZN5test15test1Ev() // CHECK: store void ()* bitcast ({{.*}} @__block_literal_global{{.*}} to void ()*), void ()** @out void test1() { const int NumHorsemen = 4; @@ -21,7 +21,7 @@ namespace test1 { } // That applies to structs too... - // CHECK: define void @_ZN5test15test2Ev() + // CHECK-LABEL: define void @_ZN5test15test2Ev() // CHECK: store void ()* bitcast ({{.*}} @__block_literal_global{{.*}} to void ()*), void ()** @out struct loc { double x, y; }; void test2() { @@ -30,7 +30,7 @@ namespace test1 { } // ...unless they have mutable fields... - // CHECK: define void @_ZN5test15test3Ev() + // CHECK-LABEL: define void @_ZN5test15test3Ev() // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], // CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()* // CHECK: store void ()* [[T0]], void ()** @out @@ -41,7 +41,7 @@ namespace test1 { } // ...or non-trivial destructors... - // CHECK: define void @_ZN5test15test4Ev() + // CHECK-LABEL: define void @_ZN5test15test4Ev() // CHECK: [[OBJ:%.*]] = alloca // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], // CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()* @@ -69,22 +69,22 @@ namespace test2 { ~B(); }; - // CHECK: define void @_ZN5test24testEv() + // CHECK-LABEL: define void @_ZN5test24testEv() void test() { __block A a; __block B b; } - // CHECK: define internal void @__Block_byref_object_copy + // CHECK-LABEL: define internal void @__Block_byref_object_copy // CHECK: call void @_ZN5test21AC1ERKS0_( - // CHECK: define internal void @__Block_byref_object_dispose + // CHECK-LABEL: define internal void @__Block_byref_object_dispose // CHECK: call void @_ZN5test21AD1Ev( - // CHECK: define internal void @__Block_byref_object_copy + // CHECK-LABEL: define internal void @__Block_byref_object_copy // CHECK: call void @_ZN5test21BC1ERKS0_( - // CHECK: define internal void @__Block_byref_object_dispose + // CHECK-LABEL: define internal void @__Block_byref_object_dispose // CHECK: call void @_ZN5test21BD1Ev( } @@ -118,8 +118,8 @@ namespace test4 { extern void consume(void(^)()); consume(^{ return foo(A()); }); } - // CHECK: define void @_ZN5test44testEv() - // CHECK: define internal void @___ZN5test44testEv_block_invoke + // CHECK-LABEL: define void @_ZN5test44testEv() + // CHECK-LABEL: define internal void @___ZN5test44testEv_block_invoke // CHECK: [[TMP:%.*]] = alloca [[A:%.*]], align 1 // CHECK-NEXT: store i8* [[BLOCKDESC:%.*]], i8** {{.*}}, align 8 // CHECK-NEXT: load i8* @@ -147,7 +147,7 @@ namespace test5 { doWithBlock(b); } - // CHECK: define void @_ZN5test54testEb( + // CHECK-LABEL: define void @_ZN5test54testEb( // CHECK: [[COND:%.*]] = alloca i8 // CHECK-NEXT: [[X:%.*]] = alloca [[A:%.*]], align 4 // CHECK-NEXT: [[B:%.*]] = alloca void ()*, align 8 @@ -197,7 +197,7 @@ namespace test6 { bar(); } - // CHECK: define void @_ZN5test64testEv() + // CHECK-LABEL: define void @_ZN5test64testEv() // CHECK: [[TEMP:%.*]] = alloca [[A:%.*]], align 1 // CHECK-NEXT: call void @_ZN5test61AC1Ev([[A]]* [[TEMP]]) // CHECK-NEXT: call void @_ZN5test63fooERKNS_1AEU13block_pointerFvvE( diff --git a/clang/test/CodeGenCXX/bool-bitfield.cpp b/clang/test/CodeGenCXX/bool-bitfield.cpp index 3e3b0704808..a5a344ffb6e 100644 --- a/clang/test/CodeGenCXX/bool-bitfield.cpp +++ b/clang/test/CodeGenCXX/bool-bitfield.cpp @@ -9,6 +9,6 @@ void func1(bool b, A& a1) { if ((a1.m_sorted = b)) {} } -// CHECK: define void @_Z5func1bR1A +// CHECK-LABEL: define void @_Z5func1bR1A // CHECK: br i1 // CHECK: ret void diff --git a/clang/test/CodeGenCXX/c-linkage.cpp b/clang/test/CodeGenCXX/c-linkage.cpp index f6e64d9e741..1607623c6fe 100644 --- a/clang/test/CodeGenCXX/c-linkage.cpp +++ b/clang/test/CodeGenCXX/c-linkage.cpp @@ -10,15 +10,15 @@ extern "C" { } } -// CHECK: define void @_ZN1N1X1fEv +// CHECK-LABEL: define void @_ZN1N1X1fEv extern "C" { static void test2_f() { } - // CHECK: define internal void @_Z7test2_fv + // CHECK-LABEL: define internal void @_Z7test2_fv static void test2_f(int x) { } - // CHECK: define internal void @_Z7test2_fi + // CHECK-LABEL: define internal void @_Z7test2_fi void test2_use() { test2_f(); test2_f(42); diff --git a/clang/test/CodeGenCXX/c99-variable-length-array.cpp b/clang/test/CodeGenCXX/c99-variable-length-array.cpp index d486f9b0182..2cd8e114b1e 100644 --- a/clang/test/CodeGenCXX/c99-variable-length-array.cpp +++ b/clang/test/CodeGenCXX/c99-variable-length-array.cpp @@ -9,7 +9,7 @@ struct Y { ~Y(); }; -// CHECK: define void @_Z1fiPPKc( +// CHECK-LABEL: define void @_Z1fiPPKc( void f(int argc, const char* argv[]) { // CHECK: call void @_ZN1XC1Ev X x; diff --git a/clang/test/CodeGenCXX/captured-statements.cpp b/clang/test/CodeGenCXX/captured-statements.cpp index a428a3e622d..2843c2b69c9 100644 --- a/clang/test/CodeGenCXX/captured-statements.cpp +++ b/clang/test/CodeGenCXX/captured-statements.cpp @@ -55,7 +55,7 @@ void test2(int x) { return x; }(); - // CHECK-2: define void @_Z5test2i + // CHECK-2-LABEL: define void @_Z5test2i // CHECK-2: call {{.*}} @[[Lambda:["$\w]+]] // // CHECK-2: define internal {{.*}} @[[Lambda]] @@ -75,7 +75,7 @@ void test3(int x) { // CHECK-3: %[[Capture:struct\.anon[\.0-9]*]] = type { i32* } - // CHECK-3: define void @_Z5test3i + // CHECK-3-LABEL: define void @_Z5test3i // CHECK-3: store i32* // CHECK-3: call void @{{.*}}__captured_stmt // CHECK-3: ret void @@ -87,7 +87,7 @@ void test4() { Foo f; f.x = 5; } - // CHECK-4: define void @_Z5test4v + // CHECK-4-LABEL: define void @_Z5test4v // CHECK-4: call void @[[HelperName:["$_A-Za-z0-9]+]](%[[Capture:.*]]* // CHECK-4: ret void // diff --git a/clang/test/CodeGenCXX/catch-undef-behavior.cpp b/clang/test/CodeGenCXX/catch-undef-behavior.cpp index 709bbb2921c..217c3fdb0fe 100644 --- a/clang/test/CodeGenCXX/catch-undef-behavior.cpp +++ b/clang/test/CodeGenCXX/catch-undef-behavior.cpp @@ -340,7 +340,7 @@ class C : public A, public B // align=16 // offset. The pointer before subtraction doesn't need to be aligned for // the destination type. -// CHECK-LABEL: define void @_Z16downcast_pointerP1B(%class.B* %b) +// CHECK-LABEL-LABEL: define void @_Z16downcast_pointerP1B(%class.B* %b) void downcast_pointer(B *b) { (void) static_cast<C*>(b); // Alignment check from EmitTypeCheck(TCK_DowncastPointer, ...) @@ -357,7 +357,7 @@ void downcast_pointer(B *b) { // CHECK-NEXT: br i1 [[AND]] } -// CHECK-LABEL: define void @_Z18downcast_referenceR1B(%class.B* %b) +// CHECK-LABEL-LABEL: define void @_Z18downcast_referenceR1B(%class.B* %b) void downcast_reference(B &b) { (void) static_cast<C&>(b); // Alignment check from EmitTypeCheck(TCK_DowncastReference, ...) diff --git a/clang/test/CodeGenCXX/compound-literals.cpp b/clang/test/CodeGenCXX/compound-literals.cpp index 5df0ea58766..f1d88027c4f 100644 --- a/clang/test/CodeGenCXX/compound-literals.cpp +++ b/clang/test/CodeGenCXX/compound-literals.cpp @@ -12,7 +12,7 @@ struct Y { X x; }; -// CHECK: define i32 @_Z1fv() +// CHECK-LABEL: define i32 @_Z1fv() int f() { // CHECK: [[LVALUE:%[a-z0-9.]+]] = alloca // CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* [[LVALUE]], i32 0, i32 0 @@ -26,7 +26,7 @@ int f() { return ((Y){17, "seventeen"}).i; } -// CHECK: define i32 @_Z1gv() +// CHECK-LABEL: define i32 @_Z1gv() int g() { // CHECK: store [2 x i32]* %{{[a-z0-9.]+}}, [2 x i32]** [[V:%[a-z0-9.]+]] const int (&v)[2] = (int [2]) {1,2}; diff --git a/clang/test/CodeGenCXX/condition.cpp b/clang/test/CodeGenCXX/condition.cpp index cc2eaf5bd6a..452f1c3c9b7 100644 --- a/clang/test/CodeGenCXX/condition.cpp +++ b/clang/test/CodeGenCXX/condition.cpp @@ -26,7 +26,7 @@ struct Y { X getX(); -// CHECK: define void @_Z11if_destructi( +// CHECK-LABEL: define void @_Z11if_destructi( void if_destruct(int z) { // Verify that the condition variable is destroyed at the end of the // "if" statement. @@ -95,7 +95,7 @@ void switch_destruct(int z) { int foo(); -// CHECK: define void @_Z14while_destructi +// CHECK-LABEL: define void @_Z14while_destructi void while_destruct(int z) { // CHECK: [[Z:%.*]] = alloca i32 // CHECK: [[CLEANUPDEST:%.*]] = alloca i32 @@ -135,7 +135,7 @@ void while_destruct(int z) { // CHECK: ret } -// CHECK: define void @_Z12for_destructi( +// CHECK-LABEL: define void @_Z12for_destructi( void for_destruct(int z) { // CHECK: [[Z:%.*]] = alloca i32 // CHECK: [[CLEANUPDEST:%.*]] = alloca i32 @@ -224,7 +224,7 @@ void for_destruct(int z) { } void do_destruct(int z) { - // CHECK: define void @_Z11do_destruct + // CHECK-LABEL: define void @_Z11do_destruct do { // CHECK: store i32 77 z = 77; diff --git a/clang/test/CodeGenCXX/conditional-gnu-ext.cpp b/clang/test/CodeGenCXX/conditional-gnu-ext.cpp index 104a91d2735..44ebf9808e4 100644 --- a/clang/test/CodeGenCXX/conditional-gnu-ext.cpp +++ b/clang/test/CodeGenCXX/conditional-gnu-ext.cpp @@ -77,7 +77,7 @@ namespace test3 { }; B test0(B &x) { - // CHECK: define void @_ZN5test35test0ERNS_1BE( + // CHECK-LABEL: define void @_ZN5test35test0ERNS_1BE( // CHECK: [[X:%.*]] = alloca [[B:%.*]]*, // CHECK-NEXT: store [[B]]* {{%.*}}, [[B]]** [[X]] // CHECK-NEXT: [[T0:%.*]] = load [[B]]** [[X]] @@ -92,7 +92,7 @@ namespace test3 { } B test1() { - // CHECK: define void @_ZN5test35test1Ev( + // CHECK-LABEL: define void @_ZN5test35test1Ev( // CHECK: [[TEMP:%.*]] = alloca [[B]], // CHECK-NEXT: call void @_ZN5test312test1_helperEv([[B]]* sret [[TEMP]]) // CHECK-NEXT: [[BOOL:%.*]] = call zeroext i1 @_ZN5test31BcvbEv([[B]]* [[TEMP]]) @@ -109,7 +109,7 @@ namespace test3 { A test2(B &x) { - // CHECK: define void @_ZN5test35test2ERNS_1BE( + // CHECK-LABEL: define void @_ZN5test35test2ERNS_1BE( // CHECK: [[X:%.*]] = alloca [[B]]*, // CHECK-NEXT: store [[B]]* {{%.*}}, [[B]]** [[X]] // CHECK-NEXT: [[T0:%.*]] = load [[B]]** [[X]] @@ -124,7 +124,7 @@ namespace test3 { } A test3() { - // CHECK: define void @_ZN5test35test3Ev( + // CHECK-LABEL: define void @_ZN5test35test3Ev( // CHECK: [[TEMP:%.*]] = alloca [[B]], // CHECK-NEXT: call void @_ZN5test312test3_helperEv([[B]]* sret [[TEMP]]) // CHECK-NEXT: [[BOOL:%.*]] = call zeroext i1 @_ZN5test31BcvbEv([[B]]* [[TEMP]]) diff --git a/clang/test/CodeGenCXX/conditional-temporaries.cpp b/clang/test/CodeGenCXX/conditional-temporaries.cpp index d5382872f9d..a3cc2fef1e8 100644 --- a/clang/test/CodeGenCXX/conditional-temporaries.cpp +++ b/clang/test/CodeGenCXX/conditional-temporaries.cpp @@ -36,19 +36,19 @@ Checker c; } -// CHECK: define i32 @_Z12getCtorCallsv() +// CHECK-LABEL: define i32 @_Z12getCtorCallsv() int getCtorCalls() { // CHECK: ret i32 5 return ctorcalls; } -// CHECK: define i32 @_Z12getDtorCallsv() +// CHECK-LABEL: define i32 @_Z12getDtorCallsv() int getDtorCalls() { // CHECK: ret i32 5 return dtorcalls; } -// CHECK: define zeroext i1 @_Z7successv() +// CHECK-LABEL: define zeroext i1 @_Z7successv() bool success() { // CHECK: ret i1 true return ctorcalls == dtorcalls; diff --git a/clang/test/CodeGenCXX/constructor-attr.cpp b/clang/test/CodeGenCXX/constructor-attr.cpp index 691795f7761..4f6d635e95d 100644 --- a/clang/test/CodeGenCXX/constructor-attr.cpp +++ b/clang/test/CodeGenCXX/constructor-attr.cpp @@ -5,7 +5,7 @@ // PR6521 void bar(); struct Foo { - // CHECK: define linkonce_odr void @_ZN3Foo3fooEv + // CHECK-LABEL: define linkonce_odr void @_ZN3Foo3fooEv static void foo() __attribute__((constructor)) { bar(); } diff --git a/clang/test/CodeGenCXX/constructor-destructor-return-this.cpp b/clang/test/CodeGenCXX/constructor-destructor-return-this.cpp index 0a492f954c4..707a70ef2c1 100644 --- a/clang/test/CodeGenCXX/constructor-destructor-return-this.cpp +++ b/clang/test/CodeGenCXX/constructor-destructor-return-this.cpp @@ -31,15 +31,15 @@ B::B(int *i) : i_(i) { } B::~B() { } #endif -// CHECKGEN: define void @_ZN1BC1EPi(%class.B* %this, i32* %i) -// CHECKGEN: define void @_ZN1BC2EPi(%class.B* %this, i32* %i) -// CHECKGEN: define void @_ZN1BD1Ev(%class.B* %this) -// CHECKGEN: define void @_ZN1BD2Ev(%class.B* %this) +// CHECKGEN-LABEL: define void @_ZN1BC1EPi(%class.B* %this, i32* %i) +// CHECKGEN-LABEL: define void @_ZN1BC2EPi(%class.B* %this, i32* %i) +// CHECKGEN-LABEL: define void @_ZN1BD1Ev(%class.B* %this) +// CHECKGEN-LABEL: define void @_ZN1BD2Ev(%class.B* %this) -// CHECKARM: define %class.B* @_ZN1BC1EPi(%class.B* returned %this, i32* %i) -// CHECKARM: define %class.B* @_ZN1BC2EPi(%class.B* returned %this, i32* %i) -// CHECKARM: define %class.B* @_ZN1BD1Ev(%class.B* returned %this) -// CHECKARM: define %class.B* @_ZN1BD2Ev(%class.B* returned %this) +// CHECKARM-LABEL: define %class.B* @_ZN1BC1EPi(%class.B* returned %this, i32* %i) +// CHECKARM-LABEL: define %class.B* @_ZN1BC2EPi(%class.B* returned %this, i32* %i) +// CHECKARM-LABEL: define %class.B* @_ZN1BD1Ev(%class.B* returned %this) +// CHECKARM-LABEL: define %class.B* @_ZN1BD2Ev(%class.B* returned %this) // CHECKMS: define %class.B* @"\01??0B@@QEAA@PEAH@Z"(%class.B* returned %this, i32* %i) @@ -56,17 +56,17 @@ C::C(int *i, char *c) : B(i), c_(c) { } C::~C() { } #endif -// CHECKGEN: define void @_ZN1CC1EPiPc(%class.C* %this, i32* %i, i8* %c) -// CHECKGEN: define void @_ZN1CC2EPiPc(%class.C* %this, i32* %i, i8* %c) -// CHECKGEN: define void @_ZN1CD0Ev(%class.C* %this) -// CHECKGEN: define void @_ZN1CD1Ev(%class.C* %this) -// CHECKGEN: define void @_ZN1CD2Ev(%class.C* %this) +// CHECKGEN-LABEL: define void @_ZN1CC1EPiPc(%class.C* %this, i32* %i, i8* %c) +// CHECKGEN-LABEL: define void @_ZN1CC2EPiPc(%class.C* %this, i32* %i, i8* %c) +// CHECKGEN-LABEL: define void @_ZN1CD0Ev(%class.C* %this) +// CHECKGEN-LABEL: define void @_ZN1CD1Ev(%class.C* %this) +// CHECKGEN-LABEL: define void @_ZN1CD2Ev(%class.C* %this) -// CHECKARM: define %class.C* @_ZN1CC1EPiPc(%class.C* returned %this, i32* %i, i8* %c) -// CHECKARM: define %class.C* @_ZN1CC2EPiPc(%class.C* returned %this, i32* %i, i8* %c) -// CHECKARM: define void @_ZN1CD0Ev(%class.C* %this) -// CHECKARM: define %class.C* @_ZN1CD1Ev(%class.C* returned %this) -// CHECKARM: define %class.C* @_ZN1CD2Ev(%class.C* returned %this) +// CHECKARM-LABEL: define %class.C* @_ZN1CC1EPiPc(%class.C* returned %this, i32* %i, i8* %c) +// CHECKARM-LABEL: define %class.C* @_ZN1CC2EPiPc(%class.C* returned %this, i32* %i, i8* %c) +// CHECKARM-LABEL: define void @_ZN1CD0Ev(%class.C* %this) +// CHECKARM-LABEL: define %class.C* @_ZN1CD1Ev(%class.C* returned %this) +// CHECKARM-LABEL: define %class.C* @_ZN1CD2Ev(%class.C* returned %this) // CHECKMS: define %class.C* @"\01??0C@@QEAA@PEAHPEAD@Z"(%class.C* returned %this, i32* %i, i8* %c) @@ -81,15 +81,15 @@ D::D() { } D::~D() { } #endif -// CHECKGEN: define void @_ZN1DC1Ev(%class.D* %this) -// CHECKGEN: define void @_ZN1DC2Ev(%class.D* %this, i8** %vtt) -// CHECKGEN: define void @_ZN1DD1Ev(%class.D* %this) -// CHECKGEN: define void @_ZN1DD2Ev(%class.D* %this, i8** %vtt) +// CHECKGEN-LABEL: define void @_ZN1DC1Ev(%class.D* %this) +// CHECKGEN-LABEL: define void @_ZN1DC2Ev(%class.D* %this, i8** %vtt) +// CHECKGEN-LABEL: define void @_ZN1DD1Ev(%class.D* %this) +// CHECKGEN-LABEL: define void @_ZN1DD2Ev(%class.D* %this, i8** %vtt) -// CHECKARM: define %class.D* @_ZN1DC1Ev(%class.D* returned %this) -// CHECKARM: define %class.D* @_ZN1DC2Ev(%class.D* returned %this, i8** %vtt) -// CHECKARM: define %class.D* @_ZN1DD1Ev(%class.D* returned %this) -// CHECKARM: define %class.D* @_ZN1DD2Ev(%class.D* returned %this, i8** %vtt) +// CHECKARM-LABEL: define %class.D* @_ZN1DC1Ev(%class.D* returned %this) +// CHECKARM-LABEL: define %class.D* @_ZN1DC2Ev(%class.D* returned %this, i8** %vtt) +// CHECKARM-LABEL: define %class.D* @_ZN1DD1Ev(%class.D* returned %this) +// CHECKARM-LABEL: define %class.D* @_ZN1DD2Ev(%class.D* returned %this, i8** %vtt) class E { public: @@ -105,7 +105,7 @@ void test_destructor() { e2->~E(); } -// CHECKARM: define void @_Z15test_destructorv() +// CHECKARM-LABEL: define void @_Z15test_destructorv() // Verify that virtual calls to destructors are not marked with a 'returned' // this parameter at the call site... diff --git a/clang/test/CodeGenCXX/constructor-init.cpp b/clang/test/CodeGenCXX/constructor-init.cpp index b33184e3966..477a439f337 100644 --- a/clang/test/CodeGenCXX/constructor-init.cpp +++ b/clang/test/CodeGenCXX/constructor-init.cpp @@ -70,7 +70,7 @@ template <class T> struct A { operator int() {return 0;} }; -// CHECK: define void @_Z1fv() +// CHECK-LABEL: define void @_Z1fv() void f() { // CHECK: call void @_ZN1AIsEC1Ei A<short> a4 = 97; @@ -93,7 +93,7 @@ namespace InitVTable { B(int); }; - // CHECK: define void @_ZN10InitVTable1BC2Ev(%"struct.InitVTable::B"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN10InitVTable1BC2Ev(%"struct.InitVTable::B"* %this) unnamed_addr // CHECK: [[T0:%.*]] = bitcast [[B:%.*]]* [[THIS:%.*]] to i8*** // CHECK-NEXT: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN10InitVTable1BE, i64 0, i64 2), i8*** [[T0]] // CHECK: [[VTBL:%.*]] = load i32 ([[B]]*)*** {{%.*}} @@ -106,7 +106,7 @@ namespace InitVTable { // CHECK-NEXT: ret void B::B() : A(foo()) {} - // CHECK: define void @_ZN10InitVTable1BC2Ei(%"struct.InitVTable::B"* %this, i32 %x) unnamed_addr + // CHECK-LABEL: define void @_ZN10InitVTable1BC2Ei(%"struct.InitVTable::B"* %this, i32 %x) unnamed_addr // CHECK: [[ARG:%.*]] = add nsw i32 {{%.*}}, 5 // CHECK-NEXT: call void @_ZN10InitVTable1AC2Ei({{.*}}* {{%.*}}, i32 [[ARG]]) // CHECK-NEXT: [[T0:%.*]] = bitcast [[B]]* {{%.*}} to i8*** @@ -120,7 +120,7 @@ namespace rdar9694300 { int x; }; - // CHECK: define void @_ZN11rdar96943001fEv + // CHECK-LABEL: define void @_ZN11rdar96943001fEv void f() { // CHECK: alloca X x; @@ -163,7 +163,7 @@ template<typename T> struct X; // Make sure that the instantiated constructor initializes start and // end properly. -// CHECK: define linkonce_odr void @_ZN1XIiEC2ERKS0_(%struct.X* %this, %struct.X* %other) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1XIiEC2ERKS0_(%struct.X* %this, %struct.X* %other) unnamed_addr // CHECK: {{store.*null}} // CHECK: {{store.*null}} // CHECK: ret @@ -200,7 +200,7 @@ namespace PR10720 { // CHECK-PR10720: ret pair2 &operator=(pair2&&) = default; - // CHECK-PR10720: define linkonce_odr void @_ZN7PR107205pair2C2EOS0_ + // CHECK-PR10720-LABEL: define linkonce_odr void @_ZN7PR107205pair2C2EOS0_ // CHECK-PR10720-NOT: ret // CHECK-PR10720: load // CHECK-PR10720: icmp ult @@ -210,7 +210,7 @@ namespace PR10720 { // CHECK-PR10720: ret void pair2(pair2&&) = default; - // CHECK-PR10720: define linkonce_odr void @_ZN7PR107205pair2C2ERKS0_ + // CHECK-PR10720-LABEL: define linkonce_odr void @_ZN7PR107205pair2C2ERKS0_ // CHECK-PR10720-NOT: ret // CHECK-PR10720: load // CHECK-PR10720: icmp ult @@ -223,7 +223,7 @@ namespace PR10720 { struct pair : X { // Make the copy constructor non-trivial, so we actually generate it. int second[4]; - // CHECK-PR10720: define linkonce_odr void @_ZN7PR107204pairC2ERKS0_ + // CHECK-PR10720-LABEL: define linkonce_odr void @_ZN7PR107204pairC2ERKS0_ // CHECK-PR10720-NOT: ret // CHECK-PR10720: call void @llvm.memcpy // CHECK-PR10720-NEXT: ret void diff --git a/clang/test/CodeGenCXX/constructors.cpp b/clang/test/CodeGenCXX/constructors.cpp index 9e2da31f046..f730b9ef491 100644 --- a/clang/test/CodeGenCXX/constructors.cpp +++ b/clang/test/CodeGenCXX/constructors.cpp @@ -21,18 +21,18 @@ struct A { A::A(struct Undeclared &ref) : mem(0) {} // Check that delegation works. -// CHECK: define void @_ZN1AC1ER10Undeclared(%struct.A* %this, %struct.Undeclared* %ref) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC1ER10Undeclared(%struct.A* %this, %struct.Undeclared* %ref) unnamed_addr // CHECK: call void @_ZN1AC2ER10Undeclared( -// CHECK: define void @_ZN1AC2ER10Undeclared(%struct.A* %this, %struct.Undeclared* %ref) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC2ER10Undeclared(%struct.A* %this, %struct.Undeclared* %ref) unnamed_addr // CHECK: call void @_ZN6MemberC1Ei( A::A(ValueClass v) : mem(v.y - v.x) {} -// CHECK: define void @_ZN1AC1E10ValueClass(%struct.A* %this, i64 %v.coerce) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC1E10ValueClass(%struct.A* %this, i64 %v.coerce) unnamed_addr // CHECK: call void @_ZN1AC2E10ValueClass( -// CHECK: define void @_ZN1AC2E10ValueClass(%struct.A* %this, i64 %v.coerce) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC2E10ValueClass(%struct.A* %this, i64 %v.coerce) unnamed_addr // CHECK: call void @_ZN6MemberC1Ei( @@ -44,10 +44,10 @@ struct B : A { B::B(struct Undeclared &ref) : A(ref), mem(1) {} -// CHECK: define void @_ZN1BC1ER10Undeclared(%struct.B* %this, %struct.Undeclared* %ref) unnamed_addr +// CHECK-LABEL: define void @_ZN1BC1ER10Undeclared(%struct.B* %this, %struct.Undeclared* %ref) unnamed_addr // CHECK: call void @_ZN1BC2ER10Undeclared( -// CHECK: define void @_ZN1BC2ER10Undeclared(%struct.B* %this, %struct.Undeclared* %ref) unnamed_addr +// CHECK-LABEL: define void @_ZN1BC2ER10Undeclared(%struct.B* %this, %struct.Undeclared* %ref) unnamed_addr // CHECK: call void @_ZN1AC2ER10Undeclared( // CHECK: call void @_ZN6MemberC1Ei( @@ -64,12 +64,12 @@ struct C : virtual A { }; C::C(int x) : A(ValueClass(x, x+1)), mem(x * x) {} -// CHECK: define void @_ZN1CC1Ei(%struct.C* %this, i32 %x) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC1Ei(%struct.C* %this, i32 %x) unnamed_addr // CHECK: call void @_ZN10ValueClassC1Eii( // CHECK: call void @_ZN1AC2E10ValueClass( // CHECK: call void @_ZN6MemberC1Ei( -// CHECK: define void @_ZN1CC2Ei(%struct.C* %this, i8** %vtt, i32 %x) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC2Ei(%struct.C* %this, i8** %vtt, i32 %x) unnamed_addr // CHECK: call void @_ZN6MemberC1Ei( @@ -83,12 +83,12 @@ struct D : A { D::D(int x, ...) : A(ValueClass(x, x+1)), mem(x*x) {} -// CHECK: define void @_ZN1DC1Eiz(%struct.D* %this, i32 %x, ...) unnamed_addr +// CHECK-LABEL: define void @_ZN1DC1Eiz(%struct.D* %this, i32 %x, ...) unnamed_addr // CHECK: call void @_ZN10ValueClassC1Eii( // CHECK: call void @_ZN1AC2E10ValueClass( // CHECK: call void @_ZN6MemberC1Ei( -// CHECK: define void @_ZN1DC2Eiz(%struct.D* %this, i32 %x, ...) unnamed_addr +// CHECK-LABEL: define void @_ZN1DC2Eiz(%struct.D* %this, i32 %x, ...) unnamed_addr // CHECK: call void @_ZN10ValueClassC1Eii( // CHECK: call void @_ZN1AC2E10ValueClass( // CHECK: call void @_ZN6MemberC1Ei( @@ -109,7 +109,7 @@ namespace test1 { struct A { A(); void *ptr; }; struct B { B(); int x; A a[0]; }; B::B() {} - // CHECK: define void @_ZN5test11BC2Ev( + // CHECK-LABEL: define void @_ZN5test11BC2Ev( // CHECK: [[THIS:%.*]] = load [[B:%.*]]** // CHECK-NEXT: ret void } diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp index c25e0467fad..18e92f98ebd 100644 --- a/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp +++ b/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp @@ -1,4 +1,4 @@ // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s struct A {}; A& (A::*x)(const A&) = &A::operator=; -// CHECK: define linkonce_odr %struct.A* @_ZN1AaSERKS_ +// CHECK-LABEL: define linkonce_odr %struct.A* @_ZN1AaSERKS_ diff --git a/clang/test/CodeGenCXX/copy-constructor-elim-2.cpp b/clang/test/CodeGenCXX/copy-constructor-elim-2.cpp index b1447040e6c..727af1ba7cd 100644 --- a/clang/test/CodeGenCXX/copy-constructor-elim-2.cpp +++ b/clang/test/CodeGenCXX/copy-constructor-elim-2.cpp @@ -2,7 +2,7 @@ struct A { int x; A(int); ~A(); }; A f() { return A(0); } -// CHECK: define void @_Z1fv +// CHECK-LABEL: define void @_Z1fv // CHECK: call {{.*}} @_ZN1AC1Ei // CHECK-NEXT: ret void @@ -63,7 +63,7 @@ namespace PR12139 { static A makeA() { A a; a.value = 2; return a; } }; - // CHECK: define i32 @_ZN7PR121394testEv + // CHECK-LABEL: define i32 @_ZN7PR121394testEv int test() { // CHECK: call void @_ZN7PR121391A5makeAEv // CHECK-NEXT: call %"struct.PR12139::A"* @_ZN7PR121391AC1ERKS0_i diff --git a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp index f6c38219517..c8b265ca2d1 100644 --- a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp +++ b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp @@ -21,7 +21,7 @@ struct P { }; -// CHECK: define linkonce_odr void @_ZN1XC1ERKS_(%struct.X* %this, %struct.X*) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1XC1ERKS_(%struct.X* %this, %struct.X*) unnamed_addr struct X : M, N, P { // ... X() : f1(1.0), d1(2.0), i1(3), name("HELLO"), bf1(0xff), bf2(0xabcd), au_i1(1234), au1_4("MASKED") {} @@ -148,7 +148,7 @@ void f(B b1) { // CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* [[T4]], i8* [[T5]], i64 8, i32 8, i1 false) // CHECK-NEXT: ret [[A]]* [[THIS]] -// CHECK: define linkonce_odr void @_ZN12rdar138169401AC2ERKS0_( +// CHECK-LABEL: define linkonce_odr void @_ZN12rdar138169401AC2ERKS0_( // CHECK: [[THIS:%.*]] = load [[A]]** // CHECK-NEXT: [[T0:%.*]] = bitcast [[A]]* [[THIS]] to i8*** // CHECK-NEXT: store i8** getelementptr inbounds ([4 x i8*]* @_ZTVN12rdar138169401AE, i64 0, i64 2), i8*** [[T0]] @@ -162,7 +162,7 @@ void f(B b1) { // CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* [[T4]], i8* [[T5]], i64 8, i32 8, i1 false) // CHECK-NEXT: ret void -// CHECK: define linkonce_odr void @_ZN6PR66281BC2ERKS0_(%"struct.PR6628::B"* %this, %"struct.PR6628::B"*) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN6PR66281BC2ERKS0_(%"struct.PR6628::B"* %this, %"struct.PR6628::B"*) unnamed_addr // CHECK: call void @_ZN6PR66281TC1Ev // CHECK: call void @_ZN6PR66281TC1Ev // CHECK: call void @_ZN6PR66281AC2ERKS0_RKNS_1TES5_ diff --git a/clang/test/CodeGenCXX/copy-initialization.cpp b/clang/test/CodeGenCXX/copy-initialization.cpp index aecd64ec1aa..1a16013a81a 100644 --- a/clang/test/CodeGenCXX/copy-initialization.cpp +++ b/clang/test/CodeGenCXX/copy-initialization.cpp @@ -12,7 +12,7 @@ struct Bar { void f(Foo); -// CHECK: define void @_Z1g3Foo(%struct.Foo* %foo) +// CHECK-LABEL: define void @_Z1g3Foo(%struct.Foo* %foo) void g(Foo foo) { // CHECK: call void @_ZN3BarC1Ev // CHECK: @_ZNK3BarcvRK3FooEv diff --git a/clang/test/CodeGenCXX/cxx-block-objects.cpp b/clang/test/CodeGenCXX/cxx-block-objects.cpp index b9890659960..ff868fcdd06 100644 --- a/clang/test/CodeGenCXX/cxx-block-objects.cpp +++ b/clang/test/CodeGenCXX/cxx-block-objects.cpp @@ -25,9 +25,9 @@ main() return 0; } -// CHECK: define internal void @__copy_helper_block_ +// CHECK-LABEL: define internal void @__copy_helper_block_ // CHECK: call void @_ZN1AC1ERKS_ -// CHECK:define internal void @__destroy_helper_block_ +// CHECK-LABEL:define internal void @__destroy_helper_block_ // CHECK: call void @_ZN1AD1Ev diff --git a/clang/test/CodeGenCXX/cxx0x-delegating-ctors.cpp b/clang/test/CodeGenCXX/cxx0x-delegating-ctors.cpp index e909f032045..c48e61fd14e 100644 --- a/clang/test/CodeGenCXX/cxx0x-delegating-ctors.cpp +++ b/clang/test/CodeGenCXX/cxx0x-delegating-ctors.cpp @@ -87,7 +87,7 @@ namespace PR14588 { virtual void squawk() { other(); } }; - // CHECK: define void @_ZN7PR145883FooC1Ev(%"class.PR14588::Foo"* + // CHECK-LABEL: define void @_ZN7PR145883FooC1Ev(%"class.PR14588::Foo"* // CHECK: call void @_ZN7PR145883FooC1EPKv( // CHECK: invoke void @_ZN7PR145885otherEv() // CHECK: call void @_ZN7PR145883FooD1Ev diff --git a/clang/test/CodeGenCXX/cxx0x-initializer-array.cpp b/clang/test/CodeGenCXX/cxx0x-initializer-array.cpp index 3144e941ef4..49bc86fadc7 100644 --- a/clang/test/CodeGenCXX/cxx0x-initializer-array.cpp +++ b/clang/test/CodeGenCXX/cxx0x-initializer-array.cpp @@ -6,7 +6,7 @@ struct A { int a[1]; }; typedef A x[]; int f() { x{{{1}}}; - // CHECK: define i32 @_Z1fv + // CHECK-LABEL: define i32 @_Z1fv // CHECK: store i32 1 // (It's okay if the output changes here, as long as we don't crash.) return 0; @@ -33,7 +33,7 @@ namespace ValueInitArrayOfMemPtr { S1(); }; - // CHECK: define void @_ZN22ValueInitArrayOfMemPtr1fEi + // CHECK-LABEL: define void @_ZN22ValueInitArrayOfMemPtr1fEi void f(int n) { Agg1 a = { n }; // CHECK: store i32 -1, @@ -42,7 +42,7 @@ namespace ValueInitArrayOfMemPtr { // CHECK: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* bitcast ([3 x i32]* @[[THREE_NULL_MEMPTRS]] to i8*), i32 12, i32 4, i1 false) } - // CHECK: define void @_ZN22ValueInitArrayOfMemPtr1gEv + // CHECK-LABEL: define void @_ZN22ValueInitArrayOfMemPtr1gEv void g() { // CHECK: store i32 -1, f(a{}); @@ -54,7 +54,7 @@ namespace array_dtor { using T = S[3]; void f(const T &); void f(T *); - // CHECK: define void @_ZN10array_dtor1gEv( + // CHECK-LABEL: define void @_ZN10array_dtor1gEv( void g() { // CHECK: %[[ARRAY:.*]] = alloca [3 x // CHECK: br @@ -73,7 +73,7 @@ namespace array_dtor { // CHECK: ret void } - // CHECK: define void @_ZN10array_dtor1hEv( + // CHECK-LABEL: define void @_ZN10array_dtor1hEv( void h() { // CHECK: %[[ARRAY:.*]] = alloca [3 x // CHECK: br @@ -91,7 +91,7 @@ namespace array_dtor { // CHECK: ret void } - // CHECK: define void @_ZN10array_dtor1iEv( + // CHECK-LABEL: define void @_ZN10array_dtor1iEv( void i() { // CHECK: %[[ARRAY:.*]] = alloca [3 x // CHECK: br diff --git a/clang/test/CodeGenCXX/cxx0x-initializer-constructors.cpp b/clang/test/CodeGenCXX/cxx0x-initializer-constructors.cpp index efbf318b817..f60536e9209 100644 --- a/clang/test/CodeGenCXX/cxx0x-initializer-constructors.cpp +++ b/clang/test/CodeGenCXX/cxx0x-initializer-constructors.cpp @@ -6,21 +6,21 @@ struct S { }; void fn1() { - // CHECK: define void @_Z3fn1v + // CHECK-LABEL: define void @_Z3fn1v S s { 1 }; // CHECK: alloca %struct.S, align 1 // CHECK: call void @_ZN1SC1Ei(%struct.S* %s, i32 1) } void fn2() { - // CHECK: define void @_Z3fn2v + // CHECK-LABEL: define void @_Z3fn2v S s { 1, 2.0, 3.0 }; // CHECK: alloca %struct.S, align 1 // CHECK: call void @_ZN1SC1Eidd(%struct.S* %s, i32 1, double 2.000000e+00, double 3.000000e+00) } void fn3() { - // CHECK: define void @_Z3fn3v + // CHECK-LABEL: define void @_Z3fn3v S sa[] { { 1 }, { 2 }, { 3 } }; // CHECK: alloca [3 x %struct.S], align 1 // CHECK: call void @_ZN1SC1Ei(%struct.S* %{{.+}}, i32 1) @@ -29,7 +29,7 @@ void fn3() { } void fn4() { - // CHECK: define void @_Z3fn4v + // CHECK-LABEL: define void @_Z3fn4v S sa[] { { 1, 2.0, 3.0 }, { 4, 5.0, 6.0 } }; // CHECK: alloca [2 x %struct.S], align 1 // CHECK: call void @_ZN1SC1Eidd(%struct.S* %{{.+}}, i32 1, double 2.000000e+00, double 3.000000e+00) diff --git a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp index 458dee73c65..8e0d161bc0f 100644 --- a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp +++ b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp @@ -37,7 +37,7 @@ namespace std { std::initializer_list<int> globalInitList1 = {1, 2, 3}; void fn1(int i) { - // CHECK: define void @_Z3fn1i + // CHECK-LABEL: define void @_Z3fn1i // temporary array // CHECK: [[array:%[^ ]+]] = alloca [3 x i32] // CHECK: getelementptr inbounds [3 x i32]* [[array]], i{{32|64}} 0 @@ -66,7 +66,7 @@ struct destroyme2 { void fn2() { - // CHECK: define void @_Z3fn2v + // CHECK-LABEL: define void @_Z3fn2v void target(std::initializer_list<destroyme1>); // objects should be destroyed before dm2, after call returns target({ destroyme1(), destroyme1() }); @@ -76,7 +76,7 @@ void fn2() { } void fn3() { - // CHECK: define void @_Z3fn3v + // CHECK-LABEL: define void @_Z3fn3v // objects should be destroyed after dm2 auto list = { destroyme1(), destroyme1() }; destroyme2 dm2; diff --git a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp index 8dbb05711d2..164cbce027e 100644 --- a/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp +++ b/clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp @@ -76,13 +76,13 @@ namespace thread_local_global_array { // thread_local initializer: -// CHECK: define internal void +// CHECK-LABEL: define internal void // CHECK: store i32* getelementptr inbounds ([4 x i32]* @_ZGRN25thread_local_global_array1xE, i64 0, i64 0), // CHECK: i32** getelementptr inbounds ({{.*}}* @_ZN25thread_local_global_array1xE, i32 0, i32 0), align 8 // CHECK: store i64 4, i64* getelementptr inbounds ({{.*}}* @_ZN25thread_local_global_array1xE, i32 0, i32 1), align 8 -// CHECK: define internal void +// CHECK-LABEL: define internal void // CHECK: call void @_ZN8witharg1C1ERK10destroyme1(%[[WITHARG]]* getelementptr inbounds ([2 x %[[WITHARG]]]* @_ZGR15globalInitList2, i{{32|64}} 0, i{{32|64}} 0 // CHECK: call void @_ZN8witharg1C1ERK10destroyme1(%[[WITHARG]]* getelementptr inbounds ([2 x %[[WITHARG]]]* @_ZGR15globalInitList2, i{{32|64}} 0, i{{32|64}} 1 // CHECK: __cxa_atexit @@ -96,7 +96,7 @@ std::initializer_list<witharg1> globalInitList2 = { }; void fn1(int i) { - // CHECK: define void @_Z3fn1i + // CHECK-LABEL: define void @_Z3fn1i // temporary array // CHECK: [[array:%[^ ]+]] = alloca [3 x i32] // CHECK: getelementptr inbounds [3 x i32]* [[array]], i{{32|64}} 0 @@ -116,7 +116,7 @@ void fn1(int i) { } void fn2() { - // CHECK: define void @_Z3fn2v + // CHECK-LABEL: define void @_Z3fn2v void target(std::initializer_list<destroyme1>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_Z6targetSt16initializer_listI10destroyme1E @@ -127,7 +127,7 @@ void fn2() { } void fn3() { - // CHECK: define void @_Z3fn3v + // CHECK-LABEL: define void @_Z3fn3v // objects should be destroyed after dm2 auto list = { destroyme1(), destroyme1() }; destroyme2 dm2; @@ -136,7 +136,7 @@ void fn3() { } void fn4() { - // CHECK: define void @_Z3fn4v + // CHECK-LABEL: define void @_Z3fn4v void target(std::initializer_list<witharg1>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_ZN8witharg1C1ERK10destroyme1 @@ -149,7 +149,7 @@ void fn4() { } void fn5() { - // CHECK: define void @_Z3fn5v + // CHECK-LABEL: define void @_Z3fn5v // temps should be destroyed before dm2 // objects should be destroyed after dm2 // CHECK: call void @_ZN8witharg1C1ERK10destroyme1 @@ -161,7 +161,7 @@ void fn5() { } void fn6() { - // CHECK: define void @_Z3fn6v + // CHECK-LABEL: define void @_Z3fn6v void target(const wantslist1&); // objects should be destroyed before dm2, after call returns // CHECK: call void @_ZN10wantslist1C1ESt16initializer_listI10destroyme1E @@ -174,7 +174,7 @@ void fn6() { } void fn7() { - // CHECK: define void @_Z3fn7v + // CHECK-LABEL: define void @_Z3fn7v // temps should be destroyed before dm2 // object should be destroyed after dm2 // CHECK: call void @_ZN10wantslist1C1ESt16initializer_listI10destroyme1E @@ -186,7 +186,7 @@ void fn7() { } void fn8() { - // CHECK: define void @_Z3fn8v + // CHECK-LABEL: define void @_Z3fn8v void target(std::initializer_list<std::initializer_list<destroyme1>>); // objects should be destroyed before dm2, after call returns // CHECK: call void @_Z6targetSt16initializer_listIS_I10destroyme1EE @@ -200,7 +200,7 @@ void fn8() { } void fn9() { - // CHECK: define void @_Z3fn9v + // CHECK-LABEL: define void @_Z3fn9v // objects should be destroyed after dm2 std::initializer_list<destroyme1> inner; std::initializer_list<std::initializer_list<destroyme1>> list = @@ -218,7 +218,7 @@ struct haslist1 { haslist1(); }; -// CHECK: define void @_ZN8haslist1C2Ev +// CHECK-LABEL: define void @_ZN8haslist1C2Ev haslist1::haslist1() // CHECK: alloca [3 x i32] // CHECK: store i32 1 @@ -235,7 +235,7 @@ struct haslist2 { haslist2(); }; -// CHECK: define void @_ZN8haslist2C2Ev +// CHECK-LABEL: define void @_ZN8haslist2C2Ev haslist2::haslist2() : il{destroyme1(), destroyme1()} { @@ -245,7 +245,7 @@ haslist2::haslist2() } void fn10() { - // CHECK: define void @_Z4fn10v + // CHECK-LABEL: define void @_Z4fn10v // CHECK: alloca [3 x i32] // CHECK: call noalias i8* @_Znw{{[jm]}} // CHECK: store i32 1 @@ -257,7 +257,7 @@ void fn10() { } void fn11() { - // CHECK: define void @_Z4fn11v + // CHECK-LABEL: define void @_Z4fn11v (void) new std::initializer_list<destroyme1> {destroyme1(), destroyme1()}; // CHECK: call void @_ZN10destroyme1D1Ev destroyme2 dm2; @@ -285,7 +285,7 @@ namespace PR12178 { namespace rdar13325066 { struct X { ~X(); }; - // CHECK: define void @_ZN12rdar133250664loopERNS_1XES1_ + // CHECK-LABEL: define void @_ZN12rdar133250664loopERNS_1XES1_ void loop(X &x1, X &x2) { // CHECK: br label // CHECK: br i1 @@ -308,7 +308,7 @@ namespace dtors { }; void z(); - // CHECK: define void @_ZN5dtors1fEv( + // CHECK-LABEL: define void @_ZN5dtors1fEv( void f() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -325,7 +325,7 @@ namespace dtors { // CHECK-NOT: call void @_ZN5dtors1SD1Ev( } - // CHECK: define void @_ZN5dtors1gEv( + // CHECK-LABEL: define void @_ZN5dtors1gEv( void g() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -342,7 +342,7 @@ namespace dtors { // CHECK-NOT: call void @_ZN5dtors1SD1Ev( } - // CHECK: define void @_ZN5dtors1hEv( + // CHECK-LABEL: define void @_ZN5dtors1hEv( void h() { // CHECK: call void @_ZN5dtors1SC1Ev( // CHECK: call void @_ZN5dtors1SC1Ev( @@ -401,7 +401,7 @@ namespace nested { struct B { const A &a; ~B(); }; struct C { std::initializer_list<B> b; ~C(); }; void f(); - // CHECK: define void @_ZN6nested1gEv( + // CHECK-LABEL: define void @_ZN6nested1gEv( void g() { // CHECK: call void @_ZN6nested1AC1Ev( // CHECK-NOT: call diff --git a/clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp b/clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp index 2ea9acda481..7759d41b0f9 100644 --- a/clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp +++ b/clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp @@ -13,7 +13,7 @@ int &g() { return r; } // CHECK: call i32* @_Z1fv() // CHECK: store i32* %{{.*}}, i32** @r, align 8 -// CHECK: define i32* @_Z1gv() +// CHECK-LABEL: define i32* @_Z1gv() // CHECK: call i32* @_ZTW1r() // CHECK: ret i32* %{{.*}} @@ -22,5 +22,5 @@ int &g() { return r; } // CHECK: load i32** @r, align 8 // CHECK: ret i32* %{{.*}} -// CHECK: define internal void @__tls_init() +// CHECK-LABEL: define internal void @__tls_init() // CHECK: call void @[[R_INIT]]() diff --git a/clang/test/CodeGenCXX/cxx11-thread-local.cpp b/clang/test/CodeGenCXX/cxx11-thread-local.cpp index 04ca0890d5e..509562dd8fc 100644 --- a/clang/test/CodeGenCXX/cxx11-thread-local.cpp +++ b/clang/test/CodeGenCXX/cxx11-thread-local.cpp @@ -55,7 +55,7 @@ int e = V<int>::m; // CHECK: call i32 @_Z1fv() // CHECK-NEXT: store i32 {{.*}}, i32* @a, align 4 -// CHECK: define i32 @_Z1fv() +// CHECK-LABEL: define i32 @_Z1fv() int f() { // CHECK: %[[GUARD:.*]] = load i8* @_ZGVZ1fvE1n, align 1 // CHECK: %[[NEED_INIT:.*]] = icmp eq i8 %[[GUARD]], 0 @@ -76,7 +76,7 @@ int f() { // CHECK-NEXT: load i32* %{{.*}}, align 4 // CHECK-NEXT: store i32 %{{.*}}, i32* @c, align 4 -// CHECK: define weak_odr hidden i32* @_ZTW1b() +// CHECK-LABEL: define weak_odr hidden i32* @_ZTW1b() // CHECK: br i1 icmp ne (void ()* @_ZTH1b, void ()* null), // not null: // CHECK: call void @_ZTH1b() @@ -97,7 +97,7 @@ int f() { // CHECK-NEXT: load i32* %{{.*}}, align 4 // CHECK-NEXT: store i32 %{{.*}}, i32* @e, align 4 -// CHECK: define weak_odr hidden i32* @_ZTWN1VIiE1mE() +// CHECK-LABEL: define weak_odr hidden i32* @_ZTWN1VIiE1mE() // CHECK: call void @_ZTHN1VIiE1mE() // CHECK: ret i32* @_ZN1VIiE1mE @@ -105,7 +105,7 @@ int f() { struct S { S(); ~S(); }; struct T { ~T(); }; -// CHECK: define void @_Z8tls_dtorv() +// CHECK-LABEL: define void @_Z8tls_dtorv() void tls_dtor() { // CHECK: load i8* @_ZGVZ8tls_dtorvE1s // CHECK: call void @_ZN1SC1Ev(%struct.S* @_ZZ8tls_dtorvE1s) @@ -171,10 +171,10 @@ int PR15991() { // CHECK: declare extern_weak void @_ZTH1b() -// CHECK: define internal hidden i32* @_ZTWL1d() +// CHECK-LABEL: define internal hidden i32* @_ZTWL1d() // CHECK: call void @_ZTHL1d() // CHECK: ret i32* @_ZL1d -// CHECK: define weak_odr hidden i32* @_ZTWN1U1mE() +// CHECK-LABEL: define weak_odr hidden i32* @_ZTWN1U1mE() // CHECK: call void @_ZTHN1U1mE() // CHECK: ret i32* @_ZN1U1mE diff --git a/clang/test/CodeGenCXX/debug-info-globalinit.cpp b/clang/test/CodeGenCXX/debug-info-globalinit.cpp index b3891c148e3..bc613149e06 100644 --- a/clang/test/CodeGenCXX/debug-info-globalinit.cpp +++ b/clang/test/CodeGenCXX/debug-info-globalinit.cpp @@ -15,13 +15,13 @@ __attribute__((nodebug)) static int j = test(); int main(void) {} -// CHECK: define internal void @__cxx_global_var_init() +// CHECK-LABEL: define internal void @__cxx_global_var_init() // CHECK-NOT: __cxx_global_var_init // CHECK: %[[C0:.+]] = call i32 @_Z4testv(), !dbg ![[LINE:.*]] // CHECK-NOT: __cxx_global_var_init // CHECK: store i32 %[[C0]], i32* @_ZL1i, align 4, !dbg // -// CHECK: define internal void @__cxx_global_var_init1() +// CHECK-LABEL: define internal void @__cxx_global_var_init1() // CHECK-NOT: dbg // CHECK: %[[C1:.+]] = call i32 @_Z4testv() // CHECK-NOT: dbg diff --git a/clang/test/CodeGenCXX/default-arg-temps.cpp b/clang/test/CodeGenCXX/default-arg-temps.cpp index 3d741d50283..43756006f20 100644 --- a/clang/test/CodeGenCXX/default-arg-temps.cpp +++ b/clang/test/CodeGenCXX/default-arg-temps.cpp @@ -13,7 +13,7 @@ public: X(const X&, const T& t = T()); }; -// CHECK: define void @_Z1gv() +// CHECK-LABEL: define void @_Z1gv() void g() { // CHECK: call void @_ZN1TC1Ev([[T:%.*]]* [[AGG1:%.*]]) // CHECK-NEXT: call void @_Z1fRK1T([[T]]* [[AGG1]]) @@ -41,7 +41,7 @@ void g() { class obj{ int a; float b; double d; }; -// CHECK: define void @_Z1hv() +// CHECK-LABEL: define void @_Z1hv() void h() { // CHECK: call void @llvm.memset.p0i8.i64( obj o = obj(); @@ -61,7 +61,7 @@ namespace test1 { C c; A a; - // CHECK: define linkonce_odr void @_ZN5test11DC2Ev(%"struct.test1::D"* %this) unnamed_addr + // CHECK-LABEL: define linkonce_odr void @_ZN5test11DC2Ev(%"struct.test1::D"* %this) unnamed_addr // CHECK: call void @_ZN5test11BC1Ev( // CHECK-NEXT: call void @_ZN5test11CC1ERKNS_1BE( // CHECK-NEXT: call void @_ZN5test11BD1Ev( diff --git a/clang/test/CodeGenCXX/default-arguments.cpp b/clang/test/CodeGenCXX/default-arguments.cpp index 206d4d6c886..83cae3afd56 100644 --- a/clang/test/CodeGenCXX/default-arguments.cpp +++ b/clang/test/CodeGenCXX/default-arguments.cpp @@ -26,7 +26,7 @@ struct B { B(const A1& = A1(), const A2& = A2()); }; -// CHECK: define void @_Z2f1v() +// CHECK-LABEL: define void @_Z2f1v() void f1() { // CHECK: call void @_ZN2A1C1Ev( @@ -42,10 +42,10 @@ struct C { C(); }; -// CHECK: define void @_ZN1CC1Ev(%struct.C* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC1Ev(%struct.C* %this) unnamed_addr // CHECK: call void @_ZN1CC2Ev( -// CHECK: define void @_ZN1CC2Ev(%struct.C* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC2Ev(%struct.C* %this) unnamed_addr // CHECK: call void @_ZN2A1C1Ev( // CHECK: call void @_ZN2A2C1Ev( // CHECK: call void @_ZN1BC1ERK2A1RK2A2( @@ -53,7 +53,7 @@ struct C { // CHECK: call void @_ZN2A1D1Ev C::C() { } -// CHECK: define void @_Z2f3v() +// CHECK-LABEL: define void @_Z2f3v() void f3() { // CHECK: call void @_ZN2A1C1Ev( // CHECK: call void @_ZN2A2C1Ev( diff --git a/clang/test/CodeGenCXX/deferred-global-init.cpp b/clang/test/CodeGenCXX/deferred-global-init.cpp index 24c8c675b00..deb458f55c7 100644 --- a/clang/test/CodeGenCXX/deferred-global-init.cpp +++ b/clang/test/CodeGenCXX/deferred-global-init.cpp @@ -7,10 +7,10 @@ void* bar() { return a; } // CHECK: @_ZL1a = internal global i8* null -// CHECK: define internal void @__cxx_global_var_init +// CHECK-LABEL: define internal void @__cxx_global_var_init // CHECK: load i8** @foo // CHECK: ret void -// CHECK: define internal void @_GLOBAL__I_a +// CHECK-LABEL: define internal void @_GLOBAL__I_a // CHECK: call void @__cxx_global_var_init() // CHECK: ret void diff --git a/clang/test/CodeGenCXX/delete-two-arg.cpp b/clang/test/CodeGenCXX/delete-two-arg.cpp index 6e1113a9933..f8e6bff2958 100644 --- a/clang/test/CodeGenCXX/delete-two-arg.cpp +++ b/clang/test/CodeGenCXX/delete-two-arg.cpp @@ -5,7 +5,7 @@ typedef __typeof(sizeof(int)) size_t; namespace test1 { struct A { void operator delete(void*,size_t); int x; }; - // CHECK: define void @_ZN5test11aEPNS_1AE( + // CHECK-LABEL: define void @_ZN5test11aEPNS_1AE( void a(A *x) { // CHECK: load // CHECK-NEXT: icmp eq {{.*}}, null @@ -35,7 +35,7 @@ namespace test2 { return ::new A[10]; } - // CHECK: define void @_ZN5test24testEPNS_1AE( + // CHECK-LABEL: define void @_ZN5test24testEPNS_1AE( void test(A *p) { // CHECK: [[P:%.*]] = alloca [[A]]*, align 4 // CHECK-NEXT: store [[A]]* {{%.*}}, [[A]]** [[P]], align 4 @@ -60,7 +60,7 @@ namespace test3 { }; struct B : A {}; - // CHECK: define void @_ZN5test34testEv() + // CHECK-LABEL: define void @_ZN5test34testEv() void test() { // CHECK: call noalias i8* @_Znaj(i32 24) // CHECK-NEXT: bitcast diff --git a/clang/test/CodeGenCXX/delete.cpp b/clang/test/CodeGenCXX/delete.cpp index d11608ef6f5..cdd5a89963e 100644 --- a/clang/test/CodeGenCXX/delete.cpp +++ b/clang/test/CodeGenCXX/delete.cpp @@ -19,7 +19,7 @@ struct T { int a; }; -// CHECK: define void @_Z2t4P1T +// CHECK-LABEL: define void @_Z2t4P1T void t4(T *t) { // CHECK: call void @_ZN1TD1Ev // CHECK-NEXT: bitcast @@ -46,7 +46,7 @@ namespace test0 { ~A() {} }; - // CHECK: define void @_ZN5test04testEPNS_1AE( + // CHECK-LABEL: define void @_ZN5test04testEPNS_1AE( void test(A *a) { // CHECK: call void @_ZN5test01AD1Ev // CHECK-NEXT: bitcast @@ -54,8 +54,8 @@ namespace test0 { delete a; } - // CHECK: define linkonce_odr void @_ZN5test01AD1Ev(%"struct.test0::A"* %this) unnamed_addr - // CHECK: define linkonce_odr void @_ZN5test01AdlEPv + // CHECK-LABEL: define linkonce_odr void @_ZN5test01AD1Ev(%"struct.test0::A"* %this) unnamed_addr + // CHECK-LABEL: define linkonce_odr void @_ZN5test01AdlEPv } namespace test1 { @@ -64,7 +64,7 @@ namespace test1 { ~A(); }; - // CHECK: define void @_ZN5test14testEPA10_A20_NS_1AE( + // CHECK-LABEL: define void @_ZN5test14testEPA10_A20_NS_1AE( void test(A (*arr)[10][20]) { delete [] arr; // CHECK: icmp eq [10 x [20 x [[A:%.*]]]]* [[PTR:%.*]], null @@ -88,7 +88,7 @@ namespace test1 { } namespace test2 { - // CHECK: define void @_ZN5test21fEPb + // CHECK-LABEL: define void @_ZN5test21fEPb void f(bool *b) { // CHECK: call void @_ZdlPv(i8* delete b; @@ -111,7 +111,7 @@ namespace test4 { void operator delete (void *); }; - // CHECK: define void @_ZN5test421global_delete_virtualEPNS_1XE + // CHECK-LABEL: define void @_ZN5test421global_delete_virtualEPNS_1XE void global_delete_virtual(X *xp) { // Load the offset-to-top from the vtable and apply it. // This has to be done first because the dtor can mess it up. @@ -136,7 +136,7 @@ namespace test4 { namespace test5 { struct Incomplete; - // CHECK: define void @_ZN5test523array_delete_incompleteEPNS_10IncompleteES1_ + // CHECK-LABEL: define void @_ZN5test523array_delete_incompleteEPNS_10IncompleteES1_ void array_delete_incomplete(Incomplete *p1, Incomplete *p2) { // CHECK: call void @_ZdlPv delete p1; diff --git a/clang/test/CodeGenCXX/derived-to-base-conv.cpp b/clang/test/CodeGenCXX/derived-to-base-conv.cpp index 9b15c6804df..675c50c4232 100644 --- a/clang/test/CodeGenCXX/derived-to-base-conv.cpp +++ b/clang/test/CodeGenCXX/derived-to-base-conv.cpp @@ -31,7 +31,7 @@ struct X { void test0_helper(A); void test0(X x) { test0_helper(x); - // CHECK: define void @_Z5test01X( + // CHECK-LABEL: define void @_Z5test01X( // CHECK: [[TMP:%.*]] = alloca [[A:%.*]], align // CHECK-NEXT: [[T0:%.*]] = call [[B:%.*]]* @_ZN1XcvR1BEv( // CHECK-NEXT: [[T1:%.*]] = bitcast [[B]]* [[T0]] to [[A]]* @@ -60,7 +60,7 @@ struct Derived : Base { void test1_helper(Base); void test1(Derived bb) { - // CHECK: define void @_Z5test17Derived( + // CHECK-LABEL: define void @_Z5test17Derived( // CHECK-NOT: call {{.*}} @_ZN4BasecvR7DerivedEv( // CHECK: call void @_ZN4BaseC1ERKS_( // CHECK-NOT: call {{.*}} @_ZN4BasecvR7DerivedEv( @@ -75,7 +75,7 @@ class Test2a {}; class Test2b final : public virtual Test2a {}; void test2(Test2b &x) { Test2a &y = x; - // CHECK: define void @_Z5test2R6Test2b( + // CHECK-LABEL: define void @_Z5test2R6Test2b( // CHECK: [[X:%.*]] = alloca [[B:%.*]]*, align 8 // CHECK-NEXT: [[Y:%.*]] = alloca [[A:%.*]]*, align 8 // CHECK-NEXT: store [[B]]* {{%.*}}, [[B]]** [[X]], align 8 diff --git a/clang/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp b/clang/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp index 0e153022439..f2ecfc1d38c 100644 --- a/clang/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp +++ b/clang/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp @@ -9,7 +9,7 @@ struct D final : virtual C { virtual void f(); }; -// CHECK: define %struct.B* @_Z1fR1D +// CHECK-LABEL: define %struct.B* @_Z1fR1D B &f(D &d) { // CHECK-NOT: load i8** return d; diff --git a/clang/test/CodeGenCXX/destructors.cpp b/clang/test/CodeGenCXX/destructors.cpp index 34d885d48b1..f2c6f212ad6 100644 --- a/clang/test/CodeGenCXX/destructors.cpp +++ b/clang/test/CodeGenCXX/destructors.cpp @@ -40,11 +40,11 @@ namespace PR7526 { struct allocator_derived : allocator { }; - // CHECK: define void @_ZN6PR75269allocatorD2Ev(%"struct.PR7526::allocator"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN6PR75269allocatorD2Ev(%"struct.PR7526::allocator"* %this) unnamed_addr // CHECK: call void @__cxa_call_unexpected allocator::~allocator() throw() { foo(); } - // CHECK: define linkonce_odr void @_ZN6PR752617allocator_derivedD1Ev(%"struct.PR7526::allocator_derived"* %this) unnamed_addr + // CHECK-LABEL: define linkonce_odr void @_ZN6PR752617allocator_derivedD1Ev(%"struct.PR7526::allocator_derived"* %this) unnamed_addr // CHECK-NOT: call void @__cxa_call_unexpected // CHECK: } void foo() { @@ -93,7 +93,7 @@ namespace test0 { // complete destructor alias tested above -// CHECK: define void @_ZN5test01AD2Ev(%"struct.test0::A"* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN5test01AD2Ev(%"struct.test0::A"* %this) unnamed_addr // CHECK: invoke void @_ZN5test06MemberD1Ev // CHECK: unwind label [[MEM_UNWIND:%[a-zA-Z0-9.]+]] // CHECK: invoke void @_ZN5test04BaseD2Ev @@ -106,7 +106,7 @@ namespace test0 { B::~B() try { } catch (int i) {} // It will suppress the delegation optimization here, though. -// CHECK: define void @_ZN5test01BD1Ev(%"struct.test0::B"* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN5test01BD1Ev(%"struct.test0::B"* %this) unnamed_addr // CHECK: invoke void @_ZN5test06MemberD1Ev // CHECK: unwind label [[MEM_UNWIND:%[a-zA-Z0-9.]+]] // CHECK: invoke void @_ZN5test04BaseD2Ev @@ -114,7 +114,7 @@ namespace test0 { // CHECK: invoke void @_ZN5test05VBaseD2Ev // CHECK: unwind label [[VBASE_UNWIND:%[a-zA-Z0-9.]+]] -// CHECK: define void @_ZN5test01BD2Ev(%"struct.test0::B"* %this, i8** %vtt) unnamed_addr +// CHECK-LABEL: define void @_ZN5test01BD2Ev(%"struct.test0::B"* %this, i8** %vtt) unnamed_addr // CHECK: invoke void @_ZN5test06MemberD1Ev // CHECK: unwind label [[MEM_UNWIND:%[a-zA-Z0-9.]+]] // CHECK: invoke void @_ZN5test04BaseD2Ev @@ -142,24 +142,24 @@ namespace test1 { O::~O() {} // alias tested above struct P : NonEmpty, A { ~P(); }; - P::~P() {} // CHECK: define void @_ZN5test11PD2Ev(%"struct.test1::P"* %this) unnamed_addr + P::~P() {} // CHECK-LABEL: define void @_ZN5test11PD2Ev(%"struct.test1::P"* %this) unnamed_addr struct Q : A, B { ~Q(); }; - Q::~Q() {} // CHECK: define void @_ZN5test11QD2Ev(%"struct.test1::Q"* %this) unnamed_addr + Q::~Q() {} // CHECK-LABEL: define void @_ZN5test11QD2Ev(%"struct.test1::Q"* %this) unnamed_addr struct R : A { ~R(); }; - R::~R() { A a; } // CHECK: define void @_ZN5test11RD2Ev(%"struct.test1::R"* %this) unnamed_addr + R::~R() { A a; } // CHECK-LABEL: define void @_ZN5test11RD2Ev(%"struct.test1::R"* %this) unnamed_addr struct S : A { ~S(); int x; }; S::~S() {} // alias tested above struct T : A { ~T(); B x; }; - T::~T() {} // CHECK: define void @_ZN5test11TD2Ev(%"struct.test1::T"* %this) unnamed_addr + T::~T() {} // CHECK-LABEL: define void @_ZN5test11TD2Ev(%"struct.test1::T"* %this) unnamed_addr // The VTT parameter prevents this. We could still make this work // for calling conventions that are safe against extra parameters. struct U : A, virtual B { ~U(); }; - U::~U() {} // CHECK: define void @_ZN5test11UD2Ev(%"struct.test1::U"* %this, i8** %vtt) unnamed_addr + U::~U() {} // CHECK-LABEL: define void @_ZN5test11UD2Ev(%"struct.test1::U"* %this, i8** %vtt) unnamed_addr } // PR6471 @@ -168,7 +168,7 @@ namespace test2 { struct B : A { ~B(); }; B::~B() {} - // CHECK: define void @_ZN5test21BD2Ev(%"struct.test2::B"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN5test21BD2Ev(%"struct.test2::B"* %this) unnamed_addr // CHECK: call void @_ZN5test21AD2Ev } @@ -195,7 +195,7 @@ namespace test3 { namespace test4 { struct A { ~A(); }; - // CHECK: define void @_ZN5test43fooEv() + // CHECK-LABEL: define void @_ZN5test43fooEv() // CHECK: call void @_ZN5test41AD1Ev // CHECK: ret void void foo() { @@ -208,7 +208,7 @@ namespace test4 { return; } - // CHECK: define void @_ZN5test43barEi( + // CHECK-LABEL: define void @_ZN5test43barEi( // CHECK: [[X:%.*]] = alloca i32 // CHECK-NEXT: [[A:%.*]] = alloca // CHECK: br label @@ -233,7 +233,7 @@ namespace test4 { namespace test5 { struct A { ~A(); }; - // CHECK: define void @_ZN5test53fooEv() + // CHECK-LABEL: define void @_ZN5test53fooEv() // CHECK: [[ELEMS:%.*]] = alloca [5 x [[A:%.*]]], align // CHECK-NEXT: [[EXN:%.*]] = alloca i8* // CHECK-NEXT: [[SEL:%.*]] = alloca i32 @@ -272,7 +272,7 @@ namespace test6 { }; C::C() { opaque(); } - // CHECK: define void @_ZN5test61CC1Ev(%"struct.test6::C"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN5test61CC1Ev(%"struct.test6::C"* %this) unnamed_addr // CHECK: call void @_ZN5test61BILj2EEC2Ev // CHECK: invoke void @_ZN5test61BILj3EEC2Ev // CHECK: invoke void @_ZN5test61BILj0EEC2Ev @@ -282,7 +282,7 @@ namespace test6 { // FIXME: way too much EH cleanup code follows C::~C() { opaque(); } - // CHECK: define void @_ZN5test61CD1Ev(%"struct.test6::C"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN5test61CD1Ev(%"struct.test6::C"* %this) unnamed_addr // CHECK: invoke void @_ZN5test61CD2Ev // CHECK: invoke void @_ZN5test61BILj3EED2Ev // CHECK: call void @_ZN5test61BILj2EED2Ev @@ -290,7 +290,7 @@ namespace test6 { // CHECK: invoke void @_ZN5test61BILj3EED2Ev // CHECK: invoke void @_ZN5test61BILj2EED2Ev - // CHECK: define void @_ZN5test61CD2Ev(%"struct.test6::C"* %this, i8** %vtt) unnamed_addr + // CHECK-LABEL: define void @_ZN5test61CD2Ev(%"struct.test6::C"* %this, i8** %vtt) unnamed_addr // CHECK: invoke void @_ZN5test66opaqueEv // CHECK: invoke void @_ZN5test61AD1Ev // CHECK: invoke void @_ZN5test61AD1Ev @@ -318,7 +318,7 @@ namespace test7 { }; // Verify that this doesn't get emitted as an alias - // CHECK: define void @_ZN5test71BD2Ev( + // CHECK-LABEL: define void @_ZN5test71BD2Ev( // CHECK: invoke void @_ZN5test71DD1Ev( // CHECK: call void @_ZN5test71AD2Ev( B::~B() {} @@ -338,7 +338,7 @@ namespace test8 { l: die(); } - // CHECK: define void @_ZN5test84testEv() + // CHECK-LABEL: define void @_ZN5test84testEv() // CHECK: [[X:%.*]] = alloca [[A:%.*]], align 1 // CHECK-NEXT: [[Y:%.*]] = alloca [[A:%.*]], align 1 // CHECK: call void @_ZN5test81AC1Ev([[A]]* [[X]]) @@ -368,7 +368,7 @@ namespace test9 { // Checks from test3: - // CHECK: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::<anonymous namespace>::D"* %this) unnamed_addr + // CHECK-LABEL: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::<anonymous namespace>::D"* %this) unnamed_addr // CHECK: invoke void @_ZN5test312_GLOBAL__N_11DD1Ev( // CHECK: call void @_ZdlPv({{.*}}) [[NUW:#[0-9]+]] // CHECK: ret void @@ -381,17 +381,17 @@ namespace test9 { // @_ZN5test312_GLOBAL__N_11DD1Ev = alias internal {{.*}} @_ZN5test312_GLOBAL__N_11DD2Ev // @_ZN5test312_GLOBAL__N_11DD2Ev = alias internal bitcast {{.*}} @_ZN5test312_GLOBAL__N_11CD2Ev - // CHECK: define internal void @_ZThn8_N5test312_GLOBAL__N_11DD1Ev( + // CHECK-LABEL: define internal void @_ZThn8_N5test312_GLOBAL__N_11DD1Ev( // CHECK: getelementptr inbounds i8* {{.*}}, i64 -8 // CHECK: call void @_ZN5test312_GLOBAL__N_11DD1Ev( // CHECK: ret void - // CHECK: define internal void @_ZThn8_N5test312_GLOBAL__N_11DD0Ev( + // CHECK-LABEL: define internal void @_ZThn8_N5test312_GLOBAL__N_11DD0Ev( // CHECK: getelementptr inbounds i8* {{.*}}, i64 -8 // CHECK: call void @_ZN5test312_GLOBAL__N_11DD0Ev( // CHECK: ret void - // CHECK: define internal void @_ZN5test312_GLOBAL__N_11CD2Ev(%"struct.test3::<anonymous namespace>::C"* %this) unnamed_addr + // CHECK-LABEL: define internal void @_ZN5test312_GLOBAL__N_11CD2Ev(%"struct.test3::<anonymous namespace>::C"* %this) unnamed_addr // CHECK: invoke void @_ZN5test31BD2Ev( // CHECK: call void @_ZN5test31AD2Ev( // CHECK: ret void @@ -399,7 +399,7 @@ namespace test9 { // CHECK: declare void @_ZN5test31BD2Ev( // CHECK: declare void @_ZN5test31AD2Ev( - // CHECK: define internal void @_ZN5test312_GLOBAL__N_11CD0Ev(%"struct.test3::<anonymous namespace>::C"* %this) unnamed_addr + // CHECK-LABEL: define internal void @_ZN5test312_GLOBAL__N_11CD0Ev(%"struct.test3::<anonymous namespace>::C"* %this) unnamed_addr // CHECK: invoke void @_ZN5test312_GLOBAL__N_11CD1Ev( // CHECK: call void @_ZdlPv({{.*}}) [[NUW]] // CHECK: ret void @@ -408,12 +408,12 @@ namespace test9 { // CHECK: call void @_ZdlPv({{.*}}) [[NUW]] // CHECK: resume { i8*, i32 } - // CHECK: define internal void @_ZThn8_N5test312_GLOBAL__N_11CD1Ev( + // CHECK-LABEL: define internal void @_ZThn8_N5test312_GLOBAL__N_11CD1Ev( // CHECK: getelementptr inbounds i8* {{.*}}, i64 -8 // CHECK: call void @_ZN5test312_GLOBAL__N_11CD1Ev( // CHECK: ret void - // CHECK: define internal void @_ZThn8_N5test312_GLOBAL__N_11CD0Ev( + // CHECK-LABEL: define internal void @_ZThn8_N5test312_GLOBAL__N_11CD0Ev( // CHECK: getelementptr inbounds i8* {{.*}}, i64 -8 // CHECK: call void @_ZN5test312_GLOBAL__N_11CD0Ev( // CHECK: ret void diff --git a/clang/test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp b/clang/test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp index 40f3cada7d4..11026e8df3e 100644 --- a/clang/test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp +++ b/clang/test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp @@ -5,7 +5,7 @@ namespace Test1 { virtual int f() final; }; - // CHECK: define i32 @_ZN5Test11fEPNS_1AE + // CHECK-LABEL: define i32 @_ZN5Test11fEPNS_1AE int f(A *a) { // CHECK: call i32 @_ZN5Test11A1fEv return a->f(); @@ -17,7 +17,7 @@ namespace Test2 { virtual int f(); }; - // CHECK: define i32 @_ZN5Test21fEPNS_1AE + // CHECK-LABEL: define i32 @_ZN5Test21fEPNS_1AE int f(A *a) { // CHECK: call i32 @_ZN5Test21A1fEv return a->f(); @@ -31,19 +31,19 @@ namespace Test3 { struct B final : A { }; - // CHECK: define i32 @_ZN5Test31fEPNS_1BE + // CHECK-LABEL: define i32 @_ZN5Test31fEPNS_1BE int f(B *b) { // CHECK: call i32 @_ZN5Test31A1fEv return b->f(); } - // CHECK: define i32 @_ZN5Test31fERNS_1BE + // CHECK-LABEL: define i32 @_ZN5Test31fERNS_1BE int f(B &b) { // CHECK: call i32 @_ZN5Test31A1fEv return b.f(); } - // CHECK: define i32 @_ZN5Test31fEPv + // CHECK-LABEL: define i32 @_ZN5Test31fEPv int f(void *v) { // CHECK: call i32 @_ZN5Test31A1fEv return static_cast<B*>(v)->f(); @@ -59,7 +59,7 @@ namespace Test4 { virtual void f(); }; - // CHECK: define void @_ZN5Test41fEPNS_1BE + // CHECK-LABEL: define void @_ZN5Test41fEPNS_1BE void f(B* d) { // CHECK: call void @_ZN5Test41B1fEv static_cast<A*>(d)->f(); @@ -78,7 +78,7 @@ namespace Test5 { struct C final : B { }; - // CHECK: define void @_ZN5Test51fEPNS_1CE + // CHECK-LABEL: define void @_ZN5Test51fEPNS_1CE void f(C* d) { // FIXME: It should be possible to devirtualize this case, but that is // not implemented yet. @@ -105,7 +105,7 @@ namespace Test6 { struct D final : public C, public B { }; - // CHECK: define void @_ZN5Test61fEPNS_1DE + // CHECK-LABEL: define void @_ZN5Test61fEPNS_1DE void f(D* d) { // CHECK: call void @_ZN5Test61DD1Ev static_cast<A*>(d)->~A(); @@ -126,7 +126,7 @@ namespace Test7 { virtual int f() {return z;} }; - // CHECK: define i32 @_ZN5Test71fEPNS_3zedE + // CHECK-LABEL: define i32 @_ZN5Test71fEPNS_3zedE int f(zed *z) { // CHECK: alloca // CHECK-NEXT: store @@ -144,7 +144,7 @@ namespace Test8 { virtual int foo() { return b; } }; struct C final : A, B { }; - // CHECK: define i32 @_ZN5Test84testEPNS_1CE + // CHECK-LABEL: define i32 @_ZN5Test84testEPNS_1CE int test(C *c) { // CHECK: %[[THIS:.*]] = phi // CHECK-NEXT: call i32 @_ZN5Test81B3fooEv(%"struct.Test8::B"* %[[THIS]]) diff --git a/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp b/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp index 52f1cd3fa23..911ddeedd23 100644 --- a/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp +++ b/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp @@ -79,7 +79,7 @@ namespace test3 { struct D : public B { }; void f(D d) { - // CHECK: define void @_ZN5test31fENS_1DE + // CHECK-LABEL: define void @_ZN5test31fENS_1DE d.B::~B(); } } diff --git a/clang/test/CodeGenCXX/dynamic_cast-no-rtti.cpp b/clang/test/CodeGenCXX/dynamic_cast-no-rtti.cpp index 2060e1d5453..0e26de5bcf8 100644 --- a/clang/test/CodeGenCXX/dynamic_cast-no-rtti.cpp +++ b/clang/test/CodeGenCXX/dynamic_cast-no-rtti.cpp @@ -13,7 +13,7 @@ struct B : public A { // does not use runtime support. A *upcast(B *b) { return dynamic_cast<A *>(b); -// CHECK: define %struct.A* @_Z6upcastP1B +// CHECK-LABEL: define %struct.A* @_Z6upcastP1B // CHECK-NOT: call i8* @__dynamic_cast } @@ -21,6 +21,6 @@ A *upcast(B *b) { // runtime support. B *samecast(B *b) { return dynamic_cast<B *>(b); -// CHECK: define %struct.B* @_Z8samecastP1B +// CHECK-LABEL: define %struct.B* @_Z8samecastP1B // CHECK-NOT: call i8* @__dynamic_cast } diff --git a/clang/test/CodeGenCXX/eh.cpp b/clang/test/CodeGenCXX/eh.cpp index 70887f7718d..2a61e61bb81 100644 --- a/clang/test/CodeGenCXX/eh.cpp +++ b/clang/test/CodeGenCXX/eh.cpp @@ -9,7 +9,7 @@ void test1() { throw d1; } -// CHECK: define void @_Z5test1v() +// CHECK-LABEL: define void @_Z5test1v() // CHECK: [[EXNOBJ:%.*]] = call i8* @__cxa_allocate_exception(i64 8) // CHECK-NEXT: [[EXN:%.*]] = bitcast i8* [[EXNOBJ]] to [[DSTAR:%[^*]*\*]] // CHECK-NEXT: [[EXN2:%.*]] = bitcast [[DSTAR]] [[EXN]] to i8* @@ -29,7 +29,7 @@ void test2() { throw d2; } -// CHECK: define void @_Z5test2v() +// CHECK-LABEL: define void @_Z5test2v() // CHECK: [[EXNVAR:%.*]] = alloca i8* // CHECK-NEXT: [[SELECTORVAR:%.*]] = alloca i32 // CHECK-NEXT: [[EXNOBJ:%.*]] = call i8* @__cxa_allocate_exception(i64 16) @@ -51,7 +51,7 @@ void test3() { throw (volatile test3_D *)0; } -// CHECK: define void @_Z5test3v() +// CHECK-LABEL: define void @_Z5test3v() // CHECK: [[EXNOBJ:%.*]] = call i8* @__cxa_allocate_exception(i64 8) // CHECK-NEXT: [[EXN:%.*]] = bitcast i8* [[EXNOBJ]] to [[D:%[^*]+]]** // CHECK-NEXT: store [[D]]* null, [[D]]** [[EXN]] @@ -63,7 +63,7 @@ void test4() { throw; } -// CHECK: define void @_Z5test4v() +// CHECK-LABEL: define void @_Z5test4v() // CHECK: call void @__cxa_rethrow() [[NR]] // CHECK-NEXT: unreachable @@ -79,7 +79,7 @@ namespace test5 { void test() { try { throw A(); } catch (A &x) {} } -// CHECK: define void @_ZN5test54testEv() +// CHECK-LABEL: define void @_ZN5test54testEv() // CHECK: [[EXNOBJ:%.*]] = call i8* @__cxa_allocate_exception(i64 1) // CHECK: [[EXNCAST:%.*]] = bitcast i8* [[EXNOBJ]] to [[A:%[^*]*]]* // CHECK-NEXT: invoke void @_ZN5test51AC1Ev([[A]]* [[EXNCAST]]) @@ -101,7 +101,7 @@ namespace test6 { // PR7127 namespace test7 { -// CHECK: define i32 @_ZN5test73fooEv() +// CHECK-LABEL: define i32 @_ZN5test73fooEv() int foo() { // CHECK: [[CAUGHTEXNVAR:%.*]] = alloca i8* // CHECK-NEXT: [[SELECTORVAR:%.*]] = alloca i32 @@ -160,7 +160,7 @@ namespace test8 { struct A { A(const A&); ~A(); }; void bar(); - // CHECK: define void @_ZN5test83fooEv() + // CHECK-LABEL: define void @_ZN5test83fooEv() void foo() { try { // CHECK: invoke void @_ZN5test83barEv() @@ -184,11 +184,11 @@ namespace test9 { struct A { A(); }; - // CHECK: define void @_ZN5test91AC1Ev(%"struct.test9::A"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN5test91AC1Ev(%"struct.test9::A"* %this) unnamed_addr // CHECK: call void @_ZN5test91AC2Ev // CHECK-NEXT: ret void - // CHECK: define void @_ZN5test91AC2Ev(%"struct.test9::A"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZN5test91AC2Ev(%"struct.test9::A"* %this) unnamed_addr A::A() try { // CHECK: invoke void @_ZN5test96opaqueEv() opaque(); @@ -210,7 +210,7 @@ namespace test10 { struct A { ~A(); }; struct B { int x; }; - // CHECK: define void @_ZN6test103fooEv() + // CHECK-LABEL: define void @_ZN6test103fooEv() void foo() { A a; // force a cleanup context @@ -244,7 +244,7 @@ namespace test10 { namespace test11 { void opaque(); - // CHECK: define void @_ZN6test113fooEv() + // CHECK-LABEL: define void @_ZN6test113fooEv() void foo() { try { // CHECK: invoke void @_ZN6test116opaqueEv() @@ -261,7 +261,7 @@ namespace test11 { struct A {}; - // CHECK: define void @_ZN6test113barEv() + // CHECK-LABEL: define void @_ZN6test113barEv() void bar() { try { // CHECK: [[EXNSLOT:%.*]] = alloca i8* @@ -286,7 +286,7 @@ namespace test12 { struct A { ~A() noexcept(false); }; bool opaque(const A&); - // CHECK: define void @_ZN6test124testEv() + // CHECK-LABEL: define void @_ZN6test124testEv() void test() { // CHECK: [[X:%.*]] = alloca [[A:%.*]], // CHECK: [[EHCLEANUPDEST:%.*]] = alloca i32 @@ -371,7 +371,7 @@ namespace test15 { bool opaque(int); - // CHECK: define void @_ZN6test153fooEv() + // CHECK-LABEL: define void @_ZN6test153fooEv() void foo() { A a; @@ -405,7 +405,7 @@ namespace test16 { void foo(); bool cond(); - // CHECK: define void @_ZN6test163barEv() + // CHECK-LABEL: define void @_ZN6test163barEv() void bar() { // CHECK: [[EXN_SAVE:%.*]] = alloca i8* // CHECK-NEXT: [[EXN_ACTIVE:%.*]] = alloca i1 diff --git a/clang/test/CodeGenCXX/empty-classes.cpp b/clang/test/CodeGenCXX/empty-classes.cpp index 1ce1dad40ff..8491480bcf5 100644 --- a/clang/test/CodeGenCXX/empty-classes.cpp +++ b/clang/test/CodeGenCXX/empty-classes.cpp @@ -29,7 +29,7 @@ struct D : A, Empty { #define CHECK(x) if (!(x)) return __LINE__ // PR7012 -// CHECK: define i32 @_Z1fv() +// CHECK-LABEL: define i32 @_Z1fv() int f() { B b1; diff --git a/clang/test/CodeGenCXX/exceptions.cpp b/clang/test/CodeGenCXX/exceptions.cpp index f6f5079791a..d37e6109db4 100644 --- a/clang/test/CodeGenCXX/exceptions.cpp +++ b/clang/test/CodeGenCXX/exceptions.cpp @@ -269,7 +269,7 @@ namespace test5 { void foo(); - // CHECK: define void @_ZN5test54testEv() + // CHECK-LABEL: define void @_ZN5test54testEv() // CHECK: [[EXNSLOT:%.*]] = alloca i8* // CHECK-NEXT: [[SELECTORSLOT:%.*]] = alloca i32 // CHECK-NEXT: [[A:%.*]] = alloca [[A_T:%.*]], align 1 @@ -403,7 +403,7 @@ namespace test8 { void test() { throw makeA(); } - // CHECK: define void @_ZN5test84testEv + // CHECK-LABEL: define void @_ZN5test84testEv } // Make sure we generate the correct code for the delete[] call which @@ -432,14 +432,14 @@ namespace test10 { struct A { ~A(); }; A::~A() try { cleanup(); } catch (...) { return; } - // CHECK: define void @_ZN6test101AD1Ev( + // CHECK-LABEL: define void @_ZN6test101AD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK-NOT: rethrow // CHECK: ret void struct B { ~B(); }; B::~B() try { cleanup(); } catch (...) {} - // CHECK: define void @_ZN6test101BD1Ev( + // CHECK-LABEL: define void @_ZN6test101BD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK: call i8* @__cxa_begin_catch // CHECK-NEXT: invoke void @__cxa_rethrow() @@ -447,7 +447,7 @@ namespace test10 { struct C { ~C(); }; C::~C() try { cleanup(); } catch (...) { if (suppress) return; } - // CHECK: define void @_ZN6test101CD1Ev( + // CHECK-LABEL: define void @_ZN6test101CD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK: call i8* @__cxa_begin_catch // CHECK-NEXT: load i8* @_ZN6test108suppressE, align 1 @@ -477,7 +477,7 @@ namespace test11 { C::C() { throw 0; } - // CHECK: define void @_ZN6test111CC2Ev( + // CHECK-LABEL: define void @_ZN6test111CC2Ev( // CHECK: [[THIS:%.*]] = load [[C:%.*]]** {{%.*}} // Construct single. // CHECK-NEXT: [[SINGLE:%.*]] = getelementptr inbounds [[C]]* [[THIS]], i32 0, i32 0 diff --git a/clang/test/CodeGenCXX/explicit-instantiation.cpp b/clang/test/CodeGenCXX/explicit-instantiation.cpp index 8daf3c68000..6a4fd822122 100644 --- a/clang/test/CodeGenCXX/explicit-instantiation.cpp +++ b/clang/test/CodeGenCXX/explicit-instantiation.cpp @@ -13,7 +13,7 @@ Result plus<T, U, Result>::operator()(const T& t, const U& u) const { return t + u; } -// CHECK: define weak_odr i32 @_ZNK4plusIillEclERKiRKl +// CHECK-LABEL: define weak_odr i32 @_ZNK4plusIillEclERKiRKl template struct plus<int, long, long>; // Check that we emit definitions from explicit instantiations even when they @@ -27,16 +27,16 @@ template <typename T> struct S { }; }; -// CHECK: define weak_odr void @_ZN1SIiE1fEv +// CHECK-LABEL: define weak_odr void @_ZN1SIiE1fEv template void S<int>::f(); -// CHECK: define weak_odr void @_ZN1SIiE1gEv +// CHECK-LABEL: define weak_odr void @_ZN1SIiE1gEv template void S<int>::g(); // See the check line at the top of the file. template int S<int>::i; -// CHECK: define weak_odr void @_ZN1SIiE2S21hEv +// CHECK-LABEL: define weak_odr void @_ZN1SIiE2S21hEv template void S<int>::S2::h(); template <typename T> void S<T>::f() {} diff --git a/clang/test/CodeGenCXX/fastcall.cpp b/clang/test/CodeGenCXX/fastcall.cpp index c0a91066727..0326ce53bc4 100644 --- a/clang/test/CodeGenCXX/fastcall.cpp +++ b/clang/test/CodeGenCXX/fastcall.cpp @@ -2,7 +2,7 @@ void __attribute__((fastcall)) foo1(int &y); void bar1(int &y) { - // CHECK: define void @_Z4bar1Ri + // CHECK-LABEL: define void @_Z4bar1Ri // CHECK: call x86_fastcallcc void @_Z4foo1Ri(i32* inreg % foo1(y); } @@ -14,7 +14,7 @@ struct S1 { void __attribute__((fastcall)) foo2(S1 a, int b); void bar2(S1 a, int b) { - // CHECK: define void @_Z4bar22S1i + // CHECK-LABEL: define void @_Z4bar22S1i // CHECK: call x86_fastcallcc void @_Z4foo22S1i(%struct.S1* inreg %{{.*}}, i32 inreg % foo2(a, b); } diff --git a/clang/test/CodeGenCXX/for-range.cpp b/clang/test/CodeGenCXX/for-range.cpp index 926fe445a5b..6d367734665 100644 --- a/clang/test/CodeGenCXX/for-range.cpp +++ b/clang/test/CodeGenCXX/for-range.cpp @@ -32,7 +32,7 @@ B *end(C&); extern B array[5]; -// CHECK: define void @_Z9for_arrayv( +// CHECK-LABEL: define void @_Z9for_arrayv( void for_array() { // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) A a; @@ -61,7 +61,7 @@ void for_array() { // CHECK: ret void } -// CHECK: define void @_Z9for_rangev( +// CHECK-LABEL: define void @_Z9for_rangev( void for_range() { // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) A a; @@ -93,7 +93,7 @@ void for_range() { // CHECK: ret void } -// CHECK: define void @_Z16for_member_rangev( +// CHECK-LABEL: define void @_Z16for_member_rangev( void for_member_range() { // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) A a; diff --git a/clang/test/CodeGenCXX/forward-enum.cpp b/clang/test/CodeGenCXX/forward-enum.cpp index c1169e01399..685e4f31cc6 100644 --- a/clang/test/CodeGenCXX/forward-enum.cpp +++ b/clang/test/CodeGenCXX/forward-enum.cpp @@ -3,7 +3,7 @@ enum MyEnum : char; void bar(MyEnum value) { } -// CHECK: define void @_Z3foo6MyEnum +// CHECK-LABEL: define void @_Z3foo6MyEnum void foo(MyEnum value) { // CHECK: call void @_Z3bar6MyEnum(i8 signext diff --git a/clang/test/CodeGenCXX/fp16-mangle.cpp b/clang/test/CodeGenCXX/fp16-mangle.cpp index 4a056d6c6bb..bd5a3194112 100644 --- a/clang/test/CodeGenCXX/fp16-mangle.cpp +++ b/clang/test/CodeGenCXX/fp16-mangle.cpp @@ -4,9 +4,9 @@ template <typename T, typename U> struct S { static int i; }; template <> int S<__fp16, __fp16>::i = 3; -// CHECK: define void @_Z1fPDh(i16* %x) +// CHECK-LABEL: define void @_Z1fPDh(i16* %x) void f (__fp16 *x) { } -// CHECK: define void @_Z1gPDhS_(i16* %x, i16* %y) +// CHECK-LABEL: define void @_Z1gPDhS_(i16* %x, i16* %y) void g (__fp16 *x, __fp16 *y) { } diff --git a/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp b/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp index 21f0127ab48..5d26dcd61cf 100644 --- a/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp +++ b/clang/test/CodeGenCXX/function-template-explicit-specialization.cpp @@ -3,11 +3,11 @@ template<typename T> void a(T); template<> void a(int) {} -// CHECK: define void @_Z1aIiEvT_ +// CHECK-LABEL: define void @_Z1aIiEvT_ namespace X { template<typename T> void b(T); template<> void b(int) {} } -// CHECK: define void @_ZN1X1bIiEEvT_ +// CHECK-LABEL: define void @_ZN1X1bIiEEvT_ diff --git a/clang/test/CodeGenCXX/global-block-literal-helpers.cpp b/clang/test/CodeGenCXX/global-block-literal-helpers.cpp index 350ea548662..762b5d9910d 100644 --- a/clang/test/CodeGenCXX/global-block-literal-helpers.cpp +++ b/clang/test/CodeGenCXX/global-block-literal-helpers.cpp @@ -5,23 +5,23 @@ namespace N { typedef void (^BL)(); int func(BL, BL, BL); -// CHECK: define internal void @_ZN1N8ArrBlockE_block_invoke( -// CHECK: define internal void @_ZN1N8ArrBlockE_block_invoke_2( -// CHECK: define internal void @_ZN1N8ArrBlockE_block_invoke_3 +// CHECK-LABEL: define internal void @_ZN1N8ArrBlockE_block_invoke( +// CHECK-LABEL: define internal void @_ZN1N8ArrBlockE_block_invoke_2( +// CHECK-LABEL: define internal void @_ZN1N8ArrBlockE_block_invoke_3 BL ArrBlock [] = { ^{}, ^{}, ^{} }; -// CHECK: define internal void @_ZN1N4ivalE_block_invoke_4( -// CHECK: define internal void @_ZN1N4ivalE_block_invoke_5( -// CHECK: define internal void @_ZN1N4ivalE_block_invoke_6( +// CHECK-LABEL: define internal void @_ZN1N4ivalE_block_invoke_4( +// CHECK-LABEL: define internal void @_ZN1N4ivalE_block_invoke_5( +// CHECK-LABEL: define internal void @_ZN1N4ivalE_block_invoke_6( int ival = func(^{}, ^{}, ^{}); -// CHECK: define internal void @_ZN1N9gvarlobalE_block_invoke_7( +// CHECK-LABEL: define internal void @_ZN1N9gvarlobalE_block_invoke_7( void (^gvarlobal)(void) = ^{}; struct S { BL field = ^{}; }; -// CHECK: define internal void @_ZN1N3blfE_block_invoke_8( +// CHECK-LABEL: define internal void @_ZN1N3blfE_block_invoke_8( S blf; }; diff --git a/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp b/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp index 7c4b6aa1e05..9d35e848e3c 100644 --- a/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp +++ b/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp @@ -22,7 +22,7 @@ public: A a, b; // PR9593 -// CHECK: define void @_Z4funcv() +// CHECK-LABEL: define void @_Z4funcv() // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZ4funcvE2a1) // CHECK: call void @_ZN1AC1Ev([[A]]* @_ZZ4funcvE2a1) // CHECK-NEXT: call i32 @atexit(void ()* @__dtor__ZZ4funcvE2a1) diff --git a/clang/test/CodeGenCXX/global-init.cpp b/clang/test/CodeGenCXX/global-init.cpp index de6878fc89a..69631c27890 100644 --- a/clang/test/CodeGenCXX/global-init.cpp +++ b/clang/test/CodeGenCXX/global-init.cpp @@ -45,7 +45,7 @@ namespace test1 { const int y = x - 1; // This gets deferred. const int z = ~y; // This also gets deferred, but gets "undeferred" before y. int test() { return z; } -// CHECK: define i32 @_ZN5test14testEv() +// CHECK-LABEL: define i32 @_ZN5test14testEv() // All of these initializers end up delayed, so we check them later. } diff --git a/clang/test/CodeGenCXX/goto.cpp b/clang/test/CodeGenCXX/goto.cpp index 77b6166aff4..904f95fb22b 100644 --- a/clang/test/CodeGenCXX/goto.cpp +++ b/clang/test/CodeGenCXX/goto.cpp @@ -5,7 +5,7 @@ namespace test0 { struct A { A(); ~A(); }; struct V { V(const A &a = A()); ~V(); }; - // CHECK: define linkonce_odr i32 @_ZN5test04testILi0EEEii + // CHECK-LABEL: define linkonce_odr i32 @_ZN5test04testILi0EEEii template<int X> int test(int x) { // CHECK: [[RET:%.*]] = alloca i32 // CHECK-NEXT: [[X:%.*]] = alloca i32 diff --git a/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp b/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp index 79586fba9af..267402122f8 100644 --- a/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp +++ b/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp @@ -40,7 +40,7 @@ void test_D(D d1, D d2) { d1 = d2; } -// CHECK: define linkonce_odr %struct.D* @_ZN1DaSERS_ +// CHECK-LABEL: define linkonce_odr %struct.D* @_ZN1DaSERS_ // CHECK: {{call.*_ZN1AaSERS_}} // CHECK: {{call.*_ZN1BaSERS_}} // CHECK: {{call.*_ZN1CaSERKS_}} diff --git a/clang/test/CodeGenCXX/implicit-copy-constructor.cpp b/clang/test/CodeGenCXX/implicit-copy-constructor.cpp index 24e84d57b13..bb04318e730 100644 --- a/clang/test/CodeGenCXX/implicit-copy-constructor.cpp +++ b/clang/test/CodeGenCXX/implicit-copy-constructor.cpp @@ -40,7 +40,7 @@ void f(D d) { D d2(d); } -// CHECK: define linkonce_odr void @_ZN1DC1ERS_(%struct.D* %this, %struct.D*) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1DC1ERS_(%struct.D* %this, %struct.D*) unnamed_addr // CHECK: call void @_ZN1AC1Ev // CHECK: call void @_ZN1CC2ERS_1A // CHECK: call void @_ZN1AD1Ev diff --git a/clang/test/CodeGenCXX/inheriting-constructor.cpp b/clang/test/CodeGenCXX/inheriting-constructor.cpp index 0f397849297..c99a20c730e 100644 --- a/clang/test/CodeGenCXX/inheriting-constructor.cpp +++ b/clang/test/CodeGenCXX/inheriting-constructor.cpp @@ -11,18 +11,18 @@ struct C { template<typename T> C(T); }; struct D : C { using C::C; }; D d(123); -// CHECK: define void @_ZN1BD0Ev -// CHECK: define void @_ZN1BD1Ev -// CHECK: define void @_ZN1BD2Ev +// CHECK-LABEL: define void @_ZN1BD0Ev +// CHECK-LABEL: define void @_ZN1BD1Ev +// CHECK-LABEL: define void @_ZN1BD2Ev -// CHECK: define linkonce_odr void @_ZN1BC1Ei( +// CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ei( // CHECK: call void @_ZN1BC2Ei( -// CHECK: define linkonce_odr void @_ZN1DC1IiEET_( +// CHECK-LABEL: define linkonce_odr void @_ZN1DC1IiEET_( // CHECK: call void @_ZN1DC2IiEET_( -// CHECK: define linkonce_odr void @_ZN1DC2IiEET_( +// CHECK-LABEL: define linkonce_odr void @_ZN1DC2IiEET_( // CHECK: call void @_ZN1CC2IiEET_( -// CHECK: define linkonce_odr void @_ZN1BC2Ei( +// CHECK-LABEL: define linkonce_odr void @_ZN1BC2Ei( // CHECK: call void @_ZN1AC2Ei( diff --git a/clang/test/CodeGenCXX/init-invariant.cpp b/clang/test/CodeGenCXX/init-invariant.cpp index 9eb19896b6b..2f56e82d770 100644 --- a/clang/test/CodeGenCXX/init-invariant.cpp +++ b/clang/test/CodeGenCXX/init-invariant.cpp @@ -54,7 +54,7 @@ void e() { // CHECK: store {{.*}}, i32* @d // CHECK: call {{.*}}@llvm.invariant.start(i64 4, i8* bitcast ({{.*}} @d to i8*)) -// CHECK: define void @_Z1ev( +// CHECK-LABEL: define void @_Z1ev( // CHECK: call void @_ZN1AC1Ev(%struct.A* @_ZZ1evE1a) // CHECK: call {{.*}}@llvm.invariant.start(i64 4, i8* bitcast ({{.*}} @_ZZ1evE1a to i8*)) // CHECK-NOT: llvm.invariant.end diff --git a/clang/test/CodeGenCXX/inline-functions.cpp b/clang/test/CodeGenCXX/inline-functions.cpp index 8c011de28a0..9f8e536a3b0 100644 --- a/clang/test/CodeGenCXX/inline-functions.cpp +++ b/clang/test/CodeGenCXX/inline-functions.cpp @@ -5,7 +5,7 @@ struct A { inline void f(); }; -// CHECK-NOT: define void @_ZN1A1fEv +// CHECK-NOT-LABEL: define void @_ZN1A1fEv void A::f() { } template<typename> struct B { }; @@ -19,13 +19,13 @@ void B<char>::f() { } // We need a final CHECK line here. -// CHECK: define void @_Z1fv +// CHECK-LABEL: define void @_Z1fv void f() { } // <rdar://problem/8740363> inline void f1(int); -// CHECK: define linkonce_odr void @_Z2f1i +// CHECK-LABEL: define linkonce_odr void @_Z2f1i void f1(int) { } void test_f1() { f1(17); } @@ -38,7 +38,7 @@ namespace test1 { void g() {} }; - // CHECK: define linkonce_odr void @_ZN5test11C4funcEv( + // CHECK-LABEL: define linkonce_odr void @_ZN5test11C4funcEv( class C { public: @@ -65,5 +65,5 @@ namespace test2 { A a; f(a); } - // CHECK: define linkonce_odr void @_ZN5test21fERKNS_1AE + // CHECK-LABEL: define linkonce_odr void @_ZN5test21fERKNS_1AE } diff --git a/clang/test/CodeGenCXX/instantiate-temporaries.cpp b/clang/test/CodeGenCXX/instantiate-temporaries.cpp index 29cfc07e92d..c08ea781b8c 100644 --- a/clang/test/CodeGenCXX/instantiate-temporaries.cpp +++ b/clang/test/CodeGenCXX/instantiate-temporaries.cpp @@ -18,7 +18,7 @@ void call() { Y().get(); } -// CHECK: define weak_odr void @_Z4callIiEvv +// CHECK-LABEL: define weak_odr void @_Z4callIiEvv // CHECK: call void @_ZN1Y3getEv // CHECK-NEXT: call void @_ZN1XD1Ev // CHECK-NEXT: ret void @@ -29,7 +29,7 @@ void compound_literal() { (X2){}; } -// CHECK: define weak_odr void @_Z16compound_literalIiEvv +// CHECK-LABEL: define weak_odr void @_Z16compound_literalIiEvv // CHECK: call void @_ZN1XC1Ev // CHECK-NEXT: call void @_ZN2X2D1Ev // CHECK-NEXT: ret void diff --git a/clang/test/CodeGenCXX/lambda-expressions.cpp b/clang/test/CodeGenCXX/lambda-expressions.cpp index 68ae68fadbb..2f9a4f2d4f5 100644 --- a/clang/test/CodeGenCXX/lambda-expressions.cpp +++ b/clang/test/CodeGenCXX/lambda-expressions.cpp @@ -11,27 +11,27 @@ void *use = &used; extern "C" auto cvar = []{}; int a() { return []{ return 1; }(); } -// CHECK: define i32 @_Z1av +// CHECK-LABEL: define i32 @_Z1av // CHECK: call i32 @"_ZZ1avENK3$_0clEv" -// CHECK: define internal i32 @"_ZZ1avENK3$_0clEv" +// CHECK-LABEL: define internal i32 @"_ZZ1avENK3$_0clEv" // CHECK: ret i32 1 int b(int x) { return [x]{return x;}(); } -// CHECK: define i32 @_Z1bi +// CHECK-LABEL: define i32 @_Z1bi // CHECK: store i32 // CHECK: load i32* // CHECK: store i32 // CHECK: call i32 @"_ZZ1biENK3$_1clEv" -// CHECK: define internal i32 @"_ZZ1biENK3$_1clEv" +// CHECK-LABEL: define internal i32 @"_ZZ1biENK3$_1clEv" // CHECK: load i32* // CHECK: ret i32 int c(int x) { return [&x]{return x;}(); } -// CHECK: define i32 @_Z1ci +// CHECK-LABEL: define i32 @_Z1ci // CHECK: store i32 // CHECK: store i32* // CHECK: call i32 @"_ZZ1ciENK3$_2clEv" -// CHECK: define internal i32 @"_ZZ1ciENK3$_2clEv" +// CHECK-LABEL: define internal i32 @"_ZZ1ciENK3$_2clEv" // CHECK: load i32** // CHECK: load i32* // CHECK: ret i32 @@ -39,32 +39,32 @@ int c(int x) { return [&x]{return x;}(); } struct D { D(); D(const D&); int x; }; int d(int x) { D y[10]; [x,y] { return y[x].x; }(); } -// CHECK: define i32 @_Z1di +// CHECK-LABEL: define i32 @_Z1di // CHECK: call void @_ZN1DC1Ev // CHECK: icmp ult i64 %{{.*}}, 10 // CHECK: call void @_ZN1DC1ERKS_ // CHECK: call i32 @"_ZZ1diENK3$_3clEv" -// CHECK: define internal i32 @"_ZZ1diENK3$_3clEv" +// CHECK-LABEL: define internal i32 @"_ZZ1diENK3$_3clEv" // CHECK: load i32* // CHECK: load i32* // CHECK: ret i32 struct E { E(); E(const E&); ~E(); int x; }; int e(E a, E b, bool cond) { [a,b,cond](){ return (cond ? a : b).x; }(); } -// CHECK: define i32 @_Z1e1ES_b +// CHECK-LABEL: define i32 @_Z1e1ES_b // CHECK: call void @_ZN1EC1ERKS_ // CHECK: invoke void @_ZN1EC1ERKS_ // CHECK: invoke i32 @"_ZZ1e1ES_bENK3$_4clEv" // CHECK: call void @"_ZZ1e1ES_bEN3$_4D1Ev" // CHECK: call void @"_ZZ1e1ES_bEN3$_4D1Ev" -// CHECK: define internal i32 @"_ZZ1e1ES_bENK3$_4clEv" +// CHECK-LABEL: define internal i32 @"_ZZ1e1ES_bENK3$_4clEv" // CHECK: trunc i8 // CHECK: load i32* // CHECK: ret i32 void f() { - // CHECK: define void @_Z1fv() + // CHECK-LABEL: define void @_Z1fv() // CHECK: @"_ZZ1fvENK3$_5cvPFiiiEEv" // CHECK-NEXT: store i32 (i32, i32)* // CHECK-NEXT: ret void @@ -74,7 +74,7 @@ void f() { static int k; int g() { int &r = k; - // CHECK: define internal i32 @"_ZZ1gvENK3$_6clEv"( + // CHECK-LABEL: define internal i32 @"_ZZ1gvENK3$_6clEv"( // CHECK-NOT: } // CHECK: load i32* @_ZL1k, return [] { return r; } (); @@ -100,7 +100,7 @@ void h() { A (*h)() = [] { return A(); }; } -// CHECK: define internal i32 @"_ZZ1fvEN3$_58__invokeEii" +// CHECK-LABEL: define internal i32 @"_ZZ1fvEN3$_58__invokeEii" // CHECK: store i32 // CHECK-NEXT: store i32 // CHECK-NEXT: load i32* @@ -108,7 +108,7 @@ void h() { // CHECK-NEXT: call i32 @"_ZZ1fvENK3$_5clEii" // CHECK-NEXT: ret i32 -// CHECK: define internal void @"_ZZ1e1ES_bEN3$_4D2Ev" +// CHECK-LABEL: define internal void @"_ZZ1e1ES_bEN3$_4D2Ev" // <rdar://problem/12778708> struct XXX {}; diff --git a/clang/test/CodeGenCXX/linkage.cpp b/clang/test/CodeGenCXX/linkage.cpp index cc4e0909c21..19f1b20773c 100644 --- a/clang/test/CodeGenCXX/linkage.cpp +++ b/clang/test/CodeGenCXX/linkage.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -std=c++11 -O1 -disable-llvm-optzns %s -o - | FileCheck %s namespace test1 { - // CHECK-DAG: define linkonce_odr void @_ZN5test11fIZNS_1gEvE1SEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test11fIZNS_1gEvE1SEEvT_( template <typename T> void f(T) {} inline void *g() { struct S { @@ -12,7 +12,7 @@ namespace test1 { } namespace test2 { - // CHECK-DAG: define internal void @_ZN5test21fIZNS_L1gEvE1SEEvT_( + // CHECK-DAG-LABEL: define internal void @_ZN5test21fIZNS_L1gEvE1SEEvT_( template <typename T> void f(T) {} static inline void *g() { struct S { @@ -23,7 +23,7 @@ namespace test2 { } namespace test3 { - // CHECK-DAG: define internal void @_ZN5test31fIZNS_1gEvE1SEEvT_( + // CHECK-DAG-LABEL: define internal void @_ZN5test31fIZNS_1gEvE1SEEvT_( template <typename T> void f(T) {} void *g() { struct S { @@ -34,7 +34,7 @@ namespace test3 { } namespace test4 { - // CHECK-DAG: define linkonce_odr void @_ZN5test41fIZNS_1gILi1EEEPvvE1SEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test41fIZNS_1gILi1EEEPvvE1SEEvT_( template <typename T> void f(T) {} template <int N> inline void *g() { struct S { @@ -46,7 +46,7 @@ namespace test4 { } namespace test5 { - // CHECK-DAG: define linkonce_odr void @_ZN5test51fIZNS_1gILi1EEEPvvE1SEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test51fIZNS_1gILi1EEEPvvE1SEEvT_( template <typename T> void f(T) {} template <int N> inline void *g() { struct S { @@ -58,7 +58,7 @@ namespace test5 { } namespace test6 { - // CHECK-DAG: define linkonce_odr void @_ZN5test61fIZZNS_1gEvEN1S1hEvE1TEEvv( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test61fIZZNS_1gEvEN1S1hEvE1TEEvv( template <typename T> void f() {} inline void *g() { @@ -76,7 +76,7 @@ namespace test6 { } namespace test7 { - // CHECK-DAG: define internal void @_ZN5test71fIZZNS_1gEvEN1S1hEvE1TEEvv( + // CHECK-DAG-LABEL: define internal void @_ZN5test71fIZZNS_1gEvEN1S1hEvE1TEEvv( template <typename T> void f() {} void *g() { @@ -94,7 +94,7 @@ namespace test7 { } namespace test8 { - // CHECK-DAG: define linkonce_odr void @_ZN5test81fIZNS_1gEvE1SEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test81fIZNS_1gEvE1SEEvT_( template <typename T> void f(T) {} inline void *g() { enum S { @@ -105,7 +105,7 @@ namespace test8 { } namespace test9 { - // CHECK-DAG: define linkonce_odr void @_ZN5test91fIPZNS_1gEvE1SEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN5test91fIPZNS_1gEvE1SEEvT_( template <typename T> void f(T) {} inline void *g() { struct S { @@ -116,7 +116,7 @@ namespace test9 { } namespace test10 { - // CHECK-DAG: define linkonce_odr void @_ZN6test101fIPFZNS_1gEvE1SvEEEvT_( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN6test101fIPFZNS_1gEvE1SvEEEvT_( template <typename T> void f(T) {} inline void *g() { struct S { @@ -128,7 +128,7 @@ namespace test10 { } namespace test11 { - // CHECK-DAG: define internal void @_ZN6test111fIPFZNS_1gEvE1SPNS_12_GLOBAL__N_11IEEEEvT_( + // CHECK-DAG-LABEL: define internal void @_ZN6test111fIPFZNS_1gEvE1SPNS_12_GLOBAL__N_11IEEEEvT_( namespace { struct I { }; @@ -145,7 +145,7 @@ namespace test11 { } namespace test12 { - // CHECK-DAG: define linkonce_odr void @_ZN6test123fooIZNS_3barIZNS_3zedEvE2S2EEPvvE2S1EEvv + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN6test123fooIZNS_3barIZNS_3zedEvE2S2EEPvvE2S1EEvv template <typename T> void foo() {} template <typename T> inline void *bar() { enum S1 { @@ -161,7 +161,7 @@ namespace test12 { } namespace test13 { - // CHECK-DAG: define linkonce_odr void @_ZZN6test133fooEvEN1S3barEv( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZZN6test133fooEvEN1S3barEv( inline void *foo() { struct S { static void bar() {} @@ -172,7 +172,7 @@ namespace test13 { } namespace test14 { - // CHECK-DAG: define linkonce_odr void @_ZN6test143fooIZNS_1fEvE1SE3barILPS1_0EEEvv( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN6test143fooIZNS_1fEvE1SE3barILPS1_0EEEvv( template <typename T> struct foo { template <T *P> static void bar() {} static void *g() { return (void *)bar<nullptr>; } @@ -186,7 +186,7 @@ namespace test14 { } namespace test15 { - // CHECK-DAG: define linkonce_odr void @_ZN6test153zedIZNS_3fooIiEEPvvE3barEEvv( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN6test153zedIZNS_3fooIiEEPvvE3barEEvv( template <class T> void zed() {} template <class T> void *foo() { class bar { @@ -197,7 +197,7 @@ namespace test15 { } namespace test16 { - // CHECK-DAG: define linkonce_odr void @_ZN6test163zedIZNS_3fooIiE3barEvE1SEEvv( + // CHECK-DAG-LABEL: define linkonce_odr void @_ZN6test163zedIZNS_3fooIiE3barEvE1SEEvv( template <class T> void zed() {} template <class T> struct foo { static void *bar(); @@ -212,7 +212,7 @@ namespace test16 { namespace test17 { // CHECK-DAG: @_ZZN6test173fooILi42EEEPivE3bar = linkonce_odr - // CHECK-DAG: define weak_odr i32* @_ZN6test173fooILi42EEEPiv( + // CHECK-DAG-LABEL: define weak_odr i32* @_ZN6test173fooILi42EEEPiv( template<int I> int *foo() { static int bar; diff --git a/clang/test/CodeGenCXX/lvalue-bitcasts.cpp b/clang/test/CodeGenCXX/lvalue-bitcasts.cpp index 8c5fa4ad44b..86355b27abb 100644 --- a/clang/test/CodeGenCXX/lvalue-bitcasts.cpp +++ b/clang/test/CodeGenCXX/lvalue-bitcasts.cpp @@ -3,7 +3,7 @@ struct X { int i; float f; }; struct Y { X x; }; -// CHECK: define void @_Z21reinterpret_cast_testRiRfR1X +// CHECK-LABEL: define void @_Z21reinterpret_cast_testRiRfR1X void reinterpret_cast_test(int &ir, float &fr, X &xr) { // CHECK: load float** // CHECK: bitcast float* @@ -48,7 +48,7 @@ void reinterpret_cast_test(int &ir, float &fr, X &xr) { // CHECK: ret void } -// CHECK: define void @_Z6c_castRiRfR1X +// CHECK-LABEL: define void @_Z6c_castRiRfR1X void c_cast(int &ir, float &fr, X &xr) { // CHECK: load float** // CHECK: bitcast float* @@ -93,7 +93,7 @@ void c_cast(int &ir, float &fr, X &xr) { // CHECK: ret void } -// CHECK: define void @_Z15functional_castRiRfR1X +// CHECK-LABEL: define void @_Z15functional_castRiRfR1X void functional_cast(int &ir, float &fr, X &xr) { typedef int &intref; typedef float &floatref; diff --git a/clang/test/CodeGenCXX/mangle-98.cpp b/clang/test/CodeGenCXX/mangle-98.cpp index a9ab6ca4237..a329caf1d29 100644 --- a/clang/test/CodeGenCXX/mangle-98.cpp +++ b/clang/test/CodeGenCXX/mangle-98.cpp @@ -2,11 +2,11 @@ template <bool B> struct S3 {}; -// CHECK: define void @_Z1f2S3ILb1EE +// CHECK-LABEL: define void @_Z1f2S3ILb1EE void f(S3<true>) {} -// CHECK: define void @_Z1f2S3ILb0EE +// CHECK-LABEL: define void @_Z1f2S3ILb0EE void f(S3<false>) {} -// CHECK: define void @_Z2f22S3ILb1EE +// CHECK-LABEL: define void @_Z2f22S3ILb1EE void f2(S3<100>) {} diff --git a/clang/test/CodeGenCXX/mangle-address-space.cpp b/clang/test/CodeGenCXX/mangle-address-space.cpp index ff23c206911..4a4a1f3f56e 100644 --- a/clang/test/CodeGenCXX/mangle-address-space.cpp +++ b/clang/test/CodeGenCXX/mangle-address-space.cpp @@ -1,12 +1,12 @@ // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s -// CHECK: define void @_Z2f0Pc +// CHECK-LABEL: define void @_Z2f0Pc void f0(char *p) { } -// CHECK: define void @_Z2f0PU3AS1c +// CHECK-LABEL: define void @_Z2f0PU3AS1c void f0(char __attribute__((address_space(1))) *p) { } struct OpaqueType; typedef OpaqueType __attribute__((address_space(100))) * OpaqueTypePtr; -// CHECK: define void @_Z2f0PU5AS10010OpaqueType +// CHECK-LABEL: define void @_Z2f0PU5AS10010OpaqueType void f0(OpaqueTypePtr) { } diff --git a/clang/test/CodeGenCXX/mangle-alias-template.cpp b/clang/test/CodeGenCXX/mangle-alias-template.cpp index 5ace0b01cc2..b6719c54523 100644 --- a/clang/test/CodeGenCXX/mangle-alias-template.cpp +++ b/clang/test/CodeGenCXX/mangle-alias-template.cpp @@ -15,7 +15,7 @@ template<typename,typename,typename> struct S {}; template<typename T, typename U> using U = S<T, int, U>; template<typename...Ts> void h(U<Ts...>, Ts...); -// CHECK: define void @_Z1zv( +// CHECK-LABEL: define void @_Z1zv( void z() { vector<int> VI; f(VI); diff --git a/clang/test/CodeGenCXX/mangle-exprs.cpp b/clang/test/CodeGenCXX/mangle-exprs.cpp index 2d7a883526d..e935f51a46b 100644 --- a/clang/test/CodeGenCXX/mangle-exprs.cpp +++ b/clang/test/CodeGenCXX/mangle-exprs.cpp @@ -70,22 +70,22 @@ namespace Casts { template <int N> T<N> f() { return T<N>(); } - // CHECK: define weak_odr void @_ZN5Casts8implicitILj4EEEvPN9enable_ifIXleT_Li4EEvE4typeE + // CHECK-LABEL: define weak_odr void @_ZN5Casts8implicitILj4EEEvPN9enable_ifIXleT_Li4EEvE4typeE template void implicit<4>(void*); - // CHECK: define weak_odr void @_ZN5Casts6cstyleILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE + // CHECK-LABEL: define weak_odr void @_ZN5Casts6cstyleILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE template void cstyle<4>(void*); - // CHECK: define weak_odr void @_ZN5Casts10functionalILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE + // CHECK-LABEL: define weak_odr void @_ZN5Casts10functionalILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE template void functional<4>(void*); - // CHECK: define weak_odr void @_ZN5Casts7static_ILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE + // CHECK-LABEL: define weak_odr void @_ZN5Casts7static_ILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE template void static_<4>(void*); - // CHECK: define weak_odr void @_ZN5Casts1fILi6EEENS_1TIXT_EEEv + // CHECK-LABEL: define weak_odr void @_ZN5Casts1fILi6EEENS_1TIXT_EEEv template T<6> f<6>(); - // CHECK: define weak_odr void @_ZN5Casts5auto_IiEEvDTnw_DapicvT__EEE( + // CHECK-LABEL: define weak_odr void @_ZN5Casts5auto_IiEEvDTnw_DapicvT__EEE( template void auto_<int>(int*); - // CHECK: define weak_odr void @_ZN5Casts7scalar_IiEEvDTcmcvT__Ecvi_EE( + // CHECK-LABEL: define weak_odr void @_ZN5Casts7scalar_IiEEvDTcmcvT__Ecvi_EE( template void scalar_<int>(int); } @@ -93,10 +93,10 @@ namespace test1 { short foo(short); int foo(int); - // CHECK: define linkonce_odr signext i16 @_ZN5test11aIsEEDTcl3foocvT__EEES1_( + // CHECK-LABEL: define linkonce_odr signext i16 @_ZN5test11aIsEEDTcl3foocvT__EEES1_( template <class T> auto a(T t) -> decltype(foo(T())) { return foo(t); } - // CHECK: define linkonce_odr signext i16 @_ZN5test11bIsEEDTcp3foocvT__EEES1_( + // CHECK-LABEL: define linkonce_odr signext i16 @_ZN5test11bIsEEDTcp3foocvT__EEES1_( template <class T> auto b(T t) -> decltype((foo)(T())) { return (foo)(t); } void test(short s) { @@ -124,7 +124,7 @@ namespace test2 { float baz(float(*)()); void fred(float(*)(), float); - // CHECK: define void @_ZN5test211instantiateEv + // CHECK-LABEL: define void @_ZN5test211instantiateEv void instantiate() { // CHECK: call void @_ZN5test21aIPFfvEEEvT_DTclfL0p_EE( a(foo, 0.0f); @@ -156,7 +156,7 @@ namespace test3 { int *member; }; - // CHECK: define void @_ZN5test311instantiateEv + // CHECK-LABEL: define void @_ZN5test311instantiateEv void instantiate() { X x; int *ip; diff --git a/clang/test/CodeGenCXX/mangle-extreme.cpp b/clang/test/CodeGenCXX/mangle-extreme.cpp index ef2d466e416..9fa678a6f7d 100644 --- a/clang/test/CodeGenCXX/mangle-extreme.cpp +++ b/clang/test/CodeGenCXX/mangle-extreme.cpp @@ -2,7 +2,7 @@ struct X { }; -// CHECK: define void @_Z1fPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP1XS13_S12_S11_S10_SZ_SY_SX_SW_SV_SU_ST_SS_SR_SQ_SP_SO_SN_SM_SL_SK_SJ_SI_SH_SG_SF_SE_SD_SC_SB_SA_S9_S8_S7_S6_S5_S4_S3_S2_S1_S0_S_( +// CHECK-LABEL: define void @_Z1fPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP1XS13_S12_S11_S10_SZ_SY_SX_SW_SV_SU_ST_SS_SR_SQ_SP_SO_SN_SM_SL_SK_SJ_SI_SH_SG_SF_SE_SD_SC_SB_SA_S9_S8_S7_S6_S5_S4_S3_S2_S1_S0_S_( void f(X****************************************, X****************************************, X***************************************, diff --git a/clang/test/CodeGenCXX/mangle-lambdas.cpp b/clang/test/CodeGenCXX/mangle-lambdas.cpp index d618782c3c0..659b437a0ef 100644 --- a/clang/test/CodeGenCXX/mangle-lambdas.cpp +++ b/clang/test/CodeGenCXX/mangle-lambdas.cpp @@ -5,7 +5,7 @@ // CHECK: @_ZZZN7PR12917IJicdEEC1EicdEd0_NKUlvE_clEvE1n = linkonce_odr global i32 0 // CHECK: @_ZZZN7PR12917IJicdEEC1EicdEd1_NKUlvE_clEvE1n = linkonce_odr global i32 0 -// CHECK: define linkonce_odr void @_Z11inline_funci +// CHECK-LABEL: define linkonce_odr void @_Z11inline_funci inline void inline_func(int n) { // CHECK: call i32 @_ZZ11inline_funciENKUlvE_clEv int i = []{ return 1; }(); @@ -41,7 +41,7 @@ struct S { void S::g(int i = []{return 1;}(), int j = []{return 2; }()) {} -// CHECK: define void @_Z6test_S1S +// CHECK-LABEL: define void @_Z6test_S1S void test_S(S s) { // CHECK: call i32 @_ZZN1S1fEiiEd0_NKUlvE_clEv // CHECK-NEXT: call i32 @_ZZN1S1fEiiEd0_NKUlvE0_clEv @@ -63,15 +63,15 @@ void test_S(S s) { } // Check the linkage of the lambda call operators used in test_S. -// CHECK: define linkonce_odr i32 @_ZZN1S1fEiiEd0_NKUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZN1S1fEiiEd0_NKUlvE_clEv // CHECK: ret i32 1 -// CHECK: define linkonce_odr i32 @_ZZN1S1fEiiEd0_NKUlvE0_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZN1S1fEiiEd0_NKUlvE0_clEv // CHECK: ret i32 2 -// CHECK: define linkonce_odr i32 @_ZZN1S1fEiiEd_NKUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZN1S1fEiiEd_NKUlvE_clEv // CHECK: ret i32 3 -// CHECK: define internal i32 @"_ZNK1S3$_0clEv" +// CHECK-LABEL: define internal i32 @"_ZNK1S3$_0clEv" // CHECK: ret i32 1 -// CHECK: define internal i32 @"_ZNK1S3$_1clEv" +// CHECK-LABEL: define internal i32 @"_ZNK1S3$_1clEv" // CHECK: ret i32 2 template<typename T> @@ -81,7 +81,7 @@ struct ST { T = []{return T(3);}()); }; -// CHECK: define void @_Z7test_ST2STIdE +// CHECK-LABEL: define void @_Z7test_ST2STIdE void test_ST(ST<double> st) { // CHECK: call double @_ZZN2STIdE1fEddEd0_NKUlvE_clEv // CHECK-NEXT: call double @_ZZN2STIdE1fEddEd0_NKUlvE0_clEv @@ -94,11 +94,11 @@ void test_ST(ST<double> st) { } // Check the linkage of the lambda call operators used in test_ST. -// CHECK: define linkonce_odr double @_ZZN2STIdE1fEddEd0_NKUlvE_clEv +// CHECK-LABEL: define linkonce_odr double @_ZZN2STIdE1fEddEd0_NKUlvE_clEv // CHECK: ret double 1 -// CHECK: define linkonce_odr double @_ZZN2STIdE1fEddEd0_NKUlvE0_clEv +// CHECK-LABEL: define linkonce_odr double @_ZZN2STIdE1fEddEd0_NKUlvE0_clEv // CHECK: ret double 2 -// CHECK: define linkonce_odr double @_ZZN2STIdE1fEddEd_NKUlvE_clEv +// CHECK-LABEL: define linkonce_odr double @_ZZN2STIdE1fEddEd_NKUlvE_clEv // CHECK: ret double 3 template<typename T> @@ -123,42 +123,42 @@ T StaticMembers<T>::z = accept_lambda([]{return 4;}); template<typename T> int (*StaticMembers<T>::f)() = []{return 5;}; -// CHECK: define internal void @__cxx_global_var_init() +// CHECK-LABEL: define internal void @__cxx_global_var_init() // CHECK: call i32 @_ZNK13StaticMembersIfE1xMUlvE_clEv // CHECK-NEXT: call i32 @_ZNK13StaticMembersIfE1xMUlvE0_clEv // CHECK-NEXT: add nsw -// CHECK: define linkonce_odr i32 @_ZNK13StaticMembersIfE1xMUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK13StaticMembersIfE1xMUlvE_clEv // CHECK: ret i32 1 -// CHECK: define linkonce_odr i32 @_ZNK13StaticMembersIfE1xMUlvE0_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK13StaticMembersIfE1xMUlvE0_clEv // CHECK: ret i32 2 template float StaticMembers<float>::x; -// CHECK: define internal void @__cxx_global_var_init1() +// CHECK-LABEL: define internal void @__cxx_global_var_init1() // CHECK: call i32 @_ZNK13StaticMembersIfE1yMUlvE_clEv -// CHECK: define linkonce_odr i32 @_ZNK13StaticMembersIfE1yMUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK13StaticMembersIfE1yMUlvE_clEv // CHECK: ret i32 3 template float StaticMembers<float>::y; -// CHECK: define internal void @__cxx_global_var_init2() +// CHECK-LABEL: define internal void @__cxx_global_var_init2() // CHECK: call i32 @_Z13accept_lambdaIN13StaticMembersIfE1zMUlvE_EEiT_ // CHECK: declare i32 @_Z13accept_lambdaIN13StaticMembersIfE1zMUlvE_EEiT_() template float StaticMembers<float>::z; -// CHECK: define internal void @__cxx_global_var_init3() +// CHECK-LABEL: define internal void @__cxx_global_var_init3() // CHECK: call {{.*}} @_ZNK13StaticMembersIfE1fMUlvE_cvPFivEEv -// CHECK: define linkonce_odr i32 ()* @_ZNK13StaticMembersIfE1fMUlvE_cvPFivEEv +// CHECK-LABEL: define linkonce_odr i32 ()* @_ZNK13StaticMembersIfE1fMUlvE_cvPFivEEv template int (*StaticMembers<float>::f)(); -// CHECK: define internal void @__cxx_global_var_init4 +// CHECK-LABEL: define internal void @__cxx_global_var_init4 // CHECK: call i32 @"_ZNK13StaticMembersIdE3$_2clEv" -// CHECK: define internal i32 @"_ZNK13StaticMembersIdE3$_2clEv" +// CHECK-LABEL: define internal i32 @"_ZNK13StaticMembersIdE3$_2clEv" // CHECK: ret i32 42 template<> double StaticMembers<double>::z = []{return 42; }(); template<typename T> void func_template(T = []{ return T(); }()); -// CHECK: define void @_Z17use_func_templatev() +// CHECK-LABEL: define void @_Z17use_func_templatev() void use_func_template() { // CHECK: call i32 @"_ZZ13func_templateIiEvT_ENK3$_3clEv" func_template<int>(); @@ -192,7 +192,7 @@ namespace PR12123 { }; void B::h() { f(); } } -// CHECK: define linkonce_odr %"struct.PR12123::A"* @_ZZN7PR121231B1fERKSt9type_infoEd_NKUlvE_clEv +// CHECK-LABEL: define linkonce_odr %"struct.PR12123::A"* @_ZZN7PR121231B1fERKSt9type_infoEd_NKUlvE_clEv namespace PR12808 { template <typename> struct B { @@ -205,11 +205,11 @@ namespace PR12808 { void f() { b<int>(1); } - // CHECK: define linkonce_odr void @_ZZN7PR128081bIiEEviENKUlvE_clEv - // CHECK: define linkonce_odr i32 @_ZZZN7PR128081bIiEEviENKUlvE_clEvENKUlvE_clEv + // CHECK-LABEL: define linkonce_odr void @_ZZN7PR128081bIiEEviENKUlvE_clEv + // CHECK-LABEL: define linkonce_odr i32 @_ZZZN7PR128081bIiEEviENKUlvE_clEvENKUlvE_clEv } -// CHECK: define linkonce_odr void @_Z1fIZZNK23TestNestedInstantiationclEvENKUlvE_clEvEUlvE_EvT_ +// CHECK-LABEL: define linkonce_odr void @_Z1fIZZNK23TestNestedInstantiationclEvENKUlvE_clEvEUlvE_EvT_ struct Members { int x = [] { return 1; }() + [] { return 2; }(); @@ -217,7 +217,7 @@ struct Members { }; void test_Members() { - // CHECK: define linkonce_odr void @_ZN7MembersC2Ev + // CHECK-LABEL: define linkonce_odr void @_ZN7MembersC2Ev // CHECK: call i32 @_ZNK7Members1xMUlvE_clEv // CHECK-NEXT: call i32 @_ZNK7Members1xMUlvE0_clE // CHECK-NEXT: add nsw i32 @@ -241,21 +241,21 @@ void test_NestedInstantiation() { } // Check the linkage of the lambdas used in test_Members. -// CHECK: define linkonce_odr i32 @_ZNK7Members1xMUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK7Members1xMUlvE_clEv // CHECK: ret i32 1 -// CHECK: define linkonce_odr i32 @_ZNK7Members1xMUlvE0_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK7Members1xMUlvE0_clEv // CHECK: ret i32 2 -// CHECK: define linkonce_odr i32 @_ZNK7Members1yMUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZNK7Members1yMUlvE_clEv // CHECK: ret i32 3 // Check linkage of the various lambdas. -// CHECK: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE_clEv // CHECK: ret i32 1 -// CHECK: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE0_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE0_clEv // CHECK: ret i32 -// CHECK: define linkonce_odr double @_ZZ11inline_funciENKUlvE1_clEv +// CHECK-LABEL: define linkonce_odr double @_ZZ11inline_funciENKUlvE1_clEv // CHECK: ret double -// CHECK: define linkonce_odr i32 @_ZZ11inline_funciENKUliE_clEi +// CHECK-LABEL: define linkonce_odr i32 @_ZZ11inline_funciENKUliE_clEi // CHECK: ret i32 -// CHECK: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE2_clEv +// CHECK-LABEL: define linkonce_odr i32 @_ZZ11inline_funciENKUlvE2_clEv // CHECK: ret i32 17 diff --git a/clang/test/CodeGenCXX/mangle-nullptr-arg.cpp b/clang/test/CodeGenCXX/mangle-nullptr-arg.cpp index 07bf52fc906..b55ea6dd2dd 100644 --- a/clang/test/CodeGenCXX/mangle-nullptr-arg.cpp +++ b/clang/test/CodeGenCXX/mangle-nullptr-arg.cpp @@ -2,15 +2,15 @@ template<int *ip> struct IP {}; -// CHECK: define void @_Z5test12IPILPi0EE +// CHECK-LABEL: define void @_Z5test12IPILPi0EE void test1(IP<nullptr>) {} struct X{ }; template<int X::*pm> struct PM {}; -// CHECK: define void @_Z5test22PMILM1Xi0EE +// CHECK-LABEL: define void @_Z5test22PMILM1Xi0EE void test2(PM<nullptr>) { } -// CHECK: define void @_Z5test316DependentTypePtrIPiLS0_0EE +// CHECK-LABEL: define void @_Z5test316DependentTypePtrIPiLS0_0EE template<typename T, T x> struct DependentTypePtr {}; void test3(DependentTypePtr<int*,nullptr>) { } diff --git a/clang/test/CodeGenCXX/mangle-ref-qualifiers.cpp b/clang/test/CodeGenCXX/mangle-ref-qualifiers.cpp index ce2af502e48..4552c93ea68 100644 --- a/clang/test/CodeGenCXX/mangle-ref-qualifiers.cpp +++ b/clang/test/CodeGenCXX/mangle-ref-qualifiers.cpp @@ -5,17 +5,17 @@ struct X { int h() const &&; }; -// CHECK: define i32 @_ZNR1X1fEv +// CHECK-LABEL: define i32 @_ZNR1X1fEv int X::f() & { return 0; } -// CHECK: define i32 @_ZNO1X1gEv +// CHECK-LABEL: define i32 @_ZNO1X1gEv int X::g() && { return 0; } -// CHECK: define i32 @_ZNKO1X1hEv +// CHECK-LABEL: define i32 @_ZNKO1X1hEv int X::h() const && { return 0; } -// CHECK: define void @_Z1fM1XFivREMS_FivOEMS_KFivOE +// CHECK-LABEL: define void @_Z1fM1XFivREMS_FivOEMS_KFivOE void f(int (X::*)() &, int (X::*)() &&, int (X::*)() const&&) { } -// CHECK: define void @_Z1g1AIFivEES_IFivREES_IFivOEES_IKFivEES_IKFivREES_IKFivOEES_IVKFivEES_IVKFivREES_IVKFivOEE() +// CHECK-LABEL: define void @_Z1g1AIFivEES_IFivREES_IFivOEES_IKFivEES_IKFivREES_IKFivOEES_IVKFivEES_IVKFivREES_IVKFivOEE() template <class T> struct A {}; void g(A<int()>, A<int()&>, A<int()&&>, A<int() const>, A<int() const &>, A<int() const &&>, diff --git a/clang/test/CodeGenCXX/mangle-subst-std.cpp b/clang/test/CodeGenCXX/mangle-subst-std.cpp index 04e3e84304e..6277c7af21c 100644 --- a/clang/test/CodeGenCXX/mangle-subst-std.cpp +++ b/clang/test/CodeGenCXX/mangle-subst-std.cpp @@ -15,8 +15,8 @@ namespace std { struct A { A(); }; - // CHECK: define void @_ZNSt1AC1Ev(%"struct.std::A"* %this) unnamed_addr - // CHECK: define void @_ZNSt1AC2Ev(%"struct.std::A"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZNSt1AC1Ev(%"struct.std::A"* %this) unnamed_addr + // CHECK-LABEL: define void @_ZNSt1AC2Ev(%"struct.std::A"* %this) unnamed_addr A::A() { } }; @@ -24,14 +24,14 @@ namespace std { template<typename> struct allocator { }; } -// CHECK: define void @_Z1fSaIcESaIiE +// CHECK-LABEL: define void @_Z1fSaIcESaIiE void f(std::allocator<char>, std::allocator<int>) { } namespace std { template<typename, typename, typename> struct basic_string { }; } -// CHECK: define void @_Z1fSbIcciE +// CHECK-LABEL: define void @_Z1fSbIcciE void f(std::basic_string<char, char, int>) { } namespace std { @@ -90,7 +90,7 @@ namespace std } // Make sure we don't treat the following like std::string -// CHECK: define void @_Z1f12basic_stringIcSt11char_traitsIcESaIcEE +// CHECK-LABEL: define void @_Z1f12basic_stringIcSt11char_traitsIcESaIcEE template<typename, typename, typename> struct basic_string { }; typedef basic_string<char, std::char_traits<char>, std::allocator<char> > not_string; void f(not_string) { } @@ -106,7 +106,7 @@ namespace N { namespace std { struct A { void f(); }; - // CHECK: define void @_ZN1N3std1A1fEv + // CHECK-LABEL: define void @_ZN1N3std1A1fEv void A::f() { } } } diff --git a/clang/test/CodeGenCXX/mangle-subst.cpp b/clang/test/CodeGenCXX/mangle-subst.cpp index d83a081dd76..30360aeae31 100644 --- a/clang/test/CodeGenCXX/mangle-subst.cpp +++ b/clang/test/CodeGenCXX/mangle-subst.cpp @@ -2,19 +2,19 @@ struct X {}; -// CHECK: define void @_Z1f1XS_( +// CHECK-LABEL: define void @_Z1f1XS_( void f(X, X) { } -// CHECK: define void @_Z1fR1XS0_( +// CHECK-LABEL: define void @_Z1fR1XS0_( void f(X&, X&) { } -// CHECK: define void @_Z1fRK1XS1_( +// CHECK-LABEL: define void @_Z1fRK1XS1_( void f(const X&, const X&) { } typedef void T(); struct S {}; -// CHECK: define void @_Z1fPFvvEM1SFvvE( +// CHECK-LABEL: define void @_Z1fPFvvEM1SFvvE( void f(T*, T (S::*)) {} namespace A { @@ -22,14 +22,14 @@ namespace A { struct B { }; }; -// CHECK: define void @_Z1fN1A1AENS_1BE( +// CHECK-LABEL: define void @_Z1fN1A1AENS_1BE( void f(A::A a, A::B b) { } struct C { struct D { }; }; -// CHECK: define void @_Z1fN1C1DERS_PS_S1_( +// CHECK-LABEL: define void @_Z1fN1C1DERS_PS_S1_( void f(C::D, C&, C*, C&) { } template<typename T> diff --git a/clang/test/CodeGenCXX/mangle-system-header.cpp b/clang/test/CodeGenCXX/mangle-system-header.cpp index 6716b58926d..3ab5f96f623 100644 --- a/clang/test/CodeGenCXX/mangle-system-header.cpp +++ b/clang/test/CodeGenCXX/mangle-system-header.cpp @@ -3,9 +3,9 @@ // PR5420 # 1 "fake_system_header.h" 1 3 4 -// CHECK: define void @_ZdlPvS_( +// CHECK-LABEL: define void @_ZdlPvS_( void operator delete (void*, void*) {} // PR6217 -// CHECK: define void @_Z3barv() +// CHECK-LABEL: define void @_Z3barv() void bar() { } diff --git a/clang/test/CodeGenCXX/mangle-template.cpp b/clang/test/CodeGenCXX/mangle-template.cpp index 03eae53ad02..3b7f3027f6c 100644 --- a/clang/test/CodeGenCXX/mangle-template.cpp +++ b/clang/test/CodeGenCXX/mangle-template.cpp @@ -101,7 +101,7 @@ namespace test8 { template<typename T> void f(int_c<meta<T>::type::value>) { } - // CHECK: define weak_odr void @_ZN5test81fIiEEvNS_5int_cIXsr4metaIT_E4typeE5valueEEE( + // CHECK-LABEL: define weak_odr void @_ZN5test81fIiEEvNS_5int_cIXsr4metaIT_E4typeE5valueEEE( template void f<int>(int_c<sizeof(int)>); } @@ -160,13 +160,13 @@ namespace test12 { const int n = 10; template<typename T, T v> void test() {} void use() { - // CHECK: define internal void @_ZN6test124testIFivEXadL_ZNS_L1fEvEEEEvv( + // CHECK-LABEL: define internal void @_ZN6test124testIFivEXadL_ZNS_L1fEvEEEEvv( test<int(), &f>(); - // CHECK: define internal void @_ZN6test124testIRFivELZNS_L1fEvEEEvv( + // CHECK-LABEL: define internal void @_ZN6test124testIRFivELZNS_L1fEvEEEvv( test<int(&)(), f>(); - // CHECK: define internal void @_ZN6test124testIPKiXadL_ZNS_L1nEEEEEvv( + // CHECK-LABEL: define internal void @_ZN6test124testIPKiXadL_ZNS_L1nEEEEEvv( test<const int*, &n>(); - // CHECK: define internal void @_ZN6test124testIRKiLZNS_L1nEEEEvv( + // CHECK-LABEL: define internal void @_ZN6test124testIRKiLZNS_L1nEEEEvv( test<const int&, n>(); } } diff --git a/clang/test/CodeGenCXX/mangle-unnamed.cpp b/clang/test/CodeGenCXX/mangle-unnamed.cpp index 53f381c3a01..a62bdd5393c 100644 --- a/clang/test/CodeGenCXX/mangle-unnamed.cpp +++ b/clang/test/CodeGenCXX/mangle-unnamed.cpp @@ -80,7 +80,7 @@ template <class T> struct Test8 { template <class T> void make_test8(T value) { Test8<T> t(value); } void test8() { make_test8(T8); } -// CHECK: define internal void @"_ZNV3$_35test9Ev"( +// CHECK-LABEL: define internal void @"_ZNV3$_35test9Ev"( typedef volatile struct { void test9() volatile {} } Test9; @@ -89,4 +89,4 @@ void test9() { a.test9(); } -// CHECK: define internal void @"_ZN5Test8I3$_2EC1ES0_"( +// CHECK-LABEL: define internal void @"_ZN5Test8I3$_2EC1ES0_"( diff --git a/clang/test/CodeGenCXX/mangle-variadic-templates.cpp b/clang/test/CodeGenCXX/mangle-variadic-templates.cpp index b5bdae23444..264cc113cd5 100644 --- a/clang/test/CodeGenCXX/mangle-variadic-templates.cpp +++ b/clang/test/CodeGenCXX/mangle-variadic-templates.cpp @@ -9,59 +9,59 @@ template<typename ...Types> struct tuple { }; template<int ...Values> struct int_tuple { }; template<template<typename> class ...Templates> struct template_tuple { }; -// CHECK: define weak_odr void @_Z2f0IJEEv1XIXsZT_EJDpRT_EE +// CHECK-LABEL: define weak_odr void @_Z2f0IJEEv1XIXsZT_EJDpRT_EE template<typename ...Types> void f0(X<sizeof...(Types), Types&...>) { } template void f0(X<0>); -// CHECK: define weak_odr void @_Z2f0IJifdEEv1XIXsZT_EJDpRT_EE +// CHECK-LABEL: define weak_odr void @_Z2f0IJifdEEv1XIXsZT_EJDpRT_EE template void f0<int, float, double>(X<3, int&, float&, double&>); // Mangling for template argument packs template<typename ...Types> void f1() {} -// CHECK: define weak_odr void @_Z2f1IJEEvv +// CHECK-LABEL: define weak_odr void @_Z2f1IJEEvv template void f1<>(); -// CHECK: define weak_odr void @_Z2f1IJiEEvv +// CHECK-LABEL: define weak_odr void @_Z2f1IJiEEvv template void f1<int>(); -// CHECK: define weak_odr void @_Z2f1IJifEEvv +// CHECK-LABEL: define weak_odr void @_Z2f1IJifEEvv template void f1<int, float>(); // Mangling function parameter packs template<typename ...Types> void f2(Types...) {} -// CHECK: define weak_odr void @_Z2f2IJEEvDpT_ +// CHECK-LABEL: define weak_odr void @_Z2f2IJEEvDpT_ template void f2<>(); -// CHECK: define weak_odr void @_Z2f2IJiEEvDpT_ +// CHECK-LABEL: define weak_odr void @_Z2f2IJiEEvDpT_ template void f2<int>(int); -// CHECK: define weak_odr void @_Z2f2IJifEEvDpT_ +// CHECK-LABEL: define weak_odr void @_Z2f2IJifEEvDpT_ template void f2<int, float>(int, float); // Mangling non-trivial function parameter packs template<typename ...Types> void f3(const Types *...) {} -// CHECK: define weak_odr void @_Z2f3IJEEvDpPKT_ +// CHECK-LABEL: define weak_odr void @_Z2f3IJEEvDpPKT_ template void f3<>(); -// CHECK: define weak_odr void @_Z2f3IJiEEvDpPKT_ +// CHECK-LABEL: define weak_odr void @_Z2f3IJiEEvDpPKT_ template void f3<int>(const int*); -// CHECK: define weak_odr void @_Z2f3IJifEEvDpPKT_ +// CHECK-LABEL: define weak_odr void @_Z2f3IJifEEvDpPKT_ template void f3<int, float>(const int*, const float*); // Mangling of type pack expansions in a template argument template<typename ...Types> tuple<Types...> f4() {} -// CHECK: define weak_odr void @_Z2f4IJifdEE5tupleIJDpT_EEv +// CHECK-LABEL: define weak_odr void @_Z2f4IJifdEE5tupleIJDpT_EEv template tuple<int, float, double> f4(); // Mangling of type pack expansions in a function type template<typename R, typename ...ArgTypes> identity<R(ArgTypes...)> f5() {} -// CHECK: define weak_odr void @_Z2f5IiJifdEE8identityIFT_DpT0_EEv +// CHECK-LABEL: define weak_odr void @_Z2f5IiJifdEE8identityIFT_DpT0_EEv template identity<int(int, float, double)> f5(); // Mangling of non-type template argument expansions template<int ...Values> int_tuple<Values...> f6() {} -// CHECK: define weak_odr void @_Z2f6IJLi1ELi2ELi3EEE9int_tupleIJXspT_EEEv +// CHECK-LABEL: define weak_odr void @_Z2f6IJLi1ELi2ELi3EEE9int_tupleIJXspT_EEEv template int_tuple<1, 2, 3> f6(); // Mangling of template template argument expansions template<template<typename> class ...Templates> template_tuple<Templates...> f7() {} -// CHECK: define weak_odr void @_Z2f7IJ8identity13add_referenceEE14template_tupleIJDpT_EEv +// CHECK-LABEL: define weak_odr void @_Z2f7IJ8identity13add_referenceEE14template_tupleIJDpT_EEv template template_tuple<identity, add_reference> f7(); diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 4b601229d34..a9daa0df619 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -11,35 +11,35 @@ struct Y { }; //CHECK: @pr5966_i = external global //CHECK: @_ZL8pr5966_i = internal global -// CHECK: define zeroext i1 @_ZplRK1YRA100_P1X +// CHECK-LABEL: define zeroext i1 @_ZplRK1YRA100_P1X bool operator+(const Y&, X* (&xs)[100]) { return false; } -// CHECK: define void @_Z1f1s +// CHECK-LABEL: define void @_Z1f1s typedef struct { int a; } s; void f(s) { } -// CHECK: define void @_Z1f1e +// CHECK-LABEL: define void @_Z1f1e typedef enum { foo } e; void f(e) { } -// CHECK: define void @_Z1f1u +// CHECK-LABEL: define void @_Z1f1u typedef union { int a; } u; void f(u) { } -// CHECK: define void @_Z1f1x +// CHECK-LABEL: define void @_Z1f1x typedef struct { int a; } x,y; void f(y) { } -// CHECK: define void @_Z1fv +// CHECK-LABEL: define void @_Z1fv void f() { } -// CHECK: define void @_ZN1N1fEv +// CHECK-LABEL: define void @_ZN1N1fEv namespace N { void f() { } } -// CHECK: define void @_ZN1N1N1fEv +// CHECK-LABEL: define void @_ZN1N1N1fEv namespace N { namespace N { void f() { } } } -// CHECK: define void @unmangled_function +// CHECK-LABEL: define void @unmangled_function extern "C" { namespace N { void unmangled_function() { } } } extern "C" { namespace N { int unmangled_variable = 10; } } @@ -50,41 +50,41 @@ namespace N { int f(int, int) { static int b; return b; } } namespace N { int h(); void g() { static int a = h(); } } -// CHECK: define void @_Z1fno +// CHECK-LABEL: define void @_Z1fno void f(__int128_t, __uint128_t) { } template <typename T> struct S1 {}; -// CHECK: define void @_Z1f2S1IiE +// CHECK-LABEL: define void @_Z1f2S1IiE void f(S1<int>) {} -// CHECK: define void @_Z1f2S1IdE +// CHECK-LABEL: define void @_Z1f2S1IdE void f(S1<double>) {} template <int N> struct S2 {}; -// CHECK: define void @_Z1f2S2ILi100EE +// CHECK-LABEL: define void @_Z1f2S2ILi100EE void f(S2<100>) {} -// CHECK: define void @_Z1f2S2ILin100EE +// CHECK-LABEL: define void @_Z1f2S2ILin100EE void f(S2<-100>) {} template <bool B> struct S3 {}; -// CHECK: define void @_Z1f2S3ILb1EE +// CHECK-LABEL: define void @_Z1f2S3ILb1EE void f(S3<true>) {} -// CHECK: define void @_Z1f2S3ILb0EE +// CHECK-LABEL: define void @_Z1f2S3ILb0EE void f(S3<false>) {} struct S; -// CHECK: define void @_Z1fM1SKFvvE +// CHECK-LABEL: define void @_Z1fM1SKFvvE void f(void (S::*)() const) {} -// CHECK: define void @_Z1fM1SFvvE +// CHECK-LABEL: define void @_Z1fM1SFvvE void f(void (S::*)()) {} -// CHECK: define void @_Z1fi +// CHECK-LABEL: define void @_Z1fi void f(const int) { } template<typename T, typename U> void ft1(U u, T t) { } @@ -238,7 +238,7 @@ template<bool, typename> struct __enable_if {}; template<typename T> struct __enable_if<true, T> { typedef T __type; }; template<typename T> -// CHECK: define linkonce_odr void @_ZN6PR57968__fill_aIiEENS_11__enable_ifIXntsr16__is_scalar_typeIT_EE7__valueEvE6__typeEv +// CHECK-LABEL: define linkonce_odr void @_ZN6PR57968__fill_aIiEENS_11__enable_ifIXntsr16__is_scalar_typeIT_EE7__valueEvE6__typeEv typename __enable_if<!__is_scalar_type<T>::__value, void>::__type __fill_a() { }; void f() { __fill_a<int>(); } @@ -247,26 +247,26 @@ void f() { __fill_a<int>(); } namespace Expressions { // Unary operators. -// CHECK: define weak_odr void @_ZN11Expressions2f1ILi1EEEvPAplngT_Li2E_i +// CHECK-LABEL: define weak_odr void @_ZN11Expressions2f1ILi1EEEvPAplngT_Li2E_i template <int i> void f1(int (*)[(-i) + 2]) { }; template void f1<1>(int (*)[1]); -// CHECK: define weak_odr void @_ZN11Expressions2f2ILi1EEEvPApsT__i +// CHECK-LABEL: define weak_odr void @_ZN11Expressions2f2ILi1EEEvPApsT__i template <int i> void f2(int (*)[+i]) { }; template void f2<1>(int (*)[1]); // Binary operators. -// CHECK: define weak_odr void @_ZN11Expressions2f3ILi1EEEvPAplT_T__i +// CHECK-LABEL: define weak_odr void @_ZN11Expressions2f3ILi1EEEvPAplT_T__i template <int i> void f3(int (*)[i+i]) { }; template void f3<1>(int (*)[2]); -// CHECK: define weak_odr void @_ZN11Expressions2f4ILi1EEEvPAplplLi2ET_T__i +// CHECK-LABEL: define weak_odr void @_ZN11Expressions2f4ILi1EEEvPAplplLi2ET_T__i template <int i> void f4(int (*)[2 + i+i]) { }; template void f4<1>(int (*)[4]); // The ternary operator. -// CHECK: define weak_odr void @_ZN11Expressions2f4ILb1EEEvPAquT_Li1ELi2E_i +// CHECK-LABEL: define weak_odr void @_ZN11Expressions2f4ILb1EEEvPAquT_Li1ELi2E_i template <bool b> void f4(int (*)[b ? 1 : 2]) { }; template void f4<true>(int (*)[1]); } @@ -280,13 +280,13 @@ struct Ops { void *v; }; -// CHECK: define %struct.Ops* @_ZN3OpsplERKS_ +// CHECK-LABEL: define %struct.Ops* @_ZN3OpsplERKS_ Ops& Ops::operator+(const Ops&) { return *this; } -// CHECK: define %struct.Ops* @_ZN3OpsmiERKS_ +// CHECK-LABEL: define %struct.Ops* @_ZN3OpsmiERKS_ Ops& Ops::operator-(const Ops&) { return *this; } -// CHECK: define %struct.Ops* @_ZN3OpsanERKS_ +// CHECK-LABEL: define %struct.Ops* @_ZN3OpsanERKS_ Ops& Ops::operator&(const Ops&) { return *this; } -// CHECK: define %struct.Ops* @_ZN3OpsmlERKS_ +// CHECK-LABEL: define %struct.Ops* @_ZN3OpsmlERKS_ Ops& Ops::operator*(const Ops&) { return *this; } // PR5861 @@ -302,11 +302,11 @@ template<typename T, typename = Policy<P, true> > class Alloc T *allocate(int, const void*) { return 0; } }; -// CHECK: define weak_odr i8* @_ZN6PR58615AllocIcNS_6PolicyINS_1PELb1EEEE8allocateEiPKv +// CHECK-LABEL: define weak_odr i8* @_ZN6PR58615AllocIcNS_6PolicyINS_1PELb1EEEE8allocateEiPKv template class Alloc<char>; } -// CHECK: define void @_Z1fU13block_pointerFiiiE +// CHECK-LABEL: define void @_Z1fU13block_pointerFiiiE void f(int (^)(int, int)) { } void pr5966_foo() { @@ -330,29 +330,29 @@ namespace test0 { char buffer[1]; f(0.0, buffer); } - // CHECK: define void @_ZN5test05test0Ev() - // CHECK: define linkonce_odr void @_ZN5test01fIdEEvT_RAszcl3ovlcvS1__EE_c( + // CHECK-LABEL: define void @_ZN5test05test0Ev() + // CHECK-LABEL: define linkonce_odr void @_ZN5test01fIdEEvT_RAszcl3ovlcvS1__EE_c( void test1() { char buffer[sizeof(int)]; f(1, buffer); } - // CHECK: define void @_ZN5test05test1Ev() - // CHECK: define linkonce_odr void @_ZN5test01fIiEEvT_RAszcl3ovlcvS1__EE_c( + // CHECK-LABEL: define void @_ZN5test05test1Ev() + // CHECK-LABEL: define linkonce_odr void @_ZN5test01fIiEEvT_RAszcl3ovlcvS1__EE_c( template <class T> void g(char (&buffer)[sizeof(T() + 5.0f)]) {} void test2() { char buffer[sizeof(float)]; g<float>(buffer); } - // CHECK: define linkonce_odr void @_ZN5test01gIfEEvRAszplcvT__ELf40a00000E_c( + // CHECK-LABEL: define linkonce_odr void @_ZN5test01gIfEEvRAszplcvT__ELf40a00000E_c( template <class T> void h(char (&buffer)[sizeof(T() + 5.0)]) {} void test3() { char buffer[sizeof(double)]; h<float>(buffer); } - // CHECK: define linkonce_odr void @_ZN5test01hIfEEvRAszplcvT__ELd4014000000000000E_c( + // CHECK-LABEL: define linkonce_odr void @_ZN5test01hIfEEvRAszplcvT__ELd4014000000000000E_c( template <class T> void j(char (&buffer)[sizeof(T().buffer)]) {} struct A { double buffer[128]; }; @@ -360,25 +360,25 @@ namespace test0 { char buffer[1024]; j<A>(buffer); } - // CHECK: define linkonce_odr void @_ZN5test01jINS_1AEEEvRAszdtcvT__E6buffer_c( + // CHECK-LABEL: define linkonce_odr void @_ZN5test01jINS_1AEEEvRAszdtcvT__E6buffer_c( template <class T> void k(char (&buffer)[sizeof(T() + 0.0f)]) {} void test5() { char buffer[sizeof(float)]; k<float>(buffer); } - // CHECK: define linkonce_odr void @_ZN5test01kIfEEvRAszplcvT__ELf00000000E_c( + // CHECK-LABEL: define linkonce_odr void @_ZN5test01kIfEEvRAszplcvT__ELf00000000E_c( } namespace test1 { template<typename T> struct X { }; template<template<class> class Y, typename T> void f(Y<T>) { } - // CHECK: define weak_odr void @_ZN5test11fINS_1XEiEEvT_IT0_E + // CHECK-LABEL: define weak_odr void @_ZN5test11fINS_1XEiEEvT_IT0_E template void f(X<int>); } -// CHECK: define internal void @_ZL27functionWithInternalLinkagev() +// CHECK-LABEL: define internal void @_ZL27functionWithInternalLinkagev() static void functionWithInternalLinkage() { } void g() { functionWithInternalLinkage(); } @@ -392,7 +392,7 @@ namespace test2 { return read_member(obj); } - // CHECK: define linkonce_odr i32 @_ZN5test211read_memberINS_1AEEEDtptcvPT_Li0E6memberERS2_( + // CHECK-LABEL: define linkonce_odr i32 @_ZN5test211read_memberINS_1AEEEDtptcvPT_Li0E6memberERS2_( } // rdar://problem/9280586 @@ -402,16 +402,16 @@ namespace test3 { struct Path2 : AmbiguousBase { double p; }; struct Derived : Path1, Path2 { }; - // CHECK: define linkonce_odr i32 @_ZN5test38get_ab_1INS_7DerivedEEEDtptcvPT_Li0Esr5Path1E2abERS2_( + // CHECK-LABEL: define linkonce_odr i32 @_ZN5test38get_ab_1INS_7DerivedEEEDtptcvPT_Li0Esr5Path1E2abERS2_( template <class T> decltype(((T*) 0)->Path1::ab) get_ab_1(T &ref) { return ref.Path1::ab; } - // CHECK: define linkonce_odr i32 @_ZN5test38get_ab_2INS_7DerivedEEEDtptcvPT_Li0Esr5Path2E2abERS2_( + // CHECK-LABEL: define linkonce_odr i32 @_ZN5test38get_ab_2INS_7DerivedEEEDtptcvPT_Li0Esr5Path2E2abERS2_( template <class T> decltype(((T*) 0)->Path2::ab) get_ab_2(T &ref) { return ref.Path2::ab; } - // CHECK: define linkonce_odr float @_ZN5test37get_p_1INS_7DerivedEEEDtptcvPT_Li0Esr5Path1E1pERS2_( + // CHECK-LABEL: define linkonce_odr float @_ZN5test37get_p_1INS_7DerivedEEEDtptcvPT_Li0Esr5Path1E1pERS2_( template <class T> decltype(((T*) 0)->Path1::p) get_p_1(T &ref) { return ref.Path1::p; } - // CHECK: define linkonce_odr double @_ZN5test37get_p_2INS_7DerivedEEEDtptcvPT_Li0Esr5Path2E1pERS2_( + // CHECK-LABEL: define linkonce_odr double @_ZN5test37get_p_2INS_7DerivedEEEDtptcvPT_Li0Esr5Path2E1pERS2_( template <class T> decltype(((T*) 0)->Path2::p) get_p_2(T &ref) { return ref.Path2::p; } Derived obj; @@ -423,7 +423,7 @@ namespace test3 { } } -// CHECK: define void @_ZN5test41gEPNS_3zedIXadL_ZNS_3foo3barEEEEE +// CHECK-LABEL: define void @_ZN5test41gEPNS_3zedIXadL_ZNS_3foo3barEEEEE namespace test4 { struct foo { int bar; }; template <int (foo::*)> @@ -431,7 +431,7 @@ namespace test4 { void g(zed<&foo::bar>*) {} } -// CHECK: define void @_ZN5test51gEPNS_3zedIXadL_ZNS_3foo3barEEEEE +// CHECK-LABEL: define void @_ZN5test51gEPNS_3zedIXadL_ZNS_3foo3barEEEEE namespace test5 { struct foo { static int bar; }; template <int *> @@ -439,7 +439,7 @@ namespace test5 { void g(zed<&foo::bar>*) {} } -// CHECK: define void @_ZN5test61gEPNS_3zedIXadL_ZNS_3foo3barEvEEEE +// CHECK-LABEL: define void @_ZN5test61gEPNS_3zedIXadL_ZNS_3foo3barEvEEEE namespace test6 { struct foo { int bar(); }; template <int (foo::*)()> @@ -447,7 +447,7 @@ namespace test6 { void g(zed<&foo::bar>*) {} } -// CHECK: define void @_ZN5test71gEPNS_3zedIXadL_ZNS_3foo3barEvEEEE +// CHECK-LABEL: define void @_ZN5test71gEPNS_3zedIXadL_ZNS_3foo3barEvEEEE namespace test7 { struct foo { static int bar(); }; template <int (*f)()> @@ -455,7 +455,7 @@ namespace test7 { void g(zed<&foo::bar>*) {} } -// CHECK: define weak_odr void @_ZN5test81AILZNS_1B5valueEEE3incEv +// CHECK-LABEL: define weak_odr void @_ZN5test81AILZNS_1B5valueEEE3incEv namespace test8 { template <int &counter> class A { void inc() { counter++; } }; class B { public: static int value; }; @@ -482,7 +482,7 @@ namespace test10 { template <char P1> struct S {}; template <char P2> void f(struct S<false ? 'a' : P2> ) {} - // CHECK: define weak_odr void @_ZN6test101fILc3EEEvNS_1SIXquLb0ELc97ET_EEE( + // CHECK-LABEL: define weak_odr void @_ZN6test101fILc3EEEvNS_1SIXquLb0ELc97ET_EEE( template void f<(char) 3>(struct S<3>); } @@ -512,7 +512,7 @@ namespace test13 { template <template<class> class T> void foo(const A<T> &a) {} - // CHECK: define weak_odr void @_ZN6test133fooINS_1BEEEvRKNS_1AIT_EE( + // CHECK-LABEL: define weak_odr void @_ZN6test133fooINS_1BEEEvRKNS_1AIT_EE( template void foo(const A<B> &a); } @@ -521,7 +521,7 @@ namespace test14 { struct S { static int a(), x; }; - // CHECK: define i32 @_ZN6test141S1aEv + // CHECK-LABEL: define i32 @_ZN6test141S1aEv // CHECK: load i32* @_ZN6test141S1xE int S::a() { return S::x; } } @@ -534,7 +534,7 @@ namespace test15 { template <int I> void f(S<I + e>) {} - // CHECK: define weak_odr void @_ZN6test151fILi7EEEvNS_1SIXplT_LNS_1EE3EEEE( + // CHECK-LABEL: define weak_odr void @_ZN6test151fILi7EEEvNS_1SIXplT_LNS_1EE3EEEE( template void f<7>(S<7 + e>); } @@ -548,7 +548,7 @@ namespace test17 { template <class T> A<sizeof(T::foo())> func(void); - // CHECK: define void @_ZN6test174testEv() + // CHECK-LABEL: define void @_ZN6test174testEv() // CHECK: call {{.*}} @_ZN6test174funcINS_1BEEENS_1AIXszclsrT_3fooEEEEv() void test() { func<B>(); @@ -577,10 +577,10 @@ namespace test18 { template <typename T> void f(S<&T::operator&>) {} template void f<A>(S<&A::operator&>); - // CHECK: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_plEEE - // CHECK: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_miEEE - // CHECK: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_mlEEE - // CHECK: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_anEEE + // CHECK-LABEL: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_plEEE + // CHECK-LABEL: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_miEEE + // CHECK-LABEL: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_mlEEE + // CHECK-LABEL: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_anEEE } // rdar://problem/8332117 @@ -599,13 +599,13 @@ namespace test19 { template <typename T> void g (S<&T::operator int>) {} template <typename T> void g (S<&T::template operator- <double> >) {} - // CHECK: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_1fIiEEEE( + // CHECK-LABEL: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_1fIiEEEE( template void g<A>(S<&A::f<int> >); - // CHECK: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_plEEE( + // CHECK-LABEL: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_plEEE( template void g<A>(S<&A::operator+>); - // CHECK: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_cviEEE( + // CHECK-LABEL: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_cviEEE( template void g<A>(S<&A::operator int>); - // CHECK: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_miIdEEEE( + // CHECK-LABEL: define weak_odr void @_ZN6test191gINS_1AEEEvNS_1SIXadsrT_miIdEEEE( template void g<A>(S<&A::operator-<double> >); } @@ -613,23 +613,23 @@ namespace test20 { template <class T> T *f(const T&); template <class T> T *f(T*); - // CHECK: define weak_odr void @_ZN6test205test0IiEEvDTcl1fIPT_ELi0EEE( + // CHECK-LABEL: define weak_odr void @_ZN6test205test0IiEEvDTcl1fIPT_ELi0EEE( template <class T> void test0(decltype(f<T*>(0))) {} template void test0<int>(decltype(f<int*>(0))); - // CHECK: define weak_odr void @_ZN6test205test1IiEEvDTcl1fIEcvT__EEE( + // CHECK-LABEL: define weak_odr void @_ZN6test205test1IiEEvDTcl1fIEcvT__EEE( template <class T> void test1(decltype(f<>(T()))) {} template void test1<int>(decltype(f<>(int()))); } // rdar:// 8620510 namespace test21 { - // CHECK: define void @_ZN6test2112vla_arg_funcEiPA_i( + // CHECK-LABEL: define void @_ZN6test2112vla_arg_funcEiPA_i( void vla_arg_func(int X, int a[X][X]) {} } namespace test22 { - // CHECK: define void @_ZN6test221fEDn( + // CHECK-LABEL: define void @_ZN6test221fEDn( void f(decltype(nullptr)) { } } @@ -637,12 +637,12 @@ namespace test22 { namespace test23 { typedef void * const vpc; - // CHECK: define void @_ZN6test231fERA10_KPv( + // CHECK-LABEL: define void @_ZN6test231fERA10_KPv( void f(vpc (&)[10]) {} typedef vpc vpca5[5]; void f(vpca5 volatile (&)[10]) {} - // CHECK: define void @_ZN6test231fERA10_A5_VKPv( + // CHECK-LABEL: define void @_ZN6test231fERA10_A5_VKPv( } namespace test24 { @@ -757,11 +757,11 @@ namespace test31 { // instantiation-dependent mangling of decltype void g(int); template<class T> auto f3(T p)->decltype(g(p)) {} - // CHECK: define weak_odr i32 @_ZN6test312f1IiEEiT_( + // CHECK-LABEL: define weak_odr i32 @_ZN6test312f1IiEEiT_( template int f1(int); - // CHECK: define weak_odr i32 @_ZN6test312f2IiEEDtfp_ET_ + // CHECK-LABEL: define weak_odr i32 @_ZN6test312f2IiEEDtfp_ET_ template int f2(int); - // CHECK: define weak_odr void @_ZN6test312f3IiEEDTcl1gfp_EET_ + // CHECK-LABEL: define weak_odr void @_ZN6test312f3IiEEDTcl1gfp_EET_ template void f3(int); } @@ -802,14 +802,14 @@ namespace test34 { template<typename T> void f(decltype(sizeof(decltype(T() + T())))) {} - // CHECK: define weak_odr void @_ZN6test341fIiEEvDTstDTplcvT__EcvS1__EEE + // CHECK-LABEL: define weak_odr void @_ZN6test341fIiEEvDTstDTplcvT__EcvS1__EEE template void f<int>(decltype(sizeof(1))); // Mangling for non-instantiation-dependent sizeof expressions. template<unsigned N> void f2(int (&)[N + sizeof(int*)]) {} - // CHECK: define weak_odr void @_ZN6test342f2ILj4EEEvRAplT_Lm8E_i + // CHECK-LABEL: define weak_odr void @_ZN6test342f2ILj4EEEvRAplT_Lm8E_i template void f2<4>(int (&)[4 + sizeof(int*)]); // Mangling for non-instantiation-dependent sizeof expressions @@ -817,7 +817,7 @@ namespace test34 { template<unsigned long long N> void f3(int (&)[N + sizeof(int*)]) {} - // CHECK: define weak_odr void @_ZN6test342f3ILy4EEEvRAplT_Ly8E_i + // CHECK-LABEL: define weak_odr void @_ZN6test342f3ILy4EEEvRAplT_Ly8E_i template void f3<4>(int (&)[4 + sizeof(int*)]); // Mangling for instantiation-dependent sizeof() expressions as @@ -826,7 +826,7 @@ namespace test34 { template<typename T> void f4(::test34::A<sizeof(sizeof(decltype(T() + T())))>) { } - // CHECK: define weak_odr void @_ZN6test342f4IiEEvNS_1AIXszstDTplcvT__EcvS2__EEEEE + // CHECK-LABEL: define weak_odr void @_ZN6test342f4IiEEvNS_1AIXszstDTplcvT__EcvS2__EEEEE template void f4<int>(A<sizeof(sizeof(int))>); } @@ -839,7 +839,7 @@ namespace test35 { template<typename T> void f1(decltype(sizeof(&T::template operator+<int>))) {} - // CHECK: define weak_odr void @_ZN6test352f1INS_1AEEEvDTszadsrT_plIiEE + // CHECK-LABEL: define weak_odr void @_ZN6test352f1INS_1AEEEvDTszadsrT_plIiEE template void f1<A>(__SIZE_TYPE__); } @@ -864,20 +864,20 @@ namespace test37 { }; template<typename T> void func(T) { } void test() { - // CHECK: define linkonce_odr void @_ZN6test374funcINS_3fooUt_EEEvT_ + // CHECK-LABEL: define linkonce_odr void @_ZN6test374funcINS_3fooUt_EEEvT_ func(foo().a); - // CHECK: define linkonce_odr void @_ZN6test374funcINS_3fooUt0_EEEvT_ + // CHECK-LABEL: define linkonce_odr void @_ZN6test374funcINS_3fooUt0_EEEvT_ func(*foo::c()); - // CHECK: define linkonce_odr void @_ZN6test374funcINS_3fooUt1_EEEvT_ + // CHECK-LABEL: define linkonce_odr void @_ZN6test374funcINS_3fooUt1_EEEvT_ func(foo().d); } } -// CHECK: define void @_Z6ASfuncPU3AS3i +// CHECK-LABEL: define void @_Z6ASfuncPU3AS3i void ASfunc(__attribute__((address_space(3))) int* x) {} namespace test38 { - // CHECK: define linkonce_odr void @_ZN6test384funcINS_3fooUt_EEEvT_ + // CHECK-LABEL: define linkonce_odr void @_ZN6test384funcINS_3fooUt_EEEvT_ typedef struct { struct { } a; @@ -888,7 +888,7 @@ namespace test38 { } namespace test39 { - // CHECK: define internal void @"_ZN6test394funcINS_3$_03$_1EEEvT_" + // CHECK-LABEL: define internal void @"_ZN6test394funcINS_3$_03$_1EEEvT_" typedef struct { struct {} a; } *foo; diff --git a/clang/test/CodeGenCXX/member-expressions.cpp b/clang/test/CodeGenCXX/member-expressions.cpp index d9fb3940b05..48502727be7 100644 --- a/clang/test/CodeGenCXX/member-expressions.cpp +++ b/clang/test/CodeGenCXX/member-expressions.cpp @@ -58,7 +58,7 @@ namespace test4 { extern C *c_ptr; - // CHECK: define i32 @_ZN5test44testEv() + // CHECK-LABEL: define i32 @_ZN5test44testEv() int test() { // CHECK: load {{.*}} @_ZN5test45c_ptrE // CHECK-NEXT: bitcast diff --git a/clang/test/CodeGenCXX/member-function-pointer-calls.cpp b/clang/test/CodeGenCXX/member-function-pointer-calls.cpp index f8960aac52e..99162ebd586 100644 --- a/clang/test/CodeGenCXX/member-function-pointer-calls.cpp +++ b/clang/test/CodeGenCXX/member-function-pointer-calls.cpp @@ -8,14 +8,14 @@ int f(A* a, int (A::*fp)()) { return (a->*fp)(); } -// CHECK: define i32 @_Z2g1v() +// CHECK-LABEL: define i32 @_Z2g1v() // CHECK: ret i32 1 int g1() { A a; return f(&a, &A::vf1); } -// CHECK: define i32 @_Z2g2v() +// CHECK-LABEL: define i32 @_Z2g2v() // CHECK: ret i32 2 int g2() { A a; diff --git a/clang/test/CodeGenCXX/member-function-pointers.cpp b/clang/test/CodeGenCXX/member-function-pointers.cpp index 23a7b0009f1..fb06fa77039 100644 --- a/clang/test/CodeGenCXX/member-function-pointers.cpp +++ b/clang/test/CodeGenCXX/member-function-pointers.cpp @@ -229,7 +229,7 @@ namespace test9 { fooptr p; }; - // CODE-LP64: define void @_ZN5test94testEv( + // CODE-LP64-LABEL: define void @_ZN5test94testEv( // CODE-LP64: alloca i32 // CODE-LP64-NEXT: ret void void test() { diff --git a/clang/test/CodeGenCXX/member-functions.cpp b/clang/test/CodeGenCXX/member-functions.cpp index 75b354cd0f9..1773c67fc86 100644 --- a/clang/test/CodeGenCXX/member-functions.cpp +++ b/clang/test/CodeGenCXX/member-functions.cpp @@ -5,11 +5,11 @@ struct C { void g(int, ...); }; -// CHECK: define void @_ZN1C1fEv +// CHECK-LABEL: define void @_ZN1C1fEv void C::f() { } -// CHECK: define void @_Z5test1v +// CHECK-LABEL: define void @_Z5test1v void test1() { C c; @@ -34,7 +34,7 @@ struct S { virtual void v() {} }; -// CHECK: define void @_ZN1S1fEv +// CHECK-LABEL: define void @_ZN1S1fEv void S::f() { } @@ -51,13 +51,13 @@ void test2() { // CHECK: define linkonce_odr void @_ZN1SC1Ev{{.*}} unnamed_addr // S::f_inline1() -// CHECK: define linkonce_odr void @_ZN1S9f_inline1Ev +// CHECK-LABEL: define linkonce_odr void @_ZN1S9f_inline1Ev // S::f_inline2() -// CHECK: define linkonce_odr void @_ZN1S9f_inline2Ev +// CHECK-LABEL: define linkonce_odr void @_ZN1S9f_inline2Ev // S::g() -// CHECK: define linkonce_odr void @_ZN1S1gEv +// CHECK-LABEL: define linkonce_odr void @_ZN1S1gEv // S::~S() // CHECK: define linkonce_odr void @_ZN1SD1Ev{{.*}} unnamed_addr @@ -66,7 +66,7 @@ struct T { T operator+(const T&); }; -// CHECK: define void @_Z5test3v +// CHECK-LABEL: define void @_Z5test3v void test3() { T t1, t2; diff --git a/clang/test/CodeGenCXX/member-init-anon-union.cpp b/clang/test/CodeGenCXX/member-init-anon-union.cpp index 4db31f0b83f..bfe1667c8c6 100644 --- a/clang/test/CodeGenCXX/member-init-anon-union.cpp +++ b/clang/test/CodeGenCXX/member-init-anon-union.cpp @@ -11,7 +11,7 @@ static union { int f() { return a; } -// CHECK: define internal void @__cxx_global_var_init +// CHECK-LABEL: define internal void @__cxx_global_var_init // CHECK-NOT: } // CHECK: call {{.*}}@"[[CONSTRUCT_GLOBAL:.*]]C1Ev" diff --git a/clang/test/CodeGenCXX/member-initializers.cpp b/clang/test/CodeGenCXX/member-initializers.cpp index c22b99d6062..c98e6bf9236 100644 --- a/clang/test/CodeGenCXX/member-initializers.cpp +++ b/clang/test/CodeGenCXX/member-initializers.cpp @@ -12,7 +12,7 @@ struct B : A { int i; }; -// CHECK: define i32 @_Z1fv() #0 +// CHECK-LABEL: define i32 @_Z1fv() #0 int f() { B b; diff --git a/clang/test/CodeGenCXX/member-templates.cpp b/clang/test/CodeGenCXX/member-templates.cpp index 7e4bdca77f3..c72dd6e5f52 100644 --- a/clang/test/CodeGenCXX/member-templates.cpp +++ b/clang/test/CodeGenCXX/member-templates.cpp @@ -15,8 +15,8 @@ struct B { template<typename T> B::B(T) {} -// CHECK: define weak_odr void @_ZN1BC1IiEET_(%struct.B* %this, i32) unnamed_addr -// CHECK: define weak_odr void @_ZN1BC2IiEET_(%struct.B* %this, i32) unnamed_addr +// CHECK-LABEL: define weak_odr void @_ZN1BC1IiEET_(%struct.B* %this, i32) unnamed_addr +// CHECK-LABEL: define weak_odr void @_ZN1BC2IiEET_(%struct.B* %this, i32) unnamed_addr template B::B(int); template<typename T> diff --git a/clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp b/clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp index 7f2fc0a89d7..d7fba9911e1 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp @@ -12,13 +12,13 @@ void foo(); void __cdecl foo(); void __cdecl foo() {} -// GCABI: define void @_Z3foov() +// GCABI-LABEL: define void @_Z3foov() // MSABI: define void @"\01?foo@@YAXXZ" void __cdecl bar(); void bar(); void bar() {} -// GCABI: define void @_Z3barv() +// GCABI-LABEL: define void @_Z3barv() // MSABI: define void @"\01?bar@@YAXXZ" // Test that it's OK to mark either the method declaration or method definition @@ -33,15 +33,15 @@ public: }; void METHOD_CC A::baz() {} -// GCABI: define void @_ZN1A3bazEv +// GCABI-LABEL: define void @_ZN1A3bazEv // MSABI: define x86_thiscallcc void @"\01?baz@A@@QAEXXZ" void A::qux() {} -// GCABI: define void @_ZN1A3quxEv +// GCABI-LABEL: define void @_ZN1A3quxEv // MSABI: define x86_thiscallcc void @"\01?qux@A@@QAEXXZ" void __cdecl static_baz() {} -// GCABI: define void @_Z10static_bazv +// GCABI-LABEL: define void @_Z10static_bazv // MSABI: define void @"\01?static_baz@@YAXXZ" void static_qux() {} -// GCABI: define void @_Z10static_quxv +// GCABI-LABEL: define void @_Z10static_quxv // MSABI: define void @"\01?static_qux@@YAXXZ" diff --git a/clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp b/clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp index f725b58fb98..c88eb92740d 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp @@ -49,55 +49,55 @@ struct Big { // Returning structs that fit into a register. Small small_return() { return Small(); } -// LINUX: define void @_Z12small_returnv(%struct.Small* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z12small_returnv(%struct.Small* noalias sret %agg.result) // WIN32: define i32 @"\01?small_return@@YA?AUSmall@@XZ"() // WIN64: define i32 @"\01?small_return@@YA?AUSmall@@XZ"() Medium medium_return() { return Medium(); } -// LINUX: define void @_Z13medium_returnv(%struct.Medium* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z13medium_returnv(%struct.Medium* noalias sret %agg.result) // WIN32: define i64 @"\01?medium_return@@YA?AUMedium@@XZ"() // WIN64: define i64 @"\01?medium_return@@YA?AUMedium@@XZ"() // Returning structs that fit into a register but are not POD. SmallCpp11NotCpp03Pod small_non_pod_return() { return SmallCpp11NotCpp03Pod(); } -// LINUX: define void @_Z20small_non_pod_returnv(%struct.SmallCpp11NotCpp03Pod* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z20small_non_pod_returnv(%struct.SmallCpp11NotCpp03Pod* noalias sret %agg.result) // WIN32: define void @"\01?small_non_pod_return@@YA?AUSmallCpp11NotCpp03Pod@@XZ"(%struct.SmallCpp11NotCpp03Pod* noalias sret %agg.result) // WIN64: define void @"\01?small_non_pod_return@@YA?AUSmallCpp11NotCpp03Pod@@XZ"(%struct.SmallCpp11NotCpp03Pod* noalias sret %agg.result) SmallWithCtor small_with_ctor_return() { return SmallWithCtor(); } -// LINUX: define void @_Z22small_with_ctor_returnv(%struct.SmallWithCtor* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z22small_with_ctor_returnv(%struct.SmallWithCtor* noalias sret %agg.result) // WIN32: define void @"\01?small_with_ctor_return@@YA?AUSmallWithCtor@@XZ"(%struct.SmallWithCtor* noalias sret %agg.result) // WIN64: define void @"\01?small_with_ctor_return@@YA?AUSmallWithCtor@@XZ"(%struct.SmallWithCtor* noalias sret %agg.result) SmallWithVftable small_with_vftable_return() { return SmallWithVftable(); } -// LINUX: define void @_Z25small_with_vftable_returnv(%struct.SmallWithVftable* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z25small_with_vftable_returnv(%struct.SmallWithVftable* noalias sret %agg.result) // WIN32: define void @"\01?small_with_vftable_return@@YA?AUSmallWithVftable@@XZ"(%struct.SmallWithVftable* noalias sret %agg.result) // WIN64: define void @"\01?small_with_vftable_return@@YA?AUSmallWithVftable@@XZ"(%struct.SmallWithVftable* noalias sret %agg.result) MediumWithCopyCtor medium_with_copy_ctor_return() { return MediumWithCopyCtor(); } -// LINUX: define void @_Z28medium_with_copy_ctor_returnv(%struct.MediumWithCopyCtor* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z28medium_with_copy_ctor_returnv(%struct.MediumWithCopyCtor* noalias sret %agg.result) // WIN32: define void @"\01?medium_with_copy_ctor_return@@YA?AUMediumWithCopyCtor@@XZ"(%struct.MediumWithCopyCtor* noalias sret %agg.result) // WIN64: define void @"\01?medium_with_copy_ctor_return@@YA?AUMediumWithCopyCtor@@XZ"(%struct.MediumWithCopyCtor* noalias sret %agg.result) // Returning a large struct that doesn't fit into a register. Big big_return() { return Big(); } -// LINUX: define void @_Z10big_returnv(%struct.Big* noalias sret %agg.result) +// LINUX-LABEL: define void @_Z10big_returnv(%struct.Big* noalias sret %agg.result) // WIN32: define void @"\01?big_return@@YA?AUBig@@XZ"(%struct.Big* noalias sret %agg.result) // WIN64: define void @"\01?big_return@@YA?AUBig@@XZ"(%struct.Big* noalias sret %agg.result) void small_arg(Small s) {} -// LINUX: define void @_Z9small_arg5Small(%struct.Small* byval align 4 %s) +// LINUX-LABEL: define void @_Z9small_arg5Small(%struct.Small* byval align 4 %s) // WIN32: define void @"\01?small_arg@@YAXUSmall@@@Z"(%struct.Small* byval align 4 %s) // WIN64: define void @"\01?small_arg@@YAXUSmall@@@Z"(i32 %s.coerce) void medium_arg(Medium s) {} -// LINUX: define void @_Z10medium_arg6Medium(%struct.Medium* byval align 4 %s) +// LINUX-LABEL: define void @_Z10medium_arg6Medium(%struct.Medium* byval align 4 %s) // WIN32: define void @"\01?medium_arg@@YAXUMedium@@@Z"(%struct.Medium* byval align 4 %s) // WIN64: define void @"\01?medium_arg@@YAXUMedium@@@Z"(i64 %s.coerce) void small_arg_with_ctor(SmallWithCtor s) {} -// LINUX: define void @_Z19small_arg_with_ctor13SmallWithCtor(%struct.SmallWithCtor* byval align 4 %s) +// LINUX-LABEL: define void @_Z19small_arg_with_ctor13SmallWithCtor(%struct.SmallWithCtor* byval align 4 %s) // WIN32: define void @"\01?small_arg_with_ctor@@YAXUSmallWithCtor@@@Z"(%struct.SmallWithCtor* byval align 4 %s) // WIN64: define void @"\01?small_arg_with_ctor@@YAXUSmallWithCtor@@@Z"(i32 %s.coerce) @@ -140,17 +140,17 @@ void eh_cleanup_arg_with_dtor() { // WIN32: } void small_arg_with_vftable(SmallWithVftable s) {} -// LINUX: define void @_Z22small_arg_with_vftable16SmallWithVftable(%struct.SmallWithVftable* %s) +// LINUX-LABEL: define void @_Z22small_arg_with_vftable16SmallWithVftable(%struct.SmallWithVftable* %s) // WIN32: define void @"\01?small_arg_with_vftable@@YAXUSmallWithVftable@@@Z"(%struct.SmallWithVftable* byval align 4 %s) // WIN64: define void @"\01?small_arg_with_vftable@@YAXUSmallWithVftable@@@Z"(%struct.SmallWithVftable* byval %s) void medium_arg_with_copy_ctor(MediumWithCopyCtor s) {} -// LINUX: define void @_Z25medium_arg_with_copy_ctor18MediumWithCopyCtor(%struct.MediumWithCopyCtor* %s) +// LINUX-LABEL: define void @_Z25medium_arg_with_copy_ctor18MediumWithCopyCtor(%struct.MediumWithCopyCtor* %s) // WIN32: define void @"\01?medium_arg_with_copy_ctor@@YAXUMediumWithCopyCtor@@@Z"(%struct.MediumWithCopyCtor* byval align 4 %s) // WIN64: define void @"\01?medium_arg_with_copy_ctor@@YAXUMediumWithCopyCtor@@@Z"(%struct.MediumWithCopyCtor* byval %s) void big_arg(Big s) {} -// LINUX: define void @_Z7big_arg3Big(%struct.Big* byval align 4 %s) +// LINUX-LABEL: define void @_Z7big_arg3Big(%struct.Big* byval align 4 %s) // WIN32: define void @"\01?big_arg@@YAXUBig@@@Z"(%struct.Big* byval align 4 %s) // WIN64: define void @"\01?big_arg@@YAXUBig@@@Z"(%struct.Big* %s) diff --git a/clang/test/CodeGenCXX/microsoft-interface.cpp b/clang/test/CodeGenCXX/microsoft-interface.cpp index 0b44bab7385..419075a8630 100644 --- a/clang/test/CodeGenCXX/microsoft-interface.cpp +++ b/clang/test/CodeGenCXX/microsoft-interface.cpp @@ -19,25 +19,25 @@ int fn() { // CHECK: @_ZTV1S = linkonce_odr unnamed_addr constant [3 x i8*] [i8* null, i8* bitcast ({ i8*, i8*, i8* }* @_ZTI1S to i8*), i8* bitcast (i32 (%struct.S*)* @_ZN1S4testEv to i8*)] -// CHECK: define i32 @_Z2fnv() +// CHECK-LABEL: define i32 @_Z2fnv() // CHECK: call void @_ZN1SC1Ev(%struct.S* %s) // CHECK: %{{[.0-9A-Z_a-z]+}} = call i32 @_ZN1S4testEv(%struct.S* %s) -// CHECK: define linkonce_odr void @_ZN1SC1Ev(%struct.S* %this) +// CHECK-LABEL: define linkonce_odr void @_ZN1SC1Ev(%struct.S* %this) // CHECK: call void @_ZN1SC2Ev(%struct.S* %{{[.0-9A-Z_a-z]+}}) -// CHECK: define linkonce_odr i32 @_ZN1S4testEv(%struct.S* %this) +// CHECK-LABEL: define linkonce_odr i32 @_ZN1S4testEv(%struct.S* %this) // CHECK: %{{[.0-9A-Z_a-z]+}} = call i32 @_ZN1I4testEv(%__interface.I* %{{[.0-9A-Z_a-z]+}}) -// CHECK: define linkonce_odr i32 @_ZN1I4testEv(%__interface.I* %this) +// CHECK-LABEL: define linkonce_odr i32 @_ZN1I4testEv(%__interface.I* %this) // CHECK: ret i32 1 -// CHECK: define linkonce_odr void @_ZN1SC2Ev(%struct.S* %this) +// CHECK-LABEL: define linkonce_odr void @_ZN1SC2Ev(%struct.S* %this) // CHECK: call void @_ZN1IC2Ev(%__interface.I* %{{[.0-9A-Z_a-z]+}}) // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1S, i64 0, i64 2), i8*** %{{[.0-9A-Z_a-z]+}} -// CHECK: define linkonce_odr void @_ZN1IC2Ev(%__interface.I* %this) +// CHECK-LABEL: define linkonce_odr void @_ZN1IC2Ev(%__interface.I* %this) // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1I, i64 0, i64 2), i8*** %{{[.0-9A-Z_a-z]+}} -// CHECK-NOT: define linkonce_odr %__interface.I* @_ZN1IaSERKS_(%__interface.I* %this, %__interface.I*) -// CHECK-NOT: define linkonce_odr %__interface.I* @_ZN1IaSEOS_(%__interface.I* %this, %__interface.I*) +// CHECK-NOT-LABEL: define linkonce_odr %__interface.I* @_ZN1IaSERKS_(%__interface.I* %this, %__interface.I*) +// CHECK-NOT-LABEL: define linkonce_odr %__interface.I* @_ZN1IaSEOS_(%__interface.I* %this, %__interface.I*) diff --git a/clang/test/CodeGenCXX/new-array-init-exceptions.cpp b/clang/test/CodeGenCXX/new-array-init-exceptions.cpp index 5d9cc9fa636..5cfb75744d5 100644 --- a/clang/test/CodeGenCXX/new-array-init-exceptions.cpp +++ b/clang/test/CodeGenCXX/new-array-init-exceptions.cpp @@ -7,7 +7,7 @@ struct Throws { ~Throws(); }; -// CHECK: define void @_Z7cleanupi +// CHECK-LABEL: define void @_Z7cleanupi void cleanup(int n) { // CHECK: invoke void @_ZN6ThrowsC1Ei // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD:[^ ]+]] @@ -25,7 +25,7 @@ void cleanup(int n) { } -// CHECK: define void @_Z7cleanupv +// CHECK-LABEL: define void @_Z7cleanupv void cleanup() { // CHECK: invoke void @_ZN6ThrowsC1Ei // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD2:[^ ]+]] diff --git a/clang/test/CodeGenCXX/new-array-init.cpp b/clang/test/CodeGenCXX/new-array-init.cpp index 231df24781a..0e925c0a67e 100644 --- a/clang/test/CodeGenCXX/new-array-init.cpp +++ b/clang/test/CodeGenCXX/new-array-init.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -std=c++11 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s -// CHECK: define void @_Z2fni +// CHECK-LABEL: define void @_Z2fni void fn(int n) { // CHECK: icmp ult i{{32|64}} %{{[^ ]+}}, 3 // CHECK: store i32 1 @@ -11,21 +11,21 @@ void fn(int n) { new int[n] { 1, 2, 3 }; } -// CHECK: define void @_Z15const_underflowv +// CHECK-LABEL: define void @_Z15const_underflowv void const_underflow() { // CHECK-NOT: icmp ult i{{32|64}} %{{[^ ]+}}, 3 // CHECK: call noalias i8* @_Zna{{.}}(i{{32|64}} -1) new int[2] { 1, 2, 3 }; } -// CHECK: define void @_Z11const_exactv +// CHECK-LABEL: define void @_Z11const_exactv void const_exact() { // CHECK-NOT: icmp ult i{{32|64}} %{{[^ ]+}}, 3 // CHECK-NOT: icmp eq i32* new int[3] { 1, 2, 3 }; } -// CHECK: define void @_Z16const_sufficientv +// CHECK-LABEL: define void @_Z16const_sufficientv void const_sufficient() { // CHECK-NOT: icmp ult i{{32|64}} %{{[^ ]+}}, 3 new int[4] { 1, 2, 3 }; diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index a6e082502df..91da77a0838 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -116,7 +116,7 @@ A* t10() { return new(1, 2, 3.45, 100) A; } -// CHECK: define void @_Z3t11i +// CHECK-LABEL: define void @_Z3t11i struct B { int a; }; struct Bmemptr { int Bmemptr::* memptr; int a; }; @@ -140,7 +140,7 @@ void t11(int n) { struct Empty { }; // We don't need to initialize an empty class. -// CHECK: define void @_Z3t12v +// CHECK-LABEL: define void @_Z3t12v void t12() { // CHECK: call noalias i8* @_Znam // CHECK-NOT: br @@ -154,7 +154,7 @@ void t12() { } // Zero-initialization -// CHECK: define void @_Z3t13i +// CHECK-LABEL: define void @_Z3t13i void t13(int n) { // CHECK: call noalias i8* @_Znwm // CHECK: store i32 0, i32* @@ -189,7 +189,7 @@ void f() { namespace test15 { struct A { A(); ~A(); }; - // CHECK: define void @_ZN6test155test0EPv( + // CHECK-LABEL: define void @_ZN6test155test0EPv( // CHECK: [[P:%.*]] = load i8* // CHECK-NEXT: icmp eq i8* [[P]], null // CHECK-NEXT: br i1 @@ -199,7 +199,7 @@ namespace test15 { new (p) A(); } - // CHECK: define void @_ZN6test155test1EPv( + // CHECK-LABEL: define void @_ZN6test155test1EPv( // CHECK: [[P:%.*]] = load i8** // CHECK-NEXT: icmp eq i8* [[P]], null // CHECK-NEXT: br i1 @@ -217,7 +217,7 @@ namespace test15 { // TODO: it's okay if all these size calculations get dropped. // FIXME: maybe we should try to throw on overflow? - // CHECK: define void @_ZN6test155test2EPvi( + // CHECK-LABEL: define void @_ZN6test155test2EPvi( // CHECK: [[N:%.*]] = load i32* // CHECK-NEXT: [[T0:%.*]] = sext i32 [[N]] to i64 // CHECK-NEXT: [[T1:%.*]] = icmp slt i64 [[T0]], 0 @@ -238,7 +238,7 @@ namespace test15 { } namespace PR10197 { - // CHECK: define weak_odr void @_ZN7PR101971fIiEEvv() + // CHECK-LABEL: define weak_odr void @_ZN7PR101971fIiEEvv() template<typename T> void f() { // CHECK: [[CALL:%.*]] = call noalias i8* @_Znwm @@ -253,7 +253,7 @@ namespace PR10197 { namespace PR11523 { class MyClass; typedef int MyClass::* NewTy; - // CHECK: define i64* @_ZN7PR115231fEv + // CHECK-LABEL: define i64* @_ZN7PR115231fEv // CHECK: store i64 -1 NewTy* f() { return new NewTy[2](); } } @@ -272,7 +272,7 @@ namespace PR11757 { namespace PR13380 { struct A { A() {} }; struct B : public A { int x; }; - // CHECK: define i8* @_ZN7PR133801fEv + // CHECK-LABEL: define i8* @_ZN7PR133801fEv // CHECK: call noalias i8* @_Znam( // CHECK: call void @llvm.memset.p0i8 // CHECK-NEXT: call void @_ZN7PR133801BC1Ev @@ -285,7 +285,7 @@ void *operator new(size_t, MyPlacementType); namespace N3664 { struct S { S() throw(int); }; - // CHECK-LABEL: define void @_ZN5N36641fEv + // CHECK-LABEL-LABEL: define void @_ZN5N36641fEv void f() { // CHECK: call noalias i8* @_Znwm(i64 4) [[ATTR_BUILTIN_NEW:#[^ ]*]] int *p = new int; @@ -307,7 +307,7 @@ namespace N3664 { // FIXME: Can we mark this noalias? // CHECK: declare i8* @_ZnamRKSt9nothrow_t(i64, {{.*}}) [[ATTR_NOBUILTIN_NOUNWIND]] - // CHECK-LABEL: define void @_ZN5N36641gEv + // CHECK-LABEL-LABEL: define void @_ZN5N36641gEv void g() { // It's OK for there to be attributes here, so long as we don't have a // 'builtin' attribute. diff --git a/clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp b/clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp index e542e4a9348..db27f11b87e 100644 --- a/clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp +++ b/clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp @@ -14,7 +14,7 @@ void foo (void) { gs = gs; ls = gs; } -// CHECK: define void @_Z3foov() +// CHECK-LABEL: define void @_Z3foov() // CHECK: %[[LS:.*]] = alloca %struct.s, align 4 // CHECK-NEXT: %[[ZERO:.*]] = bitcast %struct.s* %[[LS]] to i8* // CHECK-NEXT: %[[ONE:.*]] = bitcast %struct.s* %[[LS]] to i8* @@ -34,7 +34,7 @@ void fee (void) { s = s; s.y = gs; } -// CHECK: define void @_Z3feev() +// CHECK-LABEL: define void @_Z3feev() // CHECK: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true) // CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s* @gs, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true) @@ -46,5 +46,5 @@ d gd; void gorf(void) { gd = gd; } -// CHECK: define void @_Z4gorfv() +// CHECK-LABEL: define void @_Z4gorfv() // CHECK: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.d* @gd, i32 0, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.d* @gd, i32 0, i32 0, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true) diff --git a/clang/test/CodeGenCXX/noexcept.cpp b/clang/test/CodeGenCXX/noexcept.cpp index 4ee149ed8dd..dd4cfda1d89 100644 --- a/clang/test/CodeGenCXX/noexcept.cpp +++ b/clang/test/CodeGenCXX/noexcept.cpp @@ -16,7 +16,7 @@ namespace test0 { foo(); } } -// CHECK: define void @_ZN5test04testEv() +// CHECK-LABEL: define void @_ZN5test04testEv() // CHECK: [[EXN:%.*]] = alloca i8* // This goes to the terminate lpad. // CHECK: invoke void @_ZN5test01AC1Ev( @@ -43,7 +43,7 @@ namespace test0 { // CHECK-NEXT: call void @__clang_call_terminate(i8* [[T0]]) // CHECK-NEXT: unreachable -// CHECK: define linkonce_odr hidden void @__clang_call_terminate( +// CHECK-LABEL: define linkonce_odr hidden void @__clang_call_terminate( // CHECK: call i8* @__cxa_begin_catch( // CHECK-NEXT: call void @_ZSt9terminatev() // CHECK-NEXT: unreachable diff --git a/clang/test/CodeGenCXX/nrvo.cpp b/clang/test/CodeGenCXX/nrvo.cpp index 747ab6db63e..b83dd727e0b 100644 --- a/clang/test/CodeGenCXX/nrvo.cpp +++ b/clang/test/CodeGenCXX/nrvo.cpp @@ -9,8 +9,8 @@ public: ~X(); }; -// CHECK: define void @_Z5test0v -// CHECK-EH: define void @_Z5test0v +// CHECK-LABEL: define void @_Z5test0v +// CHECK-EH-LABEL: define void @_Z5test0v X test0() { X x; // CHECK: call {{.*}} @_ZN1XC1Ev @@ -21,8 +21,8 @@ X test0() { return x; } -// CHECK: define void @_Z5test1b( -// CHECK-EH: define void @_Z5test1b( +// CHECK-LABEL: define void @_Z5test1b( +// CHECK-EH-LABEL: define void @_Z5test1b( X test1(bool B) { // CHECK: tail call {{.*}} @_ZN1XC1Ev // CHECK-NEXT: ret void @@ -34,8 +34,8 @@ X test1(bool B) { // CHECK-EH-NEXT: ret void } -// CHECK: define void @_Z5test2b -// CHECK-EH: define void @_Z5test2b +// CHECK-LABEL: define void @_Z5test2b +// CHECK-EH-LABEL: define void @_Z5test2b X test2(bool B) { // No NRVO. @@ -120,7 +120,7 @@ X test3(bool B) { extern "C" void exit(int) throw(); -// CHECK: define void @_Z5test4b +// CHECK-LABEL: define void @_Z5test4b X test4(bool B) { { // CHECK: tail call {{.*}} @_ZN1XC1Ev @@ -135,7 +135,7 @@ X test4(bool B) { } #ifdef __EXCEPTIONS -// CHECK-EH: define void @_Z5test5 +// CHECK-EH-LABEL: define void @_Z5test5 void may_throw(); X test5() { try { @@ -150,7 +150,7 @@ X test5() { #endif // rdar://problem/10430868 -// CHECK: define void @_Z5test6v +// CHECK-LABEL: define void @_Z5test6v X test6() { X a __attribute__((aligned(8))); return a; diff --git a/clang/test/CodeGenCXX/partial-destruction.cpp b/clang/test/CodeGenCXX/partial-destruction.cpp index f232a159eda..22daebe47ba 100644 --- a/clang/test/CodeGenCXX/partial-destruction.cpp +++ b/clang/test/CodeGenCXX/partial-destruction.cpp @@ -11,7 +11,7 @@ namespace test0 { A as[10] = { 5, 7 }; opaque(); } - // CHECK: define void @_ZN5test04testEv() + // CHECK-LABEL: define void @_ZN5test04testEv() // CHECK: [[AS:%.*]] = alloca [10 x [[A:%.*]]], align // CHECK-NEXT: [[ENDVAR:%.*]] = alloca [[A]]* // CHECK-NEXT: [[EXN:%.*]] = alloca i8* @@ -98,7 +98,7 @@ namespace test1 { void test() { B v = { 5, 6, 7, 8 }; } - // CHECK: define void @_ZN5test14testEv() + // CHECK-LABEL: define void @_ZN5test14testEv() // CHECK: [[V:%.*]] = alloca [[B:%.*]], align 4 // CHECK-NEXT: alloca i8* // CHECK-NEXT: alloca i32 @@ -128,7 +128,7 @@ namespace test2 { void test() { A v[4][7]; - // CHECK: define void @_ZN5test24testEv() + // CHECK-LABEL: define void @_ZN5test24testEv() // CHECK: [[V:%.*]] = alloca [4 x [7 x [[A:%.*]]]], align 1 // CHECK-NEXT: alloca i8* // CHECK-NEXT: alloca i32 diff --git a/clang/test/CodeGenCXX/pod-member-memcpys.cpp b/clang/test/CodeGenCXX/pod-member-memcpys.cpp index 534d5d19e99..577505a6b2f 100644 --- a/clang/test/CodeGenCXX/pod-member-memcpys.cpp +++ b/clang/test/CodeGenCXX/pod-member-memcpys.cpp @@ -108,35 +108,35 @@ CALL_AO(InnerClassMember) CALL_AO(PackedMembers) // Basic copy-assignment: -// CHECK: define linkonce_odr %struct.Basic* @_ZN5BasicaSERKS_(%struct.Basic* %this, %struct.Basic*) +// CHECK-LABEL: define linkonce_odr %struct.Basic* @_ZN5BasicaSERKS_(%struct.Basic* %this, %struct.Basic*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret %struct.Basic* %this // PODMember copy-assignment: -// CHECK: define linkonce_odr %struct.PODMember* @_ZN9PODMemberaSERKS_(%struct.PODMember* %this, %struct.PODMember*) +// CHECK-LABEL: define linkonce_odr %struct.PODMember* @_ZN9PODMemberaSERKS_(%struct.PODMember* %this, %struct.PODMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret %struct.PODMember* %this // PODLikeMember copy-assignment: -// CHECK: define linkonce_odr %struct.PODLikeMember* @_ZN13PODLikeMemberaSERKS_(%struct.PODLikeMember* %this, %struct.PODLikeMember*) +// CHECK-LABEL: define linkonce_odr %struct.PODLikeMember* @_ZN13PODLikeMemberaSERKS_(%struct.PODLikeMember* %this, %struct.PODLikeMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret %struct.PODLikeMember* %this // ArrayMember copy-assignment: -// CHECK: define linkonce_odr %struct.ArrayMember* @_ZN11ArrayMemberaSERKS_(%struct.ArrayMember* %this, %struct.ArrayMember*) +// CHECK-LABEL: define linkonce_odr %struct.ArrayMember* @_ZN11ArrayMemberaSERKS_(%struct.ArrayMember* %this, %struct.ArrayMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 64, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 64, i32 4{{.*}}) // CHECK: ret %struct.ArrayMember* %this // VolatileMember copy-assignment: -// CHECK: define linkonce_odr %struct.VolatileMember* @_ZN14VolatileMemberaSERKS_(%struct.VolatileMember* %this, %struct.VolatileMember*) +// CHECK-LABEL: define linkonce_odr %struct.VolatileMember* @_ZN14VolatileMemberaSERKS_(%struct.VolatileMember* %this, %struct.VolatileMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: load volatile i32* {{.*}}, align 4 // CHECK: store volatile i32 {{.*}}, align 4 @@ -145,21 +145,21 @@ CALL_AO(PackedMembers) // CHECK: ret %struct.VolatileMember* %this // BitfieldMember copy-assignment: -// CHECK: define linkonce_odr %struct.BitfieldMember* @_ZN14BitfieldMemberaSERKS_(%struct.BitfieldMember* %this, %struct.BitfieldMember*) +// CHECK-LABEL: define linkonce_odr %struct.BitfieldMember* @_ZN14BitfieldMemberaSERKS_(%struct.BitfieldMember* %this, %struct.BitfieldMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 3, i32 1{{.*}}) // CHECK: ret %struct.BitfieldMember* %this // InnerClass copy-assignment: -// CHECK: define linkonce_odr %struct.InnerClassMember* @_ZN16InnerClassMemberaSERKS_(%struct.InnerClassMember* %this, %struct.InnerClassMember*) +// CHECK-LABEL: define linkonce_odr %struct.InnerClassMember* @_ZN16InnerClassMemberaSERKS_(%struct.InnerClassMember* %this, %struct.InnerClassMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret %struct.InnerClassMember* %this // PackedMembers copy-assignment: -// CHECK: define linkonce_odr %struct.PackedMembers* @_ZN13PackedMembersaSERKS_(%struct.PackedMembers* %this, %struct.PackedMembers*) +// CHECK-LABEL: define linkonce_odr %struct.PackedMembers* @_ZN13PackedMembersaSERKS_(%struct.PackedMembers* %this, %struct.PackedMembers*) // CHECK: tail call %struct.NonPOD* @_ZN6NonPODaSERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 1{{.*}}) // CHECK: ret %struct.PackedMembers* %this @@ -184,21 +184,21 @@ CALL_CC(PODMember) CALL_CC(Basic) // Basic copy-constructor: -// CHECK: define linkonce_odr void @_ZN5BasicC2ERKS_(%struct.Basic* %this, %struct.Basic*) +// CHECK-LABEL: define linkonce_odr void @_ZN5BasicC2ERKS_(%struct.Basic* %this, %struct.Basic*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret void // PODMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN9PODMemberC2ERKS_(%struct.PODMember* %this, %struct.PODMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN9PODMemberC2ERKS_(%struct.PODMember* %this, %struct.PODMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret void // PODLikeMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN13PODLikeMemberC2ERKS_(%struct.PODLikeMember* %this, %struct.PODLikeMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN13PODLikeMemberC2ERKS_(%struct.PODLikeMember* %this, %struct.PODLikeMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: invoke void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) @@ -207,14 +207,14 @@ CALL_CC(Basic) // CHECK: invoke void @_ZN7PODLikeD1Ev // ArrayMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN11ArrayMemberC2ERKS_(%struct.ArrayMember* %this, %struct.ArrayMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN11ArrayMemberC2ERKS_(%struct.ArrayMember* %this, %struct.ArrayMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 64, i32 4{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 64, i32 4{{.*}}) // CHECK: ret void // VolatileMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN14VolatileMemberC2ERKS_(%struct.VolatileMember* %this, %struct.VolatileMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN14VolatileMemberC2ERKS_(%struct.VolatileMember* %this, %struct.VolatileMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: load volatile i32* {{.*}}, align 4 // CHECK: store volatile i32 {{.*}}, align 4 @@ -223,34 +223,34 @@ CALL_CC(Basic) // CHECK: ret void // BitfieldMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN14BitfieldMemberC2ERKS_(%struct.BitfieldMember* %this, %struct.BitfieldMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN14BitfieldMemberC2ERKS_(%struct.BitfieldMember* %this, %struct.BitfieldMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 3, i32 1{{.*}}) // CHECK: ret void // InnerClass copy-constructor: -// CHECK: define linkonce_odr void @_ZN16InnerClassMemberC2ERKS_(%struct.InnerClassMember* %this, %struct.InnerClassMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN16InnerClassMemberC2ERKS_(%struct.InnerClassMember* %this, %struct.InnerClassMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 32, i32 4{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4{{.*}}) // CHECK: ret void // ReferenceMember copy-constructor: -// CHECK: define linkonce_odr void @_ZN15ReferenceMemberC2ERKS_(%struct.ReferenceMember* %this, %struct.ReferenceMember*) +// CHECK-LABEL: define linkonce_odr void @_ZN15ReferenceMemberC2ERKS_(%struct.ReferenceMember* %this, %struct.ReferenceMember*) // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 8{{.*}}) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 8{{.*}}) // CHECK: ret void // BitfieldMember2 copy-constructor: -// CHECK-2: define linkonce_odr void @_ZN15BitfieldMember2C2ERKS_(%struct.BitfieldMember2* %this, %struct.BitfieldMember2*) +// CHECK-2-LABEL: define linkonce_odr void @_ZN15BitfieldMember2C2ERKS_(%struct.BitfieldMember2* %this, %struct.BitfieldMember2*) // CHECK-2: call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 4, i1 false) // CHECK-2: call void @_ZN6NonPODC1ERKS_ // CHECK-2: ret void // PackedMembers copy-assignment: -// CHECK: define linkonce_odr void @_ZN13PackedMembersC2ERKS_(%struct.PackedMembers* %this, %struct.PackedMembers*) +// CHECK-LABEL: define linkonce_odr void @_ZN13PackedMembersC2ERKS_(%struct.PackedMembers* %this, %struct.PackedMembers*) // CHECK: tail call void @_ZN6NonPODC1ERKS_ // CHECK: tail call void @llvm.memcpy.p0i8.p0i8.i64({{.*}}i64 16, i32 1{{.*}}) // CHECK: ret void diff --git a/clang/test/CodeGenCXX/pointers-to-data-members.cpp b/clang/test/CodeGenCXX/pointers-to-data-members.cpp index 7335c97dd97..f0199c851dc 100644 --- a/clang/test/CodeGenCXX/pointers-to-data-members.cpp +++ b/clang/test/CodeGenCXX/pointers-to-data-members.cpp @@ -124,7 +124,7 @@ struct A { A(); }; -// CHECK: define void @_ZN9ValueInit1AC2Ev(%"struct.ValueInit::A"* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN9ValueInit1AC2Ev(%"struct.ValueInit::A"* %this) unnamed_addr // CHECK: store i64 -1, i64* // CHECK: ret void A::A() : a() {} @@ -202,7 +202,7 @@ namespace BoolPtrToMember { bool member; }; - // CHECK: define i8* @_ZN15BoolPtrToMember1fERNS_1XEMS0_b + // CHECK-LABEL: define i8* @_ZN15BoolPtrToMember1fERNS_1XEMS0_b bool &f(X &x, bool X::*member) { // CHECK: {{bitcast.* to i8\*}} // CHECK-NEXT: getelementptr inbounds i8* @@ -249,7 +249,7 @@ namespace PR13097 { }; A f(); X g() { return f().*&A::x; } - // CHECK: define void @_ZN7PR130971gEv + // CHECK-LABEL: define void @_ZN7PR130971gEv // CHECK: call void @_ZN7PR130971fEv // CHECK-NOT: memcpy // CHECK: call void @_ZN7PR130971XC1ERKS0_ diff --git a/clang/test/CodeGenCXX/pr11797.cpp b/clang/test/CodeGenCXX/pr11797.cpp index 05221acc84f..1098372ce38 100644 --- a/clang/test/CodeGenCXX/pr11797.cpp +++ b/clang/test/CodeGenCXX/pr11797.cpp @@ -5,4 +5,4 @@ namespace std __attribute__ ((__visibility__ ("default"))) {} void foo() { } #pragma GCC visibility pop -// CHECK: define void @_Z3foov() +// CHECK-LABEL: define void @_Z3foov() diff --git a/clang/test/CodeGenCXX/pr12251.cpp b/clang/test/CodeGenCXX/pr12251.cpp index 261c5580021..bb1c82dc815 100644 --- a/clang/test/CodeGenCXX/pr12251.cpp +++ b/clang/test/CodeGenCXX/pr12251.cpp @@ -4,12 +4,12 @@ bool f(bool *x) { return *x; } -// CHECK: define zeroext i1 @_Z1fPb +// CHECK-LABEL: define zeroext i1 @_Z1fPb // CHECK: load i8* %{{[^ ]*}}, align 1, !range [[RANGE_i8_0_2:![^ ]*]] // Only enum-tests follow. Ensure that after the bool test, no further range // metadata shows up when strict enums are disabled. -// NO-STRICT-ENUMS: define zeroext i1 @_Z1fPb +// NO-STRICT-ENUMS-LABEL: define zeroext i1 @_Z1fPb // NO-STRICT-ENUMS: load i8* %{{[^ ]*}}, align 1, !range // NO-STRICT-ENUMS-NOT: !range @@ -17,84 +17,84 @@ enum e1 { }; e1 g1(e1 *x) { return *x; } -// CHECK: define i32 @_Z2g1P2e1 +// CHECK-LABEL: define i32 @_Z2g1P2e1 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_1:![^ ]*]] enum e2 { e2_a = 0 }; e2 g2(e2 *x) { return *x; } -// CHECK: define i32 @_Z2g2P2e2 +// CHECK-LABEL: define i32 @_Z2g2P2e2 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_1]] enum e3 { e3_a = 16 }; e3 g3(e3 *x) { return *x; } -// CHECK: define i32 @_Z2g3P2e3 +// CHECK-LABEL: define i32 @_Z2g3P2e3 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_32:![^ ]*]] enum e4 { e4_a = -16}; e4 g4(e4 *x) { return *x; } -// CHECK: define i32 @_Z2g4P2e4 +// CHECK-LABEL: define i32 @_Z2g4P2e4 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m16_16:![^ ]*]] enum e5 { e5_a = -16, e5_b = 16}; e5 g5(e5 *x) { return *x; } -// CHECK: define i32 @_Z2g5P2e5 +// CHECK-LABEL: define i32 @_Z2g5P2e5 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m32_32:![^ ]*]] enum e6 { e6_a = -1 }; e6 g6(e6 *x) { return *x; } -// CHECK: define i32 @_Z2g6P2e6 +// CHECK-LABEL: define i32 @_Z2g6P2e6 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m1_1:![^ ]*]] enum e7 { e7_a = -16, e7_b = 2}; e7 g7(e7 *x) { return *x; } -// CHECK: define i32 @_Z2g7P2e7 +// CHECK-LABEL: define i32 @_Z2g7P2e7 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m16_16]] enum e8 { e8_a = -17}; e8 g8(e8 *x) { return *x; } -// CHECK: define i32 @_Z2g8P2e8 +// CHECK-LABEL: define i32 @_Z2g8P2e8 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m32_32:![^ ]*]] enum e9 { e9_a = 17}; e9 g9(e9 *x) { return *x; } -// CHECK: define i32 @_Z2g9P2e9 +// CHECK-LABEL: define i32 @_Z2g9P2e9 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_32]] enum e10 { e10_a = -16, e10_b = 32}; e10 g10(e10 *x) { return *x; } -// CHECK: define i32 @_Z3g10P3e10 +// CHECK-LABEL: define i32 @_Z3g10P3e10 // CHECK: load i32* %x, align 4, !range [[RANGE_i32_m64_64:![^ ]*]] enum e11 {e11_a = 4294967296 }; enum e11 g11(enum e11 *x) { return *x; } -// CHECK: define i64 @_Z3g11P3e11 +// CHECK-LABEL: define i64 @_Z3g11P3e11 // CHECK: load i64* %x, align {{[84]}}, !range [[RANGE_i64_0_2pow33:![^ ]*]] enum e12 {e12_a = 9223372036854775808U }; enum e12 g12(enum e12 *x) { return *x; } -// CHECK: define i64 @_Z3g12P3e12 +// CHECK-LABEL: define i64 @_Z3g12P3e12 // CHECK: load i64* %x, align {{[84]}} // CHECK-NOT: range // CHECK: ret @@ -103,7 +103,7 @@ enum e13 : char {e13_a = -1 }; e13 g13(e13 *x) { return *x; } -// CHECK: define signext i8 @_Z3g13P3e13 +// CHECK-LABEL: define signext i8 @_Z3g13P3e13 // CHECK: load i8* %x, align 1 // CHECK-NOT: range // CHECK: ret @@ -112,7 +112,7 @@ enum class e14 {e14_a = 1}; e14 g14(e14 *x) { return *x; } -// CHECK: define i32 @_Z3g14P3e14 +// CHECK-LABEL: define i32 @_Z3g14P3e14 // CHECK: load i32* %x, align 4 // CHECK-NOT: range // CHECK: ret @@ -121,7 +121,7 @@ enum e15 { e15_a = 2147483648 }; e15 g15(e15 *x) { return *x; } -// CHECK: define i32 @_Z3g15P3e15 +// CHECK-LABEL: define i32 @_Z3g15P3e15 // CHECK: load i32* %x, align 4 // CHECK-NOT: range // CHECK: ret @@ -130,7 +130,7 @@ enum e16 { e16_a = -2147483648 }; e16 g16(e16 *x) { return *x; } -// CHECK: define i32 @_Z3g16P3e16 +// CHECK-LABEL: define i32 @_Z3g16P3e16 // CHECK: load i32* %x, align 4 // CHECK-NOT: range // CHECK: ret diff --git a/clang/test/CodeGenCXX/pr13396.cpp b/clang/test/CodeGenCXX/pr13396.cpp index 7d4e2ce74f0..3d582c51006 100644 --- a/clang/test/CodeGenCXX/pr13396.cpp +++ b/clang/test/CodeGenCXX/pr13396.cpp @@ -7,13 +7,13 @@ struct foo { }; foo::foo() { - // CHECK: define void @_ZN3fooC1Ev(%struct.foo* inreg %this) - // CHECK: define void @_ZN3fooC2Ev(%struct.foo* inreg %this) + // CHECK-LABEL: define void @_ZN3fooC1Ev(%struct.foo* inreg %this) + // CHECK-LABEL: define void @_ZN3fooC2Ev(%struct.foo* inreg %this) } foo::~foo() { - // CHECK: define void @_ZN3fooD1Ev(%struct.foo* inreg %this) - // CHECK: define void @_ZN3fooD2Ev(%struct.foo* inreg %this) + // CHECK-LABEL: define void @_ZN3fooD1Ev(%struct.foo* inreg %this) + // CHECK-LABEL: define void @_ZN3fooD2Ev(%struct.foo* inreg %this) } void dummy() { @@ -21,6 +21,6 @@ void dummy() { // older clangs accept: // template foo::foo(int x); foo x(10); - // CHECK: define linkonce_odr void @_ZN3fooC1IiEET_(%struct.foo* inreg %this, i32 inreg %x) - // CHECK: define linkonce_odr void @_ZN3fooC2IiEET_(%struct.foo* inreg %this, i32 inreg %x) + // CHECK-LABEL: define linkonce_odr void @_ZN3fooC1IiEET_(%struct.foo* inreg %this, i32 inreg %x) + // CHECK-LABEL: define linkonce_odr void @_ZN3fooC2IiEET_(%struct.foo* inreg %this, i32 inreg %x) } diff --git a/clang/test/CodeGenCXX/pr9130.cpp b/clang/test/CodeGenCXX/pr9130.cpp index b28f3940e4e..e726e5a80b0 100644 --- a/clang/test/CodeGenCXX/pr9130.cpp +++ b/clang/test/CodeGenCXX/pr9130.cpp @@ -11,4 +11,4 @@ class nsVorbisState : public nsOggCodecState { nsVorbisState::~nsVorbisState() { } -// CHECK: define linkonce_odr i32 @_ZN15nsOggCodecState9StartTimeEv +// CHECK-LABEL: define linkonce_odr i32 @_ZN15nsOggCodecState9StartTimeEv diff --git a/clang/test/CodeGenCXX/pr9965.cpp b/clang/test/CodeGenCXX/pr9965.cpp index 0d267ff7037..c2d54e19215 100644 --- a/clang/test/CodeGenCXX/pr9965.cpp +++ b/clang/test/CodeGenCXX/pr9965.cpp @@ -8,7 +8,7 @@ struct X : A // default constructor is not trivial }; X<int> x; -// CHECK: define internal void @__cxx_global_var_init() +// CHECK-LABEL: define internal void @__cxx_global_var_init() // CHECK: call {{.*}} @_ZN1XIiEC1Ev // CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC1Ev // CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC2Ev diff --git a/clang/test/CodeGenCXX/pragma-visibility.cpp b/clang/test/CodeGenCXX/pragma-visibility.cpp index 0640d4244eb..c0ba9046c8c 100644 --- a/clang/test/CodeGenCXX/pragma-visibility.cpp +++ b/clang/test/CodeGenCXX/pragma-visibility.cpp @@ -28,8 +28,8 @@ template<> int x4<int>::y = 10; template<int x> int f() { return x; } extern "C" int g() { return f<3>(); } #pragma GCC visibility pop -// CHECK: define hidden i32 @g() -// CHECK: define linkonce_odr hidden i32 @_Z1fILi3EEiv() +// CHECK-LABEL: define hidden i32 @g() +// CHECK-LABEL: define linkonce_odr hidden i32 @_Z1fILi3EEiv() #pragma GCC visibility push(hidden) template<class T> struct x5 { @@ -37,19 +37,19 @@ template<class T> struct x5 { }; #pragma GCC visibility pop template<> void x5<int>::y() {} -// CHECK: define hidden void @_ZN2x5IiE1yEv +// CHECK-LABEL: define hidden void @_ZN2x5IiE1yEv #pragma GCC visibility push(hidden) namespace n __attribute((visibility("default"))) { void f() {} - // CHECK: define void @_ZN1n1fEv + // CHECK-LABEL: define void @_ZN1n1fEv } #pragma GCC visibility pop namespace n __attribute((visibility("default"))) { #pragma GCC visibility push(hidden) void g() {} - // CHECK: define hidden void @_ZN1n1gEv + // CHECK-LABEL: define hidden void @_ZN1n1gEv #pragma GCC visibility pop } @@ -69,6 +69,6 @@ namespace test2 { bar<foo>::f(); bar<int>::f(); } - // CHECK: define linkonce_odr hidden void @_ZN5test23barINS_3fooEE1fEv - // CHECK: define linkonce_odr void @_ZN5test23barIiE1fEv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN5test23barINS_3fooEE1fEv + // CHECK-LABEL: define linkonce_odr void @_ZN5test23barIiE1fEv } diff --git a/clang/test/CodeGenCXX/pragma-weak.cpp b/clang/test/CodeGenCXX/pragma-weak.cpp index ed537ffcd29..c0330791404 100644 --- a/clang/test/CodeGenCXX/pragma-weak.cpp +++ b/clang/test/CodeGenCXX/pragma-weak.cpp @@ -10,22 +10,22 @@ int zex; #pragma weak foo struct S { void foo(); }; void S::foo() {} -// CHECK: define void @_ZN1S3fooEv( +// CHECK-LABEL: define void @_ZN1S3fooEv( #pragma weak zed namespace bar { void zed() {} } -// CHECK: define void @_ZN3bar3zedEv( +// CHECK-LABEL: define void @_ZN3bar3zedEv( #pragma weak bah void bah() {} -// CHECK: define void @_Z3bahv( +// CHECK-LABEL: define void @_Z3bahv( #pragma weak baz extern "C" void baz() {} -// CHECK: define weak void @baz( +// CHECK-LABEL: define weak void @baz( #pragma weak _Z3baxv void bax() {} // GCC produces a weak symbol for this one, but it doesn't look like a good // idea to expose the mangling to the pragma unless we really have to. -// CHECK: define void @_Z3baxv( +// CHECK-LABEL: define void @_Z3baxv( diff --git a/clang/test/CodeGenCXX/reference-cast.cpp b/clang/test/CodeGenCXX/reference-cast.cpp index f157ae99f9a..60ea393af96 100644 --- a/clang/test/CodeGenCXX/reference-cast.cpp +++ b/clang/test/CodeGenCXX/reference-cast.cpp @@ -15,7 +15,7 @@ const int &lvalue_noop_cast() { return 17; } -// CHECK: define i16* @_Z20lvalue_integral_castv() +// CHECK-LABEL: define i16* @_Z20lvalue_integral_castv() const short &lvalue_integral_cast() { if (i == 0) // CHECK: store i16 17, i16* @@ -27,7 +27,7 @@ const short &lvalue_integral_cast() { return 17; } -// CHECK: define i16* @_Z29lvalue_floating_integral_castv() +// CHECK-LABEL: define i16* @_Z29lvalue_floating_integral_castv() const short &lvalue_floating_integral_cast() { if (i == 0) // CHECK: store i16 17, i16* @@ -39,7 +39,7 @@ const short &lvalue_floating_integral_cast() { return 17.5; } -// CHECK: define float* @_Z29lvalue_integral_floating_castv() +// CHECK-LABEL: define float* @_Z29lvalue_integral_floating_castv() const float &lvalue_integral_floating_cast() { if (i == 0) // CHECK: store float 1.700000e+{{0*}}1, float* @@ -51,7 +51,7 @@ const float &lvalue_integral_floating_cast() { return 17; } -// CHECK: define float* @_Z20lvalue_floating_castv() +// CHECK-LABEL: define float* @_Z20lvalue_floating_castv() const float &lvalue_floating_cast() { if (i == 0) // CHECK: store float 1.700000e+{{0*}}1, float* @@ -65,7 +65,7 @@ const float &lvalue_floating_cast() { int get_int(); -// CHECK: define i8* @_Z24lvalue_integer_bool_castv() +// CHECK-LABEL: define i8* @_Z24lvalue_integer_bool_castv() const bool &lvalue_integer_bool_cast() { if (i == 0) // CHECK: call i32 @_Z7get_intv() @@ -82,7 +82,7 @@ const bool &lvalue_integer_bool_cast() { float get_float(); -// CHECK: define i8* @_Z25lvalue_floating_bool_castv() +// CHECK-LABEL: define i8* @_Z25lvalue_floating_bool_castv() const bool &lvalue_floating_bool_cast() { if (i == 0) // CHECK: call float @_Z9get_floatv() @@ -107,7 +107,7 @@ typedef int (X::*pmf)(int); pm get_pointer_to_member_data(); pmf get_pointer_to_member_function(); -// CHECK: define i8* @_Z26lvalue_ptrmem_to_bool_castv() +// CHECK-LABEL: define i8* @_Z26lvalue_ptrmem_to_bool_castv() const bool &lvalue_ptrmem_to_bool_cast() { if (i == 0) // CHECK: call i64 @_Z26get_pointer_to_member_datav() @@ -125,7 +125,7 @@ const bool &lvalue_ptrmem_to_bool_cast() { return get_pointer_to_member_data(); } -// CHECK: define i8* @_Z27lvalue_ptrmem_to_bool_cast2v +// CHECK-LABEL: define i8* @_Z27lvalue_ptrmem_to_bool_cast2v const bool &lvalue_ptrmem_to_bool_cast2() { if (i == 0) // CHECK: {{call.*_Z30get_pointer_to_member_functionv}} @@ -169,7 +169,7 @@ const _Complex float &f1() { return get_complex_double(); } -// CHECK: define i32 @_Z7pr10592RKi(i32* +// CHECK-LABEL: define i32 @_Z7pr10592RKi(i32* unsigned pr10592(const int &v) { // CHECK: [[VADDR:%[a-zA-Z0-9.]+]] = alloca i32* // CHECK-NEXT: [[REFTMP:%[a-zA-Z0-9.]+]] = alloca i32 @@ -189,7 +189,7 @@ namespace PR10650 { unsigned long long test(Helper *obj) { return static_cast<const unsigned long long&>(obj->id()); } - // CHECK: define i64 @_ZN7PR106504testEPNS_6HelperE + // CHECK-LABEL: define i64 @_ZN7PR106504testEPNS_6HelperE // CHECK: store i64 } diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp index 35dd14e5d31..ec7a3d5daa8 100644 --- a/clang/test/CodeGenCXX/references.cpp +++ b/clang/test/CodeGenCXX/references.cpp @@ -1,6 +1,6 @@ // RUN: not %clang_cc1 -triple x86_64-apple-darwin -verify -emit-llvm -o - %s | FileCheck %s void t1() { - // CHECK: define void @_Z2t1v + // CHECK-LABEL: define void @_Z2t1v // CHECK: [[REFLOAD:%.*]] = load i32** @a, align 8 // CHECK: load i32* [[REFLOAD]], align 4 extern int& a; @@ -8,7 +8,7 @@ void t1() { } void t2(int& a) { - // CHECK: define void @_Z2t2Ri + // CHECK-LABEL: define void @_Z2t2Ri // CHECK: [[REFLOAD2:%.*]] = load i32** {{.*}}, align 8 // CHECK: load i32* [[REFLOAD2]], align 4 int b = a; @@ -189,7 +189,7 @@ namespace N2 { P getP(); - // CHECK: define void @_ZN2N21fEi + // CHECK-LABEL: define void @_ZN2N21fEi // CHECK: call void @_ZN2N24getPEv // CHECK: getelementptr inbounds // CHECK: store i32 17 @@ -218,7 +218,7 @@ namespace N2 { Z getZ(); - // CHECK: define void @_ZN2N21gEi + // CHECK-LABEL: define void @_ZN2N21gEi // CHECK: call void @_ZN2N24getZEv // CHECK: {{getelementptr inbounds.*i32 0, i32 0}} // CHECK: {{getelementptr inbounds.*i32 0, i32 0}} @@ -240,7 +240,7 @@ struct A { ~A(); }; -// CHECK: define internal void @__cxx_global_var_init +// CHECK-LABEL: define internal void @__cxx_global_var_init // CHECK: call void @_ZN2N31AC1Ei(%"struct.N3::A"* @_ZGRN2N35sA123E, i32 123) // CHECK: call i32 @__cxa_atexit // CHECK: ret void @@ -255,7 +255,7 @@ struct A { }; void f() { - // CHECK: define void @_ZN2N41fEv + // CHECK-LABEL: define void @_ZN2N41fEv // CHECK: call void @_ZN2N41AC1Ev(%"struct.N4::A"* @_ZGRZN2N41fEvE2ar) // CHECK: call i32 @__cxa_atexit // CHECK: ret void @@ -279,7 +279,7 @@ void h() { // PR9565 namespace PR9565 { struct a { int a : 10, b : 10; }; - // CHECK: define void @_ZN6PR95651fEv() + // CHECK-LABEL: define void @_ZN6PR95651fEv() void f() { // CHECK: call void @llvm.memcpy a x = { 0, 0 }; @@ -306,7 +306,7 @@ namespace PR9565 { namespace N6 { extern struct x {char& x;}y; int a() { return y.x; } - // CHECK: define i32 @_ZN2N61aEv + // CHECK-LABEL: define i32 @_ZN2N61aEv // CHECK: [[REFLOAD3:%.*]] = load i8** getelementptr inbounds (%"struct.N6::x"* @_ZN2N61yE, i32 0, i32 0), align 8 // CHECK: load i8* [[REFLOAD3]], align 1 } diff --git a/clang/test/CodeGenCXX/rtti-layout.cpp b/clang/test/CodeGenCXX/rtti-layout.cpp index 7128c4e4d07..0db257731f4 100644 --- a/clang/test/CodeGenCXX/rtti-layout.cpp +++ b/clang/test/CodeGenCXX/rtti-layout.cpp @@ -101,7 +101,7 @@ struct B { static int (B::*d)[10]; }; -// CHECK: define i32 @_Z1fv() +// CHECK-LABEL: define i32 @_Z1fv() int f() { // Vectors should be treated as fundamental types. typedef short __v4hi __attribute__ ((__vector_size__ (8))); diff --git a/clang/test/CodeGenCXX/runtimecc.cpp b/clang/test/CodeGenCXX/runtimecc.cpp index 66d3f41589d..646c61e0fd8 100644 --- a/clang/test/CodeGenCXX/runtimecc.cpp +++ b/clang/test/CodeGenCXX/runtimecc.cpp @@ -20,7 +20,7 @@ namespace test0 { }; A global; -// CHECK: define internal arm_aapcscc void @__cxx_global_var_init() +// CHECK-LABEL: define internal arm_aapcscc void @__cxx_global_var_init() // CHECK: call arm_aapcscc [[A]]* @_ZN5test01AC1Ev([[A]]* @_ZN5test06globalE) // CHECK-NEXT: call arm_aapcscc i32 @__cxa_atexit(void (i8*)* bitcast ([[A]]* ([[A]]*)* @_ZN5test01AD1Ev to void (i8*)*), i8* bitcast ([[A]]* @_ZN5test06globalE to i8*), i8* @__dso_handle) [[NOUNWIND:#[0-9]+]] // CHECK-NEXT: ret void @@ -33,7 +33,7 @@ namespace test1 { throw 0; } -// CHECK: define arm_aapcscc void @_ZN5test14testEv() +// CHECK-LABEL: define arm_aapcscc void @_ZN5test14testEv() // CHECK: [[T0:%.*]] = call arm_aapcscc i8* @__cxa_allocate_exception(i32 4) [[NOUNWIND]] // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to i32* // CHECK-NEXT: store i32 0, i32* [[T1]] @@ -45,7 +45,7 @@ namespace test1 { // CHECK: declare arm_aapcscc void @__cxa_throw(i8*, i8*, i8*) -// CHECK: define internal arm_aapcscc void @_GLOBAL__I_a() +// CHECK-LABEL: define internal arm_aapcscc void @_GLOBAL__I_a() // CHECK: call arm_aapcscc void @__cxx_global_var_init() diff --git a/clang/test/CodeGenCXX/rvalue-references.cpp b/clang/test/CodeGenCXX/rvalue-references.cpp index b8d47dcfbe2..2e0fa829ec9 100644 --- a/clang/test/CodeGenCXX/rvalue-references.cpp +++ b/clang/test/CodeGenCXX/rvalue-references.cpp @@ -7,7 +7,7 @@ struct B : Spacer, A { }; B &getB(); -// CHECK: define %struct.A* @_Z4getAv() +// CHECK-LABEL: define %struct.A* @_Z4getAv() // CHECK: call %struct.B* @_Z4getBv() // CHECK-NEXT: bitcast %struct.B* // CHECK-NEXT: getelementptr inbounds i8* @@ -19,17 +19,17 @@ int &getIntLValue(); int &&getIntXValue(); int getIntPRValue(); -// CHECK: define i32* @_Z2f0v() +// CHECK-LABEL: define i32* @_Z2f0v() // CHECK: call i32* @_Z12getIntLValuev() // CHECK-NEXT: ret i32* int &&f0() { return static_cast<int&&>(getIntLValue()); } -// CHECK: define i32* @_Z2f1v() +// CHECK-LABEL: define i32* @_Z2f1v() // CHECK: call i32* @_Z12getIntXValuev() // CHECK-NEXT: ret i32* int &&f1() { return static_cast<int&&>(getIntXValue()); } -// CHECK: define i32* @_Z2f2v +// CHECK-LABEL: define i32* @_Z2f2v // CHECK: call i32 @_Z13getIntPRValuev() // CHECK-NEXT: store i32 {{.*}}, i32* // CHECK-NEXT: ret i32* @@ -59,7 +59,7 @@ public: C test(); -// CHECK: define void @_Z15elide_copy_initv +// CHECK-LABEL: define void @_Z15elide_copy_initv void elide_copy_init() { ok = false; // CHECK: call void @_Z4testv @@ -68,7 +68,7 @@ void elide_copy_init() { // CHECK-NEXT: ret void } -// CHECK: define void @_Z16test_move_returnv +// CHECK-LABEL: define void @_Z16test_move_returnv C test_move_return() { // CHECK: call void @_ZN1CC1Ei C a1(3); @@ -94,7 +94,7 @@ namespace test1 { B(int i); }; - // CHECK: define void @_ZN5test11BC2Ei( + // CHECK-LABEL: define void @_ZN5test11BC2Ei( // CHECK: [[T0:%.*]] = call i32* @_ZN5test14moveERi( // CHECK-NEXT: [[T1:%.*]] = load i32* [[T0]] // CHECK-NEXT: call void @_ZN5test11AC1Ei({{.*}}, i32 [[T1]]) diff --git a/clang/test/CodeGenCXX/skip-vtable-pointer-initialization.cpp b/clang/test/CodeGenCXX/skip-vtable-pointer-initialization.cpp index 84697be4a4c..29926b91b79 100644 --- a/clang/test/CodeGenCXX/skip-vtable-pointer-initialization.cpp +++ b/clang/test/CodeGenCXX/skip-vtable-pointer-initialization.cpp @@ -10,7 +10,7 @@ struct A { ~A(); }; -// CHECK: define void @_ZN5Test11AD2Ev +// CHECK-LABEL: define void @_ZN5Test11AD2Ev // CHECK-NOT: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test11AE, i64 0, i64 2), i8*** A::~A() { @@ -26,7 +26,7 @@ struct A { ~A(); }; -// CHECK: define void @_ZN5Test21AD2Ev +// CHECK-LABEL: define void @_ZN5Test21AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test21AE, i64 0, i64 2), i8*** A::~A() { f(); @@ -49,7 +49,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test31AD2Ev +// CHECK-LABEL: define void @_ZN5Test31AD2Ev // CHECK-NOT: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test31AE, i64 0, i64 2), i8*** A::~A() { @@ -75,7 +75,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test41AD2Ev +// CHECK-LABEL: define void @_ZN5Test41AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test41AE, i64 0, i64 2), i8*** A::~A() { @@ -99,7 +99,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test51AD2Ev +// CHECK-LABEL: define void @_ZN5Test51AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test51AE, i64 0, i64 2), i8*** A::~A() { @@ -127,7 +127,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test61AD2Ev +// CHECK-LABEL: define void @_ZN5Test61AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test61AE, i64 0, i64 2), i8*** A::~A() { @@ -153,7 +153,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test71AD2Ev +// CHECK-LABEL: define void @_ZN5Test71AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test71AE, i64 0, i64 2), i8*** A::~A() { @@ -179,7 +179,7 @@ struct A { Field field; }; -// CHECK: define void @_ZN5Test81AD2Ev +// CHECK-LABEL: define void @_ZN5Test81AD2Ev // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTVN5Test81AE, i64 0, i64 2), i8*** A::~A() { diff --git a/clang/test/CodeGenCXX/static-data-member.cpp b/clang/test/CodeGenCXX/static-data-member.cpp index 4ad339db985..eea97949484 100644 --- a/clang/test/CodeGenCXX/static-data-member.cpp +++ b/clang/test/CodeGenCXX/static-data-member.cpp @@ -42,7 +42,7 @@ namespace test2 { template struct A<int>; } - // CHECK: define internal void @__cxx_global_var_init() + // CHECK-LABEL: define internal void @__cxx_global_var_init() // CHECK: [[TMP:%.*]] = call i32 @_ZN5test23fooEv() // CHECK-NEXT: store i32 [[TMP]], i32* @_ZN5test212_GLOBAL__N_11AIiE1xE, align 4 // CHECK-NEXT: ret void @@ -60,7 +60,7 @@ namespace test3 { template <class T> int A<T>::x = foo(); template struct A<int>; - // CHECK: define internal void @__cxx_global_var_init1() + // CHECK-LABEL: define internal void @__cxx_global_var_init1() // CHECK: [[GUARDBYTE:%.*]] = load i8* bitcast (i64* @_ZGVN5test31AIiE1xE to i8*) // CHECK-NEXT: [[UNINITIALIZED:%.*]] = icmp eq i8 [[GUARDBYTE]], 0 // CHECK-NEXT: br i1 [[UNINITIALIZED]] @@ -79,7 +79,7 @@ namespace test4 { }; int f(A *a) { - // CHECK: define i32 @_ZN5test41fEPNS_1AE + // CHECK-LABEL: define i32 @_ZN5test41fEPNS_1AE // CHECK: ret i32 76 return a->n; } diff --git a/clang/test/CodeGenCXX/static-init.cpp b/clang/test/CodeGenCXX/static-init.cpp index 74278f7128c..f522775c109 100644 --- a/clang/test/CodeGenCXX/static-init.cpp +++ b/clang/test/CodeGenCXX/static-init.cpp @@ -54,7 +54,7 @@ namespace test0 { } namespace test1 { - // CHECK: define internal i32 @_ZN5test1L6getvarEi( + // CHECK-LABEL: define internal i32 @_ZN5test1L6getvarEi( static inline int getvar(int index) { static const int var[] = { 1, 0, 2, 4 }; return var[index]; @@ -68,7 +68,7 @@ char base_req[] = { "foo" }; unsigned char base_req_uchar[] = { "bar" }; namespace union_static_local { - // CHECK: define internal void @_ZZN18union_static_local4testEvEN1c4mainEv + // CHECK-LABEL: define internal void @_ZZN18union_static_local4testEvEN1c4mainEv // CHECK: call void @_ZN18union_static_local1fEPNS_1xE(%"union.union_static_local::x"* bitcast ({ [2 x i8*] }* @_ZZN18union_static_local4testEvE3foo to %"union.union_static_local::x"*)) union x { long double y; const char *x[2]; }; void f(union x*); @@ -103,14 +103,14 @@ namespace test2 { B::B() { static int x = foo(); } - // CHECK: define void @_ZN5test21BC1Ev + // CHECK-LABEL: define void @_ZN5test21BC1Ev // CHECK: load atomic i8* bitcast (i64* @_ZGVZN5test21BC1EvE1x to i8*) acquire, // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZN5test21BC1EvE1x) // CHECK: [[T0:%.*]] = call i32 @_ZN5test23fooEv() // CHECK: store i32 [[T0]], i32* @_ZZN5test21BC1EvE1x, // CHECK: call void @__cxa_guard_release(i64* @_ZGVZN5test21BC1EvE1x) - // CHECK: define void @_ZN5test21BC2Ev + // CHECK-LABEL: define void @_ZN5test21BC2Ev // CHECK: load atomic i8* bitcast (i64* @_ZGVZN5test21BC1EvE1x to i8*) acquire, // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZN5test21BC1EvE1x) // CHECK: [[T0:%.*]] = call i32 @_ZN5test23fooEv() @@ -122,10 +122,10 @@ namespace test2 { B::~B() { static int y = foo(); } - // CHECK: define void @_ZN5test21BD1Ev( + // CHECK-LABEL: define void @_ZN5test21BD1Ev( // CHECK: call void @_ZN5test21BD2Ev( - // CHECK: define void @_ZN5test21BD2Ev( + // CHECK-LABEL: define void @_ZN5test21BD2Ev( // CHECK: load atomic i8* bitcast (i64* @_ZGVZN5test21BD1EvE1y to i8*) acquire, // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZN5test21BD1EvE1y) // CHECK: [[T0:%.*]] = call i32 @_ZN5test23fooEv() @@ -149,6 +149,6 @@ namespace test3 { union U { char x; int i; }; static U u = { 'a' }; } - // CHECK: define void @_ZN5test31BC1Ev( - // CHECK: define void @_ZN5test31BC2Ev( + // CHECK-LABEL: define void @_ZN5test31BC1Ev( + // CHECK-LABEL: define void @_ZN5test31BC2Ev( } diff --git a/clang/test/CodeGenCXX/template-anonymous-types.cpp b/clang/test/CodeGenCXX/template-anonymous-types.cpp index 3df487a33f3..f4d6549e833 100644 --- a/clang/test/CodeGenCXX/template-anonymous-types.cpp +++ b/clang/test/CodeGenCXX/template-anonymous-types.cpp @@ -19,19 +19,19 @@ template <typename T> int f(T t) { void test() { // Look for two instantiations, one for FOO's // type and one for BAR's. - // CHECK: define linkonce_odr i32 @_Z1fIN1SUt_EEiT_(i32 %t) + // CHECK-LABEL: define linkonce_odr i32 @_Z1fIN1SUt_EEiT_(i32 %t) (void)f(S::FOO); - // CHECK: define linkonce_odr i32 @_Z1fIN1SUt0_EEiT_(i32 %t) + // CHECK-LABEL: define linkonce_odr i32 @_Z1fIN1SUt0_EEiT_(i32 %t) (void)f(S::BAR); // Now check for the class template instantiations. Annoyingly, they are in // reverse order. // // BAR's instantiation of X: - // CHECK: define linkonce_odr i32 @_ZN1XIN1SUt0_EE1fEv(%struct.X* %this) - // CHECK: define linkonce_odr void @_ZN1XIN1SUt0_EEC2ES1_(%struct.X* %this, i32 %t) unnamed_addr + // CHECK-LABEL: define linkonce_odr i32 @_ZN1XIN1SUt0_EE1fEv(%struct.X* %this) + // CHECK-LABEL: define linkonce_odr void @_ZN1XIN1SUt0_EEC2ES1_(%struct.X* %this, i32 %t) unnamed_addr // // FOO's instantiation of X: - // CHECK: define linkonce_odr i32 @_ZN1XIN1SUt_EE1fEv(%struct.X.0* %this) - // CHECK: define linkonce_odr void @_ZN1XIN1SUt_EEC2ES1_(%struct.X.0* %this, i32 %t) unnamed_addr + // CHECK-LABEL: define linkonce_odr i32 @_ZN1XIN1SUt_EE1fEv(%struct.X.0* %this) + // CHECK-LABEL: define linkonce_odr void @_ZN1XIN1SUt_EEC2ES1_(%struct.X.0* %this, i32 %t) unnamed_addr } diff --git a/clang/test/CodeGenCXX/template-dependent-bind-temporary.cpp b/clang/test/CodeGenCXX/template-dependent-bind-temporary.cpp index cc1ce866fe2..ca980c3ff68 100644 --- a/clang/test/CodeGenCXX/template-dependent-bind-temporary.cpp +++ b/clang/test/CodeGenCXX/template-dependent-bind-temporary.cpp @@ -18,7 +18,7 @@ void IntToString(T a) } int main() { -// CHECK: define linkonce_odr void @_Z11IntToStringIcEvT_( +// CHECK-LABEL: define linkonce_odr void @_Z11IntToStringIcEvT_( IntToString('a'); } diff --git a/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp b/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp index 2c62b60b110..de86f10f6c3 100644 --- a/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp +++ b/clang/test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp @@ -2,8 +2,8 @@ // Verify that symbols are hidden. // CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak_odr hidden global -// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner1fEv -// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner6Inner21gEv +// CHECK-LABEL: define weak_odr hidden void @_ZN1CIiE5Inner1fEv +// CHECK-LABEL: define weak_odr hidden void @_ZN1CIiE5Inner6Inner21gEv template<typename T> struct C { diff --git a/clang/test/CodeGenCXX/template-instantiation.cpp b/clang/test/CodeGenCXX/template-instantiation.cpp index b90716ba1ae..80283a1edd0 100644 --- a/clang/test/CodeGenCXX/template-instantiation.cpp +++ b/clang/test/CodeGenCXX/template-instantiation.cpp @@ -13,16 +13,16 @@ // CHECK-NOT: _ZTVN5test31SIiEE // CHECK-NOT: _ZTSN5test31SIiEE -// CHECK: define linkonce_odr void @_ZN5test21CIiEC1Ev(%"class.test2::C"* %this) unnamed_addr -// CHECK: define linkonce_odr void @_ZN5test21CIiE6foobarIdEEvT_( -// CHECK: define available_externally void @_ZN5test21CIiE6zedbarEd( - -// CHECK: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi1EEE() -// CHECK: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi2EEE() -// CHECK: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi3EEE() -// CHECK: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi1EEE() -// CHECK: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi2EEE() -// CHECK: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi3EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN5test21CIiEC1Ev(%"class.test2::C"* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN5test21CIiE6foobarIdEEvT_( +// CHECK-LABEL: define available_externally void @_ZN5test21CIiE6zedbarEd( + +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi1EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi2EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g1ENS_1SILi3EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi1EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi2EEE() +// CHECK-LABEL: define linkonce_odr void @_ZN7PR106662g2ENS_1SILi3EEE() // CHECK: declare void @_ZN7PR106662h1ENS_1SILi1EEE() // CHECK: declare void @_ZN7PR106662h1ENS_1SILi2EEE() // CHECK: declare void @_ZN7PR106662h1ENS_1SILi3EEE() diff --git a/clang/test/CodeGenCXX/template-linkage.cpp b/clang/test/CodeGenCXX/template-linkage.cpp index 3acd12ef0bc..a84affab762 100644 --- a/clang/test/CodeGenCXX/template-linkage.cpp +++ b/clang/test/CodeGenCXX/template-linkage.cpp @@ -9,19 +9,19 @@ template<typename T> struct A { // Explicit instantiations have external linkage. -// CHECK: define weak_odr void @_ZN1AIiE1gEv( +// CHECK-LABEL: define weak_odr void @_ZN1AIiE1gEv( template void A<int>::g(); -// CHECK: define weak_odr void @_ZN1AIfE1fEf( -// CHECK: define weak_odr void @_ZN1AIfE1gEv( +// CHECK-LABEL: define weak_odr void @_ZN1AIfE1fEf( +// CHECK-LABEL: define weak_odr void @_ZN1AIfE1gEv( // FIXME: This should also emit the vtable. template struct A<float>; -// CHECK: define weak_odr void @_Z1fIiEvT_ +// CHECK-LABEL: define weak_odr void @_Z1fIiEvT_ template <typename T> void f(T) { } template void f<int>(int); -// CHECK: define weak_odr void @_Z1gIiEvT_ +// CHECK-LABEL: define weak_odr void @_Z1gIiEvT_ template <typename T> inline void g(T) { } template void g<int>(int); @@ -40,7 +40,7 @@ template<typename T> void X1<T>::blarg() { } extern template struct X0<char>; extern template struct X1<char>; -// CHECK: define linkonce_odr void @_ZN2X1IcED1Ev(%struct.X1* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN2X1IcED1Ev(%struct.X1* %this) unnamed_addr void test_X1() { X1<char> i1c; } diff --git a/clang/test/CodeGenCXX/temporaries.cpp b/clang/test/CodeGenCXX/temporaries.cpp index 6e4a7cbcf0b..e8a7a1f2559 100644 --- a/clang/test/CodeGenCXX/temporaries.cpp +++ b/clang/test/CodeGenCXX/temporaries.cpp @@ -254,7 +254,7 @@ namespace PR5867 { }; void f(S, int); - // CHECK: define void @_ZN6PR58671gEv + // CHECK-LABEL: define void @_ZN6PR58671gEv void g() { // CHECK: call void @_ZN6PR58671SC1Ev // CHECK-NEXT: call void @_ZN6PR58671fENS_1SEi @@ -263,7 +263,7 @@ namespace PR5867 { (f)(S(), 0); } - // CHECK: define linkonce_odr void @_ZN6PR58672g2IiEEvT_ + // CHECK-LABEL: define linkonce_odr void @_ZN6PR58672g2IiEEvT_ template<typename T> void g2(T) { // CHECK: call void @_ZN6PR58671SC1Ev @@ -284,7 +284,7 @@ namespace PR6199 { struct B { operator A(); }; - // CHECK: define weak_odr void @_ZN6PR61992f2IiEENS_1AET_ + // CHECK-LABEL: define weak_odr void @_ZN6PR61992f2IiEENS_1AET_ template<typename T> A f2(T) { B b; // CHECK: call void @_ZN6PR61991BcvNS_1AEEv @@ -306,7 +306,7 @@ struct A { int& f(int); -// CHECK: define void @_ZN3T121gEv +// CHECK-LABEL: define void @_ZN3T121gEv void g() { // CHECK: call void @_ZN3T121AC1Ev // CHECK-NEXT: call i32 @_ZN3T121A1fEv( @@ -353,7 +353,7 @@ namespace PR7556 { struct A { ~A(); }; struct B { int i; ~B(); }; struct C { int C::*pm; ~C(); }; - // CHECK: define void @_ZN6PR75563fooEv() + // CHECK-LABEL: define void @_ZN6PR75563fooEv() void foo() { // CHECK: call void @_ZN6PR75561AD1Ev A(); @@ -378,7 +378,7 @@ namespace Elision { A fooA(); void takeA(A a); - // CHECK: define void @_ZN7Elision5test0Ev() + // CHECK-LABEL: define void @_ZN7Elision5test0Ev() void test0() { // CHECK: [[I:%.*]] = alloca [[A:%.*]], align 8 // CHECK-NEXT: [[J:%.*]] = alloca [[A]], align 8 @@ -406,7 +406,7 @@ namespace Elision { } - // CHECK: define void @_ZN7Elision5test1EbNS_1AE( + // CHECK-LABEL: define void @_ZN7Elision5test1EbNS_1AE( void test1(bool c, A x) { // CHECK: [[I:%.*]] = alloca [[A]], align 8 // CHECK-NEXT: [[J:%.*]] = alloca [[A]], align 8 @@ -445,7 +445,7 @@ namespace Elision { // CHECK: ret void } - // CHECK: define void @_ZN7Elision5test4Ev() + // CHECK-LABEL: define void @_ZN7Elision5test4Ev() void test4() { // CHECK: [[X:%.*]] = alloca [[A]], align 8 // CHECK-NEXT: [[XS:%.*]] = alloca [2 x [[A]]], align 16 @@ -521,7 +521,7 @@ namespace Elision { namespace PR8623 { struct A { A(int); ~A(); }; - // CHECK: define void @_ZN6PR86233fooEb( + // CHECK-LABEL: define void @_ZN6PR86233fooEb( void foo(bool b) { // CHECK: [[TMP:%.*]] = alloca [[A:%.*]], align 1 // CHECK-NEXT: [[LCONS:%.*]] = alloca i1 @@ -551,7 +551,7 @@ namespace PR8623 { namespace PR11365 { struct A { A(); ~A(); }; - // CHECK: define void @_ZN7PR113653fooEv( + // CHECK-LABEL: define void @_ZN7PR113653fooEv( void foo() { // CHECK: [[BEGIN:%.*]] = getelementptr inbounds [3 x [[A:%.*]]]* {{.*}}, i32 0, i32 0 // CHECK-NEXT: [[END:%.*]] = getelementptr inbounds [[A]]* [[BEGIN]], i64 3 @@ -570,7 +570,7 @@ namespace AssignmentOp { struct A { ~A(); }; struct B { A operator=(const B&); }; struct C : B { B b1, b2; }; - // CHECK: define void @_ZN12AssignmentOp1fE + // CHECK-LABEL: define void @_ZN12AssignmentOp1fE void f(C &c1, const C &c2) { // CHECK: call {{.*}} @_ZN12AssignmentOp1CaSERKS0_( c1 = c2; @@ -669,7 +669,7 @@ namespace ImplicitTemporaryCleanup { struct A { A(int); ~A(); }; void g(); - // CHECK: define void @_ZN24ImplicitTemporaryCleanup1fEv( + // CHECK-LABEL: define void @_ZN24ImplicitTemporaryCleanup1fEv( void f() { // CHECK: call {{.*}} @_ZN24ImplicitTemporaryCleanup1AC1Ei( A &&a = 0; diff --git a/clang/test/CodeGenCXX/thiscall-struct-return.cpp b/clang/test/CodeGenCXX/thiscall-struct-return.cpp index ff531255bba..65fb74d7693 100644 --- a/clang/test/CodeGenCXX/thiscall-struct-return.cpp +++ b/clang/test/CodeGenCXX/thiscall-struct-return.cpp @@ -29,7 +29,7 @@ public: } }; -// CHECK: define void @_Z4testv() +// CHECK-LABEL: define void @_Z4testv() void test( void ) { // CHECK: call void @_ZN1CC1Ev(%class.C* [[C:%.+]]) C c; diff --git a/clang/test/CodeGenCXX/threadsafe-statics-exceptions.cpp b/clang/test/CodeGenCXX/threadsafe-statics-exceptions.cpp index 769d120be32..70decc98a10 100644 --- a/clang/test/CodeGenCXX/threadsafe-statics-exceptions.cpp +++ b/clang/test/CodeGenCXX/threadsafe-statics-exceptions.cpp @@ -7,7 +7,7 @@ struct X { struct Y { }; -// CHECK: define void @_Z1fv +// CHECK-LABEL: define void @_Z1fv void f() { // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZ1fvE1x) // CHECK: invoke void @_ZN1XC1Ev diff --git a/clang/test/CodeGenCXX/throw-expression-cleanup.cpp b/clang/test/CodeGenCXX/throw-expression-cleanup.cpp index e1ecd380467..9944e161a81 100644 --- a/clang/test/CodeGenCXX/throw-expression-cleanup.cpp +++ b/clang/test/CodeGenCXX/throw-expression-cleanup.cpp @@ -14,7 +14,7 @@ void f() { } catch (...) { } } -// CHECK: define void @_Z1fv +// CHECK-LABEL: define void @_Z1fv // CHECK: call void @_ZN5ErrorC1ERK1X // CHECK: invoke void @__cxa_throw // CHECK: landingpad diff --git a/clang/test/CodeGenCXX/throw-expressions.cpp b/clang/test/CodeGenCXX/throw-expressions.cpp index 87c481b25fe..d9bf8fdd59e 100644 --- a/clang/test/CodeGenCXX/throw-expressions.cpp +++ b/clang/test/CodeGenCXX/throw-expressions.cpp @@ -23,7 +23,7 @@ int test4() { int test5(bool x, bool y, int z) { return (x ? throw 1 : y) ? z : throw 2; } -// CHECK: define i32 @_Z5test5bbi( +// CHECK-LABEL: define i32 @_Z5test5bbi( // CHECK: br i1 // // x.true: @@ -47,7 +47,7 @@ int test5(bool x, bool y, int z) { int test6(bool x, bool y, int z) { return (x ? throw 1 : y) ? z : (throw 2); } -// CHECK: define i32 @_Z5test6bbi( +// CHECK-LABEL: define i32 @_Z5test6bbi( // CHECK: br i1 // // x.true: diff --git a/clang/test/CodeGenCXX/thunks-available-externally.cpp b/clang/test/CodeGenCXX/thunks-available-externally.cpp index dfdb786b18e..2997c364ab2 100644 --- a/clang/test/CodeGenCXX/thunks-available-externally.cpp +++ b/clang/test/CodeGenCXX/thunks-available-externally.cpp @@ -58,10 +58,10 @@ static void f(B* b) { b->f(); } -// CHECK: define void @_ZN5Test21fEv() +// CHECK-LABEL: define void @_ZN5Test21fEv() // CHECK: call void @_ZN5Test21C1fEv // CHECK: ret void -// CHECK: define available_externally void @_ZThn16_N5Test21C1fEv +// CHECK-LABEL: define available_externally void @_ZThn16_N5Test21C1fEv void f() { C c; f(&c); diff --git a/clang/test/CodeGenCXX/thunks.cpp b/clang/test/CodeGenCXX/thunks.cpp index 488c2a06b5e..f5a85ef6b4d 100644 --- a/clang/test/CodeGenCXX/thunks.cpp +++ b/clang/test/CodeGenCXX/thunks.cpp @@ -19,7 +19,7 @@ struct C : A, B { virtual void f(); }; -// CHECK: define void @_ZThn8_N5Test11C1fEv( +// CHECK-LABEL: define void @_ZThn8_N5Test11C1fEv( void C::f() { } } @@ -37,7 +37,7 @@ struct B : virtual A { virtual void f(); }; -// CHECK: define void @_ZTv0_n24_N5Test21B1fEv( +// CHECK-LABEL: define void @_ZTv0_n24_N5Test21B1fEv( void B::f() { } } @@ -82,7 +82,7 @@ struct __attribute__((visibility("protected"))) C : A, B { virtual void f(); }; -// CHECK: define protected void @_ZThn8_N5Test41C1fEv( +// CHECK-LABEL: define protected void @_ZThn8_N5Test41C1fEv( void C::f() { } } @@ -165,7 +165,7 @@ namespace Test6 { virtual X f(); }; - // CHECK: define void @_ZThn16_N5Test66Thunks1fEv + // CHECK-LABEL: define void @_ZThn16_N5Test66Thunks1fEv // CHECK-NOT: memcpy // CHECK: {{call void @_ZN5Test66Thunks1fEv.*sret}} // CHECK: ret void @@ -211,7 +211,7 @@ namespace Test7 { void D::baz(X, X&, _Complex float, Small, Small&, Large) { } - // CHECK: define void @_ZThn8_N5Test71D3bazENS_1XERS1_CfNS_5SmallERS4_NS_5LargeE( + // CHECK-LABEL: define void @_ZThn8_N5Test71D3bazENS_1XERS1_CfNS_5SmallERS4_NS_5LargeE( // CHECK-NOT: memcpy // CHECK: ret void void testD() { D d; } @@ -226,7 +226,7 @@ namespace Test8 { // CHECK: define void @_ZN5Test81C6helperENS_6NonPODE([[NONPODTYPE:%.*]]* void C::helper(NonPOD var) {} - // CHECK: define void @_ZThn8_N5Test81C3barENS_6NonPODE( + // CHECK-LABEL: define void @_ZThn8_N5Test81C3barENS_6NonPODE( // CHECK-NOT: load [[NONPODTYPE]]* // CHECK-NOT: memcpy // CHECK: ret void @@ -250,8 +250,8 @@ namespace Test10 { struct B { virtual void foo(); }; struct C : A, B { void foo() {} }; - // CHECK-HIDDEN: define linkonce_odr void @_ZN6Test101C3fooEv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZThn8_N6Test101C3fooEv + // CHECK-HIDDEN-LABEL: define linkonce_odr void @_ZN6Test101C3fooEv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZThn8_N6Test101C3fooEv void test() { C c; @@ -345,7 +345,7 @@ namespace Test14 { /**** The following has to go at the end of the file ****/ // This is from Test5: -// CHECK: define linkonce_odr void @_ZTv0_n24_N5Test51B1fEv -// CHECK: define internal void @_ZThn8_N6Test4B12_GLOBAL__N_11C1fEv( +// CHECK-LABEL: define linkonce_odr void @_ZTv0_n24_N5Test51B1fEv +// CHECK-LABEL: define internal void @_ZThn8_N6Test4B12_GLOBAL__N_11C1fEv( // CHECK: attributes [[NUW]] = { nounwind uwtable{{.*}} } diff --git a/clang/test/CodeGenCXX/type_visibility.cpp b/clang/test/CodeGenCXX/type_visibility.cpp index 5c45611991c..11e5091fd27 100644 --- a/clang/test/CodeGenCXX/type_visibility.cpp +++ b/clang/test/CodeGenCXX/type_visibility.cpp @@ -26,11 +26,11 @@ namespace temp0 { }; template struct B<A>; - // FUNS: define weak_odr void @_ZN5temp01BINS_1AEE3fooEv( + // FUNS-LABEL: define weak_odr void @_ZN5temp01BINS_1AEE3fooEv( // VARS: @_ZTVN5temp01BINS_1AEEE = weak_odr unnamed_addr constant // VARS: @_ZTSN5temp01BINS_1AEEE = weak_odr constant // VARS: @_ZTIN5temp01BINS_1AEEE = weak_odr unnamed_addr constant - // FUNS-HIDDEN: define weak_odr hidden void @_ZN5temp01BINS_1AEE3fooEv( + // FUNS-HIDDEN-LABEL: define weak_odr hidden void @_ZN5temp01BINS_1AEE3fooEv( // VARS-HIDDEN: @_ZTVN5temp01BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5temp01BINS_1AEEE = weak_odr hidden constant // VARS-HIDDEN: @_ZTIN5temp01BINS_1AEEE = weak_odr hidden unnamed_addr constant @@ -43,11 +43,11 @@ namespace temp1 { }; template struct B<A>; - // FUNS: define weak_odr void @_ZN5temp11BINS_1AEE3fooEv( + // FUNS-LABEL: define weak_odr void @_ZN5temp11BINS_1AEE3fooEv( // VARS: @_ZTVN5temp11BINS_1AEEE = weak_odr unnamed_addr constant // VARS: @_ZTSN5temp11BINS_1AEEE = weak_odr constant // VARS: @_ZTIN5temp11BINS_1AEEE = weak_odr unnamed_addr constant - // FUNS-HIDDEN: define weak_odr hidden void @_ZN5temp11BINS_1AEE3fooEv( + // FUNS-HIDDEN-LABEL: define weak_odr hidden void @_ZN5temp11BINS_1AEE3fooEv( // VARS-HIDDEN: @_ZTVN5temp11BINS_1AEEE = weak_odr unnamed_addr constant // VARS-HIDDEN: @_ZTSN5temp11BINS_1AEEE = weak_odr constant // VARS-HIDDEN: @_ZTIN5temp11BINS_1AEEE = weak_odr unnamed_addr constant @@ -60,11 +60,11 @@ namespace temp2 { }; template struct B<A>; - // FUNS: define weak_odr void @_ZN5temp21BINS_1AEE3fooEv( + // FUNS-LABEL: define weak_odr void @_ZN5temp21BINS_1AEE3fooEv( // VARS: @_ZTVN5temp21BINS_1AEEE = weak_odr unnamed_addr constant // VARS: @_ZTSN5temp21BINS_1AEEE = weak_odr constant // VARS: @_ZTIN5temp21BINS_1AEEE = weak_odr unnamed_addr constant - // FUNS-HIDDEN: define weak_odr hidden void @_ZN5temp21BINS_1AEE3fooEv( + // FUNS-HIDDEN-LABEL: define weak_odr hidden void @_ZN5temp21BINS_1AEE3fooEv( // VARS-HIDDEN: @_ZTVN5temp21BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5temp21BINS_1AEEE = weak_odr hidden constant // VARS-HIDDEN: @_ZTIN5temp21BINS_1AEEE = weak_odr hidden unnamed_addr constant @@ -77,11 +77,11 @@ namespace temp3 { }; template struct B<A>; - // FUNS: define weak_odr hidden void @_ZN5temp31BINS_1AEE3fooEv( + // FUNS-LABEL: define weak_odr hidden void @_ZN5temp31BINS_1AEE3fooEv( // VARS: @_ZTVN5temp31BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS: @_ZTSN5temp31BINS_1AEEE = weak_odr hidden constant // VARS: @_ZTIN5temp31BINS_1AEEE = weak_odr hidden unnamed_addr constant - // FUNS-HIDDEN: define weak_odr hidden void @_ZN5temp31BINS_1AEE3fooEv( + // FUNS-HIDDEN-LABEL: define weak_odr hidden void @_ZN5temp31BINS_1AEE3fooEv( // VARS-HIDDEN: @_ZTVN5temp31BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5temp31BINS_1AEEE = weak_odr hidden constant // VARS-HIDDEN: @_ZTIN5temp31BINS_1AEEE = weak_odr hidden unnamed_addr constant @@ -94,11 +94,11 @@ namespace temp4 { }; template struct B<A>; - // FUNS: define weak_odr void @_ZN5temp41BINS_1AEE3fooEv( + // FUNS-LABEL: define weak_odr void @_ZN5temp41BINS_1AEE3fooEv( // VARS: @_ZTVN5temp41BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS: @_ZTSN5temp41BINS_1AEEE = weak_odr hidden constant // VARS: @_ZTIN5temp41BINS_1AEEE = weak_odr hidden unnamed_addr constant - // FUNS-HIDDEN: define weak_odr hidden void @_ZN5temp41BINS_1AEE3fooEv( + // FUNS-HIDDEN-LABEL: define weak_odr hidden void @_ZN5temp41BINS_1AEE3fooEv( // VARS-HIDDEN: @_ZTVN5temp41BINS_1AEEE = weak_odr hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5temp41BINS_1AEEE = weak_odr hidden constant // VARS-HIDDEN: @_ZTIN5temp41BINS_1AEEE = weak_odr hidden unnamed_addr constant @@ -110,11 +110,11 @@ namespace type0 { }; void A::foo() {} - // FUNS: define void @_ZN5type01A3fooEv( + // FUNS-LABEL: define void @_ZN5type01A3fooEv( // VARS: @_ZTVN5type01AE = unnamed_addr constant // VARS: @_ZTSN5type01AE = constant // VARS: @_ZTIN5type01AE = unnamed_addr constant - // FUNS-HIDDEN: define hidden void @_ZN5type01A3fooEv( + // FUNS-HIDDEN-LABEL: define hidden void @_ZN5type01A3fooEv( // VARS-HIDDEN: @_ZTVN5type01AE = unnamed_addr constant // VARS-HIDDEN: @_ZTSN5type01AE = constant // VARS-HIDDEN: @_ZTIN5type01AE = unnamed_addr constant @@ -126,11 +126,11 @@ namespace type1 { }; void A::foo() {} - // FUNS: define hidden void @_ZN5type11A3fooEv( + // FUNS-LABEL: define hidden void @_ZN5type11A3fooEv( // VARS: @_ZTVN5type11AE = unnamed_addr constant // VARS: @_ZTSN5type11AE = constant // VARS: @_ZTIN5type11AE = unnamed_addr constant - // FUNS-HIDDEN: define hidden void @_ZN5type11A3fooEv( + // FUNS-HIDDEN-LABEL: define hidden void @_ZN5type11A3fooEv( // VARS-HIDDEN: @_ZTVN5type11AE = unnamed_addr constant // VARS-HIDDEN: @_ZTSN5type11AE = constant // VARS-HIDDEN: @_ZTIN5type11AE = unnamed_addr constant @@ -142,11 +142,11 @@ namespace type2 { }; void A::foo() {} - // FUNS: define void @_ZN5type21A3fooEv( + // FUNS-LABEL: define void @_ZN5type21A3fooEv( // VARS: @_ZTVN5type21AE = hidden unnamed_addr constant // VARS: @_ZTSN5type21AE = hidden constant // VARS: @_ZTIN5type21AE = hidden unnamed_addr constant - // FUNS-HIDDEN: define hidden void @_ZN5type21A3fooEv( + // FUNS-HIDDEN-LABEL: define hidden void @_ZN5type21A3fooEv( // VARS-HIDDEN: @_ZTVN5type21AE = hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5type21AE = hidden constant // VARS-HIDDEN: @_ZTIN5type21AE = hidden unnamed_addr constant @@ -158,11 +158,11 @@ namespace type3 { }; void A::foo() {} - // FUNS: define void @_ZN5type31A3fooEv( + // FUNS-LABEL: define void @_ZN5type31A3fooEv( // VARS: @_ZTVN5type31AE = hidden unnamed_addr constant // VARS: @_ZTSN5type31AE = hidden constant // VARS: @_ZTIN5type31AE = hidden unnamed_addr constant - // FUNS-HIDDEN: define void @_ZN5type31A3fooEv( + // FUNS-HIDDEN-LABEL: define void @_ZN5type31A3fooEv( // VARS-HIDDEN: @_ZTVN5type31AE = hidden unnamed_addr constant // VARS-HIDDEN: @_ZTSN5type31AE = hidden constant // VARS-HIDDEN: @_ZTIN5type31AE = hidden unnamed_addr constant diff --git a/clang/test/CodeGenCXX/typeid.cpp b/clang/test/CodeGenCXX/typeid.cpp index a1bc967d74d..f54b60d0cd2 100644 --- a/clang/test/CodeGenCXX/typeid.cpp +++ b/clang/test/CodeGenCXX/typeid.cpp @@ -27,7 +27,7 @@ extern A &a; // CHECK: @_ZN5Test14a_tiE = global const std::type_info &a_ti = typeid(a); -// CHECK: define i8* @_ZN5Test11fEv +// CHECK-LABEL: define i8* @_ZN5Test11fEv const char *f() { try { // CHECK: br i1 diff --git a/clang/test/CodeGenCXX/value-init.cpp b/clang/test/CodeGenCXX/value-init.cpp index 60dca99045f..fad459b481b 100644 --- a/clang/test/CodeGenCXX/value-init.cpp +++ b/clang/test/CodeGenCXX/value-init.cpp @@ -74,7 +74,7 @@ namespace ptrmem { int S::*mem2; }; - // CHECK: define i32 @_ZN6ptrmem4testEPNS_1SE + // CHECK-LABEL: define i32 @_ZN6ptrmem4testEPNS_1SE int test(S *s) { // CHECK: call void @llvm.memcpy.p0i8.p0i8.i64 // CHECK: getelementptr @@ -99,7 +99,7 @@ struct Test2 { struct Test3 : public Test { }; -// CHECK: define void @_ZN6PR98011fEv +// CHECK-LABEL: define void @_ZN6PR98011fEv void f() { // CHECK-NOT: call void @llvm.memset.p0i8.i64 // CHECK: call void @_ZN6PR98014TestC1Ei @@ -131,7 +131,7 @@ void f() { namespace zeroinit { struct S { int i; }; - // CHECK: define i32 @_ZN8zeroinit4testEv() + // CHECK-LABEL: define i32 @_ZN8zeroinit4testEv() int test() { // CHECK: call void @llvm.memset.p0i8.i64 // CHECK: ret i32 0 @@ -148,7 +148,7 @@ namespace zeroinit { void f(); }; - // CHECK: define void @_ZN8zeroinit9testX0_X1Ev + // CHECK-LABEL: define void @_ZN8zeroinit9testX0_X1Ev void testX0_X1() { // CHECK: call void @llvm.memset.p0i8.i64 // CHECK-NEXT: call void @_ZN8zeroinit2X1C1Ev @@ -169,7 +169,7 @@ namespace zeroinit { }; - // CHECK: define void @_ZN8zeroinit9testX0_X3Ev + // CHECK-LABEL: define void @_ZN8zeroinit9testX0_X3Ev void testX0_X3() { // CHECK-NOT: call void @llvm.memset // CHECK: call void @_ZN8zeroinit2X3IiEC1Ev @@ -201,7 +201,7 @@ namespace test6 { void test() { A arr[10][20] = { 5 }; }; - // CHECK: define void @_ZN5test64testEv() + // CHECK-LABEL: define void @_ZN5test64testEv() // CHECK: [[ARR:%.*]] = alloca [10 x [20 x [[A:%.*]]]], // CHECK-NEXT: [[INNER:%.*]] = getelementptr inbounds [10 x [20 x [[A]]]]* [[ARR]], i64 0, i64 0 @@ -243,7 +243,7 @@ namespace PR11124 { struct B : virtual A { int b; }; struct C : B { C(); }; C::C() : A(3), B() {} - // CHECK: define void @_ZN7PR111241CC1Ev + // CHECK-LABEL: define void @_ZN7PR111241CC1Ev // CHECK: call void @llvm.memset.p0i8.i64(i8* {{.*}}, i8 0, i64 12, i32 8, i1 false) // CHECK-NEXT: call void @_ZN7PR111241BC2Ev // Make sure C::C doesn't overwrite parts of A while it is zero-initializing B @@ -251,18 +251,18 @@ namespace PR11124 { struct B2 : virtual A { int B::*b; }; struct C2 : B2 { C2(); }; C2::C2() : A(3), B2() {} - // CHECK: define void @_ZN7PR111242C2C1Ev + // CHECK-LABEL: define void @_ZN7PR111242C2C1Ev // CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* {{.*}}, i64 16, i32 8, i1 false) // CHECK-NEXT: call void @_ZN7PR111242B2C2Ev } // Ensure we produce an i1 here, and don't assert. -// CHECK: define void @_Z9r170806_bv( +// CHECK-LABEL: define void @_Z9r170806_bv( // CHECK: call void @_Z9r170806_ab(i1 zeroext false) void r170806_a(bool b = bool()); void r170806_b() { r170806_a(); } -// CHECK: define linkonce_odr void @_ZN8zeroinit2X3IiEC2Ev(%"struct.zeroinit::X3"* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN8zeroinit2X3IiEC2Ev(%"struct.zeroinit::X3"* %this) unnamed_addr // CHECK: call void @llvm.memset.p0i8.i64 // CHECK-NEXT: call void @_ZN8zeroinit2X2IiEC2Ev // CHECK-NEXT: ret void diff --git a/clang/test/CodeGenCXX/vararg-non-pod.cpp b/clang/test/CodeGenCXX/vararg-non-pod.cpp index 6c6f459ce50..9497179ddf0 100644 --- a/clang/test/CodeGenCXX/vararg-non-pod.cpp +++ b/clang/test/CodeGenCXX/vararg-non-pod.cpp @@ -8,7 +8,7 @@ struct X { void vararg(...); -// CHECK: define void @_Z4test1X +// CHECK-LABEL: define void @_Z4test1X void test(X x) { // CHECK: call void @llvm.trap() vararg(x); diff --git a/clang/test/CodeGenCXX/varargs.cpp b/clang/test/CodeGenCXX/varargs.cpp index af34336a0ae..31bbee9863a 100644 --- a/clang/test/CodeGenCXX/varargs.cpp +++ b/clang/test/CodeGenCXX/varargs.cpp @@ -7,7 +7,7 @@ namespace test0 { // though there is no way to do a va_begin. Otherwise, the optimizer // will warn about 'dropped arguments' at the call site. - // CHECK: define i32 @_ZN5test05test1Ez(...) + // CHECK-LABEL: define i32 @_ZN5test05test1Ez(...) int test1(...) { return -1; } @@ -30,7 +30,7 @@ namespace test1 { A x; foo(x); } - // CHECK: define void @_ZN5test14testEv() + // CHECK-LABEL: define void @_ZN5test14testEv() // CHECK: [[X:%.*]] = alloca [[A:%.*]], align 4 // CHECK-NEXT: [[TMP:%.*]] = alloca [[A]], align 4 // CHECK-NEXT: [[T0:%.*]] = bitcast [[A]]* [[TMP]] to i8* diff --git a/clang/test/CodeGenCXX/variadic-templates.cpp b/clang/test/CodeGenCXX/variadic-templates.cpp index c56bec33a0f..4974b6517b8 100644 --- a/clang/test/CodeGenCXX/variadic-templates.cpp +++ b/clang/test/CodeGenCXX/variadic-templates.cpp @@ -5,7 +5,7 @@ int get_num_types(Types...) { return sizeof...(Types); } -// CHECK: define weak_odr i32 @_Z13get_num_typesIJifdEEiDpT_ +// CHECK-LABEL: define weak_odr i32 @_Z13get_num_typesIJifdEEiDpT_ // CHECK: ret i32 3 template int get_num_types(int, float, double); @@ -13,7 +13,7 @@ template int get_num_types(int, float, double); namespace test1 { template <class... T> void foo() { int values[sizeof...(T)+1] = { T::value... }; - // CHECK: define linkonce_odr void @_ZN5test13fooIJEEEvv() + // CHECK-LABEL: define linkonce_odr void @_ZN5test13fooIJEEEvv() // CHECK: alloca [1 x i32], align 4 } diff --git a/clang/test/CodeGenCXX/virt-dtor-gen.cpp b/clang/test/CodeGenCXX/virt-dtor-gen.cpp index 1a6c583c34f..78a0b8193d7 100644 --- a/clang/test/CodeGenCXX/virt-dtor-gen.cpp +++ b/clang/test/CodeGenCXX/virt-dtor-gen.cpp @@ -7,4 +7,4 @@ class Foo { }; Foo::~Foo() {} -// CHECK: define void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr diff --git a/clang/test/CodeGenCXX/virtual-bases.cpp b/clang/test/CodeGenCXX/virtual-bases.cpp index c9f13f853d1..2878e95b52c 100644 --- a/clang/test/CodeGenCXX/virtual-bases.cpp +++ b/clang/test/CodeGenCXX/virtual-bases.cpp @@ -5,23 +5,23 @@ struct A { }; // CHECK: @_ZN1AC1Ev = alias {{.*}} @_ZN1AC2Ev -// CHECK: define void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr A::A() { } struct B : virtual A { B(); }; -// CHECK: define void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr -// CHECK: define void @_ZN1BC2Ev(%struct.B* %this, i8** %vtt) unnamed_addr +// CHECK-LABEL: define void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1BC2Ev(%struct.B* %this, i8** %vtt) unnamed_addr B::B() { } struct C : virtual A { C(bool); }; -// CHECK: define void @_ZN1CC1Eb(%struct.C* %this, i1 zeroext) unnamed_addr -// CHECK: define void @_ZN1CC2Eb(%struct.C* %this, i8** %vtt, i1 zeroext) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC1Eb(%struct.C* %this, i1 zeroext) unnamed_addr +// CHECK-LABEL: define void @_ZN1CC2Eb(%struct.C* %this, i8** %vtt, i1 zeroext) unnamed_addr C::C(bool) { } // PR6251 @@ -39,7 +39,7 @@ struct D : B, C { D(); }; -// CHECK: define void @_ZN6PR62511DC1Ev(%"struct.PR6251::D"* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN6PR62511DC1Ev(%"struct.PR6251::D"* %this) unnamed_addr // CHECK: call void @_ZN6PR62511AIcEC2Ev // CHECK-NOT: call void @_ZN6PR62511AIcEC2Ev // CHECK: ret void diff --git a/clang/test/CodeGenCXX/virtual-destructor-calls.cpp b/clang/test/CodeGenCXX/virtual-destructor-calls.cpp index 7ef50b23fa7..0c03c9f1f3d 100644 --- a/clang/test/CodeGenCXX/virtual-destructor-calls.cpp +++ b/clang/test/CodeGenCXX/virtual-destructor-calls.cpp @@ -21,12 +21,12 @@ struct B : A { // CHECK: @_ZN1CD2Ev = alias bitcast {{.*}} @_ZN1BD2Ev // Deleting dtor: defers to the complete dtor. -// CHECK: define void @_ZN1BD0Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1BD0Ev(%struct.B* %this) unnamed_addr // CHECK: call void @_ZN1BD1Ev // CHECK: call void @_ZdlPv // Base dtor: actually calls A's base dtor. -// CHECK: define void @_ZN1BD2Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1BD2Ev(%struct.B* %this) unnamed_addr // CHECK: call void @_ZN6MemberD1Ev // CHECK: call void @_ZN1AD2Ev @@ -41,7 +41,7 @@ C::~C() { } // Complete dtor: just an alias (checked above). // Deleting dtor: defers to the complete dtor. -// CHECK: define void @_ZN1CD0Ev(%struct.C* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1CD0Ev(%struct.C* %this) unnamed_addr // CHECK: call void @_ZN1CD1Ev // CHECK: call void @_ZdlPv diff --git a/clang/test/CodeGenCXX/virtual-functions-incomplete-types.cpp b/clang/test/CodeGenCXX/virtual-functions-incomplete-types.cpp index afa658f7d37..624c89dcdae 100644 --- a/clang/test/CodeGenCXX/virtual-functions-incomplete-types.cpp +++ b/clang/test/CodeGenCXX/virtual-functions-incomplete-types.cpp @@ -9,7 +9,7 @@ struct B { void B::f() { } -// CHECK: define i32 @_ZN1D1gEv(%struct.D* %this) +// CHECK-LABEL: define i32 @_ZN1D1gEv(%struct.D* %this) // CHECK: declare void @_ZN1B1gEv() struct C; diff --git a/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp b/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp index 7629b77c2ce..549e674740f 100644 --- a/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp +++ b/clang/test/CodeGenCXX/visibility-hidden-extern-templates.cpp @@ -14,13 +14,13 @@ extern template struct X<char>; // <rdar://problem/8109763> void test_X(X<int> xi, X<char> xc) { - // CHECK: define weak_odr hidden void @_ZN1XIiE1fEv + // CHECK-LABEL: define weak_odr hidden void @_ZN1XIiE1fEv xi.f(); - // CHECK: define weak_odr hidden void @_ZN1XIiE1gEv + // CHECK-LABEL: define weak_odr hidden void @_ZN1XIiE1gEv xi.g(); // CHECK: declare void @_ZN1XIcE1fEv xc.f(); - // CHECK: define available_externally void @_ZN1XIcE1gEv + // CHECK-LABEL: define available_externally void @_ZN1XIcE1gEv xc.g(); } diff --git a/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp b/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp index e5bc743e4da..7c0757b2829 100644 --- a/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp +++ b/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp @@ -37,31 +37,31 @@ struct __attribute__((visibility("default"))) X2 { extern template struct X1<float>; void use(X0 *x0, X1<int> *x1, X2 *x2, X1<float> *x3) { - // CHECK: define linkonce_odr void @_ZN2X02f1Ev + // CHECK-LABEL: define linkonce_odr void @_ZN2X02f1Ev x0->f1(); - // CHECK: define linkonce_odr hidden void @_ZN2X02f2Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X02f2Ev x0->f2(); - // CHECK: define linkonce_odr hidden void @_ZN2X02f3Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X02f3Ev x0->f3(); - // CHECK: define linkonce_odr hidden void @_ZN2X02f5Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X02f5Ev X0::f5(); - // CHECK: define linkonce_odr hidden void @_ZN2X02f6Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X02f6Ev x0->X0::f6(); - // CHECK: define linkonce_odr void @_ZN2X1IiE2f1Ev + // CHECK-LABEL: define linkonce_odr void @_ZN2X1IiE2f1Ev x1->f1(); - // CHECK: define linkonce_odr hidden void @_ZN2X1IiE2f2Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X1IiE2f2Ev x1->f2(); - // CHECK: define linkonce_odr hidden void @_ZN2X1IiE2f3Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X1IiE2f3Ev x1->f3(); - // CHECK: define linkonce_odr hidden void @_ZN2X1IiE2f4Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X1IiE2f4Ev x1->f4(); - // CHECK: define linkonce_odr hidden void @_ZN2X1IiE2f5Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X1IiE2f5Ev X1<int>::f5(); - // CHECK: define linkonce_odr hidden void @_ZN2X1IiE2f6Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X1IiE2f6Ev x1->X1::f6(); - // CHECK: define linkonce_odr hidden void @_ZN2X22f2Ev + // CHECK-LABEL: define linkonce_odr hidden void @_ZN2X22f2Ev x2->f2(); - // CHECK: define available_externally void @_ZN2X1IfE2f2Ev + // CHECK-LABEL: define available_externally void @_ZN2X1IfE2f2Ev x3->f2(); } @@ -95,7 +95,7 @@ namespace test2 { ns::foo<arg>(); } - // CHECK: define available_externally void @_ZN5test22ns3fooINS_1BINS_1AEEEEEvv() + // CHECK-LABEL: define available_externally void @_ZN5test22ns3fooINS_1BINS_1AEEEEEvv() } namespace PR11642 { @@ -106,7 +106,7 @@ namespace PR11642 { }; extern template class Foo<int>; template class Foo<int>; - // CHECK: define weak_odr i32 @_ZN7PR116423FooIiE3fooEi + // CHECK-LABEL: define weak_odr i32 @_ZN7PR116423FooIiE3fooEi } // Test that clang implements the new gcc behaviour for inline functions. @@ -122,9 +122,9 @@ namespace test3 { foo(); zed<int>(); } - // CHECK: define weak_odr void @_ZN5test33zedIfEEvv - // CHECK: define linkonce_odr hidden void @_ZN5test33fooEv - // CHECK: define linkonce_odr hidden void @_ZN5test33zedIiEEvv + // CHECK-LABEL: define weak_odr void @_ZN5test33zedIfEEvv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN5test33fooEv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN5test33zedIiEEvv } namespace test4 { @@ -133,7 +133,7 @@ namespace test4 { void bar() { foo(); } - // CHECK: define available_externally void @_ZN5test43fooE + // CHECK-LABEL: define available_externally void @_ZN5test43fooE } namespace test5 { diff --git a/clang/test/CodeGenCXX/visibility-ms-compat.cpp b/clang/test/CodeGenCXX/visibility-ms-compat.cpp index 58a8fed62e0..25446cdf06f 100644 --- a/clang/test/CodeGenCXX/visibility-ms-compat.cpp +++ b/clang/test/CodeGenCXX/visibility-ms-compat.cpp @@ -22,7 +22,7 @@ namespace test0 { }; void A::foo() { bar(); } - // CHECK: define hidden void @_ZN5test01A3fooEv() + // CHECK-LABEL: define hidden void @_ZN5test01A3fooEv() // CHECK: declare void @_ZN5test01A3barEv() const std::type_info &ti = typeid(A); @@ -38,7 +38,7 @@ namespace test1 { }; void A::foo() { bar(); } - // CHECK: define hidden void @_ZN5test11A3fooEv() + // CHECK-LABEL: define hidden void @_ZN5test11A3fooEv() // CHECK: declare hidden void @_ZN5test11A3barEv() const std::type_info &ti = typeid(A); @@ -54,7 +54,7 @@ namespace test2 { }; void A::foo() { bar(); } - // CHECK: define void @_ZN5test21A3fooEv() + // CHECK-LABEL: define void @_ZN5test21A3fooEv() // CHECK: declare void @_ZN5test21A3barEv() const std::type_info &ti = typeid(A); @@ -71,7 +71,7 @@ namespace test3 { }; template void B<A>::foo(); - // CHECK: define weak_odr hidden void @_ZN5test31BINS_1AEE3fooEv() + // CHECK-LABEL: define weak_odr hidden void @_ZN5test31BINS_1AEE3fooEv() // CHECK: declare void @_ZN5test31BINS_1AEE3barEv() const std::type_info &ti = typeid(B<A>); @@ -87,7 +87,7 @@ namespace test4 { }; template void B<A>::foo(); - // CHECK: define weak_odr void @_ZN5test41BINS_1AEE3fooEv() + // CHECK-LABEL: define weak_odr void @_ZN5test41BINS_1AEE3fooEv() // CHECK: declare void @_ZN5test41BINS_1AEE3barEv() const std::type_info &ti = typeid(B<A>); @@ -103,7 +103,7 @@ namespace test5 { }; template void B<A>::foo(); - // CHECK: define weak_odr hidden void @_ZN5test51BINS_1AEE3fooEv() + // CHECK-LABEL: define weak_odr hidden void @_ZN5test51BINS_1AEE3fooEv() // CHECK: declare hidden void @_ZN5test51BINS_1AEE3barEv() const std::type_info &ti = typeid(B<A>); diff --git a/clang/test/CodeGenCXX/visibility.cpp b/clang/test/CodeGenCXX/visibility.cpp index c5c47abd2b9..6049bf8d2bc 100644 --- a/clang/test/CodeGenCXX/visibility.cpp +++ b/clang/test/CodeGenCXX/visibility.cpp @@ -148,7 +148,7 @@ namespace test27 { // CHECK: @_ZTVN5Test63fooE = linkonce_odr hidden unnamed_addr constant namespace Test1 { - // CHECK: define hidden void @_ZN5Test11fEv + // CHECK-LABEL: define hidden void @_ZN5Test11fEv void HIDDEN f() { } } @@ -159,7 +159,7 @@ namespace Test2 { }; // A::f is a member function of a hidden class. - // CHECK: define hidden void @_ZN5Test21A1fEv + // CHECK-LABEL: define hidden void @_ZN5Test21A1fEv void A::f() { } } @@ -171,7 +171,7 @@ namespace Test3 { }; // B is a nested class where its parent class is hidden. - // CHECK: define hidden void @_ZN5Test31A1B1fEv + // CHECK-LABEL: define hidden void @_ZN5Test31A1B1fEv void A::B::f() { } } @@ -179,7 +179,7 @@ namespace Test4 HIDDEN { int VariableInHiddenNamespace = 10; // Test4::g is in a hidden namespace. - // CHECK: define hidden void @_ZN5Test41gEv + // CHECK-LABEL: define hidden void @_ZN5Test41gEv void g() { } struct DEFAULT A { @@ -187,7 +187,7 @@ namespace Test4 HIDDEN { }; // A has default visibility. - // CHECK: define void @_ZN5Test41A1fEv + // CHECK-LABEL: define void @_ZN5Test41A1fEv void A::f() { } } @@ -195,13 +195,13 @@ namespace Test5 { namespace NS HIDDEN { // f is in NS which is hidden. - // CHECK: define hidden void @_ZN5Test52NS1fEv() + // CHECK-LABEL: define hidden void @_ZN5Test52NS1fEv() void f() { } } namespace NS { // g is in NS, but this NS decl is not hidden. - // CHECK: define void @_ZN5Test52NS1gEv + // CHECK-LABEL: define void @_ZN5Test52NS1gEv void g() { } } } @@ -235,7 +235,7 @@ namespace Test7 { class B : public A {}; B b; // top of file - // CHECK: define linkonce_odr hidden void @_ZN5Test74ArefILZNS_1aEEE3fooEv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN5Test74ArefILZNS_1aEEE3fooEv() void test() { Aref<a>::foo(); } @@ -244,7 +244,7 @@ namespace Test7 { namespace Test8 { void foo(); void bar() {} - // CHECK-HIDDEN: define hidden void @_ZN5Test83barEv() + // CHECK-HIDDEN-LABEL: define hidden void @_ZN5Test83barEv() // CHECK-HIDDEN: declare void @_ZN5Test83fooEv() void test() { @@ -260,8 +260,8 @@ namespace Test9 { void DEFAULT test9_fun(struct A *a) { } struct A DEFAULT test9_var; // above } - // CHECK: define void @test9_fun( - // CHECK-HIDDEN: define void @test9_fun( + // CHECK-LABEL: define void @test9_fun( + // CHECK-HIDDEN-LABEL: define void @test9_fun( void test() { A a = test9_var; @@ -277,8 +277,8 @@ namespace Test10 { void foo(A*); }; - // CHECK: define void @_ZN6Test101B3fooEPNS_1AE( - // CHECK-HIDDEN: define void @_ZN6Test101B3fooEPNS_1AE( + // CHECK-LABEL: define void @_ZN6Test101B3fooEPNS_1AE( + // CHECK-HIDDEN-LABEL: define void @_ZN6Test101B3fooEPNS_1AE( void B::foo(A*) {} } @@ -295,10 +295,10 @@ namespace Test11 { a.bar(); } - // CHECK: define linkonce_odr void @_ZN6Test111A3fooEv( - // CHECK: define linkonce_odr void @_ZN6Test111A3barEv( - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6Test111A3fooEv( - // CHECK-HIDDEN: define linkonce_odr void @_ZN6Test111A3barEv( + // CHECK-LABEL: define linkonce_odr void @_ZN6Test111A3fooEv( + // CHECK-LABEL: define linkonce_odr void @_ZN6Test111A3barEv( + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6Test111A3fooEv( + // CHECK-HIDDEN-LABEL: define linkonce_odr void @_ZN6Test111A3barEv( } // Tested at top of file. @@ -485,7 +485,7 @@ namespace Test20 { static void test1(); }; - // CHECK: define hidden void @_ZN6Test201AILj0EE5test0Ev() + // CHECK-LABEL: define hidden void @_ZN6Test201AILj0EE5test0Ev() void A<0>::test0() {} // CHECK: declare hidden void @_ZN6Test201AILj0EE5test1Ev() @@ -499,7 +499,7 @@ namespace Test20 { static void test3(); }; - // CHECK: define void @_ZN6Test201AILj1EE5test2Ev() + // CHECK-LABEL: define void @_ZN6Test201AILj1EE5test2Ev() void A<1>::test2() {} // CHECK: declare void @_ZN6Test201AILj1EE5test3Ev() @@ -515,7 +515,7 @@ namespace Test20 { static void test5(); }; - // CHECK: define linkonce_odr hidden void @_ZN6Test201BINS_1AILj2EEEE5test4Ev() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6Test201BINS_1AILj2EEEE5test4Ev() void test4() { B<A<2> >::test4(); } @@ -533,7 +533,7 @@ namespace test21 { DEFAULT void foo() {} }; - // CHECK: define weak_odr void @_ZN6test211AILNS_2EnE0EE3fooEv( + // CHECK-LABEL: define weak_odr void @_ZN6test211AILNS_2EnE0EE3fooEv( template void A<en>::foo(); } @@ -560,13 +560,13 @@ namespace test22 { B<A2>::bar(); } // CHECK: declare void @_ZN6test221BINS_2A1EE3fooEv() - // CHECK: define linkonce_odr void @_ZN6test221BINS_2A1EE3barEv() + // CHECK-LABEL: define linkonce_odr void @_ZN6test221BINS_2A1EE3barEv() // CHECK: declare void @_ZN6test221BINS_2A2EE3fooEv() - // CHECK: define linkonce_odr void @_ZN6test221BINS_2A2EE3barEv() + // CHECK-LABEL: define linkonce_odr void @_ZN6test221BINS_2A2EE3barEv() // CHECK-HIDDEN: declare void @_ZN6test221BINS_2A1EE3fooEv() - // CHECK-HIDDEN: define linkonce_odr void @_ZN6test221BINS_2A1EE3barEv() + // CHECK-HIDDEN-LABEL: define linkonce_odr void @_ZN6test221BINS_2A1EE3barEv() // CHECK-HIDDEN: declare void @_ZN6test221BINS_2A2EE3fooEv() - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test221BINS_2A2EE3barEv() + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test221BINS_2A2EE3barEv() } namespace PR10113 { @@ -577,14 +577,14 @@ namespace PR10113 { }; } template class foo::bar<char>; - // CHECK: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv - // CHECK-HIDDEN: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN7PR101133foo3barIcE3zedEv struct zed { }; template class foo::bar<zed>; - // CHECK: define weak_odr void @_ZN7PR101133foo3barINS_3zedEE3zedEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN7PR101133foo3barINS_3zedEE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN7PR101133foo3barINS_3zedEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN7PR101133foo3barINS_3zedEE3zedEv } namespace PR11690 { @@ -593,13 +593,13 @@ namespace PR11690 { } }; template class DEFAULT Class<char>; - // CHECK: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv - // CHECK-HIDDEN: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv + // CHECK-LABEL: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZNK7PR116905ClassIcE4sizeEv template<class T> void Method() {} template DEFAULT void Method<char>(); - // CHECK: define weak_odr void @_ZN7PR116906MethodIcEEvv - // CHECK-HIDDEN: define weak_odr void @_ZN7PR116906MethodIcEEvv + // CHECK-LABEL: define weak_odr void @_ZN7PR116906MethodIcEEvv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN7PR116906MethodIcEEvv } namespace PR11690_2 { @@ -614,8 +614,8 @@ namespace PR11690_2 { struct baz { }; template class foo::zed<baz>; - // CHECK: define weak_odr void @_ZN9PR11690_23foo3zedINS_3bazENS0_3barEE3barEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN9PR11690_23foo3zedINS_3bazENS0_3barEE3barEv + // CHECK-LABEL: define weak_odr void @_ZN9PR11690_23foo3zedINS_3bazENS0_3barEE3barEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN9PR11690_23foo3zedINS_3bazENS0_3barEE3barEv } namespace test23 { @@ -633,8 +633,8 @@ namespace test23 { X<A> y; y.f(); } - // CHECK: define linkonce_odr void @_ZN6test231XINS_1AEE1fEv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test231XINS_1AEE1fEv + // CHECK-LABEL: define linkonce_odr void @_ZN6test231XINS_1AEE1fEv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test231XINS_1AEE1fEv } namespace PR12001 { @@ -647,8 +647,8 @@ namespace PR12001 { void f() { Bind(Version()); } - // CHECK: define linkonce_odr void @_ZN7PR120014BindINS_7VersionEEEvRKT_ - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN7PR120014BindINS_7VersionEEEvRKT_ + // CHECK-LABEL: define linkonce_odr void @_ZN7PR120014BindINS_7VersionEEEvRKT_ + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN7PR120014BindINS_7VersionEEEvRKT_ } namespace test24 { @@ -663,8 +663,8 @@ namespace test24 { S s; s.mem<A>(); } - // CHECK: define linkonce_odr void @_ZN6test241S3memINS_1AEEEvv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test241S3memINS_1AEEEvv + // CHECK-LABEL: define linkonce_odr void @_ZN6test241S3memINS_1AEEEvv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test241S3memINS_1AEEEvv } namespace test26 { @@ -676,8 +676,8 @@ namespace test26 { template<> void C<int>::f() { } - // CHECK: define void @_ZN6test261CIiE1fEv - // CHECK-HIDDEN: define void @_ZN6test261CIiE1fEv + // CHECK-LABEL: define void @_ZN6test261CIiE1fEv + // CHECK-HIDDEN-LABEL: define void @_ZN6test261CIiE1fEv } namespace test31 { @@ -701,8 +701,8 @@ namespace test32 { }; void A::B::baz() { } - // CHECK: define void @_ZN6test321A1B3bazEv - // CHECK-HIDDEN: define void @_ZN6test321A1B3bazEv + // CHECK-LABEL: define void @_ZN6test321A1B3bazEv + // CHECK-HIDDEN-LABEL: define void @_ZN6test321A1B3bazEv } namespace test33 { @@ -713,8 +713,8 @@ namespace test33 { struct HIDDEN zed { }; template class DEFAULT foo<zed>; - // CHECK: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv + // CHECK-LABEL: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv } namespace test34 { @@ -723,8 +723,8 @@ namespace test34 { template<class T> void bar() {} template DEFAULT void bar<foo>(); - // CHECK: define weak_odr void @_ZN6test343barINS_3fooEEEvv - // CHECK-HIDDEN: define weak_odr void @_ZN6test343barINS_3fooEEEvv + // CHECK-LABEL: define weak_odr void @_ZN6test343barINS_3fooEEEvv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test343barINS_3fooEEEvv } namespace test35 { @@ -741,8 +741,8 @@ namespace test35 { template class foo<zed>; class DEFAULT zed { }; - // CHECK: define weak_odr void @_ZN6test353fooINS_3zedEE3barEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test353fooINS_3zedEE3barEv + // CHECK-LABEL: define weak_odr void @_ZN6test353fooINS_3zedEE3barEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test353fooINS_3zedEE3barEv } namespace test36 { @@ -753,8 +753,8 @@ namespace test36 { class DEFAULT S1 {}; struct HIDDEN S2 {}; template class foo<S1, S2>; - // CHECK: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test363fooINS_2S1ENS_2S2EE3barEv } namespace test37 { @@ -763,8 +763,8 @@ namespace test37 { template<class T> DEFAULT void bar() {} template DEFAULT void bar<foo>(); - // CHECK: define weak_odr void @_ZN6test373barINS_3fooEEEvv - // CHECK-HIDDEN: define weak_odr void @_ZN6test373barINS_3fooEEEvv + // CHECK-LABEL: define weak_odr void @_ZN6test373barINS_3fooEEEvv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test373barINS_3fooEEEvv } namespace test38 { @@ -775,8 +775,8 @@ namespace test38 { struct HIDDEN zed { }; template class foo<zed>; - // CHECK: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test383fooINS_3zedEE3barEv } namespace test39 { @@ -794,19 +794,19 @@ namespace test39 { template void A<hidden_t>::B<hidden_t>::temp<default_t>(); template void A<hidden_t>::B<hidden_t>::temp<hidden_t>(); - // CHECK: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv - // CHECK: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E6noattrEv - // CHECK: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempINS_9default_tEEEvv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv + // CHECK-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E6noattrEv + // CHECK-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempINS_9default_tEEEvv // GCC produces a default for this one. Why? - // CHECK: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E6noattrEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempINS_9default_tEEEvv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E6hiddenEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E6noattrEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempINS_9default_tEEEvv // GCC produces a default for this one. Why? - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test391AINS_8hidden_tEE1BIS1_E4tempIS1_EEvv } namespace test42 { @@ -821,8 +821,8 @@ namespace test42 { }; void bar<foo>::zed() { } - // CHECK: define void @_ZN6test423barINS_3fooEE3zedEv - // CHECK-HIDDEN: define void @_ZN6test423barINS_3fooEE3zedEv + // CHECK-LABEL: define void @_ZN6test423barINS_3fooEE3zedEv + // CHECK-HIDDEN-LABEL: define void @_ZN6test423barINS_3fooEE3zedEv } namespace test43 { @@ -834,8 +834,8 @@ namespace test43 { template <> DEFAULT void bar<foo>() { } - // CHECK: define void @_ZN6test433barINS_3fooEEEvv - // CHECK-HIDDEN: define void @_ZN6test433barINS_3fooEEEvv + // CHECK-LABEL: define void @_ZN6test433barINS_3fooEEEvv + // CHECK-HIDDEN-LABEL: define void @_ZN6test433barINS_3fooEEEvv } namespace test44 { @@ -848,8 +848,8 @@ namespace test44 { } template struct DEFAULT foo<bar>; foo<bar> x; - // CHECK: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev - // CHECK-HIDDEN: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev + // CHECK-LABEL: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev + // CHECK-HIDDEN-LABEL: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev } namespace test45 { @@ -865,8 +865,8 @@ namespace test45 { } template struct DEFAULT foo<int>::bar<zed>; foo<int>::bar<zed> x; - // CHECK: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev - // CHECK-HIDDEN: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev + // CHECK-LABEL: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev + // CHECK-HIDDEN-LABEL: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev } namespace test46 { @@ -880,8 +880,8 @@ namespace test46 { void zed() { foo<bar>(); } - // CHECK: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv - // CHECK-HIDDEN: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv + // CHECK-LABEL: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv + // CHECK-HIDDEN-LABEL: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv } namespace test47 { @@ -897,8 +897,8 @@ namespace test47 { void baz() { foo::bar<zed>(); } - // CHECK: define internal void @_ZN6test473foo3barINS_12_GLOBAL__N_13zedEEEvv - // CHECK-HIDDEN: define internal void @_ZN6test473foo3barINS_12_GLOBAL__N_13zedEEEvv + // CHECK-LABEL: define internal void @_ZN6test473foo3barINS_12_GLOBAL__N_13zedEEEvv + // CHECK-HIDDEN-LABEL: define internal void @_ZN6test473foo3barINS_12_GLOBAL__N_13zedEEEvv } namespace test49 { @@ -918,8 +918,8 @@ namespace test49 { }; template void bar::zed<&x>(); - // CHECK: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test493bar3zedIXadL_ZNS_1xEEEEEvv } namespace test50 { @@ -936,8 +936,8 @@ namespace test50 { } }; template void bar<&x>::zed(); - // CHECK: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test503barIXadL_ZNS_1xEEEE3zedEv } namespace test51 { @@ -952,8 +952,8 @@ namespace test51 { void DEFAULT zed() { } template void zed<&x>(); - // CHECK: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv - // CHECK-HIDDEN: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv + // CHECK-LABEL: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv + // CHECK-HIDDEN-LABEL: define weak_odr hidden void @_ZN6test513zedIXadL_ZNS_1xEEEEEvv } namespace test52 { @@ -971,8 +971,8 @@ namespace test52 { void f() { zed<nullptr>(); } - // CHECK: define internal void @_ZN6test523zedILPNS_12_GLOBAL__N_13fooE0EEEvv - // CHECK-HIDDEN: define internal void @_ZN6test523zedILPNS_12_GLOBAL__N_13fooE0EEEvv + // CHECK-LABEL: define internal void @_ZN6test523zedILPNS_12_GLOBAL__N_13fooE0EEEvv + // CHECK-HIDDEN-LABEL: define internal void @_ZN6test523zedILPNS_12_GLOBAL__N_13fooE0EEEvv } namespace test53 { @@ -1074,8 +1074,8 @@ namespace test58 { bar<foo>::zed(); } #pragma GCC visibility pop - // CHECK: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test583barINS_3fooEE3zedEv } namespace test59 { @@ -1086,12 +1086,12 @@ namespace test59 { void test() {} void use() { test<&g, &f>(); - // CHECK: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1fEvEEEEvv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1fEvEEEEvv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1fEvEEEEvv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1gEvEEXadL_ZNS_1fEvEEEEvv test<&f, &g>(); - // CHECK: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1gEvEEEEvv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1gEvEEEEvv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1gEvEEEEvv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test594testIXadL_ZNS_1fEvEEXadL_ZNS_1gEvEEEEvv } } @@ -1104,12 +1104,12 @@ namespace test60 { void test() {} void use() { test<a, b>(); - // CHECK: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1aENS_1bEEEvv test<b, a>(); - // CHECK: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv - // CHECK-HIDDEN: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv + // CHECK-HIDDEN-LABEL: define linkonce_odr hidden void @_ZN6test604testINS_1bENS_1aEEEvv } } @@ -1171,8 +1171,8 @@ namespace test63 { A::foo<E0>(); A::B<E0>::foo(); } - // CHECK: define linkonce_odr hidden void @_ZN6test631A3fooILNS_1EE0EEEvv() - // CHECK: define linkonce_odr hidden void @_ZN6test631A1BILNS_1EE0EE3fooEv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test631A3fooILNS_1EE0EEEvv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test631A1BILNS_1EE0EE3fooEv() } // Don't ignore the visibility of template arguments just because we @@ -1184,7 +1184,7 @@ namespace test64 { }; template class B<A>; - // CHECK: define weak_odr hidden void @_ZN6test641BINS_1AEE3fooEv() + // CHECK-LABEL: define weak_odr hidden void @_ZN6test641BINS_1AEE3fooEv() } namespace test65 { @@ -1200,23 +1200,23 @@ namespace test65 { static void foo() {} }; - // CHECK: define void @_ZN6test651BINS_1AEE4funcEv() + // CHECK-LABEL: define void @_ZN6test651BINS_1AEE4funcEv() template <> DEFAULT void B<A>::func() {} - // CHECK: define void @_ZN6test651BINS_1AEE6funcT2IS1_EEvv() + // CHECK-LABEL: define void @_ZN6test651BINS_1AEE6funcT2IS1_EEvv() template <> template <> DEFAULT void B<A>::funcT2<A>() {} - // CHECK: define linkonce_odr void @_ZN6test651BINS_1AEE6funcT1IiEEvv() - // CHECK: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6funcT1IS1_EEvv() + // CHECK-LABEL: define linkonce_odr void @_ZN6test651BINS_1AEE6funcT1IiEEvv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6funcT1IS1_EEvv() template <> template <class T> DEFAULT void B<A>::funcT1() {} - // CHECK: define linkonce_odr void @_ZN6test651BINS_1AEE5Inner3fooEv() + // CHECK-LABEL: define linkonce_odr void @_ZN6test651BINS_1AEE5Inner3fooEv() template <> struct DEFAULT B<A>::Inner { static void foo() {} }; - // CHECK: define linkonce_odr void @_ZN6test651BINS_1AEE6InnerTIiE3fooEv() - // CHECK: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6InnerTIS1_E3fooEv() + // CHECK-LABEL: define linkonce_odr void @_ZN6test651BINS_1AEE6InnerTIiE3fooEv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN6test651BINS_1AEE6InnerTIS1_E3fooEv() template <> template <class U> struct DEFAULT B<A>::InnerT { static void foo() {} }; @@ -1240,8 +1240,8 @@ namespace test66 { class foo; class DEFAULT foo; template struct barT<foo>; - // CHECK: define weak_odr void @_ZN6test664barTINS_3fooEE3zedEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test664barTINS_3fooEE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN6test664barTINS_3fooEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barTINS_3fooEE3zedEv template <int* I> struct DEFAULT barI { @@ -1250,8 +1250,8 @@ namespace test66 { extern int I; extern int I DEFAULT; template struct barI<&I>; - // CHECK: define weak_odr void @_ZN6test664barIIXadL_ZNS_1IEEEE3zedEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test664barIIXadL_ZNS_1IEEEE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN6test664barIIXadL_ZNS_1IEEEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barIIXadL_ZNS_1IEEEE3zedEv typedef void (*fType)(void); template<fType F> @@ -1261,8 +1261,8 @@ namespace test66 { void F(); void F() DEFAULT; template struct barF<F>; - // CHECK: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv } namespace test67 { @@ -1278,8 +1278,8 @@ namespace test67 { class DEFAULT foo; template struct bar<foo>; - // CHECK: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv - // CHECK-HIDDEN: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv + // CHECK-LABEL: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv + // CHECK-HIDDEN-LABEL: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv } namespace test68 { diff --git a/clang/test/CodeGenCXX/vla.cpp b/clang/test/CodeGenCXX/vla.cpp index b523c769d54..b22f21c3faf 100644 --- a/clang/test/CodeGenCXX/vla.cpp +++ b/clang/test/CodeGenCXX/vla.cpp @@ -16,7 +16,7 @@ int f() { // rdar://problem/9506377 void test0(void *array, int n) { - // CHECK: define void @_Z5test0Pvi( + // CHECK-LABEL: define void @_Z5test0Pvi( // CHECK: [[ARRAY:%.*]] = alloca i8*, align 8 // CHECK-NEXT: [[N:%.*]] = alloca i32, align 4 // CHECK-NEXT: [[REF:%.*]] = alloca i16*, align 8 diff --git a/clang/test/CodeGenCXX/volatile.cpp b/clang/test/CodeGenCXX/volatile.cpp index 6ebb2f11fca..38c8829347c 100644 --- a/clang/test/CodeGenCXX/volatile.cpp +++ b/clang/test/CodeGenCXX/volatile.cpp @@ -11,7 +11,7 @@ namespace test0 { volatile A *array; - // CHECK: define void @_ZN5test04testENS_1AE( + // CHECK-LABEL: define void @_ZN5test04testENS_1AE( void test(A t) { // CHECK: [[ARR:%.*]] = load [[A:%.*]]** @_ZN5test05arrayE, align 8 // CHECK-NEXT: [[IDX:%.*]] = getelementptr inbounds [[A]]* [[ARR]], i64 0 @@ -24,7 +24,7 @@ namespace test0 { namespace test1 { volatile int *x; - // CHECK: define void @_ZN5test14testEv() + // CHECK-LABEL: define void @_ZN5test14testEv() void test() { // CHECK: [[TMP:%.*]] = load i32** @_ZN5test11xE, align 8 // CHECK-NEXT: ret void diff --git a/clang/test/CodeGenCXX/vtable-available-externally.cpp b/clang/test/CodeGenCXX/vtable-available-externally.cpp index 693b36abe50..1c910dcc934 100644 --- a/clang/test/CodeGenCXX/vtable-available-externally.cpp +++ b/clang/test/CodeGenCXX/vtable-available-externally.cpp @@ -28,7 +28,7 @@ void f(A* a) { a->f(); }; -// CHECK: define void @_ZN5Test11gEv +// CHECK-LABEL: define void @_ZN5Test11gEv // CHECK: call void @_ZN5Test11A1fEv void g() { A a; @@ -106,7 +106,7 @@ void f() { } // PR9130, test that we emit a definition of A::f. -// CHECK-TEST5: define linkonce_odr void @_ZN5Test51A1fEv +// CHECK-TEST5-LABEL: define linkonce_odr void @_ZN5Test51A1fEv namespace Test5 { struct A { @@ -160,7 +160,7 @@ struct c28 : virtual c11{ void f6 (); }; -// CHECK-TEST7: define void @_ZN5Test79check_c28Ev +// CHECK-TEST7-LABEL: define void @_ZN5Test79check_c28Ev // CHECK-TEST7: call void @_ZN5Test73c282f6Ev // CHECK-TEST7: ret void void check_c28 () { diff --git a/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp b/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp index 9b1eaa5ba77..85e08d8f0f9 100644 --- a/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp +++ b/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp @@ -19,14 +19,14 @@ struct A : Base { Field field; }; -// CHECK: define void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr // CHECK: call void @_ZN4BaseC2Ev( // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2) // CHECK: call void @_ZN5FieldC1Ev( // CHECK: ret void A::A() { } -// CHECK: define void @_ZN1AD2Ev(%struct.A* %this) unnamed_addr +// CHECK-LABEL: define void @_ZN1AD2Ev(%struct.A* %this) unnamed_addr // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2) // CHECK: call void @_ZN5FieldD1Ev( // CHECK: call void @_ZN4BaseD2Ev( @@ -41,16 +41,16 @@ struct B : Base { void f() { B b; } -// CHECK: define linkonce_odr void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr // CHECK: call void @_ZN1BC2Ev( -// CHECK: define linkonce_odr void @_ZN1BD1Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1BD1Ev(%struct.B* %this) unnamed_addr // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2) // CHECK: call void @_ZN5FieldD1Ev( // CHECK: call void @_ZN4BaseD2Ev( // CHECK: ret void -// CHECK: define linkonce_odr void @_ZN1BC2Ev(%struct.B* %this) unnamed_addr +// CHECK-LABEL: define linkonce_odr void @_ZN1BC2Ev(%struct.B* %this) unnamed_addr // CHECK: call void @_ZN4BaseC2Ev( // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2) // CHECK: call void @_ZN5FieldC1Ev diff --git a/clang/test/CodeGenCXX/x86_32-arguments.cpp b/clang/test/CodeGenCXX/x86_32-arguments.cpp index 4404de0f88e..2c7234e038c 100644 --- a/clang/test/CodeGenCXX/x86_32-arguments.cpp +++ b/clang/test/CodeGenCXX/x86_32-arguments.cpp @@ -6,9 +6,9 @@ struct S { short s; }; -// CHECK: define void @_Z1fv(%struct.S* noalias sret % +// CHECK-LABEL: define void @_Z1fv(%struct.S* noalias sret % S f() { return S(); } -// CHECK: define void @_Z1f1S(%struct.S*) +// CHECK-LABEL: define void @_Z1f1S(%struct.S*) void f(S) { } // Non-trivial dtors, should both be passed indirectly. @@ -18,10 +18,10 @@ public: double c; }; -// CHECK: define void @_Z1gv(%class.C* noalias sret % +// CHECK-LABEL: define void @_Z1gv(%class.C* noalias sret % C g() { return C(); } -// CHECK: define void @_Z1f1C(%class.C*) +// CHECK-LABEL: define void @_Z1f1C(%class.C*) void f(C) { } @@ -29,7 +29,7 @@ void f(C) { } // PR7058 - Missing byval on MI thunk definition. -// CHECK: define void @_ZThn4_N18BasicAliasAnalysis13getModRefInfoE8CallSite +// CHECK-LABEL: define void @_ZThn4_N18BasicAliasAnalysis13getModRefInfoE8CallSite // ... // CHECK: %struct.CallSite* byval align 4 %CS) struct CallSite { @@ -57,38 +57,38 @@ void BasicAliasAnalysis::getModRefInfo(CallSite CS) { // // PR7098. -// CHECK: define i64 @_Z2f0v() +// CHECK-LABEL: define i64 @_Z2f0v() struct s0_0 { int x; }; struct s0_1 : s0_0 { int* y; }; s0_1 f0() { return s0_1(); } -// CHECK: define i32 @_Z2f1v() +// CHECK-LABEL: define i32 @_Z2f1v() struct s1_0 { int x; }; struct s1_1 : s1_0 { }; s1_1 f1() { return s1_1(); } -// CHECK: define double @_Z2f2v() +// CHECK-LABEL: define double @_Z2f2v() struct s2_0 { double x; }; struct s2_1 : s2_0 { }; s2_1 f2() { return s2_1(); } -// CHECK: define double @_Z2f3v() +// CHECK-LABEL: define double @_Z2f3v() struct s3_0 { }; struct s3_1 { double x; }; struct s3_2 : s3_0, s3_1 { }; s3_2 f3() { return s3_2(); } -// CHECK: define i64 @_Z2f4v() +// CHECK-LABEL: define i64 @_Z2f4v() struct s4_0 { float x; }; struct s4_1 { float x; }; struct s4_2 : s4_0, s4_1 { }; s4_2 f4() { return s4_2(); } -// CHECK: define i32* @_Z2f5v() +// CHECK-LABEL: define i32* @_Z2f5v() struct s5 { s5(); int &x; }; s5 f5() { return s5(); } -// CHECK: define i32 @_Z4f6_0M2s6i(i32 %a) +// CHECK-LABEL: define i32 @_Z4f6_0M2s6i(i32 %a) // CHECK: define i64 @_Z4f6_1M2s6FivE({ i32, i32 }* byval align 4) // FIXME: It would be nice to avoid byval on the previous case. struct s6 {}; @@ -97,19 +97,19 @@ typedef int (s6::*s6_mfp)(); s6_mdp f6_0(s6_mdp a) { return a; } s6_mfp f6_1(s6_mfp a) { return a; } -// CHECK: define double @_Z2f7v() +// CHECK-LABEL: define double @_Z2f7v() struct s7_0 { unsigned : 0; }; struct s7_1 { double x; }; struct s7 : s7_0, s7_1 { }; s7 f7() { return s7(); } -// CHECK: define void @_Z2f8v(%struct.s8* noalias sret %agg.result) +// CHECK-LABEL: define void @_Z2f8v(%struct.s8* noalias sret %agg.result) struct s8_0 { }; struct s8_1 { double x; }; struct s8 { s8_0 a; s8_1 b; }; s8 f8() { return s8(); } -// CHECK: define void @_Z2f9v(%struct.s9* noalias sret %agg.result) +// CHECK-LABEL: define void @_Z2f9v(%struct.s9* noalias sret %agg.result) struct s9_0 { unsigned : 0; }; struct s9_1 { double x; }; struct s9 { s9_0 a; s9_1 b; }; diff --git a/clang/test/CodeGenCXX/x86_64-arguments.cpp b/clang/test/CodeGenCXX/x86_64-arguments.cpp index 672180363fc..2172e0810d7 100644 --- a/clang/test/CodeGenCXX/x86_64-arguments.cpp +++ b/clang/test/CodeGenCXX/x86_64-arguments.cpp @@ -3,28 +3,28 @@ // Basic base class test. struct f0_s0 { unsigned a; }; struct f0_s1 : public f0_s0 { void *b; }; -// CHECK: define void @_Z2f05f0_s1(i32 %a0.coerce0, i8* %a0.coerce1) +// CHECK-LABEL: define void @_Z2f05f0_s1(i32 %a0.coerce0, i8* %a0.coerce1) void f0(f0_s1 a0) { } // Check with two eight-bytes in base class. struct f1_s0 { unsigned a; unsigned b; float c; }; struct f1_s1 : public f1_s0 { float d;}; -// CHECK: define void @_Z2f15f1_s1(i64 %a0.coerce0, <2 x float> %a0.coerce1) +// CHECK-LABEL: define void @_Z2f15f1_s1(i64 %a0.coerce0, <2 x float> %a0.coerce1) void f1(f1_s1 a0) { } // Check with two eight-bytes in base class and merge. struct f2_s0 { unsigned a; unsigned b; float c; }; struct f2_s1 : public f2_s0 { char d;}; -// CHECK: define void @_Z2f25f2_s1(i64 %a0.coerce0, i64 %a0.coerce1) +// CHECK-LABEL: define void @_Z2f25f2_s1(i64 %a0.coerce0, i64 %a0.coerce1) void f2(f2_s1 a0) { } // PR5831 -// CHECK: define void @_Z2f34s3_1(i64 %x.coerce) +// CHECK-LABEL: define void @_Z2f34s3_1(i64 %x.coerce) struct s3_0 {}; struct s3_1 { struct s3_0 a; long b; }; void f3(struct s3_1 x) {} -// CHECK: define i64 @_Z4f4_0M2s4i(i64 %a) +// CHECK-LABEL: define i64 @_Z4f4_0M2s4i(i64 %a) // CHECK: define {{.*}} @_Z4f4_1M2s4FivE(i64 %a.coerce0, i64 %a.coerce1) struct s4 {}; typedef int s4::* s4_mdp; @@ -41,7 +41,7 @@ struct StringRef { void AddKeyword(StringRef, int x); void foo() { - // CHECK: define void @_ZN6PR75233fooEv() + // CHECK-LABEL: define void @_ZN6PR75233fooEv() // CHECK: call void @_ZN6PR752310AddKeywordENS_9StringRefEi(i8* {{.*}}, i32 4) AddKeyword(StringRef(), 4); } @@ -54,7 +54,7 @@ namespace PR7742 { // Also rdar://8250764 struct c2 : public s2 {}; - // CHECK: define <2 x float> @_ZN6PR77423fooEPNS_2c2E(%"struct.PR7742::c2"* %P) + // CHECK-LABEL: define <2 x float> @_ZN6PR77423fooEPNS_2c2E(%"struct.PR7742::c2"* %P) c2 foo(c2 *P) { return c2(); } @@ -72,7 +72,7 @@ namespace PR5179 { B1 b1; }; - // CHECK: define i8* @_ZN6PR51793barENS_2B2E(i32* %b2.coerce) + // CHECK-LABEL: define i8* @_ZN6PR51793barENS_2B2E(i32* %b2.coerce) const void *bar(B2 b2) { return b2.b1.pa; } @@ -114,7 +114,7 @@ namespace test6 { int test(outer x) { return x.x + x.f; } - // CHECK: define i32 @_ZN5test64testENS_5outerE(i64 %x.coerce0, i32 %x.coerce1) + // CHECK-LABEL: define i32 @_ZN5test64testENS_5outerE(i64 %x.coerce0, i32 %x.coerce1) } namespace test7 { |