summaryrefslogtreecommitdiff
path: root/libclc/ptx
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-10-02 18:39:03 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-10-02 18:39:03 +0000
commita02d0e2c50cb1240875f0ad9b2b190874c22e238 (patch)
tree9b54c8fedff1e86bc22762a6bc5a01e90f818b63 /libclc/ptx
parent1964df8fada920fbc456317ee0d043fbb3733005 (diff)
downloadllvm-a02d0e2c50cb1240875f0ad9b2b190874c22e238.tar.gz
integer/sub_sat: Use clang builtin instead of llvm asm
reviewer: Tom Stellard Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 314703
Diffstat (limited to 'libclc/ptx')
-rw-r--r--libclc/ptx/lib/OVERRIDES1
-rw-r--r--libclc/ptx/lib/SOURCES1
-rw-r--r--libclc/ptx/lib/integer/sub_sat.ll55
3 files changed, 0 insertions, 57 deletions
diff --git a/libclc/ptx/lib/OVERRIDES b/libclc/ptx/lib/OVERRIDES
deleted file mode 100644
index 565dcca63b5a..000000000000
--- a/libclc/ptx/lib/OVERRIDES
+++ /dev/null
@@ -1 +0,0 @@
-integer/sub_sat_if.ll
diff --git a/libclc/ptx/lib/SOURCES b/libclc/ptx/lib/SOURCES
deleted file mode 100644
index 913e2ea737b3..000000000000
--- a/libclc/ptx/lib/SOURCES
+++ /dev/null
@@ -1 +0,0 @@
-integer/sub_sat.ll
diff --git a/libclc/ptx/lib/integer/sub_sat.ll b/libclc/ptx/lib/integer/sub_sat.ll
deleted file mode 100644
index 1a66eb566b52..000000000000
--- a/libclc/ptx/lib/integer/sub_sat.ll
+++ /dev/null
@@ -1,55 +0,0 @@
-declare i8 @__clc_sub_sat_impl_s8(i8 %x, i8 %y)
-
-define ptx_device i8 @__clc_sub_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline {
- %call = call i8 @__clc_sub_sat_impl_s8(i8 %x, i8 %y)
- ret i8 %call
-}
-
-declare i8 @__clc_sub_sat_impl_u8(i8 %x, i8 %y)
-
-define ptx_device i8 @__clc_sub_sat_u8(i8 %x, i8 %y) nounwind readnone alwaysinline {
- %call = call i8 @__clc_sub_sat_impl_u8(i8 %x, i8 %y)
- ret i8 %call
-}
-
-declare i16 @__clc_sub_sat_impl_s16(i16 %x, i16 %y)
-
-define ptx_device i16 @__clc_sub_sat_s16(i16 %x, i16 %y) nounwind readnone alwaysinline {
- %call = call i16 @__clc_sub_sat_impl_s16(i16 %x, i16 %y)
- ret i16 %call
-}
-
-declare i16 @__clc_sub_sat_impl_u16(i16 %x, i16 %y)
-
-define ptx_device i16 @__clc_sub_sat_u16(i16 %x, i16 %y) nounwind readnone alwaysinline {
- %call = call i16 @__clc_sub_sat_impl_u16(i16 %x, i16 %y)
- ret i16 %call
-}
-
-declare i32 @__clc_sub_sat_impl_s32(i32 %x, i32 %y)
-
-define ptx_device i32 @__clc_sub_sat_s32(i32 %x, i32 %y) nounwind readnone alwaysinline {
- %call = call i32 @__clc_sub_sat_impl_s32(i32 %x, i32 %y)
- ret i32 %call
-}
-
-declare i32 @__clc_sub_sat_impl_u32(i32 %x, i32 %y)
-
-define ptx_device i32 @__clc_sub_sat_u32(i32 %x, i32 %y) nounwind readnone alwaysinline {
- %call = call i32 @__clc_sub_sat_impl_u32(i32 %x, i32 %y)
- ret i32 %call
-}
-
-declare i64 @__clc_sub_sat_impl_s64(i64 %x, i64 %y)
-
-define ptx_device i64 @__clc_sub_sat_s64(i64 %x, i64 %y) nounwind readnone alwaysinline {
- %call = call i64 @__clc_sub_sat_impl_s64(i64 %x, i64 %y)
- ret i64 %call
-}
-
-declare i64 @__clc_sub_sat_impl_u64(i64 %x, i64 %y)
-
-define ptx_device i64 @__clc_sub_sat_u64(i64 %x, i64 %y) nounwind readnone alwaysinline {
- %call = call i64 @__clc_sub_sat_impl_u64(i64 %x, i64 %y)
- ret i64 %call
-}