[cfe-commits] r103169 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Chris Lattner sabre at nondot.org
Wed May 5 23:13:53 PDT 2010


Author: lattner
Date: Thu May  6 01:13:53 2010
New Revision: 103169

URL: http://llvm.org/viewvc/llvm-project?rev=103169&view=rev
Log:
add todos for isinf_sign and isnormal, which I don't intend to implement
in the near future.

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=103169&r1=103168&r2=103169&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Thu May  6 01:13:53 2010
@@ -361,7 +361,14 @@
     V = Builder.CreateFCmpOEQ(V, ConstantFP::getInfinity(V->getType()),"isinf");
     return RValue::get(Builder.CreateZExt(V, ConvertType(E->getType()), "tmp"));
   }
-   
+      
+  // TODO: BI__builtin_isinf_sign
+  //   isinf_sign(x) -> isinf(x) ? (signbit(x) ? -1 : 1) : 0
+  // TODO: BI__builtin_isnormal
+  //   isnormal(x) -> x != x && fabs(x) < infinity && fabsf(x) >= float_min
+  //   where floatmin is the minimum value for the fp type.  Not sure if this is
+  //   APFloat::getSmallest or getSmallestNormalized.
+      
   case Builtin::BI__builtin_isfinite: {
     // isfinite(x) --> x == x && fabs(x) != infinity; }
     Value *V = EmitScalarExpr(E->getArg(0));





More information about the cfe-commits mailing list