diff options
author | Dan Gohman <djg@cray.com> | 2007-10-12 00:01:22 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-10-12 00:01:22 +0000 |
commit | e1bb8c1838800f6817b7d80a58e41b1ef09a4f34 (patch) | |
tree | 68ba4c882370324b9b75c2226d4b176642ddc091 /include | |
parent | 6d05cac05bddb54c7c88dd1337b21fadcb5124c8 (diff) | |
download | external_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.td | 4 |
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. |