LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::ConstantUInt Class Reference

#include <Constants.h>

Inheritance diagram for llvm::ConstantUInt:

Inheritance graph
[legend]
Collaboration diagram for llvm::ConstantUInt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

uint64_t getValue () const
virtual bool isAllOnesValue () const
virtual bool isMaxValue () const
virtual bool isMinValue () const

Static Public Member Functions

static ConstantUIntget (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 >

Detailed Description

ConstantUInt - Unsigned Integer Values [ubyte, ushort, uint, ulong]

Definition at line 224 of file Constants.h.


Constructor & Destructor Documentation

ConstantUInt::ConstantUInt const Type Ty,
uint64_t  V
[protected]
 

Definition at line 235 of file Constants.cpp.

References llvm::Type::isInteger(), llvm::Type::isUnsigned(), and isValueValidForType().


Member Function Documentation

static bool llvm::ConstantUInt::classof const Value V  )  [inline, static]
 

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.

static bool llvm::ConstantUInt::classof const ConstantUInt  )  [inline, static]
 

Methods for support type inquiry through isa, cast, and dyn_cast:.

Definition at line 250 of file Constants.h.

ConstantUInt * ConstantUInt::get const Type Ty,
uint64_t  V
[static]
 

get() - Static factory methods - Return objects of the specified value

Definition at line 754 of file Constants.cpp.

Referenced by Binomial(), llvm::ConstantFoldGetElementPtr(), ConvertMallocToType(), ConvertOperandToType(), llvm::ConstantInt::get(), llvm::ConstantIntegral::getAllOnesValue(), llvm::ConstantIntegral::getMinValue(), llvm::Constant::getNullValue(), getStructOffsetStep(), getUnsignedConstant(), llvm::AllocationInst::init(), llvm::InsertProfilingInitCall(), llvm::AllocationInst::isArrayAllocation(), OperandConvertibleToType(), llvm::BytecodeReader::ParseConstantValue(), llvm::BytecodeReader::ParseStringConstants(), PartialFact(), llvm::JIT::runFunction(), llvm::ProfilePaths::runOnFunction(), llvm::AllocInfo::toConstant(), and llvm::ConstantRange::zeroExtend().

uint64_t llvm::ConstantUInt::getValue  )  const [inline]
 

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().

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 203 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 246 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 247 of file Constants.h.

References getValue().

bool ConstantUInt::isValueValidForType const Type Ty,
uint64_t  V
[static]
 

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().


Friends And Related Function Documentation

friend struct ConstantCreator< ConstantUInt, Type, uint64_t > [friend]
 

Definition at line 226 of file Constants.h.


The documentation for this class was generated from the following files: