forked from OSchip/llvm-project
parent
464fe024c5
commit
42affc2db6
|
@ -14,7 +14,7 @@ void f0(void) { }
|
|||
extern void f1(void);
|
||||
extern void f1(void) __attribute((alias("f0")));
|
||||
// CHECKBASIC-DAG: @f1 = alias void ()* @f0
|
||||
// CHECKBASIC-DAG: @test8_foo = alias weak bitcast (void ()* @test8_bar to void (...)*)
|
||||
// CHECKBASIC-DAG: @test8_foo = weak alias bitcast (void ()* @test8_bar to void (...)*)
|
||||
// CHECKBASIC-DAG: @test8_zed = alias bitcast (void ()* @test8_bar to void (...)*)
|
||||
// CHECKBASIC-DAG: @test9_zed = alias void ()* @test9_bar
|
||||
// CHECKBASIC: define void @f0() [[NUW:#[0-9]+]] {
|
||||
|
|
|
@ -26,7 +26,7 @@ int t6 __attribute__((visibility("protected")));
|
|||
// CHECK: @t12 = global i32 0, section "SECT"
|
||||
int t12 __attribute__((section("SECT")));
|
||||
|
||||
// CHECK: @t9 = alias weak bitcast (void ()* @__t8 to void (...)*)
|
||||
// CHECK: @t9 = weak alias bitcast (void ()* @__t8 to void (...)*)
|
||||
void __t8() {}
|
||||
void t9() __attribute__((weak, alias("__t8")));
|
||||
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
|
||||
// CHECK-DAG: @both = alias void ()* @__both
|
||||
// CHECK-DAG: @both2 = alias void ()* @__both2
|
||||
// CHECK-DAG: @weakvar_alias = alias weak i32* @__weakvar_alias
|
||||
// CHECK-DAG: @foo = alias weak void ()* @__foo
|
||||
// CHECK-DAG: @foo2 = alias weak void ()* @__foo2
|
||||
// CHECK-DAG: @stutter = alias weak void ()* @__stutter
|
||||
// CHECK-DAG: @stutter2 = alias weak void ()* @__stutter2
|
||||
// CHECK-DAG: @declfirst = alias weak void ()* @__declfirst
|
||||
// CHECK-DAG: @declfirstattr = alias weak void ()* @__declfirstattr
|
||||
// CHECK-DAG: @mix2 = alias weak void ()* @__mix2
|
||||
// CHECK-DAG: @a1 = alias weak void ()* @__a1
|
||||
// CHECK-DAG: @xxx = alias weak void ()* @__xxx
|
||||
// CHECK-DAG: @weakvar_alias = weak alias i32* @__weakvar_alias
|
||||
// CHECK-DAG: @foo = weak alias void ()* @__foo
|
||||
// CHECK-DAG: @foo2 = weak alias void ()* @__foo2
|
||||
// CHECK-DAG: @stutter = weak alias void ()* @__stutter
|
||||
// CHECK-DAG: @stutter2 = weak alias void ()* @__stutter2
|
||||
// CHECK-DAG: @declfirst = weak alias void ()* @__declfirst
|
||||
// CHECK-DAG: @declfirstattr = weak alias void ()* @__declfirstattr
|
||||
// CHECK-DAG: @mix2 = weak alias void ()* @__mix2
|
||||
// CHECK-DAG: @a1 = weak alias void ()* @__a1
|
||||
// CHECK-DAG: @xxx = weak alias void ()* @__xxx
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -44,9 +44,9 @@ int e = V<int>::m;
|
|||
// CHECK: @llvm.global_ctors = appending global {{.*}} @[[GLOBAL_INIT:[^ ]*]]
|
||||
|
||||
// CHECK: @_ZTH1a = alias void ()* @__tls_init
|
||||
// CHECK: @_ZTHL1d = alias internal void ()* @__tls_init
|
||||
// CHECK: @_ZTHL1d = internal alias void ()* @__tls_init
|
||||
// CHECK: @_ZTHN1U1mE = alias void ()* @__tls_init
|
||||
// CHECK: @_ZTHN1VIiE1mE = alias linkonce_odr void ()* @__tls_init
|
||||
// CHECK: @_ZTHN1VIiE1mE = linkonce_odr alias void ()* @__tls_init
|
||||
|
||||
|
||||
// Individual variable initialization functions:
|
||||
|
|
|
@ -59,10 +59,10 @@ extern "C" {
|
|||
|
||||
// CHECK-NOT: @unused
|
||||
// CHECK-NOT: @duplicate_internal
|
||||
// CHECK: @internal_var = alias internal i32* @_Z12internal_var
|
||||
// CHECK: @internal_var = internal alias i32* @_Z12internal_var
|
||||
// CHECK-NOT: @unused
|
||||
// CHECK-NOT: @duplicate_internal
|
||||
// CHECK: @internal_fn = alias internal i32 ()* @_Z11internal_fnv
|
||||
// CHECK: @internal_fn = internal alias i32 ()* @_Z11internal_fnv
|
||||
// CHECK-NOT: @unused
|
||||
// CHECK-NOT: @duplicate_internal
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@ struct W {
|
|||
} w;
|
||||
}
|
||||
// RTTI-DAG: [[VTABLE_W:@.*]] = private unnamed_addr constant [2 x i8*] [i8* bitcast ({{.*}} @"\01??_R4W@?A@@6B@" to i8*), i8* bitcast ({{.*}} @"\01??_GW@?A@@UAEPAXI@Z" to i8*)], comdat $"\01??_7W@?A@@6B@"
|
||||
// RTTI-DAG: @"\01??_7W@?A@@6B@" = unnamed_addr alias internal getelementptr inbounds ([2 x i8*]* @1, i32 0, i32 1)
|
||||
// RTTI-DAG: @"\01??_7W@?A@@6B@" = internal unnamed_addr alias getelementptr inbounds ([2 x i8*]* @1, i32 0, i32 1)
|
||||
|
||||
// NO-RTTI-DAG: @"\01??_7W@?A@@6B@" = internal unnamed_addr constant [1 x i8*] [i8* bitcast ({{.*}} @"\01??_GW@?A@@UAEPAXI@Z" to i8*)]
|
||||
|
|
Loading…
Reference in New Issue