LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantUInt:
Public Member Functions | |
uint64_t | getValue () const |
virtual bool | isAllOnesValue () const |
virtual bool | isMaxValue () const |
virtual bool | isMinValue () const |
Static Public Member Functions | |
static ConstantUInt * | get (const Type *Ty, uint64_t V) |
static bool | isValueValidForType (const Type *Ty, uint64_t V) |
static bool | classof (const ConstantUInt *) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Protected Member Functions | |
ConstantUInt (const Type *Ty, uint64_t V) | |
Friends | |
struct | ConstantCreator< ConstantUInt, Type, uint64_t > |
Definition at line 237 of file Constants.h.
ConstantUInt::ConstantUInt | ( | const Type * | Ty, | |
uint64_t | V | |||
) | [protected] |
Definition at line 233 of file Constants.cpp.
References llvm::Type::isInteger(), llvm::Type::isUnsigned(), and isValueValidForType().
ConstantUInt * ConstantUInt::get | ( | const Type * | Ty, | |
uint64_t | V | |||
) | [static] |
get() - Static factory methods - Return objects of the specified value
Definition at line 889 of file Constants.cpp.
References UIntConstants.
Referenced by DISerializeVisitor::Apply(), llvm::ConstantFoldCall(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantInt::get(), getAISize(), llvm::ConstantIntegral::getAllOnesValue(), llvm::ConstantIntegral::getMinValue(), llvm::Constant::getNullValue(), llvm::ConstantExpr::getPtrPtrFromArrayPtr(), llvm::InsertProfilingInitCall(), LowerBSWAP(), LowerCTPOP(), llvm::DefaultIntrinsicLowering::LowerIntrinsicCall(), OptimizeGEPExpression(), llvm::BytecodeReader::ParseConstantPoolValue(), llvm::BytecodeReader::ParseStringConstants(), PartialFact(), llvm::JIT::runFunction(), and llvm::ConstantRange::zeroExtend().
bool ConstantUInt::isValueValidForType | ( | const Type * | Ty, | |
uint64_t | V | |||
) | [static] |
isValueValidForType - return true if Ty is big enough to represent V.
Definition at line 606 of file Constants.cpp.
References llvm::Type::getTypeID(), llvm::Type::UByteTyID, UINT16_MAX, UINT32_MAX, UINT8_MAX, llvm::Type::UIntTyID, llvm::Type::ULongTyID, and llvm::Type::UShortTyID.
Referenced by ConstantUInt(), and llvm::BytecodeReader::ParseConstantPoolValue().
uint64_t llvm::ConstantUInt::getValue | ( | ) | const [inline] |
getValue - return the underlying value of this constant.
Definition at line 253 of file Constants.h.
References llvm::ConstantIntegral::Val.
Referenced by llvm::ConstantFoldInsertElementInstruction(), DecomposeSimpleLinearExpr(), EvaluateStoreInto(), llvm::Interpreter::executeGEPOperation(), isAllOnesValue(), isMinValue(), isSignBitCheck(), and SolveQuadraticEquation().
bool ConstantUInt::isAllOnesValue | ( | ) | const [virtual] |
isMaxValue - Return true if this is the largest value that may be represented by this type.
Implements llvm::ConstantIntegral.
Definition at line 198 of file Constants.cpp.
References llvm::Type::getPrimitiveSize(), llvm::Value::getType(), getValue(), and llvm::ConstantIntegral::Val.
Referenced by isMaxValue().
virtual bool llvm::ConstantUInt::isMaxValue | ( | ) | const [inline, virtual] |
isMaxValue - Return true if this is the largest value that may be represented by this type.
Implements llvm::ConstantInt.
Definition at line 259 of file Constants.h.
References isAllOnesValue().
virtual bool llvm::ConstantUInt::isMinValue | ( | ) | const [inline, virtual] |
isMinValue - Return true if this is the smallest value that may be represented by this type.
Implements llvm::ConstantInt.
Definition at line 260 of file Constants.h.
References getValue().
static bool llvm::ConstantUInt::classof | ( | const ConstantUInt * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 263 of file Constants.h.
static bool llvm::ConstantUInt::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::ConstantInt.
Definition at line 264 of file Constants.h.
References llvm::Value::ConstantUIntVal, and V.
friend struct ConstantCreator< ConstantUInt, Type, uint64_t > [friend] |
Definition at line 239 of file Constants.h.