LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
llvm::ConstantInt Class Reference

This is the shared class of boolean and integer constants. More...

#include <Constants.h>

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

List of all members.

Public Member Functions

const APIntgetValue () const
 Return the constant as an APInt value reference.
unsigned getBitWidth () const
 getBitWidth - Return the bitwidth of this constant.
uint64_t getZExtValue () const
 Return the constant as a 64-bit unsigned integer value after it has been zero extended as appropriate for the type of this constant.
int64_t getSExtValue () const
 Return the constant as a 64-bit integer value after it has been sign extended as appropriate for the type of this constant.
bool equalsInt (uint64_t V) const
 A helper method that can be used to determine if the constant contained within is equal to a constant.
IntegerTypegetType () const
 getType - Specialize the getType() method to always return an IntegerType, which reduces the amount of casting needed in parts of the compiler.
bool isNegative () const
bool isZero () const
 This is just a convenience method to make client code smaller for a common code.
bool isOne () const
 This is just a convenience method to make client code smaller for a common case.
bool isMinusOne () const
 This function will return true iff every bit in this constant is set to true.
bool isMaxValue (bool isSigned) const
 This function will return true iff this constant represents the largest value that may be represented by the constant's type.
bool isMinValue (bool isSigned) const
 This function will return true iff this constant represents the smallest value that may be represented by this constant's type.
bool uge (uint64_t Num) const
 This function will return true iff this constant represents a value with active bits bigger than 64 bits or a value greater than the given uint64_t value.
uint64_t getLimitedValue (uint64_t Limit=~0ULL) const
 getLimitedValue - If the value is smaller than the specified limit, return it, otherwise return the limit value.

Static Public Member Functions

static ConstantIntgetTrue (LLVMContext &Context)
static ConstantIntgetFalse (LLVMContext &Context)
static ConstantgetTrue (Type *Ty)
static ConstantgetFalse (Type *Ty)
static Constantget (Type *Ty, uint64_t V, bool isSigned=false)
 If Ty is a vector type, return a Constant with a splat of the given value.
static ConstantIntget (IntegerType *Ty, uint64_t V, bool isSigned=false)
 Return a ConstantInt with the specified integer value for the specified type.
static ConstantIntgetSigned (IntegerType *Ty, int64_t V)
 Return a ConstantInt with the specified value for the specified type.
static ConstantgetSigned (Type *Ty, int64_t V)
static ConstantIntget (LLVMContext &Context, const APInt &V)
 Return a ConstantInt with the specified value and an implied Type.
static ConstantIntget (IntegerType *Ty, StringRef Str, uint8_t radix)
 Return a ConstantInt constructed from the string strStart with the given radix.
static Constantget (Type *Ty, const APInt &V)
 If Ty is a vector type, return a Constant with a splat of the given value.
static bool isValueValidForType (Type *Ty, uint64_t V)
 This static method returns true if the type Ty is big enough to represent the value V.
static bool isValueValidForType (Type *Ty, int64_t V)
static bool classof (const Value *V)
 Methods to support type inquiry through isa, cast, and dyn_cast.

Protected Member Functions

void * operator new (size_t s)
 Allocate a User with an operand pointer co-allocated.

Friends

class Constant

Detailed Description

This is the shared class of boolean and integer constants.

This class represents both boolean and integral constants. Class for constant integers.

Definition at line 47 of file Constants.h.


Member Function Documentation

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

Methods to support type inquiry through isa, cast, and dyn_cast.

Reimplemented from llvm::Constant.

Definition at line 223 of file Constants.h.

References llvm::Value::getValueID().

bool llvm::ConstantInt::equalsInt ( uint64_t  V) const [inline]

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. Determine if this constant's value is same as an unsigned char.

Definition at line 132 of file Constants.h.

Constant * ConstantInt::get ( Type Ty,
uint64_t  V,
bool  isSigned = false 
) [static]

If Ty is a vector type, return a Constant with a splat of the given value.

Otherwise return a ConstantInt for the given value.

Definition at line 582 of file Constants.cpp.

References llvm::C, llvm::Type::getScalarType(), and llvm::ConstantVector::getSplat().

Referenced by llvm::Module::addModuleFlag(), llvm::AddOne(), AddWithOverflow(), AnalyzeLoadFromClobberingMemInst(), BitCastConstantVector(), CloneLoopBlocks(), CollectInsertionElements(), CollectShuffleElements(), CollectSingleShuffleElements(), combineLoadToNewType(), llvm::InstCombiner::commonIDivTransforms(), llvm::InstCombiner::commonShiftTransforms(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::ComputeMultiple(), computePointerICmp(), ConnectProlog(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), ConstantFoldConvertToInt(), ConstantFoldGetElementPtrImpl(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldInstOperands(), llvm::ConstantFoldLoadFromConstPtr(), ConstantFoldScalarCall(), llvm::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), convertMemSetToLoop(), ConvertShiftToMul(), convertTransferToLoop(), llvm::IRBuilder< true, TargetFolder >::CreateAlignmentAssumption(), llvm::IRBuilder< true, TargetFolder >::CreateAnd(), createAndInstr(), llvm::IRBuilder< true, TargetFolder >::CreateAShr(), llvm::MDBuilder::createBranchWeights(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP1_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP1_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP2_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP2_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP1_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP2_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP2_64(), llvm::MDBuilder::createFunctionEntryCount(), CreateGCRelocates(), llvm::IRBuilder< true, TargetFolder >::CreateGlobalStringPtr(), llvm::orc::createIRTypedAddress(), llvm::IRBuilder< true, TargetFolder >::CreateLShr(), createMalloc(), createMaskedBitTest(), llvm::IRBuilder< true, TargetFolder >::CreateOr(), createPrivateGlobalForSourceLoc(), CreatePrologue(), llvm::MDBuilder::createRange(), llvm::IRBuilder< true, TargetFolder >::CreateShl(), llvm::MDBuilder::createTBAANode(), llvm::MDBuilder::createTBAAScalarTypeNode(), llvm::MDBuilder::createTBAAStructNode(), llvm::MDBuilder::createTBAAStructTagNode(), llvm::MDBuilder::createTBAAStructTypeNode(), llvm::IRBuilder< true, TargetFolder >::CreateVectorSplat(), llvm::IRBuilder< true, TargetFolder >::CreateXor(), decomposeBitTestICmp(), DecomposeSimpleLinearExpr(), dyn_castNotVal(), llvm::EmitFWrite(), llvm::EmitGEPOffset(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::EmitStrChr(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), EvaluateGEPOffsetExpression(), ExtractConstantBytes(), FactorOutConstant(), llvm::FastISel::fastEmit_ri_(), findBasePointer(), llvm::InstCombiner::FoldAndOfFCmps(), llvm::InstCombiner::FoldAndOfICmps(), FoldBitCast(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::InstCombiner::FoldICmpAddOpCst(), llvm::InstCombiner::FoldICmpCstShlCst(), llvm::InstCombiner::FoldICmpCstShrCst(), llvm::InstCombiner::FoldICmpShrCst(), foldLogOpOfMaskedICmps(), llvm::InstCombiner::FoldOrOfFCmps(), llvm::InstCombiner::FoldOrOfICmps(), FoldReinterpretLoadFromConstPtr(), llvm::InstCombiner::FoldShiftByConstant(), foldUDivNegCst(), foldUDivPow2Cst(), foldUDivShl(), get(), getAISize(), llvm::Constant::getAllOnesValue(), getBinOpsForFactorization(), llvm::LazyValueInfo::getConstant(), llvm::SelectionDAG::getConstant(), llvm::ScalarEvolution::getConstant(), GetConstantInt(), llvm::LazyValueInfo::getConstantOnEdge(), getEdgeValueLocal(), llvm::ConstantDataSequential::getElementAsConstant(), getFalse(), getFoldedAlignOf(), getFoldedSizeOf(), llvm::getICmpValue(), getIdentityValue(), llvm::IRBuilderBase::getInt(), llvm::IRBuilderBase::getInt1(), llvm::IRBuilderBase::getInt16(), llvm::IRBuilderBase::getInt32(), llvm::IRBuilderBase::getInt64(), llvm::IRBuilderBase::getInt8(), llvm::Constant::getIntegerValue(), llvm::IRBuilderBase::getIntN(), getLogBase2Vector(), GetMemInstValueForLoad(), llvm::MDNode::getMostGenericTBAA(), llvm::ScalarEvolution::getMulExpr(), llvm::Constant::getNullValue(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), llvm::ConstantExpr::getOffsetOf(), getOne(), llvm::RecurrenceDescriptor::getRecurrenceIdentity(), GetSelectFoldableConstant(), GetShiftedValue(), llvm::ScalarEvolution::getSMaxExpr(), getTrue(), llvm::ScalarEvolution::getUMaxExpr(), llvm::InlineFunction(), llvm::DIBuilder::insertDbgValueIntrinsic(), insertSinCosCall(), llvm::isBytewiseValue(), LLVMConstInt(), LLVMConstIntOfArbitraryPrecision(), LLVMConstIntOfString(), LLVMConstIntOfStringAndSize(), llvm::XCoreInstrInfo::loadImmediate(), LowerBSWAP(), LowerCTLZ(), LowerCTPOP(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::MergeBasicBlockIntoOnlyPred(), PerformHeapAllocSRoA(), replaceGEPIdxWithZero(), llvm::replaceSymbolicStrideSCEV(), ScalarizeMaskedLoad(), ScalarizeMaskedStore(), llvm::FastISel::selectIntrinsicCall(), ShrinkDemandedConstant(), SimplifyCondBranchToCondBranch(), SimplifyDiv(), SimplifyFCmpInst(), SimplifyICmpInst(), simplifyOneLoop(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), SolveQuadraticEquation(), stripAndComputeConstantOffsets(), llvm::SubOne(), SubWithOverflow(), SymbolicallyEvaluateBinop(), SymbolicallyEvaluateGEP(), tryMergeRange(), TryToOptimizeStoreOfMallocToGlobal(), TryToShrinkGlobalToBoolean(), TurnSwitchRangeIntoICmp(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitAdd(), llvm::ObjectSizeOffsetEvaluator::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::InstCombiner::visitAllocSite(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSwitchInst(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitUDiv(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), and llvm::BasicBlock::~BasicBlock().

ConstantInt * ConstantInt::get ( IntegerType Ty,
uint64_t  V,
bool  isSigned = false 
) [static]

Return a ConstantInt with the specified integer value for the specified type.

If the type is wider than 64 bits, the value will be zero-extended to fit the type, unless isSigned is true, in which case the value will be interpreted as a 64-bit signed integer and sign-extended to fit the type. Get a ConstantInt for a specific value.

Definition at line 592 of file Constants.cpp.

References llvm::IntegerType::getBitWidth(), and llvm::Type::getContext().

ConstantInt * ConstantInt::get ( LLVMContext Context,
const APInt V 
) [static]

Return a ConstantInt with the specified value and an implied Type.

The type is the integer type that corresponds to the bit width of the value.

Definition at line 569 of file Constants.cpp.

References get(), llvm::APInt::getBitWidth(), getType(), llvm::LLVMContextImpl::IntConstants, llvm::LLVMContext::pImpl, and llvm::Slot.

ConstantInt * ConstantInt::get ( IntegerType Ty,
StringRef  Str,
uint8_t  radix 
) [static]

Return a ConstantInt constructed from the string strStart with the given radix.

Definition at line 617 of file Constants.cpp.

References llvm::IntegerType::getBitWidth(), and llvm::Type::getContext().

Constant * ConstantInt::get ( Type Ty,
const APInt V 
) [static]

If Ty is a vector type, return a Constant with a splat of the given value.

Otherwise return a ConstantInt for the given value.

Definition at line 605 of file Constants.cpp.

References llvm::C, llvm::Type::getContext(), llvm::Type::getScalarType(), llvm::ConstantVector::getSplat(), and getType().

ConstantInt * ConstantInt::getFalse ( LLVMContext Context) [static]
Constant * ConstantInt::getFalse ( Type Ty) [static]
uint64_t llvm::ConstantInt::getLimitedValue ( uint64_t  Limit = ~0ULL) const [inline]

getLimitedValue - If the value is smaller than the specified limit, return it, otherwise return the limit value.

This causes the value to saturate to the limit.

Returns:
the min of the value of the constant and the specified value Get the constant's value with a saturation limit

Definition at line 218 of file Constants.h.

References llvm::APInt::getLimitedValue().

Referenced by CanEvaluateShifted(), CanEvaluateShuffled(), llvm::InstCombiner::FoldICmpShrCst(), llvm::InstCombiner::FoldShiftByConstant(), isDereferenceableFromAttribute(), llvm::InstCombiner::visitICmpInst(), and llvm::InstCombiner::visitICmpInstWithInstAndIntCst().

int64_t llvm::ConstantInt::getSExtValue ( ) const [inline]

Return the constant as a 64-bit integer value after it has been sign extended as appropriate for the type of this constant.

Note that this method can assert if the value does not fit in 64 bits. Return the sign extended value.

Definition at line 124 of file Constants.h.

References llvm::APInt::getSExtValue().

Referenced by canFoldIVIncExpr(), EvaluateGEPOffsetExpression(), GetOffsetFromIndex(), isAddFoldable(), isIndexInRangeOfSequentialType(), llvm::isInductionPHI(), llvm::parseEHActions(), and X86ChooseCmpImmediateOpcode().

ConstantInt * ConstantInt::getSigned ( IntegerType Ty,
int64_t  V 
) [static]

Return a ConstantInt with the specified value for the specified type.

The value V will be canonicalized to a an unsigned APInt. Accessing it with either getSExtValue() or getZExtValue() will yield a correctly sized and signed value for the type Ty. Get a ConstantInt for a specific signed value.

Definition at line 597 of file Constants.cpp.

Referenced by llvm::InstCombiner::FoldOrOfICmps(), generateUnsignedDivisionCode(), insertFastDiv(), llvm::isInductionPHI(), llvm::InstCombiner::visitLShr(), and llvm::InstCombiner::visitOr().

Constant * ConstantInt::getSigned ( Type Ty,
int64_t  V 
) [static]

Definition at line 601 of file Constants.cpp.

ConstantInt * ConstantInt::getTrue ( LLVMContext Context) [static]
Constant * ConstantInt::getTrue ( Type Ty) [static]

Return the constant as an APInt value reference.

This allows clients to obtain a copy of the value, with all its precision in tact. Return the constant's value.

Definition at line 105 of file Constants.h.

Referenced by llvm::GEPOperator::accumulateConstantOffset(), llvm::DwarfUnit::addConstantValue(), CanEvaluateShifted(), canFoldIVIncExpr(), llvm::computeKnownBitsFromRangeMetadata(), llvm::ComputeMultiple(), computePointerICmp(), llvm::ConstantFoldTerminator(), ConstantIntSortPredicate(), decomposeBitTestICmp(), DemandedBitsLHSMask(), emitDebugValueComment(), emitGlobalConstantLargeInt(), ExtractBranchMetadata(), FactorOutConstant(), llvm::InstCombiner::FoldAndOfICmps(), llvm::InstCombiner::FoldICmpAddOpCst(), llvm::InstCombiner::FoldICmpCstShlCst(), llvm::InstCombiner::FoldICmpCstShrCst(), llvm::InstCombiner::FoldICmpDivCst(), foldLogOpOfMaskedICmps(), llvm::InstCombiner::FoldOrOfICmps(), llvm::InstCombiner::FoldOrWithConstants(), llvm::InstCombiner::FoldXorWithConstants(), gcd(), GetBranchWeights(), llvm::SelectionDAG::getConstant(), llvm::Function::getEntryCount(), getExactSDiv(), llvm::MDNode::getMostGenericRange(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), getPredicateResult(), GetRangeFromMetadata(), GetShiftedValue(), llvm::ScalarEvolution::getSmallConstantTripCount(), llvm::ScalarEvolution::getSmallConstantTripMultiple(), getTypeOfMaskedICmp(), llvm::ScalarEvolution::getUDivExpr(), getValueFromFromCondition(), HasAddOverflow(), HasSubOverflow(), llvm::ConstantExpr::isGEPWithNoNotionalOverIndexing(), isHighOnes(), isIndexInRangeOfSequentialType(), isLikelyComplexAddressComputation(), llvm::SCEV::isNonConstantNegative(), isObjectSizeLessThanOrEq(), isRemainderZero(), isRunOfOnes(), isSignBitCheck(), llvm::isStridedPtr(), MaintainNoSignedWrap(), MatchNotExpr(), ProcessUGT_ADDCST_ADD(), ProcessUMulZExtIdiom(), rangeMetadataExcludesValue(), ShrinkDemandedConstant(), SimplifyAndOfICmps(), SimplifyDiv(), SimplifyICmpInst(), SimplifyOrInst(), SimplifyOrOfICmps(), SwitchToLookupTable(), tryMergeRange(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitSub(), and llvm::InstCombiner::visitXor().

uint64_t llvm::ConstantInt::getZExtValue ( ) const [inline]

Return the constant as a 64-bit unsigned integer value after it has been zero extended as appropriate for the type of this constant.

Note that this method can assert if the value does not fit in 64 bits. Return the zero extended value.

Definition at line 116 of file Constants.h.

References llvm::APInt::getZExtValue().

Referenced by llvm::GEPOperator::accumulateConstantOffset(), aliasSameBasePointerGEPs(), AnalyzeLoadFromClobberingMemInst(), cacheAnnotationFromMD(), CanEvaluateShifted(), CollectInsertionElements(), computeKnownBitsFromAssume(), llvm::ComputeMultiple(), llvm::MachineInstr::emitError(), EvaluateGEPOffsetExpression(), EvaluateStoreInto(), ExtractConstantBytes(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), FoldCondBranchOnPHI(), llvm::InstCombiner::FoldShiftByConstant(), llvm::MemIntrinsic::getAlignment(), llvm::getConstantStringInfo(), llvm::ScalarEvolution::getGEPExpr(), GetOffsetFromIndex(), GetShiftedValue(), llvm::ScalarEvolution::getSmallConstantTripCount(), llvm::ScalarEvolution::getSmallConstantTripMultiple(), llvm::CompositeType::indexValid(), isGEPKnownNonNull(), llvm::ConstantExpr::isGEPWithNoNotionalOverIndexing(), IsUserOfGlobalSafeForSRA(), llvm::PatternMatch::specific_intval::match(), matchPairwiseReduction(), matchVectorSplittingReduction(), llvm::orc::CtorDtorIterator::operator*(), OptimizeGlobalAddressOfMalloc(), OptimizeIntToFloatBitCast(), llvm::FunctionLoweringInfo::set(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), and llvm::InstCombiner::visitTrunc().

bool llvm::ConstantInt::isMaxValue ( bool  isSigned) const [inline]

This function will return true iff this constant represents the largest value that may be represented by the constant's type.

Returns:
true iff this is the largest value that may be represented by this type. Determine if the value is maximal.

Definition at line 185 of file Constants.h.

References llvm::APInt::isMaxSignedValue(), and llvm::APInt::isMaxValue().

Referenced by isSignBitCheck().

bool llvm::ConstantInt::isMinusOne ( ) const [inline]

This function will return true iff every bit in this constant is set to true.

Returns:
true iff this constant's bits are all set to true. Determine if the value is all ones.

Definition at line 176 of file Constants.h.

References llvm::APInt::isAllOnesValue().

Referenced by llvm::InstCombiner::simplifyRangeCheck().

bool llvm::ConstantInt::isMinValue ( bool  isSigned) const [inline]

This function will return true iff this constant represents the smallest value that may be represented by this constant's type.

Returns:
true if this is the smallest value that may be represented by this type. Determine if the value is minimal.

Definition at line 197 of file Constants.h.

References llvm::APInt::isMinSignedValue(), and llvm::APInt::isMinValue().

bool llvm::ConstantInt::isNegative ( ) const [inline]
bool llvm::ConstantInt::isOne ( ) const [inline]

This is just a convenience method to make client code smaller for a common case.

It also correctly performs the comparison without the potential for an assertion from getZExtValue(). Determine if the value is one.

Definition at line 168 of file Constants.h.

Referenced by llvm::ConstantFoldCastInstruction(), llvm::FoldBranchToCommonDest(), llvm::InstCombiner::FoldICmpDivCst(), handleBranchExpect(), IsConstantOne(), isSelect01(), and isSignTest().

bool ConstantInt::isValueValidForType ( Type Ty,
uint64_t  V 
) [static]

This static method returns true if the type Ty is big enough to represent the value V.

This can be used to avoid having the get method assert when V is larger than Ty can represent. Note that there are two versions of this method, one for unsigned and one for signed integers. Although ConstantInt canonicalizes everything to an unsigned integer, the signed version avoids callers having to convert a signed quantity to the appropriate unsigned type before calling the method.

Returns:
true if V is a valid value for type Ty Determine if the value is in range for the given type.

Definition at line 1305 of file Constants.cpp.

References llvm::Type::getIntegerBitWidth(), llvm::Type::isIntegerTy(), and llvm::Max.

bool ConstantInt::isValueValidForType ( Type Ty,
int64_t  V 
) [static]
bool llvm::ConstantInt::isZero ( ) const [inline]
void* llvm::ConstantInt::operator new ( size_t  Size) [inline, protected]

Allocate a User with an operand pointer co-allocated.

This is used for subclasses which need to allocate a variable number of operands, ie, 'hung off uses'.

Reimplemented from llvm::User.

Definition at line 59 of file Constants.h.

References operator new().

bool llvm::ConstantInt::uge ( uint64_t  Num) const [inline]

This function will return true iff this constant represents a value with active bits bigger than 64 bits or a value greater than the given uint64_t value.

Returns:
true iff this constant is greater or equal to the given number. Determine if the value is greater or equal to the given number.

Definition at line 209 of file Constants.h.

References llvm::APInt::getActiveBits(), and llvm::APInt::getZExtValue().

Referenced by llvm::InstCombiner::FoldShiftByConstant(), and llvm::InstCombiner::visitICmpInstWithInstAndIntCst().


Friends And Related Function Documentation

friend class Constant [friend]

Definition at line 54 of file Constants.h.


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