aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-10-12 00:01:22 +0000
committerDan Gohman <djg@cray.com>2007-10-12 00:01:22 +0000
commite1bb8c1838800f6817b7d80a58e41b1ef09a4f34 (patch)
tree68ba4c882370324b9b75c2226d4b176642ddc091 /include
parent6d05cac05bddb54c7c88dd1337b21fadcb5124c8 (diff)
downloadexternal_llvm-e1bb8c1838800f6817b7d80a58e41b1ef09a4f34.zip
external_llvm-e1bb8c1838800f6817b7d80a58e41b1ef09a4f34.tar.gz
external_llvm-e1bb8c1838800f6817b7d80a58e41b1ef09a4f34.tar.bz2
Add intrinsics for sin, cos, and pow. These use llvm_anyfloat_ty, and so
may be overloaded with vector types. And add a testcase for codegen for these. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Intrinsics.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index 6b6b0f5..d205d98 100644
--- a/include/llvm/Intrinsics.td
+++ b/include/llvm/Intrinsics.td
@@ -184,6 +184,10 @@ let Properties = [IntrWriteArgMem] in {
let Properties = [IntrNoMem] in {
def int_sqrt : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>]>;
def int_powi : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>, llvm_i32_ty]>;
+ def int_sin : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>]>;
+ def int_cos : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>]>;
+ def int_pow : Intrinsic<[llvm_anyfloat_ty,
+ LLVMMatchType<0>, LLVMMatchType<0>]>;
}
// NOTE: these are internal interfaces.