summaryrefslogtreecommitdiff
path: root/generic/lib/shared/vload_if.ll
diff options
context:
space:
mode:
Diffstat (limited to 'generic/lib/shared/vload_if.ll')
-rw-r--r--generic/lib/shared/vload_if.ll64
1 files changed, 64 insertions, 0 deletions
diff --git a/generic/lib/shared/vload_if.ll b/generic/lib/shared/vload_if.ll
new file mode 100644
index 0000000..2a0fa99
--- /dev/null
+++ b/generic/lib/shared/vload_if.ll
@@ -0,0 +1,64 @@
+;Start int global vload
+
+declare <2 x i32> @__clc_vload2_impl_int__global(i32 %x, i32 %y)
+define <2 x i32> @__clc_vload2_int__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <2 x i32> @__clc_vload2_impl_int__global(i32 %x, i32 %y)
+ ret <2 x i32> %call
+}
+
+declare <3 x i32> @__clc_vload3_impl_int__global(i32 %x, i32 %y)
+define <3 x i32> @__clc_vload3_int__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <3 x i32> @__clc_vload3_impl_int__global(i32 %x, i32 %y)
+ ret <3 x i32> %call
+}
+
+declare <4 x i32> @__clc_vload4_impl_int__global(i32 %x, i32 %y)
+define <4 x i32> @__clc_vload4_int__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <4 x i32> @__clc_vload4_impl_int__global(i32 %x, i32 %y)
+ ret <4 x i32> %call
+}
+
+declare <8 x i32> @__clc_vload8_impl_int__global(i32 %x, i32 %y)
+define <8 x i32> @__clc_vload8_int__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <8 x i32> @__clc_vload8_impl_int__global(i32 %x, i32 %y)
+ ret <8 x i32> %call
+}
+
+declare <16 x i32> @__clc_vload16_impl_int__global(i32 %x, i32 %y)
+define <16 x i32> @__clc_vload16_int__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <16 x i32> @__clc_vload16_impl_int__global(i32 %x, i32 %y)
+ ret <16 x i32> %call
+}
+
+
+;Start uint global vload
+
+declare <2 x i32> @__clc_vload2_impl_uint__global(i32 %x, i32 %y)
+define <2 x i32> @__clc_vload2_uint__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <2 x i32> @__clc_vload2_impl_uint__global(i32 %x, i32 %y)
+ ret <2 x i32> %call
+}
+
+declare <3 x i32> @__clc_vload3_impl_uint__global(i32 %x, i32 %y)
+define <3 x i32> @__clc_vload3_uint__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <3 x i32> @__clc_vload3_impl_uint__global(i32 %x, i32 %y)
+ ret <3 x i32> %call
+}
+
+declare <4 x i32> @__clc_vload4_impl_uint__global(i32 %x, i32 %y)
+define <4 x i32> @__clc_vload4_uint__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <4 x i32> @__clc_vload4_impl_uint__global(i32 %x, i32 %y)
+ ret <4 x i32> %call
+}
+
+declare <8 x i32> @__clc_vload8_impl_uint__global(i32 %x, i32 %y)
+define <8 x i32> @__clc_vload8_uint__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <8 x i32> @__clc_vload8_impl_uint__global(i32 %x, i32 %y)
+ ret <8 x i32> %call
+}
+
+declare <16 x i32> @__clc_vload16_impl_uint__global(i32 %x, i32 %y)
+define <16 x i32> @__clc_vload16_uint__global(i32 %x, i32 %y) nounwind readnone alwaysinline {
+ %call = call <16 x i32> @__clc_vload16_impl_uint__global(i32 %x, i32 %y)
+ ret <16 x i32> %call
+}