r228240 - Do the same IRgen for __builtin_pow* as for pow*
Juergen Ributzka
juergen at apple.com
Wed Feb 4 16:29:04 PST 2015
http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_build/5055/consoleFull#44755829649ba4694-19c4-4d7e-bec5-911270d8a58c
clang/lib/CodeGen/CGBuiltin.cpp:503:17: error: no member named 'BIpowi' in namespace 'clang::Builtin'
case Builtin::BIpowi:
~~~~~~~~~^
/Users/buildslave/jenkins/sharedspace/incremental at 2/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp:504:17: error: no member named 'BIpowif' in namespace 'clang::Builtin'; did you mean 'BIpowf'?
case Builtin::BIpowif:
~~~~~~~~~^~~~~~~
BIpowf
> On Feb 4, 2015, at 4:18 PM, Reid Kleckner <reid at kleckner.net> wrote:
>
> 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: {
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list