LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantIntegral:
Public Member Functions | |
uint64_t | getRawValue () const |
virtual bool | isNullValue () const =0 |
virtual bool | isMaxValue () const =0 |
virtual bool | isMinValue () const =0 |
virtual bool | isAllOnesValue () const =0 |
Static Public Member Functions | |
static ConstantIntegral * | getMaxValue (const Type *Ty) |
static ConstantIntegral * | getMinValue (const Type *Ty) |
static ConstantIntegral * | getAllOnesValue (const Type *Ty) |
static bool | classof (const ConstantIntegral *) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Protected Member Functions | |
ConstantIntegral (const Type *Ty, uint64_t V) | |
Protected Attributes | |
union { | |
int64_t Signed | |
uint64_t Unsigned | |
} | Val |
This class just defines some common interfaces to be implemented.
Definition at line 44 of file Constants.h.
|
Definition at line 218 of file Constants.cpp. References Val. |
|
Reimplemented from llvm::Constant. Reimplemented in llvm::ConstantBool, llvm::ConstantInt, llvm::ConstantSInt, and llvm::ConstantUInt. Definition at line 86 of file Constants.h. References llvm::Value::getType(), llvm::Value::getValueType(), llvm::Type::isIntegral(), and llvm::Value::SimpleConstantVal. |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 85 of file Constants.h. |
|
|
Static constructor to get the maximum/minimum/allones constant of specified (integral) type... Definition at line 133 of file Constants.cpp. References llvm::Type::BoolTyID, llvm::ConstantSInt::get(), getAllOnesValue(), llvm::Type::getPrimitiveSize(), llvm::Type::getTypeID(), INT64_MAX, llvm::Type::IntTyID, llvm::Type::LongTyID, llvm::Type::SByteTyID, llvm::Type::ShortTyID, llvm::Type::UByteTyID, llvm::Type::UIntTyID, llvm::Type::ULongTyID, llvm::Type::UShortTyID, and Val. Referenced by llvm::ConstantRange::ConstantRange(), and llvm::ConstantRange::isFullSet(). |
|
Definition at line 157 of file Constants.cpp. References llvm::Type::BoolTyID, llvm::ConstantUInt::get(), llvm::ConstantSInt::get(), llvm::Type::getPrimitiveSize(), llvm::Type::getTypeID(), llvm::Type::IntTyID, llvm::Type::LongTyID, llvm::Type::SByteTyID, llvm::Type::ShortTyID, llvm::Type::UByteTyID, llvm::Type::UIntTyID, llvm::Type::ULongTyID, llvm::Type::UShortTyID, and Val. Referenced by llvm::ConstantRange::ConstantRange(), and llvm::ConstantRange::isEmptySet(). |
|
getRawValue - return the underlying value of this constant as a 64-bit unsigned integer value. Definition at line 56 of file Constants.h. References Val. Referenced by Binomial(), getAggregateConstantElement(), llvm::ConstantBool::getValue(), isHighOnes(), isOneBitSet(), isSignBit(), and OptimizeGlobalAddressOfMalloc(). |
|
isAllOnesValue - Return true if every bit in this constant is set to true. Implemented in llvm::ConstantBool, llvm::ConstantSInt, and llvm::ConstantUInt. Referenced by isSignBitCheck(). |
|
isMaxValue - Return true if this is the largest value that may be represented by this type. Implemented in llvm::ConstantBool, llvm::ConstantInt, llvm::ConstantSInt, and llvm::ConstantUInt. |
|
isMinValue - Return true if this is the smallest value that may be represented by this type. Implemented in llvm::ConstantBool, llvm::ConstantInt, llvm::ConstantSInt, and llvm::ConstantUInt. |
|
isNullValue - Return true if this is the value that would be returned by getNullValue. Implements llvm::Constant. Implemented in llvm::ConstantBool, and llvm::ConstantInt. |
|
Definition at line 47 of file Constants.h. |
|
Definition at line 48 of file Constants.h. |
|