LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantInt:
Public Member Functions | |
bool | equalsInt (unsigned char V) const |
virtual bool | isNullValue () const |
virtual bool | isMaxValue () const =0 |
virtual bool | isMinValue () const =0 |
Static Public Member Functions | |
static ConstantInt * | get (const Type *Ty, unsigned char V) |
static bool | classof (const ConstantInt *) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Protected Member Functions | |
ConstantInt (const ConstantInt &) | |
ConstantInt (const Type *Ty, uint64_t V) |
Definition at line 132 of file Constants.h.
|
|
|
Definition at line 226 of file Constants.cpp. |
|
Reimplemented from llvm::ConstantIntegral. Reimplemented in llvm::ConstantSInt, and llvm::ConstantUInt. Definition at line 161 of file Constants.h. References llvm::Value::getType(), llvm::Value::getValueType(), llvm::Type::isInteger(), and llvm::Value::SimpleConstantVal. |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 160 of file Constants.h. |
|
equalsInt - Provide a helper method that can be used to determine if the constant contained within is equal to a constant. This only works for very small values, because this is all that can be represented with all types. Definition at line 142 of file Constants.h. References llvm::ConstantIntegral::Val. |
|
ConstantInt::get static method: return a ConstantInt with the specified value. as above, we work only with very small values here. Definition at line 758 of file Constants.cpp. References llvm::ConstantUInt::get(), llvm::ConstantSInt::get(), and llvm::Type::isSigned(). Referenced by GatherConstantSetNEs(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), llvm::ConstantExpr::getSizeOf(), llvm::IncrementCounterInBlock(), and Next(). |
|
isMaxValue - Return true if this is the largest value that may be represented by this type. Implements llvm::ConstantIntegral. Implemented in llvm::ConstantSInt, and llvm::ConstantUInt. |
|
isMinValue - Return true if this is the smallest value that may be represented by this type. Implements llvm::ConstantIntegral. Implemented in llvm::ConstantSInt, and llvm::ConstantUInt. |
|
isNullValue - Return true if this is the value that would be returned by getNullValue. Implements llvm::ConstantIntegral. Definition at line 155 of file Constants.h. References llvm::ConstantIntegral::Val. Referenced by llvm::ExprType::ExprType(), isSignBitCheck(), and MulWithOverflow(). |