r228240 - Do the same IRgen for __builtin_pow* as for pow*

Reid Kleckner reid at kleckner.net
Wed Feb 4 16:18:01 PST 2015


Author: rnk
Date: Wed Feb  4 18:18:01 2015
New Revision: 228240

URL: http://llvm.org/viewvc/llvm-project?rev=228240&view=rev
Log:
Do the same IRgen for __builtin_pow* as for pow*

There's no reason for these to be different.

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=228240&r1=228239&r2=228240&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Feb  4 18:18:01 2015
@@ -499,7 +499,10 @@ RValue CodeGenFunction::EmitBuiltinExpr(
 
   case Builtin::BI__builtin_powi:
   case Builtin::BI__builtin_powif:
-  case Builtin::BI__builtin_powil: {
+  case Builtin::BI__builtin_powil:
+  case Builtin::BIpowi:
+  case Builtin::BIpowif:
+  case Builtin::BIpowil: {
     Value *Base = EmitScalarExpr(E->getArg(0));
     Value *Exponent = EmitScalarExpr(E->getArg(1));
     llvm::Type *ArgType = Base->getType();
@@ -1363,6 +1366,9 @@ RValue CodeGenFunction::EmitBuiltinExpr(
     return RValue::get(Builder.CreateCall(F, Arg0));
   }
 
+  case Builtin::BI__builtin_pow:
+  case Builtin::BI__builtin_powf:
+  case Builtin::BI__builtin_powl:
   case Builtin::BIpow:
   case Builtin::BIpowf:
   case Builtin::BIpowl: {





More information about the cfe-commits mailing list