diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-05-06 06:13:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-05-06 06:13:53 +0000 |
| commit | 3628326b442cd2b62b72c03ca0db6cd75e72819e (patch) | |
| tree | cda6a2fd285c4ed9daeca5374301b3dba64ccf68 /clang/lib/CodeGen/CGBuiltin.cpp | |
| parent | dbff4bf5f43fd6a6dd03ed3dd55a65a87f18b4d2 (diff) | |
| download | bcm5719-llvm-3628326b442cd2b62b72c03ca0db6cd75e72819e.tar.gz bcm5719-llvm-3628326b442cd2b62b72c03ca0db6cd75e72819e.zip | |
add todos for isinf_sign and isnormal, which I don't intend to implement
in the near future.
llvm-svn: 103169
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 90fcb698285..4bd1b5d6ecb 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -361,7 +361,14 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, 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)); |

