diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 20:59:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 20:59:43 +0000 |
commit | 6f83c9c6ef0e7f79825a0a8f22941815e4b684c7 (patch) | |
tree | a6b206cab778933e7ebb35788fc3b41e47b57c7c /include/llvm/LLVMContext.h | |
parent | 9a31254d0e51cfe08bc0e0c63ea04780cbc776f4 (diff) | |
download | external_llvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.tar.gz external_llvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.tar.bz2 external_llvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.zip |
Move ConstantFP construction back to the 2.5-ish API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r-- | include/llvm/LLVMContext.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index ab81595722..37f0cd1a44 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -56,6 +56,7 @@ class LLVMContext { LLVMContextImpl* pImpl; friend class ConstantInt; + friend class ConstantFP; public: LLVMContext(); ~LLVMContext(); @@ -180,21 +181,6 @@ public: /// Constant* getConstantExprSizeOf(const Type* Ty); - /// Floating point negation must be implemented with f(x) = -0.0 - x. This - /// method returns the negative zero constant for floating point or vector - /// floating point types; for all other types, it returns the null value. - Constant* getZeroValueForNegation(const Type* Ty); - - // ConstantFP accessors - ConstantFP* getConstantFP(const APFloat& V); - - /// get() - This returns a ConstantFP, or a vector containing a splat of a - /// ConstantFP, for the specified value in the specified type. This should - /// only be used for simple constant values like 2.0/1.0 etc, that are - /// known-valid both as host double and as the target format. - Constant* getConstantFP(const Type* Ty, double V); - ConstantFP* getConstantFPNegativeZero(const Type* Ty); - // ConstantVector accessors Constant* getConstantVector(const VectorType* T, const std::vector<Constant*>& V); |