diff options
author | Josh Klontz <josh.klontz@gmail.com> | 2014-08-08 15:00:12 +0000 |
---|---|---|
committer | Josh Klontz <josh.klontz@gmail.com> | 2014-08-08 15:00:12 +0000 |
commit | ac0d28dfe6d678a6facc0ecab79d918280a1a9bc (patch) | |
tree | 166d9f1ea829d18dff642bec574240ecb640bb3a /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | 9b07147fc90a72dba580a13e3cd4495a8e939389 (diff) | |
download | bcm5719-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.cpp | 12 |
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()) |