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 224 of file Constants.h.
|
Definition at line 235 of file Constants.cpp. References llvm::Type::isInteger(), llvm::Type::isUnsigned(), and isValueValidForType(). |
|
Reimplemented from llvm::ConstantInt. Definition at line 251 of file Constants.h. References llvm::Value::getType(), llvm::Value::getValueType(), llvm::Type::isUnsigned(), and llvm::Value::SimpleConstantVal. |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 250 of file Constants.h. |
|
|
getValue - return the underlying value of this constant. Definition at line 240 of file Constants.h. References llvm::ConstantIntegral::Val. Referenced by llvm::Interpreter::executeGEPOperation(), GetGEPGlobalInitializer(), isAllOnesValue(), isMinValue(), isSignBitCheck(), and SolveQuadraticEquation(). |
|
isMaxValue - Return true if this is the largest value that may be represented by this type. Implements llvm::ConstantIntegral. Definition at line 203 of file Constants.cpp. References llvm::Type::getPrimitiveSize(), llvm::Value::getType(), getValue(), and llvm::ConstantIntegral::Val. Referenced by isMaxValue(). |
|
isMaxValue - Return true if this is the largest value that may be represented by this type. Implements llvm::ConstantInt. Definition at line 246 of file Constants.h. References isAllOnesValue(). |
|
isMinValue - Return true if this is the smallest value that may be represented by this type. Implements llvm::ConstantInt. Definition at line 247 of file Constants.h. References getValue(). |
|
isValueValidForType - return true if Ty is big enough to represent V. Definition at line 421 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(), getUnsignedConstant(), and llvm::BytecodeReader::ParseConstantValue(). |
|
Definition at line 226 of file Constants.h. |