Home | History | Annotate | Download | only in CodeGenPrepare

Lines Matching full:base

8 define i32 @test_sor_basic(i32* %base) gc "statepoint-example" {
9 ; CHECK: getelementptr i32, i32* %base, i32 15
10 ; CHECK: getelementptr i32, i32* %base-new, i32 15
12 %ptr = getelementptr i32, i32* %base, i32 15
13 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr)
14 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
20 define i32 @test_sor_two_derived(i32* %base) gc "statepoint-example" {
21 ; CHECK: getelementptr i32, i32* %base, i32 15
22 ; CHECK: getelementptr i32, i32* %base, i32 12
23 ; CHECK: getelementptr i32, i32* %base-new, i32 12
24 ; CHECK: getelementptr i32, i32* %base-new, i32 15
26 %ptr = getelementptr i32, i32* %base, i32 15
27 %ptr2 = getelementptr i32, i32* %base, i32 12
28 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr, i32* %ptr2)
29 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
36 define i32 @test_sor_ooo(i32* %base) gc "statepoint-example" {
37 ; CHECK: getelementptr i32, i32* %base, i32 15
38 ; CHECK: getelementptr i32, i32* %base-new, i32 15
40 %ptr = getelementptr i32, i32* %base, i32 15
41 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr)
43 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
48 define i32 @test_sor_gep_smallint([3 x i32]* %base) gc "statepoint-example" {
49 ; CHECK: getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 2
50 ; CHECK: getelementptr [3 x i32], [3 x i32]* %base-new, i32 0, i32 2
52 %ptr = getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 2
53 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, [3 x i32]* %base, i32* %ptr)
54 %base-new = call [3 x i32]* @llvm.experimental.gc.relocate.p0a3i32(token %tok, i32 7, i32 7)
60 define i32 @test_sor_gep_largeint([3 x i32]* %base) gc "statepoint-example" {
61 ; CHECK: getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 21
62 ; CHECK-NOT: getelementptr [3 x i32], [3 x i32]* %base-new, i32 0, i32 21
64 %ptr = getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 21
65 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, [3 x i32]* %base, i32* %ptr)
66 %base-new = call [3 x i32]* @llvm.experimental.gc.relocate.p0a3i32(token %tok, i32 7, i32 7)
72 define i32 @test_sor_noop(i32* %base) gc "statepoint-example" {
73 ; CHECK: getelementptr i32, i32* %base, i32 15
77 %ptr = getelementptr i32, i32* %base, i32 15
78 %ptr2 = getelementptr i32, i32* %base, i32 12
79 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr, i32* %ptr2)
86 define i32 @test_sor_basic_wrong_order(i32* %base) gc "statepoint-example" {
88 ; Here we have base relocate inserted after derived. Make sure that we don't
89 ; produce uses of the relocated base pointer before it's definition.
91 %ptr = getelementptr i32, i32* %base, i32 15
92 ; CHECK: getelementptr i32, i32* %base, i32 15
93 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr)
95 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
96 ; CHECK: %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
97 ; CHECK-NEXT: getelementptr i32, i32* %base-new, i32 15
102 define i32 @test_sor_noop_cross_bb(i1 %external-cond, i32* %base) gc "statepoint-example" {
104 ; Here base relocate doesn't dominate derived relocate. Make sure that we don't
105 ; produce undefined use of the relocated base pointer.
107 %ptr = getelementptr i32, i32* %base, i32 15
108 ; CHECK: getelementptr i32, i32* %base, i32 15
109 %tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32* %base, i32* %ptr)
119 %ptr-base = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
121 %ret-base = load i32, i32* %ptr-base
122 ret i32 %ret-base