summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
authorJosh Klontz <josh.klontz@gmail.com>2014-08-08 15:00:12 +0000
committerJosh Klontz <josh.klontz@gmail.com>2014-08-08 15:00:12 +0000
commitac0d28dfe6d678a6facc0ecab79d918280a1a9bc (patch)
tree166d9f1ea829d18dff642bec574240ecb640bb3a /llvm/lib/CodeGen/IntrinsicLowering.cpp
parent9b07147fc90a72dba580a13e3cd4495a8e939389 (diff)
downloadbcm5719-llvm-ac0d28dfe6d678a6facc0ecab79d918280a1a9bc.tar.gz
bcm5719-llvm-ac0d28dfe6d678a6facc0ecab79d918280a1a9bc.zip
Add missing Interpreter intrinsic lowering for sin, cos and ceil
llvm-svn: 215209
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 9df8f3c89e7..4ec3bae6f67 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -528,6 +528,18 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
ReplaceFPIntrinsicWithCall(CI, "powf", "pow", "powl");
break;
}
+ case Intrinsic::sin: {
+ ReplaceFPIntrinsicWithCall(CI, "sinf", "sin", "sinl");
+ break;
+ }
+ case Intrinsic::cos: {
+ ReplaceFPIntrinsicWithCall(CI, "cosf", "cos", "cosl");
+ break;
+ }
+ case Intrinsic::ceil: {
+ ReplaceFPIntrinsicWithCall(CI, "ceilf", "ceil", "ceill");
+ break;
+ }
case Intrinsic::flt_rounds:
// Lower to "round to the nearest"
if (!CI->getType()->isVoidTy())
OpenPOWER on IntegriCloud