blob: 7f1965de7602c2c23fa29a867f1cd5d25ce99b45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
%opencl.image2d_t = type opaque
%opencl.image3d_t = type opaque
declare i32 @llvm.OpenCL.image.get.resource.id.2d(
%opencl.image2d_t addrspace(1)*) nounwind readnone
declare i32 @llvm.OpenCL.image.get.resource.id.3d(
%opencl.image3d_t addrspace(1)*) nounwind readnone
declare [3 x i32] @llvm.OpenCL.image.get.size.2d(
%opencl.image2d_t addrspace(1)*) nounwind readnone
declare [3 x i32] @llvm.OpenCL.image.get.size.3d(
%opencl.image3d_t addrspace(1)*) nounwind readnone
declare [2 x i32] @llvm.OpenCL.image.get.format.2d(
%opencl.image2d_t addrspace(1)*) nounwind readnone
declare [2 x i32] @llvm.OpenCL.image.get.format.3d(
%opencl.image3d_t addrspace(1)*) nounwind readnone
define i32 @__clc_get_image_width_2d(
%opencl.image2d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [3 x i32] @llvm.OpenCL.image.get.size.2d(
%opencl.image2d_t addrspace(1)* %img)
%2 = extractvalue [3 x i32] %1, 0
ret i32 %2
}
define i32 @__clc_get_image_width_3d(
%opencl.image3d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [3 x i32] @llvm.OpenCL.image.get.size.3d(
%opencl.image3d_t addrspace(1)* %img)
%2 = extractvalue [3 x i32] %1, 0
ret i32 %2
}
define i32 @__clc_get_image_height_2d(
%opencl.image2d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [3 x i32] @llvm.OpenCL.image.get.size.2d(
%opencl.image2d_t addrspace(1)* %img)
%2 = extractvalue [3 x i32] %1, 1
ret i32 %2
}
define i32 @__clc_get_image_height_3d(
%opencl.image3d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [3 x i32] @llvm.OpenCL.image.get.size.3d(
%opencl.image3d_t addrspace(1)* %img)
%2 = extractvalue [3 x i32] %1, 1
ret i32 %2
}
define i32 @__clc_get_image_depth_3d(
%opencl.image3d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [3 x i32] @llvm.OpenCL.image.get.size.3d(
%opencl.image3d_t addrspace(1)* %img)
%2 = extractvalue [3 x i32] %1, 2
ret i32 %2
}
define i32 @__clc_get_image_channel_data_type_2d(
%opencl.image2d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [2 x i32] @llvm.OpenCL.image.get.format.2d(
%opencl.image2d_t addrspace(1)* %img)
%2 = extractvalue [2 x i32] %1, 0
ret i32 %2
}
define i32 @__clc_get_image_channel_data_type_3d(
%opencl.image3d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [2 x i32] @llvm.OpenCL.image.get.format.3d(
%opencl.image3d_t addrspace(1)* %img)
%2 = extractvalue [2 x i32] %1, 0
ret i32 %2
}
define i32 @__clc_get_image_channel_order_2d(
%opencl.image2d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [2 x i32] @llvm.OpenCL.image.get.format.2d(
%opencl.image2d_t addrspace(1)* %img)
%2 = extractvalue [2 x i32] %1, 1
ret i32 %2
}
define i32 @__clc_get_image_channel_order_3d(
%opencl.image3d_t addrspace(1)* nocapture %img) #0 {
%1 = tail call [2 x i32] @llvm.OpenCL.image.get.format.3d(
%opencl.image3d_t addrspace(1)* %img)
%2 = extractvalue [2 x i32] %1, 1
ret i32 %2
}
attributes #0 = { nounwind readnone alwaysinline }
|