• Home
  • Raw
  • Download

Lines Matching refs:addrspace

4 @g = addrspace(3) global i32 89
6 @const_zero_i8_as1 = addrspace(1) constant i8 0
7 @const_zero_i32_as1 = addrspace(1) constant i32 0
9 @const_zero_i8_as2 = addrspace(2) constant i8 0
10 @const_zero_i32_as2 = addrspace(2) constant i32 0
12 @const_zero_i8_as3 = addrspace(3) constant i8 0
13 @const_zero_i32_as3 = addrspace(3) constant i32 0
17 define i32 addrspace(3)* @test_constant_fold_inttoptr_as_pointer_same_size() {
19 ; CHECK-NEXT: ret i32 addrspace(3)* @const_zero_i32_as3
20 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
21 %y = inttoptr i32 %x to i32 addrspace(3)*
22 ret i32 addrspace(3)* %y
26 define i32 addrspace(2)* @test_constant_fold_inttoptr_as_pointer_smaller() {
28 ; CHECK-NEXT: ret i32 addrspace(2)* @const_zero_i32_as2
29 %x = ptrtoint i32 addrspace(2)* @const_zero_i32_as2 to i16
30 %y = inttoptr i16 %x to i32 addrspace(2)*
31 ret i32 addrspace(2)* %y
36 define i32 addrspace(4)* @test_constant_fold_inttoptr_as_pointer_smaller_different_as() {
38 ; CHECK-NEXT: ret i32 addrspace(4)* inttoptr (i16 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
39 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i16
40 %y = inttoptr i16 %x to i32 addrspace(4)*
41 ret i32 addrspace(4)* %y
46 define i32 addrspace(2)* @test_constant_fold_inttoptr_as_pointer_smaller_different_size_as() {
48 ; CHECK-NEXT: ret i32 addrspace(2)* inttoptr (i32 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
49 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
50 %y = inttoptr i32 %x to i32 addrspace(2)*
51 ret i32 addrspace(2)* %y
55 define i32 addrspace(3)* @test_constant_fold_inttoptr_as_pointer_larger() {
57 ; CHECK-NEXT: ret i32 addrspace(3)* inttoptr (i8 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 to…
58 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i8
59 %y = inttoptr i8 %x to i32 addrspace(3)*
60 ret i32 addrspace(3)* %y
66 ret i8 ptrtoint (i32 addrspace(2)* inttoptr (i4 4 to i32 addrspace(2)*) to i8)
74 ret i8 ptrtoint (i32 addrspace(3)* inttoptr (i32 257 to i32 addrspace(3)*) to i8)
82 ret i64 ptrtoint (i32 addrspace(1)* inttoptr (i128 -1 to i32 addrspace(1)*) to i64)
85 define i32 addrspace(3)* @const_inttoptr() {
87 ; CHECK-NEXT: ret i32 addrspace(3)* inttoptr (i16 4 to i32 addrspace(3)*)
88 %p = inttoptr i16 4 to i32 addrspace(3)*
89 ret i32 addrspace(3)* %p
94 ; CHECK-NEXT: ret i16 ptrtoint (i32 addrspace(3)* @g to i16)
95 %i = ptrtoint i32 addrspace(3)* @g to i16
102 ret i16 ptrtoint (i32 addrspace(3)* inttoptr (i16 9 to i32 addrspace(3)*) to i16)
108 %x = icmp eq i32 addrspace(3)* inttoptr (i16 0 to i32 addrspace(3)*), null
115 …%x = icmp eq i32 addrspace(3)* inttoptr (i16 99 to i32 addrspace(3)*), inttoptr (i16 0 to i32 addr…
122 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* @g to i16), ptrtoint (i32 addrspace(3)* null to i16)
129 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* null to i16), ptrtoint (i32 addrspace(3)* @g to i16)
136 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* @g to i16), ptrtoint (i32 addrspace(3)* @g to i16)
143 …%x = icmp eq i32 addrspace(3)* inttoptr (i16 99 to i32 addrspace(3)*), inttoptr (i16 27 to i32 add…
147 @g_float_as3 = addrspace(3) global float zeroinitializer
148 @g_v4f_as3 = addrspace(3) global <4 x float> zeroinitializer
152 ; CHECK: load float, float addrspace(3)* bitcast (i32 addrspace(3)* @g to float addrspace(3)*), ali…
153 …%a = load float, float addrspace(3)* bitcast (i32 addrspace(3)* @g to float addrspace(3)*), align 4
159 ; CHECK: load i32, i32 addrspace(3)* bitcast (float addrspace(3)* @g_float_as3 to i32 addrspace(3)*…
160 …%a = load i32, i32 addrspace(3)* bitcast (float addrspace(3)* @g_float_as3 to i32 addrspace(3)*), …
166 ; CHECK: load <4 x float>, <4 x float> addrspace(3)* @g_v4f_as3, align 16
167 …at> addrspace(3)* bitcast (<4 x i32> addrspace(3)* bitcast (<4 x float> addrspace(3)* @g_v4f_as3 t…
171 @i32_array_as3 = addrspace(3) global [10 x i32] zeroinitializer
175 ; CHECK: load i32, i32 addrspace(3)* getelementptr inbounds ([10 x i32], [10 x i32] addrspace(3)* @…
176 %p = getelementptr [10 x i32], [10 x i32] addrspace(3)* @i32_array_as3, i7 0, i7 0
177 %x = load i32, i32 addrspace(3)* %p, align 4
181 %struct.foo = type { float, float, [4 x i32], i32 addrspace(3)* }
183 @constant_fold_global_ptr = addrspace(3) global %struct.foo {
187 …i32 addrspace(3)* getelementptr ([10 x i32], [10 x i32] addrspace(3)* @i32_array_as3, i64 0, i64 0)
192 ; CHECK: load i32, i32 addrspace(3)* getelementptr inbounds ([10 x i32], [10 x i32] addrspace(3)* @…
193 %p = getelementptr [10 x i32], [10 x i32] addrspace(3)* @i32_array_as3, i64 0, i64 0
194 %x = load i32, i32 addrspace(3)* %p, align 4
200 ; CHECK: load i32, i32 addrspace(3)* getelementptr inbounds (%struct.foo, %struct.foo addrspace(3)*…
201 …%x = getelementptr %struct.foo, %struct.foo addrspace(3)* @constant_fold_global_ptr, i18 0, i32 2,…
202 %y = load i32, i32 addrspace(3)* %x, align 4
206 @constant_data_as3 = addrspace(3) constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
211 %x = getelementptr [5 x i32], [5 x i32] addrspace(3)* @constant_data_as3, i32 0, i32 1
212 %y = load i32, i32 addrspace(3)* %x, align 4
216 @a = addrspace(1) constant i32 9
217 @b = addrspace(1) constant i32 23
218 @c = addrspace(1) constant i32 34
219 @d = addrspace(1) constant i32 99
221 @ptr_array = addrspace(2) constant [4 x i32 addrspace(1)*] [ i32 addrspace(1)* @a, i32 addrspace(1)…
222 …irect = addrspace(0) constant i32 addrspace(1)* addrspace(2)* getelementptr inbounds ([4 x i32 add…
227 …%p = load i32 addrspace(1)* addrspace(2)*, i32 addrspace(1)* addrspace(2)* addrspace(0)* @indirect…
228 %a = load i32 addrspace(1)*, i32 addrspace(1)* addrspace(2)* %p, align 4
229 %b = load i32, i32 addrspace(1)* %a, align 4
233 @shared_mem = external addrspace(3) global [0 x i8]
237 …ds float, float* addrspacecast (float addrspace(3)* bitcast ([0 x i8] addrspace(3)* @shared_mem to…
238 …%p = getelementptr inbounds float, float* addrspacecast ([0 x i8] addrspace(3)* @shared_mem to flo…