LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantFP:
Public Member Functions | |
double | getValue () const |
virtual bool | isNullValue () const |
bool | isExactlyValue (double V) const |
Static Public Member Functions | |
static ConstantFP * | get (const Type *Ty, double V) |
get() - Static factory methods - Return objects of the specified value | |
static bool | isValueValidForType (const Type *Ty, double V) |
isValueValidForType - return true if Ty is big enough to represent V. | |
static bool | classof (const ConstantFP *) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Protected Member Functions | |
ConstantFP (const Type *Ty, double V) | |
Friends | |
struct | ConstantCreator< ConstantFP, Type, uint64_t > |
struct | ConstantCreator< ConstantFP, Type, uint32_t > |
Definition at line 261 of file Constants.h.
|
Definition at line 241 of file Constants.cpp. References isValueValidForType(). |
|
Reimplemented from llvm::Constant. Definition at line 308 of file Constants.h. References llvm::Value::getType(), llvm::Value::getValueType(), llvm::Type::isFloatingPoint(), and llvm::Value::SimpleConstantVal. |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 307 of file Constants.h. |
|
get() - Static factory methods - Return objects of the specified value
Definition at line 796 of file Constants.cpp. References llvm::Type::DoubleTy, F, and llvm::Type::FloatTy. Referenced by llvm::ConstantFoldCall(), ConstantFoldFP(), llvm::BinaryOperator::createNeg(), llvm::SCEVUnknown::getIntegerSCEV(), llvm::ConstantExpr::getNeg(), llvm::Constant::getNullValue(), llvm::BinaryOperator::isNeg(), llvm::BytecodeReader::ParseConstantValue(), and llvm::JIT::runFunction(). |
|
Definition at line 274 of file Constants.h. Referenced by isFPCSafeToPrint(). |
|
isExactlyValue - We don't rely on operator== working on double values, as it returns true for things that are clearly not equal, like -0.0 and 0.0. As such, this method can be used to do an exact bit-for-bit comparison of two floating point values. Definition at line 292 of file Constants.h. References I. |
|
isNullValue - Return true if this is the value that would be returned by getNullValue. Don't depend on == for doubles to tell us it's zero, it considers -0.0 to be null as well as 0.0. :( Implements llvm::Constant. Definition at line 279 of file Constants.h. |
|
isValueValidForType - return true if Ty is big enough to represent V.
Definition at line 438 of file Constants.cpp. References llvm::Type::DoubleTyID, llvm::Type::FloatTyID, and llvm::Type::getTypeID(). Referenced by ConstantFP(). |
|
Definition at line 264 of file Constants.h. |
|
Definition at line 263 of file Constants.h. |