diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-05 22:25:48 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-05 22:25:48 +0000 |
commit | 3cd1bcb358891767db4fd8b7e912eb9b00417dc8 (patch) | |
tree | 23fd0baa9d166637a7300520a92f05308741e099 /libclc/ptx | |
parent | a385c5341329da54e4834aa0af5e382617114d3f (diff) | |
download | llvm-3cd1bcb358891767db4fd8b7e912eb9b00417dc8.tar.gz |
Do not use linkonce_odr linkage in .ll files. This prevented them
from being linked into the library under lazy linkage.
llvm-svn: 161314
Diffstat (limited to 'libclc/ptx')
-rw-r--r-- | libclc/ptx/lib/integer/add_sat.ll | 16 | ||||
-rw-r--r-- | libclc/ptx/lib/integer/sub_sat.ll | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/libclc/ptx/lib/integer/add_sat.ll b/libclc/ptx/lib/integer/add_sat.ll index 9b8311cfb9ce..f887962c8a49 100644 --- a/libclc/ptx/lib/integer/add_sat.ll +++ b/libclc/ptx/lib/integer/add_sat.ll @@ -1,55 +1,55 @@ declare i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y) -define linkonce_odr ptx_device i8 @__clc_add_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { +define ptx_device i8 @__clc_add_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { %call = call i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y) ret i8 %call } declare i8 @__clc_add_sat_impl_u8(i8 %x, i8 %y) -define linkonce_odr ptx_device i8 @__clc_add_sat_u8(i8 %x, i8 %y) nounwind readnone alwaysinline { +define ptx_device i8 @__clc_add_sat_u8(i8 %x, i8 %y) nounwind readnone alwaysinline { %call = call i8 @__clc_add_sat_impl_u8(i8 %x, i8 %y) ret i8 %call } declare i16 @__clc_add_sat_impl_s16(i16 %x, i16 %y) -define linkonce_odr ptx_device i16 @__clc_add_sat_s16(i16 %x, i16 %y) nounwind readnone alwaysinline { +define ptx_device i16 @__clc_add_sat_s16(i16 %x, i16 %y) nounwind readnone alwaysinline { %call = call i16 @__clc_add_sat_impl_s16(i16 %x, i16 %y) ret i16 %call } declare i16 @__clc_add_sat_impl_u16(i16 %x, i16 %y) -define linkonce_odr ptx_device i16 @__clc_add_sat_u16(i16 %x, i16 %y) nounwind readnone alwaysinline { +define ptx_device i16 @__clc_add_sat_u16(i16 %x, i16 %y) nounwind readnone alwaysinline { %call = call i16 @__clc_add_sat_impl_u16(i16 %x, i16 %y) ret i16 %call } declare i32 @__clc_add_sat_impl_s32(i32 %x, i32 %y) -define linkonce_odr ptx_device i32 @__clc_add_sat_s32(i32 %x, i32 %y) nounwind readnone alwaysinline { +define ptx_device i32 @__clc_add_sat_s32(i32 %x, i32 %y) nounwind readnone alwaysinline { %call = call i32 @__clc_add_sat_impl_s32(i32 %x, i32 %y) ret i32 %call } declare i32 @__clc_add_sat_impl_u32(i32 %x, i32 %y) -define linkonce_odr ptx_device i32 @__clc_add_sat_u32(i32 %x, i32 %y) nounwind readnone alwaysinline { +define ptx_device i32 @__clc_add_sat_u32(i32 %x, i32 %y) nounwind readnone alwaysinline { %call = call i32 @__clc_add_sat_impl_u32(i32 %x, i32 %y) ret i32 %call } declare i64 @__clc_add_sat_impl_s64(i64 %x, i64 %y) -define linkonce_odr ptx_device i64 @__clc_add_sat_s64(i64 %x, i64 %y) nounwind readnone alwaysinline { +define ptx_device i64 @__clc_add_sat_s64(i64 %x, i64 %y) nounwind readnone alwaysinline { %call = call i64 @__clc_add_sat_impl_s64(i64 %x, i64 %y) ret i64 %call } declare i64 @__clc_add_sat_impl_u64(i64 %x, i64 %y) -define linkonce_odr ptx_device i64 @__clc_add_sat_u64(i64 %x, i64 %y) nounwind readnone alwaysinline { +define ptx_device i64 @__clc_add_sat_u64(i64 %x, i64 %y) nounwind readnone alwaysinline { %call = call i64 @__clc_add_sat_impl_u64(i64 %x, i64 %y) ret i64 %call } diff --git a/libclc/ptx/lib/integer/sub_sat.ll b/libclc/ptx/lib/integer/sub_sat.ll index 6a51a52a176d..1a66eb566b52 100644 --- a/libclc/ptx/lib/integer/sub_sat.ll +++ b/libclc/ptx/lib/integer/sub_sat.ll @@ -1,55 +1,55 @@ declare i8 @__clc_sub_sat_impl_s8(i8 %x, i8 %y) -define linkonce_odr ptx_device i8 @__clc_sub_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i8 @__clc_sub_sat_u8(i8 %x, i8 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i16 @__clc_sub_sat_s16(i16 %x, i16 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i16 @__clc_sub_sat_u16(i16 %x, i16 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i32 @__clc_sub_sat_s32(i32 %x, i32 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i32 @__clc_sub_sat_u32(i32 %x, i32 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i64 @__clc_sub_sat_s64(i64 %x, i64 %y) nounwind readnone alwaysinline { +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 linkonce_odr ptx_device i64 @__clc_sub_sat_u64(i64 %x, i64 %y) nounwind readnone alwaysinline { +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 } |