• Home
  • Raw
  • Download

Lines Matching refs:addrspace

5 declare void @llvm.memcpy.p2i8.p2i8.i32(i8 addrspace(2)* nocapture, i8 addrspace(2)* nocapture read…
6 declare void @llvm.memcpy.p1i8.p2i8.i32(i8 addrspace(1)* nocapture, i8 addrspace(2)* nocapture read…
7 declare void @llvm.memcpy.p2i8.p1i8.i32(i8 addrspace(2)* nocapture, i8 addrspace(1)* nocapture read…
8 declare void @llvm.memcpy.p1i8.p1i8.i32(i8 addrspace(1)* nocapture, i8 addrspace(1)* nocapture read…
13 ; CHECK: load <2 x i64>, <2 x i64> addrspace(1)* %a, align 2
14 ; CHECK: store <2 x i64> {{.*}}, <2 x i64> addrspace(1)* {{.*}}, align 2
16 define void @test_address_space_1_1(<2 x i64> addrspace(1)* %a, i16 addrspace(1)* %b) {
17 %aa = alloca <2 x i64>, align 16, addrspace(2)
18 %aptr = bitcast <2 x i64> addrspace(1)* %a to i8 addrspace(1)*
19 %aaptr = bitcast <2 x i64> addrspace(2)* %aa to i8 addrspace(2)*
20 …call void @llvm.memcpy.p2i8.p1i8.i32(i8 addrspace(2)* align 2 %aaptr, i8 addrspace(1)* align 2 %ap…
21 %bptr = bitcast i16 addrspace(1)* %b to i8 addrspace(1)*
22 …call void @llvm.memcpy.p1i8.p2i8.i32(i8 addrspace(1)* align 2 %bptr, i8 addrspace(2)* align 2 %aap…
27 ; CHECK: load <2 x i64>, <2 x i64> addrspace(1)* %a, align 2
28 ; CHECK: store <2 x i64> {{.*}}, <2 x i64> addrspace(2)* {{.*}}, align 2
30 define void @test_address_space_1_0(<2 x i64> addrspace(1)* %a, i16 addrspace(2)* %b) {
31 %aa = alloca <2 x i64>, align 16, addrspace(2)
32 %aptr = bitcast <2 x i64> addrspace(1)* %a to i8 addrspace(1)*
33 %aaptr = bitcast <2 x i64> addrspace(2)* %aa to i8 addrspace(2)*
34 …call void @llvm.memcpy.p2i8.p1i8.i32(i8 addrspace(2)* align 2 %aaptr, i8 addrspace(1)* align 2 %ap…
35 %bptr = bitcast i16 addrspace(2)* %b to i8 addrspace(2)*
36 …call void @llvm.memcpy.p2i8.p2i8.i32(i8 addrspace(2)* align 2 %bptr, i8 addrspace(2)* align 2 %aap…
41 ; CHECK: load <2 x i64>, <2 x i64> addrspace(2)* %a, align 2
42 ; CHECK: store <2 x i64> {{.*}}, <2 x i64> addrspace(1)* {{.*}}, align 2
44 define void @test_address_space_0_1(<2 x i64> addrspace(2)* %a, i16 addrspace(1)* %b) {
45 %aa = alloca <2 x i64>, align 16, addrspace(2)
46 %aptr = bitcast <2 x i64> addrspace(2)* %a to i8 addrspace(2)*
47 %aaptr = bitcast <2 x i64> addrspace(2)* %aa to i8 addrspace(2)*
48 …call void @llvm.memcpy.p2i8.p2i8.i32(i8 addrspace(2)* align 2 %aaptr, i8 addrspace(2)* align 2 %ap…
49 %bptr = bitcast i16 addrspace(1)* %b to i8 addrspace(1)*
50 …call void @llvm.memcpy.p1i8.p2i8.i32(i8 addrspace(1)* align 2 %bptr, i8 addrspace(2)* align 2 %aap…
60 %in = alloca %struct.struct_test_27.0.13, align 8, addrspace(2)
61 %0 = bitcast %struct.struct_test_27.0.13 addrspace(2)* %in to [5 x i64] addrspace(2)*
62 store [5 x i64] %in.coerce, [5 x i64] addrspace(2)* %0, align 8
63 …%scevgep9 = getelementptr %struct.struct_test_27.0.13, %struct.struct_test_27.0.13 addrspace(2)* %…
64 %scevgep910 = bitcast i32 addrspace(2)* %scevgep9 to i8 addrspace(2)*
65 …call void @llvm.memcpy.p1i8.p2i8.i32(i8 addrspace(1)* align 4 undef, i8 addrspace(2)* align 4 %sce…
72 @l = common addrspace(3) global i32 0, align 4
77 ; CHECK: %[[CAST:.*]] = bitcast i32* addrspace(2)* {{.*}} to i32 addrspace(3)* addrspace(2)*
78 ; CHECK: store i32 addrspace(3)* @l, i32 addrspace(3)* addrspace(2)* %[[CAST]]
80 %1 = alloca %union.anon, align 8, addrspace(2)
81 %2 = bitcast %union.anon addrspace(2)* %1 to i32* addrspace(2)*
82 store i32* @g, i32* addrspace(2)* %2, align 8
83 %3 = bitcast %union.anon addrspace(2)* %1 to i32 addrspace(3)* addrspace(2)*
84 store i32 addrspace(3)* @l, i32 addrspace(3)* addrspace(2)* %3, align 8
88 @l4 = common addrspace(4) global i32 0, align 4
94 ; CHECK: ret i32* inttoptr (i64 ptrtoint (i32 addrspace(4)* @l4 to i64) to i32*)
95 %1 = alloca %union.anon, align 8, addrspace(2)
96 %2 = bitcast %union.anon addrspace(2)* %1 to i32 addrspace(4)* addrspace(2)*
97 store i32 addrspace(4)* @l4, i32 addrspace(4)* addrspace(2)* %2, align 8
98 %3 = bitcast %union.anon addrspace(2)* %1 to i32* addrspace(2)*
99 %4 = load i32*, i32* addrspace(2)* %3, align 8
104 …ne void @test_load_store_diff_addr_space([2 x float] addrspace(1)* %complex1, [2 x float] addrspac…
107 ; CHECK: load i32, i32 addrspace(1)*
108 ; CHECK: load i32, i32 addrspace(1)*
109 ; CHECK: store i32 %{{.*}}, i32 addrspace(1)*
110 ; CHECK: store i32 %{{.*}}, i32 addrspace(1)*
111 %a0 = alloca [2 x i64], align 8, addrspace(2)
112 %a = getelementptr [2 x i64], [2 x i64] addrspace(2)* %a0, i32 0, i32 0
113 %a.cast = bitcast i64 addrspace(2)* %a to [2 x float] addrspace(2)*
114 %a.gep1 = getelementptr [2 x float], [2 x float] addrspace(2)* %a.cast, i32 0, i32 0
115 %a.gep2 = getelementptr [2 x float], [2 x float] addrspace(2)* %a.cast, i32 0, i32 1
116 %complex1.gep = getelementptr [2 x float], [2 x float] addrspace(1)* %complex1, i32 0, i32 0
117 %p1 = bitcast float addrspace(1)* %complex1.gep to i64 addrspace(1)*
118 %v1 = load i64, i64 addrspace(1)* %p1
119 store i64 %v1, i64 addrspace(2)* %a
120 %f1 = load float, float addrspace(2)* %a.gep1
121 %f2 = load float, float addrspace(2)* %a.gep2
123 store float %sum, float addrspace(2)* %a.gep1
124 store float %sum, float addrspace(2)* %a.gep2
125 %v2 = load i64, i64 addrspace(2)* %a
126 %complex2.gep = getelementptr [2 x float], [2 x float] addrspace(1)* %complex2, i32 0, i32 0
127 %p2 = bitcast float addrspace(1)* %complex2.gep to i64 addrspace(1)*
128 store i64 %v2, i64 addrspace(1)* %p2
136 %alloca = alloca i8, align 8, addrspace(2)
137 %cast = addrspacecast i8 addrspace(2)* %alloca to i8*