aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Intrinsics.td
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-02 17:43:59 +0000
committerDale Johannesen <dalej@apple.com>2007-10-02 17:43:59 +0000
commitc339d8efc813edf9c933b27478100191d949ac26 (patch)
treeb23da219f3f8c1bb5cef7f93bb79892b765bfdf9 /include/llvm/Intrinsics.td
parent058a4c617d1b35f678f74a846f659df2e4257087 (diff)
downloadexternal_llvm-c339d8efc813edf9c933b27478100191d949ac26.zip
external_llvm-c339d8efc813edf9c933b27478100191d949ac26.tar.gz
external_llvm-c339d8efc813edf9c933b27478100191d949ac26.tar.bz2
Rewrite sqrt and powi to use anyfloat. By popular demand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Intrinsics.td')
-rw-r--r--include/llvm/Intrinsics.td14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index 4b1e419..ef4f096 100644
--- a/include/llvm/Intrinsics.td
+++ b/include/llvm/Intrinsics.td
@@ -178,18 +178,8 @@ let Properties = [IntrWriteArgMem] in {
}
let Properties = [IntrNoMem] in {
- def int_sqrt_f32 : Intrinsic<[llvm_float_ty, llvm_float_ty]>;
- def int_sqrt_f64 : Intrinsic<[llvm_double_ty, llvm_double_ty]>;
- def int_sqrt_f80 : Intrinsic<[llvm_f80_ty, llvm_f80_ty]>;
- def int_sqrt_f128 : Intrinsic<[llvm_f128_ty, llvm_f128_ty]>;
- def int_sqrt_ppcf128 : Intrinsic<[llvm_ppcf128_ty, llvm_ppcf128_ty]>;
-
- def int_powi_f32 : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_i32_ty]>;
- def int_powi_f64 : Intrinsic<[llvm_double_ty, llvm_double_ty, llvm_i32_ty]>;
- def int_powi_f80 : Intrinsic<[llvm_f80_ty, llvm_f80_ty, llvm_i32_ty]>;
- def int_powi_f128 : Intrinsic<[llvm_f128_ty, llvm_f128_ty, llvm_i32_ty]>;
- def int_powi_ppcf128 : Intrinsic<[llvm_ppcf128_ty, llvm_ppcf128_ty,
- llvm_i32_ty]>;
+ def int_sqrt : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>]>;
+ def int_powi : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>, llvm_i32_ty]>;
}
// NOTE: these are internal interfaces.