diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-25 23:40:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-25 23:40:21 +0000 |
commit | 6408b97d7cfea3250c4ada4d8ad08188d68cb9c0 (patch) | |
tree | 7ba4453780b39d529beb7961215657e5d9c20c3d | |
parent | 232e4448242ec67d6a7b48906002ab7c3f7af96c (diff) | |
download | external_llvm-6408b97d7cfea3250c4ada4d8ad08188d68cb9c0.zip external_llvm-6408b97d7cfea3250c4ada4d8ad08188d68cb9c0.tar.gz external_llvm-6408b97d7cfea3250c4ada4d8ad08188d68cb9c0.tar.bz2 |
Rename ConstantFP's getInf to getInfinity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82823 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Constants.h | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SimplifyLibCalls.cpp | 4 | ||||
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 9098cdc..4999998 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -258,7 +258,7 @@ public: static Constant* get(const Type* Ty, const StringRef& Str); static ConstantFP* get(LLVMContext &Context, const APFloat& V); static ConstantFP* getNegativeZero(const Type* Ty); - static ConstantFP* getInf(const Type* Ty, bool negative = false); + static ConstantFP* getInfinity(const Type* Ty, bool negative = false); /// isValueValidForType - return true if Ty is big enough to represent V. static bool isValueValidForType(const Type *Ty, const APFloat& V); diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 6e81b61..bb4d5e2 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -1034,8 +1034,8 @@ struct PowOpt : public LibCallOptimization { // and negative infinite correctly. // TODO: In fast-math mode, this could be just sqrt(x). // TODO: In finite-only mode, this could be just fabs(sqrt(x)). - Value *Inf = ConstantFP::getInf(CI->getType()); - Value *NegInf = ConstantFP::getInf(CI->getType(), true); + Value *Inf = ConstantFP::getInfinity(CI->getType()); + Value *NegInf = ConstantFP::getInfinity(CI->getType(), true); Value *Sqrt = EmitUnaryFloatFnCall(Op1, "sqrt", B, CI->getAttributes()); Value *FAbs = EmitUnaryFloatFnCall(Sqrt, "fabs", B, CI->getAttributes()); Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf, "tmp"); diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 33edf7a..ecaf9ab 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -436,7 +436,7 @@ ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) { return Slot; } -ConstantFP *ConstantFP::getInf(const Type *Ty, bool Negative) { +ConstantFP *ConstantFP::getInfinity(const Type *Ty, bool Negative) { const fltSemantics &Semantics = *TypeToFloatSemantics(Ty); return ConstantFP::get(Ty->getContext(), APFloat::getInf(Semantics, Negative)); |