LLVM  12.0.0git
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
llvm::Value Class Reference

LLVM Value Representation. More...

#include "llvm/IR/Value.h"

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

Public Types

enum  ValueTy
 Concrete subclass of this. More...
 
using use_iterator = use_iterator_impl< Use >
 
using const_use_iterator = use_iterator_impl< const Use >
 
using user_iterator = user_iterator_impl< User >
 
using const_user_iterator = user_iterator_impl< const User >
 

Public Member Functions

 Value (const Value &)=delete
 
Valueoperator= (const Value &)=delete
 
void deleteValue ()
 Delete a pointer to a generic Value. More...
 
void dump () const
 Support for debugging, callable in GDB: V->dump() More...
 
TypegetType () const
 All values are typed, get the type of this value. More...
 
LLVMContextgetContext () const
 All values hold a context through their type. More...
 
bool hasName () const
 
ValueNamegetValueName () const
 
void setValueName (ValueName *VN)
 
StringRef getName () const
 Return a constant reference to the value's name. More...
 
void setName (const Twine &Name)
 Change the name of the value. More...
 
void takeName (Value *V)
 Transfer the name from V to this value. More...
 
void replaceAllUsesWith (Value *V)
 Change all uses of this to point to a new Value. More...
 
void replaceNonMetadataUsesWith (Value *V)
 Change non-metadata uses of this to point to a new Value. More...
 
void replaceUsesWithIf (Value *New, llvm::function_ref< bool(Use &U)> ShouldReplace)
 Go through the uses list for this definition and make each use point to "V" if the callback ShouldReplace returns true for the given Use. More...
 
void replaceUsesOutsideBlock (Value *V, BasicBlock *BB)
 replaceUsesOutsideBlock - Go through the uses list for this definition and make each use point to "V" instead of "this" when the use is outside the block. More...
 
void assertModuleIsMaterializedImpl () const
 
void assertModuleIsMaterialized () const
 
bool use_empty () const
 
bool materialized_use_empty () const
 
use_iterator materialized_use_begin ()
 
const_use_iterator materialized_use_begin () const
 
use_iterator use_begin ()
 
const_use_iterator use_begin () const
 
use_iterator use_end ()
 
const_use_iterator use_end () const
 
iterator_range< use_iteratormaterialized_uses ()
 
iterator_range< const_use_iteratormaterialized_uses () const
 
iterator_range< use_iteratoruses ()
 
iterator_range< const_use_iteratoruses () const
 
bool user_empty () const
 
user_iterator materialized_user_begin ()
 
const_user_iterator materialized_user_begin () const
 
user_iterator user_begin ()
 
const_user_iterator user_begin () const
 
user_iterator user_end ()
 
const_user_iterator user_end () const
 
Useruser_back ()
 
const Useruser_back () const
 
iterator_range< user_iteratormaterialized_users ()
 
iterator_range< const_user_iteratormaterialized_users () const
 
iterator_range< user_iteratorusers ()
 
iterator_range< const_user_iteratorusers () const
 
bool hasOneUse () const
 Return true if there is exactly one user of this value. More...
 
bool hasNUses (unsigned N) const
 Return true if this Value has exactly N users. More...
 
bool hasNUsesOrMore (unsigned N) const
 Return true if this value has N users or more. More...
 
UsegetSingleUndroppableUse ()
 Return true if there is exactly one user of this value that cannot be dropped. More...
 
bool hasNUndroppableUses (unsigned N) const
 Return true if there this value. More...
 
bool hasNUndroppableUsesOrMore (unsigned N) const
 Return true if this value has N users or more. More...
 
void dropDroppableUses (llvm::function_ref< bool(const Use *)> ShouldDrop=[](const Use *) { return true;})
 Remove every uses that can safely be removed. More...
 
bool isUsedInBasicBlock (const BasicBlock *BB) const
 Check if this value is used in the specified basic block. More...
 
unsigned getNumUses () const
 This method computes the number of uses of this Value. More...
 
void addUse (Use &U)
 This method should only be used by the Use class. More...
 
unsigned getValueID () const
 Return an ID for the concrete type of this object. More...
 
unsigned getRawSubclassOptionalData () const
 Return the raw optional flags value contained in this value. More...
 
void clearSubclassOptionalData ()
 Clear the optional flags contained in this value. More...
 
bool hasSameSubclassOptionalData (const Value *V) const
 Check the optional flags for equality. More...
 
bool hasValueHandle () const
 Return true if there is a value handle associated with this value. More...
 
bool isUsedByMetadata () const
 Return true if there is metadata referencing this value. More...
 
bool isSwiftError () const
 Return true if this value is a swifterror value. More...
 
const ValuestripPointerCasts () const
 Strip off pointer casts, all-zero GEPs and address space casts. More...
 
ValuestripPointerCasts ()
 
const ValuestripPointerCastsAndAliases () const
 Strip off pointer casts, all-zero GEPs, address space casts, and aliases. More...
 
ValuestripPointerCastsAndAliases ()
 
const ValuestripPointerCastsSameRepresentation () const
 Strip off pointer casts, all-zero GEPs and address space casts but ensures the representation of the result stays the same. More...
 
ValuestripPointerCastsSameRepresentation ()
 
const ValuestripPointerCastsAndInvariantGroups () const
 Strip off pointer casts, all-zero GEPs and invariant group info. More...
 
ValuestripPointerCastsAndInvariantGroups ()
 
const ValuestripInBoundsConstantOffsets () const
 Strip off pointer casts and all-constant inbounds GEPs. More...
 
ValuestripInBoundsConstantOffsets ()
 
const ValuestripAndAccumulateConstantOffsets (const DataLayout &DL, APInt &Offset, bool AllowNonInbounds, function_ref< bool(Value &Value, APInt &Offset)> ExternalAnalysis=nullptr) const
 Accumulate the constant offset this value has compared to a base pointer. More...
 
ValuestripAndAccumulateConstantOffsets (const DataLayout &DL, APInt &Offset, bool AllowNonInbounds)
 
const ValuestripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset) const
 This is a wrapper around stripAndAccumulateConstantOffsets with the in-bounds requirement set to false. More...
 
ValuestripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset)
 
const ValuestripInBoundsOffsets (function_ref< void(const Value *)> Func=[](const Value *) {}) const
 Strip off pointer casts and inbounds GEPs. More...
 
ValuestripInBoundsOffsets (function_ref< void(const Value *)> Func=[](const Value *) {})
 
uint64_t getPointerDereferenceableBytes (const DataLayout &DL, bool &CanBeNull) const
 Returns the number of bytes known to be dereferenceable for the pointer value. More...
 
Align getPointerAlignment (const DataLayout &DL) const
 Returns an alignment of the pointer value. More...
 
const ValueDoPHITranslation (const BasicBlock *CurBB, const BasicBlock *PredBB) const
 Translate PHI node to its predecessor from the given basic block. More...
 
ValueDoPHITranslation (const BasicBlock *CurBB, const BasicBlock *PredBB)
 
void mutateType (Type *Ty)
 Mutate the type of this Value to be of the specified type. More...
 
template<class Compare >
void sortUseList (Compare Cmp)
 Sort the use-list. More...
 
void reverseUseList ()
 Reverse the use-list. More...
 
void print (raw_ostream &O, bool IsForDebug=false) const
 Implement operator<< on Value. More...
 
void print (raw_ostream &O, ModuleSlotTracker &MST, bool IsForDebug=false) const
 
void printAsOperand (raw_ostream &O, bool PrintType=true, const Module *M=nullptr) const
 Print the name of this Value out to the specified raw_ostream. More...
 
void printAsOperand (raw_ostream &O, bool PrintType, ModuleSlotTracker &MST) const
 

Static Public Attributes

static const unsigned MaxAlignmentExponent = 29
 The maximum alignment for instructions. More...
 
static const unsigned MaximumAlignment = 1u << MaxAlignmentExponent
 

Protected Types

enum  : unsigned { NumUserOperandsBits = 28 }
 The number of operands in the subclass. More...
 

Protected Member Functions

 Value (Type *Ty, unsigned scid)
 
 ~Value ()
 Value's destructor should be virtual by design, but that would require that Value and all of its subclasses have a vtable that effectively duplicates the information in the value ID. More...
 
unsigned short getSubclassDataFromValue () const
 
void setValueSubclassData (unsigned short D)
 

Protected Attributes

unsigned char SubclassOptionalData: 7
 Hold subclass data that can be dropped. More...
 
unsigned NumUserOperands: NumUserOperandsBits
 
unsigned IsUsedByMD: 1
 
unsigned HasName: 1
 
unsigned HasHungOffUses: 1
 
unsigned HasDescriptor: 1
 

Friends

class ValueAsMetadata
 
class ValueHandleBase
 

Detailed Description

LLVM Value Representation.

This is a very important LLVM class. It is the base class of all values computed by a program that may be used as operands to other values. Value is the super class of other important classes such as Instruction and Function. All Values have a Type. Type is not a subclass of Value. Some values can have a name and they belong to some Module. Setting the name on the Value automatically updates the module's symbol table.

Every value has a "use list" that keeps track of which other Values are using this Value. A Value can also have an arbitrary number of ValueHandle objects that watch it and listen to RAUW and Destroy events. See llvm/IR/ValueHandle.h for details.

Definition at line 74 of file Value.h.

Member Typedef Documentation

◆ const_use_iterator

using llvm::Value::const_use_iterator = use_iterator_impl<const Use>

Definition at line 351 of file Value.h.

◆ const_user_iterator

using llvm::Value::const_user_iterator = user_iterator_impl<const User>

Definition at line 388 of file Value.h.

◆ use_iterator

using llvm::Value::use_iterator = use_iterator_impl<Use>

Definition at line 350 of file Value.h.

◆ user_iterator

using llvm::Value::user_iterator = user_iterator_impl<User>

Definition at line 387 of file Value.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned
protected

The number of operands in the subclass.

This member is defined by this class, but not used for anything. Subclasses can use it to store their number of operands, if they have any.

This is stored here to save space in User on 64-bit hosts. Since most instances of Value have operands, 32-bit hosts aren't significantly affected.

Note, this should NOT be used directly by any class other than User. User uses this value to find the Use list.

Enumerator
NumUserOperandsBits 

Definition at line 113 of file Value.h.

◆ ValueTy

Concrete subclass of this.

An enumeration for keeping track of the concrete subclass of Value that is actually instantiated. Values of this enumeration are kept in the Value classes SubclassID field. They are used for concrete type identification.

Definition at line 491 of file Value.h.

Constructor & Destructor Documentation

◆ Value() [1/2]

Value::Value ( Type Ty,
unsigned  scid 
)
protected

◆ ~Value()

Value::~Value ( )
protected

Value's destructor should be virtual by design, but that would require that Value and all of its subclasses have a vtable that effectively duplicates the information in the value ID.

As a size optimization, the destructor has been protected, and the caller should manually call deleteValue.

Definition at line 73 of file Value.cpp.

References assert(), llvm::dbgs(), getName(), llvm::ValueAsMetadata::handleDeletion(), isUsedByMetadata(), materialized_use_empty(), users(), and llvm::ValueHandleBase::ValueIsDeleted().

◆ Value() [2/2]

llvm::Value::Value ( const Value )
delete

Member Function Documentation

◆ addUse()

void llvm::Value::addUse ( Use U)
inline

This method should only be used by the Use class.

Definition at line 483 of file Value.h.

Referenced by llvm::Use::set(), and llvm::Use::swap().

◆ assertModuleIsMaterialized()

void llvm::Value::assertModuleIsMaterialized ( ) const
inline

Definition at line 335 of file Value.h.

References assertModuleIsMaterializedImpl().

Referenced by use_begin(), use_empty(), user_back(), user_begin(), user_empty(), users(), and uses().

◆ assertModuleIsMaterializedImpl()

void Value::assertModuleIsMaterializedImpl ( ) const

◆ clearSubclassOptionalData()

void llvm::Value::clearSubclassOptionalData ( )
inline

Clear the optional flags contained in this value.

Definition at line 522 of file Value.h.

References SubclassOptionalData.

Referenced by ClearSubclassDataAfterReassociation(), and LinearizeExprTree().

◆ deleteValue()

void Value::deleteValue ( )

◆ DoPHITranslation() [1/2]

const Value * Value::DoPHITranslation ( const BasicBlock CurBB,
const BasicBlock PredBB 
) const

Translate PHI node to its predecessor from the given basic block.

If this value is a PHI node with CurBB as its parent, return the value in the PHI node corresponding to PredBB. If not, return ourself. This is useful if you want to know the value something has in a predecessor block.

Definition at line 818 of file Value.cpp.

References llvm::dyn_cast(), and llvm::PHINode::getIncomingValueForBlock().

Referenced by canonicalizeSaturatedAdd(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessorsImpl(), DoPHITranslation(), foldOperationIntoPhiValue(), okayForPHIOfOps(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), and stripInBoundsOffsets().

◆ DoPHITranslation() [2/2]

Value* llvm::Value::DoPHITranslation ( const BasicBlock CurBB,
const BasicBlock PredBB 
)
inline

Definition at line 679 of file Value.h.

References DoPHITranslation().

◆ dropDroppableUses()

void Value::dropDroppableUses ( llvm::function_ref< bool(const Use *)>  ShouldDrop = [](const Use *) { return true; })

Remove every uses that can safely be removed.

This will remove for example uses in llvm.assume. This should be used when performing want to perform a tranformation but some Droppable uses pervent it. This function optionally takes a filter to only remove some droppable uses.

Definition at line 172 of file Value.cpp.

References assert(), llvm::UndefValue::get(), getContext(), llvm::LLVMContextImpl::getOrInsertBundleTag(), llvm::ConstantInt::getTrue(), llvm_unreachable, llvm::LLVMContext::pImpl, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::CallBase::BundleOpInfo::Tag, and uses().

Referenced by hasOneUse(), and TryToSinkInstruction().

◆ dump()

LLVM_DUMP_METHOD void Value::dump ( ) const

◆ getContext()

LLVMContext & Value::getContext ( ) const

All values hold a context through their type.

Definition at line 826 of file Value.cpp.

References llvm::Type::getContext().

Referenced by llvm::GlobalVariable::addAttribute(), llvm::Function::addAttribute(), llvm::Function::addAttributes(), llvm::Function::addDereferenceableAttr(), llvm::Function::addDereferenceableOrNullAttr(), llvm::Function::addDereferenceableOrNullParamAttr(), llvm::Function::addDereferenceableParamAttr(), llvm::Function::addParamAttr(), llvm::Function::addParamAttrs(), llvm::addRuntimeChecks(), annotateAnyAllocSite(), annotateDereferenceableBytes(), annotateNonNullAndDereferenceable(), llvm::SelectInst::areInvalidOperands(), BitCastConstantVector(), BuildConstantFromSCEV(), llvm::canConstantFoldCallTo(), canonicalizeSaturatedAdd(), CanShareConstantPoolEntry(), CC_MipsO32_FP64(), llvm::changeToUnreachable(), llvm::misexpect::checkFrontendInstrumentation(), llvm::Function::clearGC(), llvm::FenceInst::cloneImpl(), llvm::UnreachableInst::cloneImpl(), collectInsertionElements(), combineLoadToOperationType(), computeAddrSpace(), computeBytesPoppedByCalleeForSRet(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), computeRecurrenceType(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessorsImpl(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldLoadThroughBitcast(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::ConstantFoldUnaryInstruction(), ConvertDoubleToBytes(), ConvertToSInt(), llvm::copyMetadataForLoad(), llvm::copyNonnullMetadata(), llvm::copyRangeMetadata(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::ARMConstantPoolConstant::Create(), llvm::CallBrInst::Create(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), createCallInst(), llvm::createCallMatchingInvoke(), llvm::MatrixBuilder< IRBuilderTy >::CreateColumnMajorLoad(), llvm::MatrixBuilder< IRBuilderTy >::CreateColumnMajorStore(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemMove(), llvm::createFalkorMarkStridedAccessesPass(), llvm::InstCombiner::CreateNonTerminatorUnreachable(), CreatePrologue(), llvm::createSeparateConstOffsetFromGEPPass(), createUnreachableSwitchDefault(), despeculateCountZeros(), detectShiftUntilZeroIdiom(), dropDroppableUses(), evaluateInDifferentElementOrder(), expandBounds(), llvm::SCEVExpander::expandUnionPredicate(), llvm::SCEVExpander::expandWrapPredicate(), llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), ExtractConstantBytes(), extractMDNode(), findBasePointer(), llvm::FindDbgAddrUses(), llvm::findDbgUsers(), llvm::findDbgValues(), FindPreallocatedCall(), fixupBranchWeights(), foldBitcastExtElt(), foldCtpop(), foldCttzCtlz(), foldICmpShlOne(), foldInsSequenceIntoSplat(), llvm::InstCombiner::FoldShiftByConstant(), llvm::formLCSSAForInstructions(), genLoopLimit(), llvm::ValueAsMetadata::get(), llvm::ConstantExpr::get(), getArrayElements(), getAsConstantIndexedAddress(), llvm::GlobalVariable::getAttributesAsList(), llvm::IRPosition::getAttrs(), getBoundsCheckCond(), getComparePred(), llvm::LazyValueInfo::getConstant(), getConstantAt(), GetConstantInt(), llvm::LazyValueInfo::getConstantOnEdge(), getConstrainedOpcode(), llvm::ValueAsMetadata::getContext(), getEdgeValueLocal(), llvm::ConstantDataSequential::getElementAsConstant(), llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getFCmp(), llvm::Function::getGC(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getICmp(), llvm::ValueAsMetadata::getIfExists(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getInsertValue(), getMemCmpLoad(), llvm::AAMemoryLocation::getMemoryLocationsAsStr(), getName(), getNegativeIsTrueBoolVec(), llvm::CallBase::getNumSubclassExtraOperands(), llvm::getObjectSize(), getOffsetFromIndices(), getParentPad(), llvm::GlobalValue::getPartition(), getPoisonFor(), llvm::FastISel::getRegForValue(), getRelevantOperands(), GetRMWLibcall(), llvm::ConstantExpr::getSelect(), GetSortedValueDataFromCallTargets(), llvm::ConstantDataVector::getSplat(), llvm::SwitchInstProfUpdateWrapper::getSuccessorWeight(), llvm::SITargetLowering::getTgtMemIntrinsic(), getTrueOrFalseValue(), getType(), llvm::ConstantStruct::getTypeForElements(), getUnderlyingArgRegs(), getValueName(), handleBrSelExpect(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::Constant::handleOperandChange(), handleSwitchExpect(), INITIALIZE_PASS(), llvm::InlineFunction(), llvm::insertDebugValuesForPHIs(), insertLifetimeMarkersSurroundingCall(), insertSpills(), llvm::isBytewiseValue(), llvm::ARMTTIImpl::isHardwareLoopProfitable(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), isInertARCValue(), isLoadCombineCandidateImpl(), isLoadInvariantInLoop(), isOrdered(), isReportingError(), isSupportedGuardInstruction(), isTrivialLoopExitBlock(), llvm::LibCallSimplifier::LibCallSimplifier(), LLVMGetOperand(), LLVMSetParamAlignment(), lookThroughAnd(), llvm::BlockAddress::lookup(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerSubFn(), llvm::makeGuardControlFlowExplicit(), makeStatepointExplicitImpl(), llvm::IRAttributeManifest::manifestAttrs(), matchesOr(), mayLoopAccessLocation(), llvm::MergeBasicBlockIntoOnlyPred(), mergeCleanupPad(), mergeInlinedArrayAllocas(), llvm::Negator::Negate(), llvm::EscapeEnumerator::Next(), OptimizeGlobalAddressOfMalloc(), optimizeMemCmpConstantSize(), OptimizeNoopCopyExpression(), false::LibCallsShrinkWrap::perform(), PerformHeapAllocSRoA(), llvm::CallBase::populateBundleOperandInfos(), processCallSite(), processCmp(), processUDivOrURem(), processUGT_ADDCST_ADD(), llvm::pgo::promoteIndirectCall(), ReduceSwitchRange(), llvm::Function::removeAttribute(), llvm::Function::removeAttributes(), llvm::Function::removeParamAttr(), llvm::Function::removeParamAttrs(), llvm::coro::replaceCoroFree(), llvm::replaceDbgValueForAlloca(), ReplaceFPIntrinsicWithCall(), replaceUsesOfWith(), rewriteDebugUsers(), RewriteUsesOfClonedInstructions(), llvm::salvageDebugInfoForDbgValues(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectFNeg(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::setDestAlignment(), llvm::AtomicMemIntrinsic::setElementSizeInBytes(), llvm::Function::setEntryCount(), llvm::Function::setGC(), llvm::setInlineRemark(), llvm::setLoopEstimatedTripCount(), setNoClobberMetadata(), llvm::GlobalValue::setPartition(), llvm::setProfMetadata(), llvm::Function::setPrologueData(), llvm::GlobalObject::setSection(), llvm::Function::setSectionPrefix(), setUsedInitializer(), setValueName(), shouldFixMainFunction(), ShrinkDemandedConstant(), shrinkFPConstant(), SimplifyCondBranchToCondBranch(), SimplifyICmpInst(), simplifyICmpWithBinOp(), SimplifyRelativeLoad(), simplifyX86extrq(), llvm::SplitCriticalEdge(), splitGlobal(), splitMergedValStore(), SRAGlobal(), TryToShrinkGlobalToBoolean(), TryToSinkInstruction(), tryUnmergingGEPsAcrossIndirectBr(), turnGuardIntoBranch(), llvm::UnreachableInst::UnreachableInst(), llvm::UnrollLoop(), unswitchNontrivialInvariants(), unswitchTrivialBranch(), updateBranchWeights(), llvm::CallInst::updateProfWeight(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeGlobalVariable(), llvm::UpgradeIntrinsicCall(), llvm::ValueHandleBase::ValueIsDeleted(), llvm::ValueHandleBase::ValueIsRAUWd(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitAllocSite(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::Interpreter::visitReturnInst(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSwitchInst(), willNotOverflow(), wrapConstantAsMetadata(), and X86ChooseCmpImmediateOpcode().

◆ getName()

StringRef Value::getName ( ) const

Return a constant reference to the value's name.

This guaranteed to return the same reference as long as the value is not modified. If the value has a name, this does a hashtable lookup, so it's not free.

Definition at line 270 of file Value.cpp.

References Allocator, assert(), llvm::StringMapEntry< ValueTy >::Create(), llvm::StringRef::empty(), llvm::StringRef::find_first_of(), getContext(), llvm::StringMapEntry< ValueTy >::getKey(), getSymTab(), getType(), getValueName(), hasName(), llvm::Twine::isTriviallyEmpty(), llvm::max(), NonGlobalValueMaxNameSize, llvm::StringRef::npos, llvm::StringMapEntryStorage< ValueTy >::setValue(), setValueName(), llvm::StringRef::size(), llvm::ARM_MB::ST, llvm::StringRef::substr(), and llvm::Twine::toStringRef().

Referenced by AddAliasScopeMetadata(), llvm::SSAUpdaterBulk::AddAvailableValue(), AddCalls(), addForcedAttributes(), Prefetch::addInstruction(), addMappingsFromTLI(), llvm::SSAUpdaterBulk::AddUse(), llvm::X86FrameLowering::adjustForHiPEPrologue(), analyzeParsePointLiveness(), llvm::DiagnosticInfoOptimizationBase::Argument::Argument(), assertBranchOrSelectConditionHoisted(), assureFPCallStub(), llvm::WinException::beginFunction(), llvm::CFGMST< Edge, BBInfo >::buildEdges(), buildFrameType(), llvm::BlockFrequencyInfo::calculate(), llvm::BranchProbabilityInfo::calculate(), calculateCXXStateNumbers(), calculateSEHStateNumbers(), llvm::Interpreter::callExternalFunction(), llvm::canConstantFoldCallTo(), canCreateThunkFor(), CanGenerateTest(), llvm::InstCombiner::canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract(), canonicalizeICmpPredicate(), canonicalizeLowbitMask(), canonicalizeSaturatedAdd(), CanPropagatePredecessorsForPHIs(), llvm::canRenameComdatFunc(), canRotateDeoptimizingLatchExit(), llvm::changeToInvokeAndSplitBasicBlock(), cheapToScalarize(), checkCombinedSummaryForTesting(), llvm::Attributor::checkForAllCallSites(), llvm::classifyEHPersonality(), llvm::CloneBasicBlock(), llvm::CloneFunction(), llvm::orc::cloneFunctionDecl(), llvm::orc::cloneGlobalAliasDecl(), llvm::orc::cloneGlobalVariableDecl(), cloneInstForMustTail(), cloneInstructionInExitBlock(), llvm::JumpThreadingPass::CloneInstructions(), CloneLoopBlocks(), collectCallSiteParameters(), llvm::colorEHFunclets(), combineInstructionsOverFunction(), llvm::InstCombiner::combineLoadToNewType(), llvm::InstCombiner::commonShiftTransforms(), compareNames(), computeAddrSpace(), llvm::ConstantFoldCall(), ConstructSSAForLoadSet(), llvm::convertToDeclaration(), ConvertToSInt(), countMBBInstruction(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CallBrInst::Create(), llvm::createBlockExtractorPass(), createCloneDeclaration(), llvm::createConstantHoistingPass(), createFPFnStub(), llvm::createGCInfoPrinter(), createHWLoopAnalysis(), llvm::createPGOFuncNameMetadata(), createPowWithIntegerExponent(), CreatePrologue(), createReplacementInstr(), llvm::createSampleProfileLoaderPass(), llvm::createScalarizerPass(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), createShallowWrapper(), llvm::createSVEIntrinsicOptsPass(), createUnreachableSwitchDefault(), CreateVarArgHelper(), createWrapper(), deleteDeadInstruction(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), llvm::NVPTXAsmPrinter::doFinalization(), domTreeLevelBefore(), doPromotion(), llvm::GVNExpression::Expression::dump(), llvm::DomTreeUpdater::dump(), llvm::AliasSetTracker::dump(), llvm::CFGMST< Edge, BBInfo >::dumpEdges(), dumpIR(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::DuplicateInstructionsInSplitBetween(), eliminateDeadStores(), llvm::orc::IRSpeculationLayer::emit(), EmitCamlGlobal(), llvm::OpenMPIRBuilder::emitCancelationCheckImpl(), llvm::AsmPrinter::emitDebugValue(), llvm::EmitGEPOffset(), llvm::ExecutionEngine::emitGlobals(), llvm::AMDGPUAsmPrinter::emitGlobalVariable(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::emitKernel(), llvm::AsmPrinter::emitSpecialLLVMGlobal(), enableCallSafepoints(), llvm::WinException::endFunclet(), llvm::BTFDebug::endFunctionImpl(), eraseDeadBBsAndChildren(), llvm::Evaluator::EvaluateBlock(), EvaluateStaticConstructor(), llvm::VPBasicBlock::execute(), llvm::MustBeExecutedContextExplorer::findBackwardJoinPoint(), findBaseDefiningValueCached(), findBasePointer(), llvm::MustBeExecutedContextExplorer::findForwardJoinPoint(), llvm::CodeExtractor::findInputsOutputs(), FindPredecessorAutoreleaseWithSafePath(), findReturnsToZap(), fixupDebugInfoPostExtraction(), llvm::AMDGPULibCalls::fold(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), foldICmpBitCast(), foldICmpShlOne(), foldICmpWithHighBitMask(), foldICmpWithMinMax(), foldLogicCastConstant(), foldOperationIntoSelectOperand(), foldSelectICmpLshrAshr(), llvm::InstCombiner::FoldShiftByConstant(), foldSignedTruncationCheck(), FoldTwoEntryPHINode(), forceRenaming(), forEachUser(), llvm::formLCSSAForInstructions(), llvm::JITSymbolFlags::fromGlobalValue(), FunctionNumber(), getAllocationDataForFunction(), getArrayElements(), getBinOpsForFactorization(), llvm::bfi_detail::getBlockName(), getBranchHint(), llvm::sampleprof::FunctionSamples::getCanonicalFnName(), getChainID(), llvm::DOTGraphTraits< DOTFuncInfo * >::getCompleteNodeLabel(), llvm::Intrinsic::getDeclaration(), llvm::DeadArgumentEliminationPass::RetOrArg::getDescription(), getDescription(), llvm::orc::getDestructors(), getEdgeValueLocal(), getEmscriptenFunction(), getEncodedUnnamedAddr(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileWasm::getExplicitSectionGlobal(), getFromRangeMetadata(), llvm::MachineBasicBlock::getFullName(), llvm::GlobalValue::getGlobalIdentifier(), GetGlobalTypeString(), llvm::DOTGraphTraits< DOTFuncInfo * >::getGraphName(), GetHeapSROAValue(), llvm::getInlineCost(), getInnermostLoopFor(), getInsertPt(), getInstrName(), getIntToFPVal(), llvm::TargetLibraryInfoImpl::getLibFunc(), llvm::ExecutionEngine::getMangledName(), getMaxBackedgeTakenCount(), getMaxWidenStepsOpts(), getMCSymbolForMBB(), getMinVisibility(), getName(), llvm::MachineFunction::getName(), llvm::Mangler::getNameWithPrefix(), getOpenCLAlignment(), getOrCreateDebugLoc(), llvm::GetOrCreateFunctionComdat(), llvm::OpenMPIRBuilder::getOrCreateRuntimeFunction(), llvm::AArch64InstrInfo::getOutliningType(), getParentPad(), llvm::getPGOFuncName(), llvm::orc::OrcMCJITReplacement::getPointerToFunction(), getRetComponentType(), getRsrcReg(), llvm::getSamplerName(), getScalarIntrinsicDeclaration(), getSelectFoldableConstant(), llvm::DOTGraphTraits< DOTFuncInfo * >::getSimpleNodeLabel(), GetSortedValueDataFromCallTargets(), getStartOrEndSlot(), getSubprogram(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), getSuccState(), llvm::getSurfaceName(), llvm::getTextureName(), getTrueOrFalseValue(), getTypePartition(), getVarName(), GlobalWasGeneratedByCompiler(), HandleByValArgument(), hasName(), hasUsersIn(), hoist(), llvm::hoistRegion(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::InlineFunction(), insertLifetimeMarkersSurroundingCall(), llvm::InsertPreheaderForLoop(), insertUniqueBackedgeBlock(), instrumentMaskedLoadOrStore(), llvm::InternalizePass::internalizeModule(), llvm::invertCondition(), isAtomic(), isCalleeLoad(), isCallPromotable(), llvm::isControlFlowEquivalent(), isDirectCall(), llvm::DenseMapInfo< ICVValue >::isEqual(), llvm::isFreeCall(), isFuncOrderCorrect(), isGCSafepointPoll(), llvm::HexagonTargetObjectFile::isGlobalInSmallSection(), isIgnorableInst(), isInPartition(), isInSymtab(), IsInterestingCmp(), isIntrinsicInline(), isKnownLibFunction(), isKnownTypeIdMember(), isLoadConditional(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), llvm::ARMTTIImpl::isLoweredToCall(), isObjectDereferencedInBlock(), isOnlyReachableViaThisEdge(), isPromotedResultSafe(), isReassociableOp(), isReInterleaveMask(), isReportingError(), isSafeAndProfitableToSinkLoad(), isSafeToHoistInvoke(), isSafeToPromoteArgument(), isSpecialLLVMGlobalArrayForStaticInit(), llvm::isTLIScalarize(), isTrivialLoopExitBlock(), isUnconditionalBranch(), isWrapperOnlyCall(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::log2(), lookupFunction(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::TargetLoweringObjectFileCOFF::lowerRelativeReference(), llvm::IntrinsicLowering::LowerToByteSwap(), makeReducible(), makeStatepointExplicitImpl(), mapBinOpcode(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), MarkBlocksLiveIn(), matchDeMorgansLaws(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), maybePrintComdat(), llvm::JumpThreadingPass::MaybeThreadThroughTwoBasicBlocks(), mayLoopAccessLocation(), llvm::MergeBlockIntoPredecessor(), mergeConstants(), moveUp(), nearest_common_dominator(), needsRuntimeRegistrationOfSectionRange(), llvm::TargetRegisterInfo::needsStackRealignment(), NegateValue(), normalizePBQPSpillWeight(), llvm::orc::BlockFreqQuery::operator()(), llvm::orc::SequenceBBQuery::operator()(), llvm::DiagnosticPrinterRawOStream::operator<<(), false::operator<<(), llvm::rdf::operator<<(), llvm::operator<<(), optimizeDivRem(), optimizeDoubleFP(), OptimizeGlobalAddressOfMalloc(), llvm::OptLevelChanger::OptLevelChanger(), llvm::AArch64::parseCPUArch(), llvm::ARM::parseCPUArch(), llvm::peelLoop(), PerformHeapAllocSRoA(), llvm::PHITransAddr::PHITranslateWithInsertion(), populateWorklist(), llvm::LinkDiagnosticInfo::print(), llvm::LegacyDivergenceAnalysis::print(), llvm::StackSafetyInfo::print(), llvm::StackSafetyGlobalInfo::print(), llvm::Trace::print(), llvm::ValueEnumerator::print(), llvm::MemoryDepChecker::Dependence::print(), llvm::GPUDivergenceAnalysis::print(), llvm::MemoryPhi::print(), llvm::MachineBasicBlock::print(), llvm::DiagnosticInfoUnsupported::print(), llvm::BranchProbabilityInfo::printEdgeProbability(), printIRBlockReference(), llvm::MIRFormatter::printIRValue(), PrintLLVMName(), PrintLoopInfo(), llvm::LazyValueInfo::printLVI(), printNode(), printNodeDOT(), printSCC(), processAShr(), llvm::JumpThreadingPass::ProcessBlock(), processGlobal(), processInternalGlobal(), llvm::LoopVectorizePass::processLoop(), processLoopInVPlanNativePath(), processOverflowIntrinsic(), processSaturatingInst(), processSDiv(), processSExt(), processSRem(), llvm::JumpThreadingPass::ProcessThreadableEdges(), processUDivOrURem(), processUGT_ADDCST_ADD(), llvm::promoteLoopAccessesToScalars(), PushArgMD(), llvm::GVNHoist::rank(), llvm::Function::recalculateIntrinsicID(), llvm::ImportedFunctionsInliningStatistics::recordInline(), recoverFramePointer(), llvm::Attributor::registerFunctionSignatureRewrite(), llvm::Intrinsic::remangleIntrinsicFunction(), llvm::RemoveRedundantDbgInstrs(), rename(), replace(), ReplaceCallWith(), replaceDominatedUsesWith(), reportMayClobberedLoad(), RetagMask(), rewriteComdat(), RewriteHeapSROALoadUser(), rewriteMaterializableInstructions(), rewritePHIs(), RewriteUsesOfClonedInstructions(), llvm::IRCEPass::run(), llvm::LoopAccessInfoPrinterPass::run(), llvm::CoroSplitPass::run(), llvm::ModuleSanitizerCoveragePass::run(), llvm::AAEvaluator::run(), llvm::SimpleLoopUnswitchPass::run(), llvm::PostDominatorTreePrinterPass::run(), llvm::PrintFunctionPass::run(), llvm::StackSafetyPrinterPass::run(), llvm::InlinerPass::run(), llvm::BlockFrequencyPrinterPass::run(), llvm::PhiValuesPrinterPass::run(), llvm::AssumptionPrinterPass::run(), llvm::DominanceFrontierPrinterPass::run(), llvm::ProfileSummaryPrinterPass::run(), llvm::PredicateInfoPrinterPass::run(), llvm::BranchProbabilityPrinterPass::run(), llvm::DominatorTreePrinterPass::run(), llvm::InlineCostAnnotationPrinterPass::run(), llvm::DDGAnalysisPrinterPass::run(), llvm::DevirtSCCRepeatedPass< PassT >::run(), llvm::MemorySSAPrinterPass::run(), llvm::DependenceAnalysisPrinterPass::run(), llvm::RegionInfoPrinterPass::run(), llvm::Float2IntPass::runImpl(), llvm::SLPVectorizerPass::runImpl(), llvm::JumpThreadingPass::runImpl(), llvm::runIPSCCP(), llvm::LegacyDivergenceAnalysis::runOnFunction(), llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::LPPassManager::runOnFunction(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::RGPassManager::runOnFunction(), llvm::FPPassManager::runOnFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), runSCCP(), llvm::InnerLoopVectorizer::scalarizeInstruction(), scaleWeights(), selectELFSectionForGlobal(), llvm::FastISel::selectInstruction(), selectJumpTableArmEncoding(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), selectWasmSectionForGlobal(), setCoroInfo(), llvm::BranchProbabilityInfo::setEdgeProbability(), shouldApply(), llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection(), ShrinkDemandedConstant(), simplifyAllocaArraySize(), SimplifyBSwap(), SimplifyCondBranchToCondBranch(), SimplifyNVVMIntrinsic(), simplifyOneLoop(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), sinkInstruction(), sinkNotIntoXor(), llvm::sinkRegion(), llvm::FunctionPass::skipFunction(), llvm::LoopPass::skipLoop(), llvm::RegionPass::skipRegion(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), speculatePHINodeLoads(), speculateSelectInstLoads(), llvm::SplitBlock(), llvm::SplitBlockPredecessors(), splitCallSite(), llvm::SplitCriticalEdge(), splitGlobal(), llvm::SplitLandingPadPredecessors(), SRAGlobal(), llvm::stripDebugifyMetadata(), StripSymtab(), suffixed_name_or(), llvm::JumpThreadingPass::ThreadEdge(), llvm::JumpThreadingPass::ThreadGuard(), llvm::JumpThreadingPass::ThreadThroughTwoBasicBlocks(), toRemarkLocation(), transformCallee(), translateExtract(), truncateIVUse(), llvm::JumpThreadingPass::TryThreadEdge(), tryToOptimizeStoreOfMallocToGlobal(), TryToShrinkGlobalToBoolean(), tryToUnrollAndJamLoop(), tryToUnrollLoop(), TypeSizeToSizeIndex(), unifyLoopExits(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::UnrollAndJamLoop(), llvm::UnrollLoop(), llvm::UnrollRuntimeLoopRemainder(), updateOperand(), UpdatePHINodes(), updatePredecessorProfileMetadata(), llvm::CallInst::updateProfWeight(), llvm::UpgradeARCRuntime(), llvm::UpgradeGlobalVariable(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), llvm::AMDGPULibCalls::useNative(), usesLiveOut(), Verify(), llvm::misexpect::verifyMisExpect(), llvm::verifyModule(), llvm::LoopVersioning::versionLoop(), viewCFG(), viewRegionInfo(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFPTrunc(), llvm::InstCombiner::visitGetElementPtrInst(), visitIVCast(), llvm::InstCombiner::visitLoadInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), willNotOverflow(), writeCFGToDotFile(), llvm::WriteIndexToFile(), ExpandedValuesCleaner::~ExpandedValuesCleaner(), llvm::OptLevelChanger::~OptLevelChanger(), ~Value(), and llvm::ValueSymbolTable::~ValueSymbolTable().

◆ getNumUses()

unsigned Value::getNumUses ( ) const

This method computes the number of uses of this Value.

This is a linear time operation. Use hasOneUse, hasNUses, or hasNUsesOrMore to check for specific values.

Definition at line 216 of file Value.cpp.

References use_begin(), and use_end().

Referenced by llvm::GVNExpression::Expression::dump(), FunctionNumber(), hasAllGatScatUsers(), hasOneUse(), hasUsesOutsideLoop(), INITIALIZE_PASS(), llvm::log2(), llvm::ValueEnumerator::print(), relocationViaAlloca(), and llvm::InlineFeaturesAnalysis::run().

◆ getPointerAlignment()

Align Value::getPointerAlignment ( const DataLayout DL) const

◆ getPointerDereferenceableBytes()

uint64_t Value::getPointerDereferenceableBytes ( const DataLayout DL,
bool CanBeNull 
) const

Returns the number of bytes known to be dereferenceable for the pointer value.

If CanBeNull is set by this function the pointer can either be null or be dereferenceable up to the returned number of bytes.

Definition at line 686 of file Value.cpp.

References assert(), llvm::TypeSize::getKnownMinSize(), llvm::ConstantInt::getLimitedValue(), getType(), llvm::DataLayout::getTypeStoreSize(), llvm::Type::isSized(), and llvm::AttributeList::ReturnIndex.

Referenced by getMinimalExtentFrom(), isDereferenceableAndAlignedPointer(), llvm::CaptureTracker::isDereferenceableOrNull(), stripInBoundsOffsets(), and llvm::InstCombiner::visitBitCast().

◆ getRawSubclassOptionalData()

unsigned llvm::Value::getRawSubclassOptionalData ( ) const
inline

Return the raw optional flags value contained in this value.

This should only be used when testing two Values for equivalence.

Definition at line 517 of file Value.h.

References SubclassOptionalData.

Referenced by llvm::FunctionComparator::cmpOperations(), and llvm::ConstantExprKeyType::operator==().

◆ getSingleUndroppableUse()

Use * Value::getSingleUndroppableUse ( )

Return true if there is exactly one user of this value that cannot be dropped.

This is specialized because it is a common request and does not require traversing the whole use list.

Definition at line 152 of file Value.cpp.

References uses().

Referenced by hasOneUse(), llvm::InstCombiner::run(), and TryToSinkInstruction().

◆ getSubclassDataFromValue()

unsigned short llvm::Value::getSubclassDataFromValue ( ) const
inlineprotected

◆ getType()

Type* llvm::Value::getType ( ) const
inline

All values are typed, get the type of this value.

Definition at line 244 of file Value.h.

References getContext().

Referenced by llvm::GetElementPtrInst::accumulateConstantOffset(), llvm::AliasSetTracker::add(), addArgumentReturnedAttrs(), addAssumeNonNull(), llvm::SSAUpdater::AddAvailableValue(), AddCalls(), addConditions(), Prefetch::addInstruction(), llvm::AddOne(), llvm::RecurrenceDescriptor::AddReductionVar(), llvm::addRuntimeChecks(), addStackMapLiveVars(), llvm::IVUsers::AddUsersImpl(), addVariantDeclaration(), llvm::detail::PtrUseVisitorBase::adjustOffsetForGEP(), llvm::AMDGPUAAResult::alias(), aliasSameBasePointerGEPs(), alwaysAvailable(), llvm::VNCoercion::analyzeLoadFromClobberingLoad(), llvm::VNCoercion::analyzeLoadFromClobberingStore(), annotateAnyAllocSite(), annotateDereferenceableBytes(), annotateNonNullAndDereferenceable(), annotateNonNullBasedOnAccess(), appendTypeSuffix(), ApplyX86MaskOn1BitsVec(), areBothVectorOrScalar(), areExtractExts(), areExtractShuffleVectors(), llvm::X86TTIImpl::areFunctionArgsABICompatible(), llvm::SelectInst::areInvalidOperands(), areInverseVectorBitmasks(), AreNonOverlapSameBaseLoadAndStore(), AreSequentialAccesses(), areStridedAccessesIndependent(), llvm::AtomicCmpXchgInst::AtomicCmpXchgInst(), atomicSizeSupported(), BatchCommitValueTo(), llvm::BinaryOperator::BinaryOperator(), BitCastConstantVector(), BrPHIToSelect(), buildClonedLoopBlocks(), BuildConstantFromSCEV(), buildFrameType(), buildGEP(), buildMultiplyTree(), buildNew(), buildNonAtomicBinOp(), llvm::InnerLoopVectorizer::buildScalarSteps(), BuildSubAggregate(), calcArraySize(), llvm::DomTreeUpdater::callbackDeleteBB(), canAlwaysEvaluateInType(), llvm::VNCoercion::canCoerceMustAliasedValueToLoad(), llvm::canConstantFoldCallTo(), llvm::canCreatePoison(), CanDoGlobalSRA(), canEvaluateSExtd(), canEvaluateShiftedShift(), canEvaluateShuffled(), canEvaluateTruncated(), canEvaluateZExtd(), llvm::FastISel::canFoldAddIntoGEP(), canFoldIVIncExpr(), CanGenerateTest(), canNarrowShiftAmt(), canonicalizeBitCastExtElt(), llvm::InstCombiner::canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract(), canonicalizeICmpBool(), canonicalizeLowbitMask(), canonicalizeSaturatedAdd(), llvm::canReplaceOperandWithVariable(), CanShareConstantPoolEntry(), canSinkInstructions(), canTrapImpl(), canVectorizeInst(), llvm::Evaluator::castCallResultIfNeeded(), llvm::CastInst::castIsValid(), llvm::castToCStr(), CC_MipsO32_FP64(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), cheapToScalarize(), checkCombinedSummaryForTesting(), llvm::Attributor::checkForAllCallSites(), checkFunctionMemoryAccess(), llvm::FPMathOperator::classof(), llvm::ExtractValueInst::classof(), Cleanup(), llvm::TypeFinder::clear(), clearAssumptionsOfUsers(), llvm::CloneAndPruneIntoFromInst(), cloneConstantExprWithNewAddressSpace(), llvm::AllocaInst::cloneImpl(), llvm::LoadInst::cloneImpl(), llvm::VAArgInst::cloneImpl(), llvm::TruncInst::cloneImpl(), llvm::ZExtInst::cloneImpl(), llvm::SExtInst::cloneImpl(), llvm::FPTruncInst::cloneImpl(), llvm::FPExtInst::cloneImpl(), llvm::UIToFPInst::cloneImpl(), llvm::SIToFPInst::cloneImpl(), llvm::FPToUIInst::cloneImpl(), llvm::FPToSIInst::cloneImpl(), llvm::IntToPtrInst::cloneImpl(), llvm::PtrToIntInst::cloneImpl(), llvm::BitCastInst::cloneImpl(), llvm::AddrSpaceCastInst::cloneImpl(), llvm::JumpThreadingPass::CloneInstructions(), CloneLoopBlocks(), llvm::FunctionComparator::cmpBasicBlocks(), llvm::FunctionComparator::cmpConstants(), llvm::FunctionComparator::cmpOperations(), collectBitParts(), collectInsertionElements(), llvm::LoopVectorizationCostModel::collectInstsToScalarize(), collectShuffleElements(), collectSingleShuffleElements(), llvm::LoopVectorizationPlanner::collectTriviallyDeadInstructions(), llvm::InstCombiner::combineLoadToNewType(), combineLoadToOperationType(), combineStoreToNewValue(), combineStoreToValueType(), llvm::InstCombiner::commonCastTransforms(), llvm::InstCombiner::commonIDivTransforms(), llvm::InstCombiner::commonShiftTransforms(), CompareValueComplexity(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::ObjectSizeOffsetEvaluator::compute(), computeBytesPoppedByCalleeForSRet(), llvm::computeConstantRange(), computeKillSet(), computeKnownBits(), computeKnownBitsFromOperator(), computeLiveOutSeed(), llvm::computeMinimumValueSizes(), llvm::ComputeMultiple(), ComputeNumSignBits(), ComputeNumSignBitsImpl(), llvm::computeOverflowForSignedMul(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), computePointerICmp(), ComputePostOrders(), computeRecurrenceType(), llvm::IndexedReference::computeRefCost(), computeUnsignedMinMaxValuesFromKnownBits(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessorsImpl(), concatenateTwoVectors(), llvm::concatenateVectors(), concatSubVector(), ConnectProlog(), llvm::ConstantAggregate::ConstantAggregate(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCastOperand(), llvm::ConstantFoldCompareInstOperands(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldInsertValueInstruction(), llvm::ConstantFoldLoadFromConstPtr(), llvm::ConstantFoldLoadThroughBitcast(), llvm::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::ConstantFoldUnaryInstruction(), constantFoldUser(), ConstructSSAForLoadSet(), contains(), llvm::ConvertDebugDeclareToDebugValue(), ConvertDoubleToBytes(), ConvertShiftToMul(), ConvertToSInt(), convertValue(), llvm::copyMetadataForLoad(), llvm::copyNonnullMetadata(), llvm::copyRangeMetadata(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::UnaryOperator::Create(), llvm::BinaryOperator::Create(), llvm::GetElementPtrInst::Create(), llvm::CallBrInst::Create(), llvm::MatrixBuilder< IRBuilderTy >::CreateAdd(), CreateAdd(), llvm::IRBuilderBase::CreateAlignedLoad(), llvm::IRBuilderBase::CreateAlignedStore(), llvm::IRBuilderBase::CreateAlignmentAssumption(), llvm::createAMDGPUPrintfRuntimeBinding(), llvm::IRBuilderBase::CreateAnd(), createAndInstr(), llvm::IRBuilderBase::CreateAShr(), CreateAssert(), CreateAssertNot(), llvm::IRBuilderBase::CreateAssumption(), llvm::IRBuilderBase::CreateAtomicCmpXchg(), llvm::IRBuilderBase::CreateAtomicRMW(), llvm::IRBuilderBase::CreateBinaryIntrinsic(), llvm::CastInst::CreateBitOrPointerCast(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), llvm::IRBuilderBase::CreateBitOrPointerCast(), createCallInst(), llvm::TargetFolder::CreateCast(), createCast(), llvm::IRBuilderBase::CreateCast(), createCmpXchgInstFun(), llvm::MatrixBuilder< IRBuilderTy >::CreateColumnMajorLoad(), llvm::MatrixBuilder< IRBuilderTy >::CreateColumnMajorStore(), llvm::IRBuilderBase::CreateConstrainedFPBinOp(), llvm::IRBuilderBase::CreateConstrainedFPCast(), llvm::IRBuilderBase::CreateConstrainedFPCmp(), llvm::createDeadArgHackingPass(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemCpy(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemMove(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemSet(), llvm::MatrixBuilder< IRBuilderTy >::CreateExtractElement(), llvm::IRBuilderBase::CreateExtractInteger(), llvm::IRBuilderBase::CreateFAddReduce(), createFFSIntrinsic(), llvm::IRBuilderBase::CreateFMulReduce(), llvm::TargetFolder::CreateFPCast(), llvm::CastInst::CreateFPCast(), llvm::IRBuilderBase::CreateFPCast(), createFree(), llvm::CallInst::CreateFree(), CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), createGlobalFwdRef(), llvm::IRBuilderBase::CreateGlobalString(), llvm::TargetFolder::CreateIntCast(), llvm::IRBuilderBase::CreateIntCast(), llvm::CastInst::CreateIntegerCast(), llvm::IRBuilderBase::CreateInvariantStart(), llvm::IRBuilderBase::CreateIsNotNull(), llvm::IRBuilderBase::CreateIsNull(), llvm::IRBuilderBase::CreateLaunderInvariantGroup(), llvm::IRBuilderBase::CreateLifetimeEnd(), llvm::IRBuilderBase::CreateLifetimeStart(), llvm::IRBuilderBase::CreateLoad(), llvm::IRBuilderBase::CreateLShr(), createMalloc(), createMaskedBitTest(), llvm::IRBuilderBase::CreateMaskedGather(), llvm::IRBuilderBase::CreateMaskedLoad(), llvm::IRBuilderBase::CreateMaskedScatter(), llvm::IRBuilderBase::CreateMaskedStore(), createMaskInstrs(), llvm::MatrixBuilder< IRBuilderTy >::CreateMatrixInsert(), llvm::MatrixBuilder< IRBuilderTy >::CreateMatrixMultiply(), llvm::MatrixBuilder< IRBuilderTy >::CreateMatrixTranspose(), llvm::IRBuilderBase::CreateMemCpy(), llvm::IRBuilderBase::CreateMemCpyInline(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), llvm::createMemDerefPrinter(), llvm::IRBuilderBase::CreateMemMove(), createMemMoveLoop(), llvm::IRBuilderBase::CreateMemSet(), createMemSetLoop(), CreateMul(), CreateNeg(), llvm::BinaryOperator::CreateNeg(), llvm::BinaryOperator::CreateNot(), llvm::BinaryOperator::CreateNSWNeg(), llvm::BinaryOperator::CreateNUWNeg(), llvm::IRBuilderBase::CreateOr(), createOrdering(), llvm::InstCombiner::CreateOverflowTuple(), llvm::createPGOFuncNameVar(), llvm::TargetFolder::CreatePointerBitCastOrAddrSpaceCast(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::IRBuilderBase::CreatePointerBitCastOrAddrSpaceCast(), llvm::TargetFolder::CreatePointerCast(), llvm::CastInst::CreatePointerCast(), llvm::IRBuilderBase::CreatePointerCast(), createPopcntIntrinsic(), createPowWithIntegerExponent(), llvm::IRBuilderBase::CreatePreserveArrayAccessIndex(), llvm::IRBuilderBase::CreatePreserveStructAccessIndex(), llvm::IRBuilderBase::CreatePreserveUnionAccessIndex(), llvm::createPrivateGlobalForString(), createPrivateNonConstGlobalForString(), llvm::createProfileFileNameVar(), llvm::IRBuilderBase::CreatePtrDiff(), createRdxShuffleMask(), llvm::FunctionLoweringInfo::CreateRegs(), createReplacementInstr(), createRetPHINode(), llvm::createScalarizerPass(), llvm::MatrixBuilder< IRBuilderTy >::CreateScalarMultiply(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::TargetFolder::CreateSExtOrBitCast(), llvm::CastInst::CreateSExtOrBitCast(), llvm::IRBuilderBase::CreateSExtOrBitCast(), llvm::IRBuilderBase::CreateSExtOrTrunc(), llvm::createShadowStackGCLoweringPass(), createShallowWrapper(), createShiftShuffle(), llvm::IRBuilderBase::CreateShl(), llvm::createSimpleTargetReduction(), llvm::IRBuilderBase::CreateStripInvariantGroup(), llvm::MatrixBuilder< IRBuilderTy >::CreateSub(), llvm::createSVEIntrinsicOptsPass(), llvm::TargetFolder::CreateTruncOrBitCast(), llvm::CastInst::CreateTruncOrBitCast(), llvm::IRBuilderBase::CreateTruncOrBitCast(), llvm::IRBuilderBase::CreateUnaryIntrinsic(), createUnreachableSwitchDefault(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), llvm::IRBuilderBase::CreateVectorSplat(), createWrapper(), llvm::IRBuilderBase::CreateXor(), llvm::TargetFolder::CreateZExtOrBitCast(), llvm::CastInst::CreateZExtOrBitCast(), llvm::IRBuilderBase::CreateZExtOrBitCast(), llvm::IRBuilderBase::CreateZExtOrTrunc(), llvm::DecodePSHUFBMask(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPERMV3Mask(), llvm::DecodeVPERMVMask(), llvm::DecodeVPPERMMask(), llvm::decomposeBitTestICmp(), decomposeBitTestICmp(), decomposeSimpleLinearExpr(), deleteDeadInstruction(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), despeculateCountZeros(), llvm::DetatchDeadBlocks(), detectShiftUntilZeroIdiom(), determinePointerReadAttrs(), doPromotion(), dropRedundantMaskingOfLeftShiftInput(), llvm::GVNExpression::Expression::dump(), eliminateDeadSwitchCases(), eliminateSwiftErrorArgument(), llvm::emitBinaryFloatFnCall(), emitBinaryFloatFnCallHelper(), emitDebugValueComment(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), llvm::EmitGEPOffset(), llvm::AsmPrinter::emitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantStruct(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::RISCVTargetLowering::emitMaskedAtomicCmpXchgIntrinsic(), llvm::RISCVTargetLowering::emitMaskedAtomicRMWIntrinsic(), llvm::emitMemCCpy(), llvm::InnerLoopVectorizer::emitMinimumIterationCountCheck(), emitSetSwiftErrorValue(), llvm::emitSNPrintf(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::emitStpNCpy(), llvm::emitStrLCat(), llvm::emitStrLCpy(), llvm::emitStrNCat(), llvm::emitStrNCpy(), llvm::PPCTargetLowering::emitTrailingFence(), llvm::InnerLoopVectorizer::emitTransformedIndex(), llvm::emitUnaryFloatFnCall(), emitUnaryFloatFnCallHelper(), llvm::emitVSNPrintf(), llvm::emitVSPrintf(), EmitX86ScalarSelect(), EmitX86Select(), llvm::ARMAsmPrinter::emitXXStructor(), ensurePromotedGV(), ensureValueAvailableInSuccessor(), equalityPropUnSafe(), EraseTerminatorAndDCECond(), evaluateBitcastFromPtr(), llvm::Evaluator::EvaluateBlock(), EvaluateExpression(), evaluateFCmpRelation(), evaluateGEPOffsetExpression(), evaluateICmpRelation(), evaluateInDifferentElementOrder(), EvaluateStoreInto(), llvm::VPBranchOnMaskRecipe::execute(), llvm::VPPredInstPHIRecipe::execute(), llvm::VPWidenCanonicalIVRecipe::execute(), llvm::VPlan::execute(), llvm::Interpreter::exitCalled(), llvm::expandAtomicRMWToCmpXchg(), expandBounds(), llvm::SCEVExpander::expandCodeFor(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::ARMTargetLowering::ExpandInlineAsm(), llvm::X86TargetLowering::ExpandInlineAsm(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), ExtractConstantBytes(), llvm::extractConstantMask(), ExtractImmediate(), extractInteger(), extractMaskedValue(), extractValues(), extractVector(), llvm::AArch64TargetLowering::fallBackToDAGISel(), llvm::FenceInst::FenceInst(), FindAllMemoryUses(), llvm::FindAvailableLoadedValue(), findBaseDefiningValue(), findBaseDefiningValueOfVector(), findBasePointer(), findDemandedEltsByAllUsers(), findDemandedEltsBySingleUser(), findFuncPointers(), llvm::CodeExtractor::findInputsOutputs(), llvm::FindInsertedValue(), findInsertPointAfter(), findLIVLoopCondition(), FindLoopCounter(), findMatchingInlineAsmOperand(), FindPreallocatedCall(), llvm::findScalarElement(), findSelectThroughCast(), findUnwindDestinations(), firstNonDbg(), fitArgInto64Bits(), FitWeights(), llvm::InnerLoopVectorizer::fixReduction(), fixupFPReturnAndCall(), llvm::InnerLoopVectorizer::fixupIVUsers(), llvm::AMDGPULibCalls::fold(), foldAndOrOfEqualityCmpsWithConstants(), foldAndOrOfICmpsWithConstEq(), foldAnyOrAllBitsSet(), FoldBitCast(), foldBitCastBitwiseLogic(), foldBitcastExtElt(), foldBitCastSelect(), foldConstantCastPair(), foldCtpop(), foldCttzCtlz(), foldFDivConstantDivisor(), foldGuardedRotateToFunnelShift(), foldICmpBitCast(), foldICmpShlOne(), foldICmpWithHighBitMask(), foldICmpWithLowBitMaskedVal(), foldICmpWithMinMax(), foldICmpWithTruncSignExtendedVal(), foldICmpWithZextOrSext(), foldIdentityPaddedShuffles(), foldIdentityShuffles(), foldInsEltIntoSplat(), foldIsPowerOf2(), llvm::InstCombiner::foldItoFPtoI(), foldLogicCastConstant(), foldLogOpOfMaskedICmps(), foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed(), foldNoWrapAdd(), foldOperationIntoPhiValue(), foldOperationIntoSelectOperand(), foldSelectBinOpIdentity(), foldSelectICmpAnd(), foldSelectICmpAndOr(), foldSelectICmpLshrAshr(), foldSetClearBits(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftedShift(), foldShiftIntoShiftInAnotherHandOfAndInICmp(), foldShiftOfShiftedLogic(), foldShuffleWithInsert(), foldSignedTruncationCheck(), foldToUnsignedSaturatedAdd(), foldTruncShuffle(), FoldTwoEntryPHINode(), foldUDivPow2Cst(), foldUDivShl(), llvm::InstCombiner::foldVariableSignZeroExtensionOfVariableHighBitExtract(), foldVectorCmp(), foldVecTruncToExtElt(), foldXorToXor(), forEachUser(), llvm::formLCSSAForInstructions(), FunctionNumber(), generateCreationChecks(), generateCreationChecksForBinOp(), GenerateSignBits(), generateSignedDivisionCode(), generateSignedRemainderCode(), generateUnsignedDivisionCode(), genLoopLimit(), llvm::MemoryLocation::get(), llvm::ConstantFP::get(), llvm::ConstantArray::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::get(), getAccessType(), getAddressForMemoryInput(), llvm::SITargetLowering::getAddrModeArguments(), llvm::ConstantExpr::getAddrSpaceCast(), getAdjustedPtr(), llvm::Constant::getAggregateElement(), getAISize(), getAlternateBinop(), llvm::IRTranslator::getAnalysisUsage(), GetAnyNonZeroConstInt(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), getArrayElements(), getAsConstantIndexedAddress(), llvm::ConstantExpr::getAsInstruction(), llvm::Attributor::getAssumedConstant(), getAtomicOpSize(), llvm::getAttributeBasedInliningDecision(), getBaseType(), llvm::ConstantExpr::getBinOpAbsorber(), getBinOpsForFactorization(), llvm::ConstantExpr::getBitCast(), getBoundsCheckCond(), getBranchCondString(), llvm::getCallsiteCost(), llvm::CastInst::getCastOpcode(), llvm::X86TTIImpl::getCFInstrCost(), getChainID(), getCodeAddrSpace(), llvm::ConstantExpr::getCompare(), getCompareCC(), getComparePred(), GetCompareTy(), getConstantFromPool(), GetConstantInt(), llvm::VNCoercion::getConstantLoadValueForLoad(), llvm::SelectionDAG::getConstantPool(), llvm::LazyValueInfo::getConstantRange(), llvm::LazyValueInfo::getConstantRangeOnEdge(), llvm::ExecutionEngine::getConstantValue(), getConstrainedOpcode(), llvm::BasicBlock::getContext(), llvm::Function::getContext(), llvm::IRBuilderBase::getCurrentFunctionReturnType(), llvm::Intrinsic::getDeclaration(), llvm::DemandedBits::getDemandedBits(), llvm::Argument::getDereferenceableBytes(), llvm::Argument::getDereferenceableOrNullBytes(), llvm::AddrSpaceCastOperator::getDestAddressSpace(), llvm::BitCastOperator::getDestTy(), getEdgeValueLocal(), llvm::ConstantDataSequential::getElementType(), getEmscriptenFunction(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getFCmp(), getFCmpValue(), llvm::getFlippedStrictnessPredicateAndConstant(), llvm::ConstantExpr::getFNeg(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getFPTrunc(), getFrameLayout(), getFromRangeMetadata(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::ARMTTIImpl::getGatherScatterOpCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ScalarEvolution::getGEPExpr(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::GVNExpression::VariableExpression::getHashValue(), llvm::GVNExpression::ConstantExpression::getHashValue(), GetHeapSROAValue(), llvm::ConstantExpr::getICmp(), getIdentityValue(), getIdentityValueForAtomicOp(), getImplicitScaleFactor(), llvm::DataLayout::getIndexedOffsetInType(), getInductionVariable(), getInitializer(), llvm::ConstantExpr::getInsertElement(), getInsertPt(), llvm::ConstantExpr::getInsertValue(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getInstructionLatency(), llvm::ConstantExpr::getIntegerCast(), getIntToFPVal(), llvm::ConstantExpr::getIntToPtr(), llvm::SCEVExpander::getIVIncOperand(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::InvokeInst::getLandingPadInst(), getLaneCopyOpcode(), llvm::VNCoercion::getLoadLoadClobberFullWidthSize(), llvm::TargetLoweringBase::getLoadMemOperandFlags(), llvm::VNCoercion::getLoadValueForLoad(), GetLoopInvariantInsertPosition(), llvm::getMallocType(), getMaskedTypeForICmpPair(), getMaxBackedgeTakenCount(), getMaxPointerSize(), getMaxWidenStepsOpts(), getMemCmpLoad(), llvm::VNCoercion::getMemInstValueForLoadHelper(), llvm::AAMemoryLocation::getMemoryLocationsAsStr(), getMemSetPatternValue(), getMetadataTypeOrder(), getMinAnalyzeableBackedgeTakenCount(), getMinimumFPType(), llvm::GlobalsAAResult::getModRefBehavior(), llvm::AAResults::getModRefInfo(), getMulHu(), getName(), getNaturalGEPWithOffset(), getNaturalGEPWithType(), llvm::ConstantExpr::getNeg(), getNegatibleInsts(), getNewICmpValue(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), getNoopInput(), llvm::ConstantExpr::getNot(), getNotValue(), getNumBytes(), getNumElements(), llvm::ConstantDataSequential::getNumElements(), getOffsetFromIndices(), getOpenCLAlignment(), getOptimizationFlags(), llvm::AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(), llvm::InnerLoopVectorizer::getOrCreateTripCount(), llvm::InnerLoopVectorizer::getOrCreateVectorTripCount(), llvm::InnerLoopVectorizer::getOrCreateVectorValue(), llvm::getOrderedReduction(), llvm::getOrEnforceKnownAlignment(), getOrInsertValueProfilingCall(), llvm::Argument::getParamAlign(), llvm::Argument::getParamAlignment(), llvm::Argument::getParamByValType(), getParameterABIAttributes(), getParentPad(), llvm::Argument::getPassPointeeByValueCopySize(), llvm::AtomicCmpXchgInst::getPointerAddressSpace(), llvm::AtomicRMWInst::getPointerAddressSpace(), llvm::PtrToIntInst::getPointerAddressSpace(), getPointerAlignment(), llvm::getPointerAtOffset(), llvm::GetPointerBaseWithConstantOffset(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), getPointerDereferenceableBytes(), GetPointerOperand(), getPointerOperands(), llvm::LoadInst::getPointerOperandType(), llvm::StoreInst::getPointerOperandType(), llvm::GEPOperator::getPointerOperandType(), llvm::PtrToIntOperator::getPointerOperandType(), llvm::GetElementPtrInst::getPointerOperandType(), llvm::LazyValueInfo::getPredicateAt(), llvm::getPtrStride(), llvm::ConstantExpr::getPtrToInt(), getRangeForAffineARHelper(), getReducedType(), getReductionIntrinsic(), llvm::FastISel::getRegForGEPIndex(), llvm::FastISel::getRegForValue(), getRelevantOperands(), getRetComponentType(), GetRMWLibcall(), llvm::getSafeVectorConstantForBinop(), getScalarIntrinsicDeclaration(), llvm::ScalarEvolution::getSCEV(), llvm::ConstantExpr::getSelect(), getSelectFoldableConstant(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), getShuffleDemandedElts(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::getShuffleReduction(), llvm::ConstantExpr::getShuffleVector(), getSign32(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantExpr::getSIToFP(), llvm::MipsCCState::getSpecialCallingConvForCallee(), llvm::ConstantVector::getSplat(), llvm::ConstantDataVector::getSplat(), llvm::Constant::getSplatValue(), llvm::getSplatValue(), getSqrtCall(), llvm::AddrSpaceCastOperator::getSrcAddressSpace(), llvm::AddrSpaceCastInst::getSrcAddressSpace(), llvm::BitCastOperator::getSrcTy(), llvm::InnerLoopVectorizer::getStepVector(), llvm::getStrideFromPointer(), llvm::GetStringLength(), getStrlenWithNull(), getSubprogram(), llvm::SwitchInstProfUpdateWrapper::getSuccessorWeight(), getTargetConstantBitsFromNode(), llvm::RISCVTargetLowering::getTgtMemIntrinsic(), llvm::HexagonTargetLowering::getTgtMemIntrinsic(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::NVPTXTargetLowering::getTgtMemIntrinsic(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::X86TargetLowering::getTgtMemIntrinsic(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), getTrueOrFalseValue(), llvm::ConstantExpr::getTrunc(), llvm::ConstantExpr::getTruncOrBitCast(), llvm::InlineAsm::getType(), llvm::AllocaInst::getType(), llvm::ConstantInt::getType(), llvm::GlobalValue::getType(), llvm::ValueAsMetadata::getType(), llvm::ConstantArray::getType(), llvm::ConstantStruct::getType(), llvm::ConstantVector::getType(), llvm::ConstantPointerNull::getType(), llvm::ConstantDataArray::getType(), llvm::ConstantDataVector::getType(), llvm::InsertElementInst::getType(), llvm::ShuffleVectorInst::getType(), llvm::GetElementPtrInst::getTypeAtIndex(), llvm::ConstantStruct::getTypeForElements(), getTypePartition(), llvm::ConstantExpr::getUIToFP(), getUnderlyingArgRegs(), llvm::GetUnderlyingObject(), getUnderlyingObjectFromInt(), llvm::getUnderlyingObjectsForCodeGen(), getUniformBase(), llvm::getUniqueCastUse(), llvm::PPCTTIImpl::getUserCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), llvm::SelectionDAGBuilder::getValue(), getValueFromICmpCondition(), getValueFromMetadata(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::LoopVectorizationCostModel::getVectorCallCost(), getVectorCallCosts(), llvm::slpvectorizer::BoUpSLP::getVectorElementSize(), getVectorType(), llvm::ConstantExpr::getWithOperandReplaced(), llvm::ConstantExpr::getWithOperands(), getX86MaskVec(), llvm::ConstantExpr::getZExt(), llvm::ConstantExpr::getZExtOrBitCast(), llvm::GlobalVariable::GlobalVariable(), GlobalWasGeneratedByCompiler(), HandleByValArgument(), HandleByValArgumentInit(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::ValueAsMetadata::handleDeletion(), handleMemIntrinsicPtrUse(), llvm::Constant::handleOperandChange(), handleOtherCmpSelSimplifications(), llvm::ValueAsMetadata::handleRAUW(), hasAllGatScatUsers(), llvm::Argument::hasByValAttr(), hasCFUser(), llvm::PHINode::hasConstantOrUndefValue(), llvm::Argument::hasInAllocaAttr(), llvm::Argument::hasNestAttr(), llvm::Argument::hasNoAliasAttr(), llvm::Argument::hasNoCaptureAttr(), llvm::Argument::hasNonNullAttr(), hasOnlyOneNonZeroIndex(), hasOnlySelectUsers(), llvm::Argument::hasPassPointeeByValueAttr(), hasPositiveOperands(), llvm::Argument::hasPreallocatedAttr(), hasProfileData(), hasSameArgumentList(), hasSameExtUse(), hasStoreUsersOnly(), llvm::Argument::hasStructRetAttr(), hasUndefContents(), hasZeroSignBit(), llvm::haveNoCommonBitsSet(), llvm::SCEVExpander::hoistIVInc(), llvm::StructType::indexValid(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::ExecutionEngine::InitializeMemory(), llvm::FunctionLoweringInfo::InitializeRegForValue(), llvm::InlineFunction(), llvm::RuntimePointerChecking::insert(), insertInteger(), insertLifetimeMarkersSurroundingCall(), insertMaskedValue(), InsertRootInitializers(), insertSinCosCall(), insertUniqueBackedgeBlock(), insertValues(), insertVector(), instrumentMaskedLoadOrStore(), llvm::MemoryDependenceResults::invalidateCachedPointerInfo(), inversePermutation(), isAddressExpression(), isAlwaysFoldable(), isAtomic(), llvm::isBytewiseValue(), isCallPromotable(), llvm::LandingPadInst::isCatch(), isCompatibleIVType(), isCompatibleReplacement(), llvm::ShuffleVectorInst::isConcat(), llvm::isConsecutiveAccess(), isConstantFalse(), llvm::RISCVELFTargetObjectFile::isConstantInSmallSection(), llvm::LanaiTargetObjectFile::isConstantInSmallSection(), llvm::MipsTargetObjectFile::IsConstantInSmallSection(), isConstantIntVector(), isContiguous(), isCString(), llvm::isDereferenceableAndAlignedInLoop(), isDereferenceableAndAlignedPointer(), llvm::isDereferenceableAndAlignedPointer(), isDivZero(), isDSAddress(), llvm::Constant::isElementWiseEqual(), llvm::DenseMapInfo< ICVValue >::isEqual(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), isEqualImpl(), llvm::TargetLoweringBase::isExtFree(), llvm::TargetLoweringBase::isExtLoad(), llvm::ShuffleVectorInst::isExtractSubvectorMask(), llvm::LandingPadInst::isFilter(), llvm::SystemZTTIImpl::isFoldableLoad(), llvm::InductionDescriptor::isFPInductionPHI(), isFuncOrArgAttr(), isGEPFoldable(), isGEPKnownNonNull(), llvm::isGuaranteedNotToBeUndefOrPoison(), isHighCostExpansion(), llvm::Instruction::isIdenticalToWhenDefined(), llvm::ShuffleVectorInst::isIdentityMask(), isIgnorableInst(), isImageOrSamplerVal(), llvm::isImpliedByDomCondition(), llvm::isImpliedCondition(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), IsIncrementNUW(), isIndirectBrTarget(), llvm::InductionDescriptor::isInductionPHI(), isInertARCValue(), llvm::CastInst::isIntegerCast(), isIntegerLoopHeaderPHI(), IsInterestingCmp(), isInterestingPointer(), isIntExtFree(), isKnownExactCastIntToFP(), llvm::isKnownNeverInfinity(), llvm::isKnownNeverNaN(), isKnownNonEqual(), isKnownNonNullFromDominatingCondition(), isKnownNonZero(), isKnownNonZeroFromAssume(), isKnownToBeAPowerOfTwo(), isKnownTypeIdMember(), llvm::isLegalToPromote(), isLoadCombineCandidateImpl(), isLoadConditional(), isLoadInvariantInLoop(), isLoopCounter(), llvm::CastInst::isLosslessCast(), llvm::isMathLibCallNoop(), isMinMaxWithLoads(), isMulPowOf2(), IsNonLocalValue(), llvm::CastInst::isNoopCast(), isNoWrap(), IsNullTerminatedString(), isObjectDereferencedInBlock(), isObjectSize(), isOnlyReachableViaThisEdge(), isOperandOfVmullHighP64(), isPointerBitcastEqualTo(), isPointerOperand(), isPointerValueDeadOnEntryToFunction(), llvm::objcarc::IsPotentialRetainableObjPtr(), isProfitableChain(), llvm::AArch64TargetLowering::isProfitableToHoist(), llvm::PPCTargetLowering::isProfitableToHoist(), isPromotedInstructionLegal(), isPromotedResultSafe(), isReInterleaveMask(), isRepeatedByteSequence(), isReportingError(), llvm::ShuffleVectorInst::isReverseMask(), isSafeAndProfitableToSinkLoad(), isSafePHIToSpeculate(), isSafeSelectToSpeculate(), isSafeToEliminateVarargsCast(), isSafeToHoistInvoke(), llvm::isSafeToLoadUnconditionally(), llvm::isSafeToSpeculativelyExecute(), llvm::Instruction::isSameOperationAs(), isSelect01(), llvm::ShuffleVectorInst::isSelectMask(), isSExtLoad(), isShuffleEquivalentToSelect(), isShuffleExtractingFromLHS(), isSimpleEnoughPointerToCommit(), isSimpleEnoughValueToCommitHelper(), isSimpleIVUser(), llvm::ShuffleVectorInst::isSingleSourceMask(), llvm::isSplatValue(), isStrideMul(), llvm::ConstantDataSequential::isString(), isSupportedType(), isSwiftError(), llvm::isTLIScalarize(), llvm::ShuffleVectorInst::isTransposeMask(), isTrivialLoopExitBlock(), isTruePredicate(), isUndefShift(), llvm::LoopVectorizationLegality::isUniform(), llvm::LoopAccessInfo::isUniform(), llvm::DemandedBits::isUseDead(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), isValidRewrite(), isZero(), llvm::ShuffleVectorInst::isZeroEltSplatMask(), llvm::AArch64TargetLowering::isZExtFree(), likeBitCastFromVector(), LinearizeExprTree(), llvm::IRBuilderBase::LLVM_ATTRIBUTE_DEPRECATED(), LLVMBuildCall(), LLVMBuildGEP(), LLVMBuildInBoundsGEP(), LLVMBuildInvoke(), LLVMBuildLoad(), LLVMBuildStructGEP(), LLVMConstGEP(), LLVMConstInBoundsGEP(), LLVMConstRealGetDouble(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::LoadInst::LoadInst(), llvm::log2(), lookThroughCast(), llvm::WebAssemblyMCInstLower::lower(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), LowerAtomicCmpXchgInst(), LowerAtomicRMWInst(), LowerBSWAP(), llvm::CallLowering::lowerCall(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundle(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundleImpl(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::AsmPrinter::lowerConstant(), LowerCTLZ(), LowerCTPOP(), llvm::InlineAsmLowering::lowerInlineAsm(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerIsConstantIntrinsic(), LowerNegateToMultiply(), llvm::lowerObjectSizeCall(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), LowerRotate(), lowerStatepointMetaArgs(), llvm::IntrinsicLowering::LowerToByteSwap(), llvm::MachineMemOperand::MachineMemOperand(), llvm::MachinePointerInfo::MachinePointerInfo(), makeStatepointExplicitImpl(), mapBinOpcode(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), MarkBlocksLiveIn(), llvm::matchDecomposedSelectPattern(), matchesOr(), matchExpandedRem(), matchOrConcat(), matchPairwiseReductionAtLevel(), matchRotate(), matchUAddWithOverflowConstantEdgeCases(), llvm::TargetTransformInfo::matchVectorSplittingReduction(), llvm::gvn::AvailableValue::MaterializeAdjustedValue(), llvm::gvn::AvailableValueInBlock::MaterializeAdjustedValue(), maybePrintCallAddrSpace(), maybePrintComdat(), maybeSetDSOLocal(), mayLoopAccessLocation(), llvm::LoopVectorizationCostModel::memoryInstructionCanBeWidened(), MergeAliasResults(), llvm::MergeBasicBlockIntoOnlyPred(), mergeEmptyReturnBlocks(), MightBeFoldableInst(), llvm::TargetTransformInfoImplBase::minRequiredElementSize(), llvm::VPRecipeBase::moveAfter(), moveUp(), MulWillOverflow(), llvm::InstDeleterIRStrategy::mutate(), narrowUDivURem(), narrowVectorSelect(), needsFPFromSig(), NegateValue(), llvm::RandomIRBuilder::newSink(), llvm::RandomIRBuilder::newSource(), okayForPHIOfOps(), operandWithNewAddressSpaceOrCreateUndef(), operator new(), operator<<(), OptimizeAwayTrappingUsesOfValue(), optimizeBinaryDoubleFP(), optimizeDoubleFP(), OptimizeEmptyGlobalCXXDtors(), OptimizeExtractBits(), OptimizeGlobalAddressOfMalloc(), optimizeIntegerToVectorInsertions(), optimizeMemCmpConstantSize(), OptimizeNoopCopyExpression(), optimizeOnceStoredGlobal(), optimizeSQRT(), optimizeVectorResizeWithIntegerBitCasts(), optimizeWithFDivFast(), optimizeWithRcp(), llvm::InnerLoopVectorizer::packScalarIntoVectorValue(), llvm::TargetLowering::ParseConstraints(), parseIRValue(), parsePredicateConstraint(), patchAndReplaceAllUsesWith(), false::LibCallsShrinkWrap::perform(), performAtomicOp(), PerformHeapAllocSRoA(), performMaskedAtomicOp(), llvm::PHITransAddr::PHITranslateWithInsertion(), PhiTypeSorterFunc(), PickMostRelevantLoop(), llvm::PointerMayBeCaptured(), llvm::AMDGPUAAResult::pointsToConstantMemory(), llvm::SelectionDAGBuilder::populateCallLoweringInfo(), llvm::possiblyDemandedEltsInMask(), llvm::ARMConstantPoolValue::print(), llvm::ScalarEvolution::print(), printAsOperandImpl(), processAnd(), processAShr(), processBinOp(), llvm::JumpThreadingPass::ProcessBranchOnXOR(), processCallSite(), processInternalGlobal(), processOverflowIntrinsic(), processPHI(), processSDiv(), processSelect(), processSExt(), processSRem(), processUDivOrURem(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), llvm::promoteCall(), promotedOpIsNUW(), llvm::promoteLoopAccessesToScalars(), promoteSingleBlockAlloca(), PropagateConstantsIntoArguments(), propagateMetadata(), propagateNaN(), llvm::InstCombiner::reassociateShiftAmtsOfTwoSameDirectionShifts(), llvm::recognizeBSwapOrBitReverseIdiom(), ReduceSwitchRange(), llvm::Attributor::registerFunctionSignatureRewrite(), llvm::DemandedBitsWrapperPass::releaseMemory(), relocationViaAlloca(), llvm::removeAllNonTerminatorAndEHPadInstructions(), RemoveDeadConstant(), removeGlobalCtors(), llvm::CatchSwitchInst::removeHandler(), removeLifetimeIntrinsicUsers(), llvm::removeUnreachableBlocks(), llvm::replaceAllDbgUsesWith(), replaceAllUsesOfWithIn(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::replaceDbgUsesWithUndef(), replaceDominatedUsesWith(), llvm::InstCombiner::replacedSelectWithOperand(), ReplaceFoldableUses(), ReplaceFPIntrinsicWithCall(), llvm::InstCombiner::replaceInstUsesWith(), llvm::replaceNonLocalUsesWith(), replaceSwiftErrorOps(), llvm::replaceSymbolicStrideSCEV(), replaceUnaryCall(), llvm::Constant::replaceUndefsWith(), replaceUsesOfWith(), replaceUsesOutsideBlock(), replaceUsesWithIf(), replaceValue(), replaceWithConstant(), reportLoadElim(), reportMayClobberedLoad(), llvm::Record::resolveReferences(), RetagMask(), llvm::returnTypeIsEligibleForTailCall(), reuseTableCompare(), llvm::InnerLoopVectorizer::reverseVector(), RewriteHeapSROALoadUser(), llvm::GCNTTIImpl::rewriteIntrinsicWithAddressSpace(), llvm::rewriteLoopExitValues(), rewritePHIs(), rewriteSingleStoreAlloca(), RewriteUsesOfClonedInstructions(), llvm::HWAddressSanitizerPass::run(), llvm::LoadAndStorePromoter::run(), llvm::SLPVectorizerPass::runImpl(), llvm::RewriteStatepointsForGC::runOnFunction(), runPartiallyInlineLibCalls(), llvm::salvageDebugInfoForDbgValues(), llvm::salvageDebugInfoImpl(), llvm::salvageKnowledge(), scalarConstantToHexString(), scalarizeBinOpOfSplats(), llvm::InnerLoopVectorizer::scalarizeInstruction(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), scaleCaseProbality(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectBitCast(), llvm::FastISel::selectCast(), llvm::FastISel::selectExtractValue(), llvm::FastISel::selectFNeg(), llvm::FastISel::selectFreeze(), llvm::FastISel::selectOperator(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::GlobalAlias::setAliasee(), llvm::CallBase::setCalledFunction(), llvm::LoopVectorizationCostModel::setCostBasedWideningDecision(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::setDest(), llvm::AtomicMemIntrinsic::setElementSizeInBytes(), llvm::PHINode::setIncomingValue(), setInfoSVEStN(), llvm::GlobalVariable::setInitializer(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::setLength(), setLimitsForSelectPattern(), llvm::MemTransferBase< AnyMemIntrinsic >::setSource(), llvm::MemSetBase< AnyMemIntrinsic >::setValue(), shorter_filter(), llvm::AArch64TTIImpl::shouldConsiderAddressTypePromotion(), shouldConvertImpl(), llvm::RISCVTargetLowering::shouldExpandAtomicCmpXchgInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicLoadInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicLoadInIR(), llvm::ARMTargetLowering::shouldExpandAtomicLoadInIR(), llvm::RISCVTargetLowering::shouldExpandAtomicRMWInIR(), llvm::SparcTargetLowering::shouldExpandAtomicRMWInIR(), llvm::SITargetLowering::shouldExpandAtomicRMWInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicRMWInIR(), llvm::ARMTargetLowering::shouldExpandAtomicRMWInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicStoreInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicStoreInIR(), llvm::ARMTargetLowering::shouldExpandAtomicStoreInIR(), shouldFixMainFunction(), shouldInstrumentReadWriteFromAddress(), shouldMergeGEPs(), llvm::ARMTargetLowering::shouldSinkOperands(), llvm::AArch64TargetLowering::shouldSinkOperands(), llvm::X86TargetLowering::shouldSinkOperands(), ShrinkDemandedConstant(), shrinkFPConstant(), shrinkFPConstantVector(), shrinkInsertElt(), shrinkSplatShuffle(), llvm::ShuffleVectorConstantExpr::ShuffleVectorConstantExpr(), SimplifyAddInst(), simplifyAllocaArraySize(), SimplifyAndInst(), simplifyAndOfICmpsWithAdd(), simplifyAndOfICmpsWithSameOperands(), simplifyAndOrOfCmps(), simplifyAndOrOfFCmps(), simplifyAndOrOfICmpsWithConstants(), SimplifyAShrInst(), simplifyAssocCastAssoc(), simplifyBinaryIntrinsic(), SimplifyBSwap(), llvm::SimplifyCall(), SimplifyCastInst(), simplifyCmpSelFalseCase(), simplifyCmpSelTrueCase(), SimplifyCondBranchToCondBranch(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetShuffle(), simplifyDiv(), simplifyDivRem(), SimplifyExtractElementInst(), SimplifyFAddInst(), SimplifyFDivInst(), SimplifyFMAFMul(), SimplifyFRemInst(), SimplifyFSubInst(), SimplifyGEPInst(), SimplifyICmpInst(), simplifyICmpOfBools(), simplifyICmpWithBinOp(), llvm::SimplifyInsertElementInst(), SimplifyInsertValueInst(), llvm::SimplifyInstruction(), simplifyInstsInBlock(), simplifyInvariantGroupIntrinsic(), SimplifyLShrInst(), SimplifyMulInst(), simplifyNeonTbl1(), simplifyNeonVld1(), SimplifyNVVMIntrinsic(), SimplifyOrInst(), simplifyOrOfICmpsWithAdd(), simplifyOrOfICmpsWithSameOperands(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), SimplifyPHINode(), simplifyRelocatesOffABase(), simplifyRem(), SimplifyRightShift(), SimplifySDivInst(), SimplifySelectInst(), SimplifyShift(), SimplifyShlInst(), SimplifyShuffleVectorInst(), SimplifySRemInst(), SimplifySubInst(), simplifyUnsignedRangeCheck(), simplifyX86addcarry(), simplifyX86immShift(), simplifyX86insertps(), simplifyX86MaskedLoad(), simplifyX86MaskedStore(), simplifyX86movmsk(), simplifyX86pack(), simplifyX86pshufb(), simplifyX86varShift(), simplifyX86vpermilvar(), simplifyX86vpermv(), SimplifyXorInst(), sink(), SinkCast(), SinkShiftAndTruncate(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::sortPtrAccesses(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitCallSite(), llvm::SplitLandingPadPredecessors(), splitMergedValStore(), splitRetconCoroutine(), llvm::StoreInst::StoreInst(), stripAndComputeConstantOffsets(), llvm::stripDebugifyMetadata(), stripNonValidDataFromBody(), stripPointerCastsAndInvariantGroups(), llvm::SubOne(), supportedAddressingMode(), swapMayExposeCSEOpportunities(), switchToSelect(), ThreadCmpOverSelect(), transformToIndexedCompare(), translateExtract(), truncateIVUse(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), tryPromoteAllocaToVector(), llvm::tryPromoteCall(), tryToMergePartialOverlappingStores(), tryToOptimizeStoreOfMallocToGlobal(), tryToRecognizePopCount(), tryToReplaceWithConstant(), tryToShorten(), TryToShrinkGlobalToBoolean(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), tryToVectorizeHorReductionOrInstOperands(), tryUnmergingGEPsAcrossIndirectBr(), TypeSizeToSizeIndex(), UnpackFromArgumentSlot(), unpackLoadToAggregate(), unpackRegsToOrigType(), unpackStoreToAggregate(), llvm::UnreachableInst::UnreachableInst(), llvm::UnrollRuntimeLoopRemainder(), updateOperand(), UpdatePDTWorklist(), UpdatePHINodes(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), upgradeAbs(), llvm::UpgradeARCRuntime(), upgradeAVX512MaskToSelect(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeGlobalVariable(), UpgradeIntrinsicFunction1(), upgradeMaskedCompare(), UpgradeMaskedLoad(), UpgradeMaskedStore(), UpgradeMaskToInt(), upgradePMULDQ(), UpgradeX86AddSubSatIntrinsics(), UpgradeX86ALIGNIntrinsics(), upgradeX86ConcatShift(), UpgradeX86PSLLDQIntrinsics(), UpgradeX86PSRLDQIntrinsics(), upgradeX86Rotate(), upgradeX86vpcom(), UpgradeX86VPERMT2Intrinsics(), llvm::AMDGPULibCalls::useNative(), valueHasFloatPrecision(), llvm::ValueHandleBase::ValueIsRAUWd(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), versionCallSite(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAddrSpaceCast(), llvm::Interpreter::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::InstCombiner::visitAllocSite(), llvm::InstCombiner::visitAnd(), llvm::ObjectSizeOffsetVisitor::visitArgument(), llvm::Interpreter::visitAShr(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitAtomicRMWInst(), llvm::Interpreter::visitBinaryOperator(), llvm::InstCombiner::visitBitCast(), llvm::Interpreter::visitBitCastInst(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::InstCombiner::visitBranchInst(), llvm::InstCombiner::visitCallInst(), llvm::Interpreter::visitExtractElementInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::Interpreter::visitExtractValueInst(), llvm::InstCombiner::visitExtractValueInst(), llvm::InstCombiner::visitFAdd(), llvm::Interpreter::visitFCmpInst(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFDiv(), llvm::InstCombiner::visitFPExt(), llvm::Interpreter::visitFPExtInst(), llvm::Interpreter::visitFPToSIInst(), llvm::Interpreter::visitFPToUIInst(), llvm::InstCombiner::visitFPTrunc(), llvm::Interpreter::visitFPTruncInst(), llvm::InstCombiner::visitFSub(), llvm::ObjectSizeOffsetVisitor::visitGEPOperator(), llvm::InstCombiner::visitGetElementPtrInst(), VisitGlobalVariableForEmission(), llvm::Interpreter::visitICmpInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitInsertElementInst(), llvm::Interpreter::visitInsertValueInst(), llvm::InstCombiner::visitIntToPtr(), llvm::Interpreter::visitIntToPtrInst(), visitIVCast(), llvm::InstCombiner::visitLandingPadInst(), llvm::Interpreter::visitLoadInst(), llvm::InstCombiner::visitLoadInst(), llvm::Interpreter::visitLShr(), llvm::InstCombiner::visitLShr(), visitMaskedMerge(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPHINode(), llvm::PtrUseVisitor< SliceBuilder >::visitPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::Interpreter::visitPtrToIntInst(), llvm::Interpreter::visitReturnInst(), llvm::InstCombiner::visitReturnInst(), llvm::InstCombiner::visitSDiv(), llvm::Interpreter::visitSelectInst(), llvm::InstCombiner::visitSExt(), llvm::Interpreter::visitSExtInst(), llvm::Interpreter::visitShl(), llvm::InstCombiner::visitShl(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::Interpreter::visitSIToFPInst(), llvm::InstCombiner::visitSRem(), llvm::Interpreter::visitStoreInst(), llvm::InstCombiner::visitStoreInst(), llvm::InstCombiner::visitSub(), llvm::Interpreter::visitSwitchInst(), llvm::InstCombiner::visitTrunc(), llvm::Interpreter::visitTruncInst(), llvm::InstCombiner::visitUDiv(), llvm::Interpreter::visitUIToFPInst(), llvm::Interpreter::visitUnaryOperator(), llvm::InstCombiner::visitURem(), llvm::Interpreter::visitVAArgInst(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), llvm::Interpreter::visitZExtInst(), llvm::InnerLoopVectorizer::widenIntOrFpInduction(), llvm::InnerLoopVectorizer::widenPHIInstruction(), willNotOverflow(), wrapConstantAsMetadata(), WriteAsOperandInternal(), WriteConstantInternal(), X86ChooseCmpImmediateOpcode(), llvm::reassociate::XorOpnd::XorOpnd(), llvm::BasicBlock::~BasicBlock(), ExpandedValuesCleaner::~ExpandedValuesCleaner(), and llvm::Instruction::~Instruction().

◆ getValueID()

unsigned llvm::Value::getValueID ( ) const
inline

Return an ID for the concrete type of this object.

This is used to implement the classof checks. This should not be used for any other purpose, as the values may change as LLVM evolves. Also, note that for instructions, the Instruction's opcode is added to InstructionVal. So this means three things:

there is no value with code InstructionVal (no opcode==0).

there are more possible values for the value type than in ValueTy enum.

the InstructionVal enumerator must be the highest valued enumerator in

the ValueTy enum.

Definition at line 510 of file Value.h.

Referenced by alwaysAvailable(), llvm::ConstantData::classof(), llvm::GlobalIFunc::classof(), llvm::GlobalIndirectSymbol::classof(), llvm::GlobalAlias::classof(), llvm::Argument::classof(), llvm::MemoryAccess::classof(), llvm::Constant::classof(), llvm::InlineAsm::classof(), llvm::MetadataAsValue::classof(), llvm::GlobalObject::classof(), llvm::GlobalVariable::classof(), llvm::MemoryUseOrDef::classof(), llvm::ConstantInt::classof(), llvm::MemoryUse::classof(), llvm::ConstantFP::classof(), llvm::BasicBlock::classof(), llvm::ConstantAggregateZero::classof(), llvm::MemoryDef::classof(), llvm::ConstantAggregate::classof(), llvm::ConstantArray::classof(), llvm::ConstantStruct::classof(), llvm::ConstantVector::classof(), llvm::ConstantPointerNull::classof(), llvm::GlobalValue::classof(), llvm::MemoryPhi::classof(), llvm::ConstantDataSequential::classof(), llvm::Instruction::classof(), llvm::ConstantDataArray::classof(), llvm::Function::classof(), llvm::ConstantDataVector::classof(), llvm::ConstantTokenNone::classof(), llvm::BlockAddress::classof(), llvm::ConstantExpr::classof(), llvm::UndefValue::classof(), llvm::FunctionComparator::cmpConstants(), CompareValueComplexity(), llvm::deleteConstant(), deleteValue(), llvm::isa_impl< Constant, Value >::doit(), llvm::isa_impl< ConstantData, Value >::doit(), llvm::isa_impl< ConstantAggregate, Value >::doit(), llvm::isa_impl< Argument, Value >::doit(), llvm::isa_impl< InlineAsm, Value >::doit(), llvm::isa_impl< Instruction, Value >::doit(), llvm::isa_impl< BasicBlock, Value >::doit(), llvm::isa_impl< Function, Value >::doit(), llvm::isa_impl< GlobalVariable, Value >::doit(), llvm::isa_impl< GlobalAlias, Value >::doit(), llvm::isa_impl< GlobalIFunc, Value >::doit(), llvm::GlobalValue::eraseFromParent(), llvm::Constant::handleOperandChange(), and llvm::GlobalValue::removeFromParent().

◆ getValueName()

ValueName * Value::getValueName ( ) const

◆ hasName()

bool llvm::Value::hasName ( ) const
inline

Definition at line 250 of file Value.h.

References getName(), getValueName(), HasName, Name, llvm::No, replaceAllUsesWith(), replaceNonMetadataUsesWith(), setName(), setValueName(), takeName(), and llvm::Yes.

Referenced by AddAliasScopeMetadata(), llvm::canConstantFoldCallTo(), llvm::CloneBasicBlock(), llvm::CloneFunction(), computeFunctionSummary(), llvm::ConstantFoldCall(), llvm::NVPTXAsmPrinter::doFinalization(), llvm::DomTreeUpdater::dump(), externalize(), forEachUser(), llvm::JITSymbolFlags::fromGlobalValue(), FunctionNumber(), llvm::orc::getDestructors(), llvm::ModuleSummaryIndex::getGlobalValueSummary(), getInstrName(), llvm::ExecutionEngine::getMangledName(), getName(), llvm::Mangler::getNameWithPrefix(), llvm::GetOrCreateFunctionComdat(), getParentPad(), llvm::getSamplerName(), llvm::getSurfaceName(), llvm::getTextureName(), initSlots2BasicBlocks(), insertIfNamed(), instrumentMaskedLoadOrStore(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), makeStatepointExplicitImpl(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), maybePrintCallAddrSpace(), maybePrintComdat(), false::operator<<(), OptimizeFunctions(), OptimizeGlobalAliases(), OptimizeGlobalVars(), llvm::LinkDiagnosticInfo::print(), llvm::ValueEnumerator::print(), llvm::AliasSet::print(), llvm::MemoryPhi::print(), llvm::MachineBasicBlock::print(), printIRBlockReference(), llvm::MIRFormatter::printIRValue(), printWithoutType(), llvm::ReplaceInstWithValue(), RetagMask(), llvm::FastISel::selectInstruction(), suffixed_name_or(), takeName(), llvm::UpgradeGlobalVariable(), writeTypeIdCompatibleVtableSummaryRecord(), and llvm::ValueSymbolTable::~ValueSymbolTable().

◆ hasNUndroppableUses()

bool Value::hasNUndroppableUses ( unsigned  N) const

Return true if there this value.

This is specialized because it is a common request and does not require traversing the whole use list.

Definition at line 164 of file Value.cpp.

References llvm::hasNItems(), isUnDroppableUser(), user_begin(), and user_end().

Referenced by hasOneUse().

◆ hasNUndroppableUsesOrMore()

bool Value::hasNUndroppableUsesOrMore ( unsigned  N) const

Return true if this value has N users or more.

This is logically equivalent to getNumUses() >= N.

Definition at line 168 of file Value.cpp.

References llvm::hasNItemsOrMore(), isUnDroppableUser(), user_begin(), and user_end().

Referenced by hasOneUse().

◆ hasNUses()

bool Value::hasNUses ( unsigned  N) const

◆ hasNUsesOrMore()

bool Value::hasNUsesOrMore ( unsigned  N) const

◆ hasOneUse()

bool llvm::Value::hasOneUse ( ) const
inline

Return true if there is exactly one user of this value.

This is specialized because it is a common request and does not require traversing the whole use list.

Definition at line 431 of file Value.h.

References dropDroppableUses(), E, getNumUses(), getSingleUndroppableUse(), hasNUndroppableUses(), hasNUndroppableUsesOrMore(), hasNUses(), hasNUsesOrMore(), I, isUsedInBasicBlock(), N, use_begin(), and use_end().

Referenced by areInverseVectorBitmasks(), canEvaluateShifted(), canEvaluateShuffled(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canNotEvaluateInType(), canonicalizeSaturatedAdd(), canonicalizeSaturatedSubtract(), canSinkInstructions(), canTailPredicateInstruction(), canTransformAccumulatorRecursion(), CC_MipsO32_FP64(), cheapToScalarize(), checkForNegativeOperand(), llvm::collectCmpOps(), collectInsertionElements(), llvm::LoopVectorizationCostModel::collectInstsToScalarize(), collectValuesToDemote(), combineLoadToOperationType(), llvm::slpvectorizer::BoUpSLP::computeMinimumValueSizes(), ConvertToSInt(), createAndInstr(), createPowWithIntegerExponent(), createRdxShuffleMask(), llvm::createSeparateConstOffsetFromGEPPass(), DeadPHICycle(), decomposeSimpleLinearExpr(), despeculateCountZeros(), dropRedundantMaskingOfLeftShiftInput(), emitGlobalConstantImpl(), findBuildAggregate(), findInitTrampolineFromAlloca(), llvm::SelectionDAGBuilder::FindMergedConditions(), findSelectThroughCast(), FindSingleUseIdentifiedObject(), foldAndOrOfICmpsWithConstEq(), foldAndToXor(), foldBitcastExtElt(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), foldCtpop(), foldICmpBitCast(), foldICmpShlOne(), foldICmpWithMinMax(), foldIdentityExtractShuffle(), foldInsSequenceIntoSplat(), foldNoWrapAdd(), foldOperationIntoPhiValue(), foldOperationIntoSelectOperand(), foldOrToXor(), foldSelectICmpAnd(), foldSelectICmpAndAnd(), foldSelectICmpAndOr(), foldSelectShuffle(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftIntoShiftInAnotherHandOfAndInICmp(), foldUnsignedUnderflowCheck(), foldVectorCmp(), foldVecTruncToExtElt(), foldXorToXor(), GenerateSignBits(), llvm::GCNTTIImpl::getArithmeticInstrCost(), getBinOpsForFactorization(), llvm::AArch64TTIImpl::getCastInstrCost(), getCompareCC(), getComparePred(), llvm::ARMTTIImpl::getGatherScatterOpCost(), getIntToFPVal(), llvm::SystemZTTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), getNegatibleInsts(), getRelevantOperands(), getSelectFoldableConstant(), getSubprogram(), getTrueOrFalseValue(), getTypePartition(), llvm::HexagonTTIImpl::getUserCost(), getVectorCallCosts(), hasAllGatScatUsers(), llvm::FastISel::hasTrivialKill(), hasUseOtherThanLLVMUsed(), hasUsesOutsideLoop(), INITIALIZE_PASS(), llvm::RecurrenceDescriptor::isConditionalRdxPattern(), llvm::TargetLoweringBase::isExtLoad(), llvm::RecurrenceDescriptor::isFirstOrderRecurrence(), llvm::SystemZTTIImpl::isFoldableLoad(), isFormingBranchFromSelectProfitable(), isGEPFoldable(), IsInterestingCmp(), isKnownTypeIdMember(), llvm::RecurrenceDescriptor::isMinMaxSelectCmpPattern(), isMulPowOf2(), isOnlyReachableViaThisEdge(), llvm::AArch64TargetLowering::isProfitableToHoist(), llvm::PPCTargetLowering::isProfitableToHoist(), isPromotedInstructionLegal(), isReachableFromPHI(), isReInterleaveMask(), isSafeAndProfitableToSinkLoad(), IsSafeComputationToRemove(), LinearizeExprTree(), lookThroughAnd(), matchDeMorgansLaws(), matchUAddWithOverflowConstantEdgeCases(), narrowUDivURem(), OptimizeNoopCopyExpression(), llvm::InstCombiner::OptimizePointerDifference(), llvm::parseWidenableBranch(), processUGT_ADDCST_ADD(), llvm::recognizeBSwapOrBitReverseIdiom(), removeEmptyCleanup(), replaceAllUsesOfWithIn(), replaceExtractElements(), replaceValue(), llvm::SLPVectorizerPass::runImpl(), shouldBeDeferred(), ShouldBreakUpSubtract(), shouldMergeGEPs(), llvm::ARMTargetLowering::shouldSinkOperands(), ShrinkDemandedConstant(), SimplifyBSwap(), SimplifyCondBranchToCondBranch(), simplifyValueKnownNonZero(), sinkAndCmp0Expression(), sinkNotIntoXor(), sinkSelectOperand(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), supportedAddressingMode(), transformToIndexedCompare(), translateExtract(), llvm::FastISel::tryToFoldLoad(), llvm::JumpThreadingPass::TryToUnfoldSelect(), tryUnmergingGEPsAcrossIndirectBr(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFDiv(), llvm::InstCombiner::visitFMul(), llvm::InstCombiner::visitFPTrunc(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitInsertElementInst(), llvm::InstCombiner::visitInsertValueInst(), llvm::InstCombiner::visitLoadInst(), llvm::InstCombiner::visitLShr(), visitMaskedMerge(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitStoreInst(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitXor(), and llvm::InstCombiner::visitZExt().

◆ hasSameSubclassOptionalData()

bool llvm::Value::hasSameSubclassOptionalData ( const Value V) const
inline

Check the optional flags for equality.

Definition at line 527 of file Value.h.

References SubclassOptionalData.

◆ hasValueHandle()

bool llvm::Value::hasValueHandle ( ) const
inline

Return true if there is a value handle associated with this value.

Definition at line 532 of file Value.h.

Referenced by annotateAnyAllocSite(), llvm::MemorySSAUpdater::removeMemoryAccess(), and llvm::SSAUpdaterBulk::RewriteAllUses().

◆ isSwiftError()

bool Value::isSwiftError ( ) const

Return true if this value is a swifterror value.

swifterror values can be either a function argument or an alloca with a swifterror attribute.

Definition at line 847 of file Value.cpp.

References Arg, assert(), llvm::dyn_cast(), llvm::AllocaInst::isSwiftError(), and llvm::List.

Referenced by llvm::AllocaInst::cloneImpl(), combineLoadToOperationType(), combineStoreToValueType(), GlobalWasGeneratedByCompiler(), isAtomic(), isUsedByMetadata(), removeBitcastsFromLoadStoreOnMinMax(), and llvm::HWAddressSanitizerPass::run().

◆ isUsedByMetadata()

bool llvm::Value::isUsedByMetadata ( ) const
inline

◆ isUsedInBasicBlock()

bool Value::isUsedInBasicBlock ( const BasicBlock BB) const

Check if this value is used in the specified basic block.

Definition at line 195 of file Value.cpp.

References llvm::BasicBlock::begin(), llvm::dyn_cast(), llvm::BasicBlock::end(), llvm::is_contained(), user_begin(), and user_end().

Referenced by FindAllMemoryUses(), and hasOneUse().

◆ materialized_use_begin() [1/2]

use_iterator llvm::Value::materialized_use_begin ( )
inline

Definition at line 353 of file Value.h.

Referenced by materialized_uses(), and use_begin().

◆ materialized_use_begin() [2/2]

const_use_iterator llvm::Value::materialized_use_begin ( ) const
inline

Definition at line 354 of file Value.h.

◆ materialized_use_empty()

bool llvm::Value::materialized_use_empty ( ) const
inline

Definition at line 346 of file Value.h.

Referenced by contains(), and ~Value().

◆ materialized_user_begin() [1/2]

user_iterator llvm::Value::materialized_user_begin ( )
inline

Definition at line 390 of file Value.h.

Referenced by materialized_users(), user_back(), and user_begin().

◆ materialized_user_begin() [2/2]

const_user_iterator llvm::Value::materialized_user_begin ( ) const
inline

Definition at line 391 of file Value.h.

◆ materialized_users() [1/2]

iterator_range<user_iterator> llvm::Value::materialized_users ( )
inline

Definition at line 412 of file Value.h.

References llvm::make_range(), materialized_user_begin(), and user_end().

Referenced by forEachUser(), and users().

◆ materialized_users() [2/2]

iterator_range<const_user_iterator> llvm::Value::materialized_users ( ) const
inline

Definition at line 415 of file Value.h.

References llvm::make_range(), materialized_user_begin(), and user_end().

◆ materialized_uses() [1/2]

iterator_range<use_iterator> llvm::Value::materialized_uses ( )
inline

Definition at line 367 of file Value.h.

References llvm::make_range(), materialized_use_begin(), and use_end().

Referenced by uses().

◆ materialized_uses() [2/2]

iterator_range<const_use_iterator> llvm::Value::materialized_uses ( ) const
inline

Definition at line 370 of file Value.h.

References llvm::make_range(), materialized_use_begin(), and use_end().

◆ mutateType()

void llvm::Value::mutateType ( Type Ty)
inline

Mutate the type of this Value to be of the specified type.

Note that this is an extremely dangerous operation which can create completely invalid IR very easily. It is strongly recommended that you recreate IR objects with the right types instead of mutating them in place.

Definition at line 697 of file Value.h.

References llvm::MCID::Compare, reverseUseList(), and sortUseList().

Referenced by getTrueOrFalseValue(), isCallPromotable(), isPromotedResultSafe(), llvm::CallBase::mutateFunctionType(), operator<<(), replaceAllUsesOfWithIn(), and wrapConstantAsMetadata().

◆ operator=()

Value& llvm::Value::operator= ( const Value )
delete

◆ print() [1/2]

void Value::print ( raw_ostream O,
bool  IsForDebug = false 
) const

◆ print() [2/2]

void Value::print ( raw_ostream O,
ModuleSlotTracker MST,
bool  IsForDebug = false 
) const

◆ printAsOperand() [1/2]

void Value::printAsOperand ( raw_ostream O,
bool  PrintType = true,
const Module M = nullptr 
) const

Print the name of this Value out to the specified raw_ostream.

This is useful when you just want to print 'int reg126', not the instruction that generated it. If you specify a Module for context, then even constanst get pretty-printed; for example, the type of a null pointer is printed symbolically.

Definition at line 4537 of file AsmWriter.cpp.

References getModuleFromVal(), Machine, printAsOperandImpl(), and printWithoutType().

Referenced by llvm::DiagnosticInfoOptimizationBase::Argument::Argument(), llvm::MIRPrinter::convert(), ConvertDoubleToBytes(), llvm::createAMDGPUUseNativeCallsPass(), llvm::createMemDepPrinter(), llvm::GVNExpression::Expression::dump(), llvm::ScheduleDAGInstrs::Value2SUsMap::dump(), llvm::VPlan::dump(), llvm::AsmPrinter::emitDebugValue(), llvm::AsmPrinter::emitGlobalVariable(), fail(), llvm::DOTGraphTraits< DOTFuncInfo * >::getCompleteNodeLabel(), llvm::DOTGraphTraits< DOTFuncInfo * >::getSimpleNodeLabel(), llvm::AsmPrinter::lowerConstant(), patchAndReplaceAllUsesWith(), llvm::IVUsers::print(), llvm::SCEV::print(), llvm::AliasSet::print(), llvm::MachineOperand::print(), llvm::MachineMemOperand::print(), llvm::MemoryPhi::print(), llvm::ScalarEvolution::print(), llvm::GVNExpression::BasicExpression::printInternal(), llvm::GVNExpression::CallExpression::printInternal(), llvm::GVNExpression::LoadExpression::printInternal(), llvm::GVNExpression::StoreExpression::printInternal(), llvm::MIRFormatter::printIRValue(), llvm::printLoop(), llvm::LazyValueInfo::printLVI(), PrintModRefResults(), PrintResults(), reportLoadElim(), reportMayClobberedLoad(), SinkInstruction(), splitRetconCoroutine(), and llvm::VerifierSupport::VerifierSupport().

◆ printAsOperand() [2/2]

void Value::printAsOperand ( raw_ostream O,
bool  PrintType,
ModuleSlotTracker MST 
) const

◆ replaceAllUsesWith()

void Value::replaceAllUsesWith ( Value V)

Change all uses of this to point to a new Value.

Go through the uses list for this definition and make each use point to "V" instead of "this". After this completes, 'this's use list is guaranteed to be empty.

Definition at line 486 of file Value.cpp.

Referenced by AddCalls(), addFramePointerAttrs(), llvm::MemorySSAUpdater::applyInsertUpdates(), AreSequentialAccesses(), atomicSizeSupported(), buildClonedLoopBlocks(), calcArraySize(), llvm::DomTreeUpdater::callbackDeleteBB(), canCreateAliasFor(), canCreateThunkFor(), llvm::changeToCall(), llvm::changeToInvokeAndSplitBasicBlock(), CleanupConstantGlobalUsers(), llvm::CloneAndPruneIntoFromInst(), collectFunctionUsers(), combineLoadToOperationType(), ComputePostOrders(), ConvertShiftToMul(), llvm::convertToDeclaration(), ConvertToSInt(), llvm::createAMDGPUPrintfRuntimeBinding(), createCallInst(), createCloneDeclaration(), llvm::createCodeGenPreparePass(), llvm::createDeadArgHackingPass(), CreateGCRelocates(), llvm::createObjCARCOptPass(), createOrdering(), createRdxShuffleMask(), createResumeEntryBlock(), llvm::createScalarizerPass(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), createShallowWrapper(), llvm::createSVEIntrinsicOptsPass(), cse(), deleteDeadInstruction(), llvm::DemotePHIToStack(), despeculateCountZeros(), llvm::DetatchDeadBlocks(), doPromotion(), llvm::GVNExpression::Expression::dump(), llvm::EliminateDuplicatePHINodes(), eliminateSwiftErrorArgument(), eraseDeadBBsAndChildren(), llvm::objcarc::EraseInstruction(), llvm::expandAtomicRMWToCmpXchg(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), llvm::CodeExtractor::findInputsOutputs(), findPHIToPartitionLoops(), findSelectThroughCast(), llvm::SanitizerStatReport::finish(), llvm::InnerLoopVectorizer::fixFirstOrderRecurrence(), foldAnyOrAllBitsSet(), foldGuardedRotateToFunnelShift(), FoldTwoEntryPHINode(), FunctionNumber(), getChainID(), getEmscriptenFunction(), getIdentityValueForAtomicOp(), llvm::VNCoercion::getLoadValueForLoad(), GetLoopInvariantInsertPosition(), getNegatibleInsts(), getNumElements(), getOrCreateDebugLoc(), getOrInsertValueProfilingCall(), GetPointerOperand(), getPointerOperands(), getRetComponentType(), GetRMWLibcall(), getScalarIntrinsicDeclaration(), getSign32(), getStartOrEndSlot(), getTrueOrFalseValue(), handleNoSuspendCoroutine(), llvm::Constant::handleOperandChange(), hasAllGatScatUsers(), hasName(), hasProfileData(), hasZeroSignBit(), llvm::hoistRegion(), INITIALIZE_PASS(), llvm::InlineFunction(), InsertRootInitializers(), insertValues(), instrumentMaskedLoadOrStore(), isCallPromotable(), llvm::DenseMapInfo< ICVValue >::isEqual(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), isInertARCValue(), isKnownTypeIdMember(), isOnlyReachableViaThisEdge(), isPromotedResultSafe(), isSafeToHoistInvoke(), isTrivialLoopExitBlock(), llvm::log2(), LowerAtomicCmpXchgInst(), LowerAtomicRMWInst(), lowerExpectIntrinsic(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerLoadRelative(), LowerRotate(), lowerSubFn(), llvm::IntrinsicLowering::LowerToByteSwap(), mapBinOpcode(), MarkBlocksLiveIn(), maybeSetDSOLocal(), llvm::MergeBasicBlockIntoOnlyPred(), mergeCleanupPad(), mergeEmptyReturnBlocks(), mergeInlinedArrayAllocas(), llvm::InstDeleterIRStrategy::mutate(), operator<<(), optimizeDivRem(), OptimizeEmptyGlobalCXXDtors(), llvm::slpvectorizer::BoUpSLP::optimizeGatherSequence(), OptimizeGlobalAddressOfMalloc(), OptimizeGlobalAliases(), OptimizeNoopCopyExpression(), optimizeSQRT(), optimizeWithFDivFast(), patchAndReplaceAllUsesWith(), performMaskedAtomicOp(), prepareICWorklistFromFunction(), processAnd(), processAShr(), llvm::JumpThreadingPass::ProcessBranchOnXOR(), processCmp(), processInternalGlobal(), processOverflowIntrinsic(), processPHI(), processSaturatingInst(), processSDiv(), processSelect(), processSExt(), processSRem(), processUDivOrURem(), promotedOpIsNUW(), promoteSingleBlockAlloca(), PropagateConstantReturn(), PropagateConstantsIntoArguments(), PushArgMD(), llvm::Attributor::registerFunctionSignatureRewrite(), llvm::removeAllNonTerminatorAndEHPadInstructions(), removeGlobalCtors(), llvm::PHINode::removeIncomingValue(), RemovePreallocated(), llvm::BasicBlock::removePredecessor(), llvm::removeUnreachableBlocks(), llvm::removeUnwindEdge(), replace(), replaceAliasWithAliasee(), replaceAndRecursivelySimplifyImpl(), llvm::AMDGPULibCalls::replaceCall(), ReplaceCallWith(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::replaceCreatedSSACopys(), replaceFrameSize(), llvm::InstCombiner::replaceInstUsesWith(), llvm::ReplaceInstWithValue(), replacePrepare(), replaceUsesOfWith(), replaceValue(), reportLoadElim(), reportMayClobberedLoad(), llvm::BitcodeReaderValueList::resolveConstantForwardRefs(), RetagMask(), reuseTableCompare(), RewriteHeapSROALoadUser(), llvm::rewriteLoopExitValues(), rewritePHINodesForExitAndUnswitchedBlocks(), rewritePHIs(), rewriteSingleStoreAlloca(), llvm::LoadAndStorePromoter::run(), llvm::InstCombiner::run(), llvm::runIPSCCP(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), shouldFixMainFunction(), simplifyAndDCEInstruction(), simplifyCommonValuePhi(), SimplifyCondBranchToCondBranch(), llvm::simplifyLoopAfterUnroll(), simplifyOneLoop(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), simplifySuspendPoint(), sink(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitCallSite(), splitGlobal(), llvm::SplitLandingPadPredecessors(), splitRetconCoroutine(), SRAGlobal(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), tryCSEWithPredecessor(), tryPromoteAllocaToVector(), tryToOptimizeStoreOfMallocToGlobal(), tryToRecognizePopCount(), tryToReplaceWithConstant(), TryToShrinkGlobalToBoolean(), llvm::TryToSimplifyUncondBranchFromEmptyBlock(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), tryUnmergingGEPsAcrossIndirectBr(), llvm::UpgradeARCRuntime(), llvm::AMDGPULibCalls::useNative(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitExtractElementInst(), llvm::ObjectSizeOffsetEvaluator::visitPHINode(), willNotOverflow(), llvm::BasicBlock::~BasicBlock(), and llvm::slpvectorizer::BoUpSLP::~BoUpSLP().

◆ replaceNonMetadataUsesWith()

void Value::replaceNonMetadataUsesWith ( Value V)

Change non-metadata uses of this to point to a new Value.

Go through the uses list for this definition and make each use point to "V" instead of "this". This function skips metadata entries in the list.

Definition at line 490 of file Value.cpp.

Referenced by hasName().

◆ replaceUsesOutsideBlock()

void Value::replaceUsesOutsideBlock ( Value V,
BasicBlock BB 
)

replaceUsesOutsideBlock - Go through the uses list for this definition and make each use point to "V" instead of "this" when the use is outside the block.

'This's use list is expected to have at least one element. Unlike replaceAllUsesWith() this function does not support basic block values or constant users.

Definition at line 496 of file Value.cpp.

References assert(), contains(), llvm::dyn_cast(), getType(), llvm::Use::getUser(), I, and replaceUsesWithIf().

Referenced by createFFSIntrinsic(), llvm::InstCombiner::replacedSelectWithOperand(), and replaceUsesWithIf().

◆ replaceUsesWithIf()

void llvm::Value::replaceUsesWithIf ( Value New,
llvm::function_ref< bool(Use &U)>  ShouldReplace 
)
inline

Go through the uses list for this definition and make each use point to "V" if the callback ShouldReplace returns true for the given Use.

Unlike replaceAllUsesWith() this function does not support basic block values or constant users.

Definition at line 299 of file Value.h.

References assert(), assertModuleIsMaterializedImpl(), E, getType(), replaceUsesOutsideBlock(), llvm::Use::set(), use_begin(), and use_end().

Referenced by INITIALIZE_PASS(), llvm::MemorySSAUpdater::insertDef(), isDirectCall(), replaceUsesOutsideBlock(), RetagMask(), and sinkInstruction().

◆ reverseUseList()

void Value::reverseUseList ( )

Reverse the use-list.

Definition at line 828 of file Value.cpp.

Referenced by mutateType().

◆ setName()

void Value::setName ( const Twine Name)

Change the name of the value.

Choose a new unique name if the provided name is taken.

Parameters
NameThe new name; or "" if the value's name should be removed.

Definition at line 342 of file Value.cpp.

References F().

Referenced by llvm::GetElementPtrInst::accumulateConstantOffset(), AddCalls(), llvm::AllocaInst::AllocaInst(), annotateAnyAllocSite(), llvm::Argument::Argument(), llvm::BinaryOperator::BinaryOperator(), canonicalizeICmpPredicate(), canRotateDeoptimizingLatchExit(), llvm::CloneBasicBlock(), llvm::CloneFunction(), cloneInstForMustTail(), cloneInstructionInExitBlock(), llvm::JumpThreadingPass::CloneInstructions(), llvm::CloneModule(), llvm::CmpInst::CmpInst(), llvm::LandingPadInst::Create(), llvm::CallBrInst::Create(), llvm::createAArch64StackTaggingPass(), llvm::CallInst::CreateFree(), createMemMoveLoop(), llvm::OpenMPIRBuilder::CreateParallel(), createShallowWrapper(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), createWrapper(), doPromotion(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::DuplicateInstructionsInSplitBetween(), llvm::InnerLoopVectorizer::emitMemRuntimeChecks(), llvm::InnerLoopVectorizer::emitSCEVChecks(), externalize(), llvm::FenceInst::FenceInst(), llvm::CodeExtractor::findInputsOutputs(), firstNonDbg(), llvm::InnerLoopVectorizer::fixupIVUsers(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), forceRenaming(), llvm::FreezeInst::FreezeInst(), FunctionNumber(), generateUnsignedDivisionCode(), getInsertPt(), llvm::InvokeInst::getLandingPadInst(), hasName(), INITIALIZE_PASS(), llvm::IRBuilderDefaultInserter::InsertHelper(), instrumentMaskedLoadOrStore(), llvm::invalidateParentIListOrdering(), llvm::ShuffleVectorInst::isConcat(), isKnownTypeIdMember(), isOnlyReachableViaThisEdge(), isSupportedGuardInstruction(), llvm::ExtractElementInst::isValidOperands(), llvm::LoadInst::LoadInst(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::makeGuardControlFlowExplicit(), makeStatepointExplicitImpl(), mayLoopAccessLocation(), NegateValue(), optimizeDivRem(), llvm::peelLoop(), false::LibCallsShrinkWrap::perform(), postDominates(), rematerializeLiveValues(), llvm::CatchSwitchInst::removeHandler(), rename(), ReplaceCallWith(), RetagMask(), rewriteComdat(), rewriteMaterializableInstructions(), llvm::InnerLoopVectorizer::scalarizeInstruction(), selectJumpTableArmEncoding(), shouldFixMainFunction(), llvm::ShuffleVectorInst::ShuffleVectorInst(), sinkInstruction(), splitBlockIfNotFirst(), llvm::SplitLandingPadPredecessors(), StripSymtab(), SwitchToLookupTable(), takeName(), turnGuardIntoBranch(), TypeSizeToSizeIndex(), llvm::UnaryOperator::UnaryOperator(), unpackLoadToAggregate(), llvm::UnrollRuntimeLoopRemainder(), llvm::UpgradeARCRuntime(), llvm::VAArgInst::VAArgInst(), versionCallSite(), llvm::LoopVersioning::versionLoop(), llvm::InnerLoopVectorizer::widenIntOrFpInduction(), and llvm::InnerLoopVectorizer::widenPHIInstruction().

◆ setValueName()

void Value::setValueName ( ValueName VN)

◆ setValueSubclassData()

void llvm::Value::setValueSubclassData ( unsigned short  D)
inlineprotected

◆ sortUseList()

template<class Compare >
void llvm::Value::sortUseList ( Compare  Cmp)

Sort the use-list.

Sorts the Value's use-list by Cmp using a stable mergesort. Cmp is expected to compare two Use references.

Definition at line 780 of file Value.h.

References assert(), and I.

Referenced by FunctionNumber(), and mutateType().

◆ stripAndAccumulateConstantOffsets() [1/2]

const Value* llvm::Value::stripAndAccumulateConstantOffsets ( const DataLayout DL,
APInt Offset,
bool  AllowNonInbounds,
function_ref< bool(Value &Value, APInt &Offset)>  ExternalAnalysis = nullptr 
) const

Accumulate the constant offset this value has compared to a base pointer.

Only 'getelementptr' instructions (GEPs) are accumulated but other instructions, e.g., casts, are stripped away as well. The accumulated constant offset is added to Offset and the base pointer is returned.

The APInt Offset has to have a bit-width equal to the IntPtr type for the address space of 'this' pointer value, e.g., use DataLayout::getIndexTypeSizeInBits(Ty).

If AllowNonInbounds is true, offsets in GEPs are stripped and accumulated even if the GEP is not "inbounds".

If ExternalAnalysis is provided it will be used to calculate a offset when a operand of GEP is not constant. For example, for a value ExternalAnalysis might try to calculate a lower bound. If ExternalAnalysis is successful, it should return true.

If this is called on a non-pointer value, it returns 'this' and the Offset is not modified.

Note that this function will never return a nullptr. It will also never manipulate the Offset in a way that would not match the difference between the underlying value and the returned one. Thus, if no constant offset was found, the returned value is the underlying one and Offset is unchanged.

Referenced by AreNonOverlapSameBaseLoadAndStore(), llvm::GetPointerBaseWithConstantOffset(), stripAndAccumulateConstantOffsets(), stripAndAccumulateInBoundsConstantOffsets(), stripAndComputeConstantOffsets(), stripInBoundsConstantOffsets(), stripPointerCastsAndInvariantGroups(), and llvm::tryPromoteCall().

◆ stripAndAccumulateConstantOffsets() [2/2]

Value* llvm::Value::stripAndAccumulateConstantOffsets ( const DataLayout DL,
APInt Offset,
bool  AllowNonInbounds 
)
inline

Definition at line 625 of file Value.h.

References stripAndAccumulateConstantOffsets().

◆ stripAndAccumulateInBoundsConstantOffsets() [1/2]

const Value* llvm::Value::stripAndAccumulateInBoundsConstantOffsets ( const DataLayout DL,
APInt Offset 
) const
inline

This is a wrapper around stripAndAccumulateConstantOffsets with the in-bounds requirement set to false.

Definition at line 634 of file Value.h.

References stripAndAccumulateConstantOffsets().

Referenced by llvm::GlobalIndirectSymbol::getBaseObject(), llvm::isConsecutiveAccess(), propagateMetadata(), and llvm::InstCombiner::visitGetElementPtrInst().

◆ stripAndAccumulateInBoundsConstantOffsets() [2/2]

Value* llvm::Value::stripAndAccumulateInBoundsConstantOffsets ( const DataLayout DL,
APInt Offset 
)
inline

Definition at line 639 of file Value.h.

References stripAndAccumulateConstantOffsets(), and stripInBoundsOffsets().

◆ stripInBoundsConstantOffsets() [1/2]

const Value * Value::stripInBoundsConstantOffsets ( ) const

Strip off pointer casts and all-constant inbounds GEPs.

Returns the original pointer value. If this is called on a non-pointer value, it returns 'this'.

Definition at line 605 of file Value.cpp.

Referenced by llvm::CodeExtractorAnalysisCache::CodeExtractorAnalysisCache(), FindPreallocatedCall(), llvm::CodeExtractor::isLegalToShrinkwrapLifetimeMarkers(), llvm::FastISel::selectIntrinsicCall(), stripInBoundsConstantOffsets(), and stripPointerCastsAndInvariantGroups().

◆ stripInBoundsConstantOffsets() [2/2]

Value* llvm::Value::stripInBoundsConstantOffsets ( )
inline

Definition at line 590 of file Value.h.

References DL, stripAndAccumulateConstantOffsets(), and stripInBoundsConstantOffsets().

◆ stripInBoundsOffsets() [1/2]

const Value * Value::stripInBoundsOffsets ( function_ref< void(const Value *)>  Func = [](const Value *) {}) const

Strip off pointer casts and inbounds GEPs.

Returns the original pointer value. If this is called on a non-pointer value, it returns 'this'.

Definition at line 682 of file Value.cpp.

Referenced by getTypePartition(), shouldInstrumentReadWriteFromAddress(), stripAndAccumulateInBoundsConstantOffsets(), stripInBoundsOffsets(), and llvm::sroa::AllocaSliceRewriter::visit().

◆ stripInBoundsOffsets() [2/2]

Value* llvm::Value::stripInBoundsOffsets ( function_ref< void(const Value *)>  Func = [](const Value *) {})
inline

◆ stripPointerCasts() [1/2]

const Value * Value::stripPointerCasts ( ) const

Strip off pointer casts, all-zero GEPs and address space casts.

Returns the original uncasted value. If this is called on a non-pointer value, it returns 'this'.

Definition at line 593 of file Value.cpp.

Referenced by AddCalls(), llvm::MachineFunction::addLandingPad(), annotateAnyAllocSite(), canSinkInstructions(), llvm::Attributor::changeUseAfterManifest(), llvm::Attributor::checkForAllReadWriteInstructions(), checkWFAlloc(), checkWFDealloc(), checkWFRetconPrototype(), llvm::classifyEHPersonality(), compareNames(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::ObjectSizeOffsetEvaluator::compute(), computePointerICmp(), ConvertDoubleToBytes(), despeculateCountZeros(), emitBinaryFloatFnCallHelper(), llvm::emitCalloc(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), emitLibCall(), llvm::emitMalloc(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), llvm::AsmPrinter::emitSpecialLLVMGlobal(), emitUnaryFloatFnCallHelper(), enforceKnownAlignment(), llvm::objcarc::EraseInstruction(), llvm::ExtractTypeInfo(), findArgumentCopyElisionCandidates(), llvm::FindAvailablePtrLoadStore(), findBasePointer(), llvm::findDevirtualizableCallsForTypeTest(), findInitTrampoline(), findInitTrampolineFromAlloca(), FindPreallocatedCall(), findSafeStoreForStoreStrongContraction(), FindUsedValues(), findUsedValues(), getCalledFunction(), llvm::AbstractCallSite::getCalledFunction(), llvm::getConstantDataArrayInfo(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::getDest(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), getKnownConstant(), llvm::InstrProfIncrementInst::getName(), llvm::InstrProfValueProfileInst::getName(), getOpenCLAlignment(), getOrCreateDebugLoc(), getParentPad(), llvm::CoroIdInst::getPromise(), llvm::objcarc::GetRCIdentityRoot(), llvm::objcarc::getreturnRVOperand(), llvm::MemTransferBase< AnyMemIntrinsic >::getSource(), GetStringLengthH(), getSuccState(), hasNoAliasAttr(), hasUndefContents(), llvm::InlineFunction(), InsertRootInitializers(), llvm::DenseMapInfo< ICVValue >::isEqual(), isInertARCValue(), isKnownNonConstant(), isObjectSizeLessThanOrEq(), isOverwrite(), llvm::isPointerOffset(), isPossibleIndirectCallTarget(), llvm::isSafeToLoadUnconditionally(), isUsedByMetadata(), isZero(), llvm::BlockAddress::lookup(), llvm::CallLowering::lowerCall(), moveUp(), OptimizeEmptyGlobalCXXDtors(), optimizeOnceStoredGlobal(), llvm::JumpThreadingPass::ProcessBlock(), removePartiallyOverlappedStores(), replacePrepare(), llvm::FastISel::selectPatchpoint(), shouldFixMainFunction(), simplifySuspendPoint(), llvm::Constant::stripPointerCasts(), stripPointerCasts(), transformToIndexedCompare(), tryToMoveFreeBeforeNullTest(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), llvm::InstCombiner::visitGetElementPtrInst(), and llvm::InstCombiner::visitLandingPadInst().

◆ stripPointerCasts() [2/2]

Value* llvm::Value::stripPointerCasts ( )
inline

Definition at line 548 of file Value.h.

References stripPointerCasts(), and stripPointerCastsAndAliases().

◆ stripPointerCastsAndAliases() [1/2]

const Value * Value::stripPointerCastsAndAliases ( ) const

Strip off pointer casts, all-zero GEPs, address space casts, and aliases.

Returns the original uncasted value. If this is called on a non-pointer value, it returns 'this'.

Definition at line 597 of file Value.cpp.

Referenced by callingConvSupported(), stripPointerCasts(), and stripPointerCastsAndAliases().

◆ stripPointerCastsAndAliases() [2/2]

Value* llvm::Value::stripPointerCastsAndAliases ( )
inline

◆ stripPointerCastsAndInvariantGroups() [1/2]

const Value * Value::stripPointerCastsAndInvariantGroups ( ) const

Strip off pointer casts, all-zero GEPs and invariant group info.

Returns the original uncasted value. If this is called on a non-pointer value, it returns 'this'. This function should be used only in Alias analysis.

Definition at line 609 of file Value.cpp.

References assert(), llvm::BitWidth, DL, GEP, llvm::APInt::getBitWidth(), llvm::DataLayout::getIndexTypeSizeInBits(), llvm::APInt::getMinSignedBits(), llvm::Operator::getOpcode(), getType(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::Type::isPtrOrPtrVectorTy(), llvm::APInt::sadd_ov(), llvm::APInt::sextOrTrunc(), and stripAndAccumulateConstantOffsets().

Referenced by aliasSameBasePointerGEPs(), MergeAliasResults(), stripPointerCastsAndInvariantGroups(), and stripPointerCastsSameRepresentation().

◆ stripPointerCastsAndInvariantGroups() [2/2]

Value* llvm::Value::stripPointerCastsAndInvariantGroups ( )
inline

◆ stripPointerCastsSameRepresentation() [1/2]

const Value * Value::stripPointerCastsSameRepresentation ( ) const

Strip off pointer casts, all-zero GEPs and address space casts but ensures the representation of the result stays the same.

Returns the original uncasted value with the same representation. If this is called on a non-pointer value, it returns 'this'.

Definition at line 601 of file Value.cpp.

Referenced by llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), llvm::LazyValueInfo::getPredicateAt(), llvm::isGuaranteedNotToBeUndefOrPoison(), llvm::PointerMayBeCaptured(), stripPointerCastsAndAliases(), and stripPointerCastsSameRepresentation().

◆ stripPointerCastsSameRepresentation() [2/2]

Value* llvm::Value::stripPointerCastsSameRepresentation ( )
inline

◆ takeName()

void Value::takeName ( Value V)

Transfer the name from V to this value.

After taking V's name, sets V's name to empty.

Note
It is an error to call V->takeName(V).

Definition at line 348 of file Value.cpp.

References assert(), getSymTab(), getValueName(), hasName(), setName(), llvm::StringMapEntryStorage< ValueTy >::setValue(), setValueName(), and llvm::ARM_MB::ST.

Referenced by addFramePointerAttrs(), annotateAnyAllocSite(), buildClonedLoopBlocks(), canCreateAliasFor(), canCreateThunkFor(), llvm::changeToCall(), llvm::InstCombiner::computeOverflow(), ConvertShiftToMul(), llvm::convertToDeclaration(), ConvertToSInt(), llvm::createAArch64StackTaggingPass(), llvm::createDeadArgHackingPass(), llvm::createScalarizerPass(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), decomposeSimpleLinearExpr(), doPromotion(), findSelectThroughCast(), firstNonDbg(), llvm::FoldBranchToCommonDest(), foldICmpBitCast(), foldOperationIntoPhiValue(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftedShift(), FoldTwoEntryPHINode(), forceRenaming(), getBinOpsForFactorization(), getEmscriptenFunction(), llvm::VNCoercion::getLoadValueForLoad(), getMinVisibility(), getRetComponentType(), getScalarIntrinsicDeclaration(), getTrueOrFalseValue(), HandleInlinedEHPad(), hasName(), INITIALIZE_PASS(), llvm::InlineFunction(), InsertRootInitializers(), insertValues(), instrumentMaskedLoadOrStore(), isGEPFoldable(), isKnownTypeIdMember(), isSafeToHoistInvoke(), isZeroLengthArray(), LowerNegateToMultiply(), OptimizeGlobalAliases(), optimizeWithFDivFast(), processUGT_ADDCST_ADD(), llvm::Attributor::registerFunctionSignatureRewrite(), removeGlobalCtors(), RemovePreallocated(), llvm::removeUnwindEdge(), replaceAliasWithAliasee(), llvm::ReplaceInstWithValue(), replaceUnaryCall(), replaceValue(), reportLoadElim(), reportMayClobberedLoad(), RetagMask(), rewritePHIs(), setUsedInitializer(), ShrinkDemandedConstant(), simplifyAllocaArraySize(), simplifyAssocCastAssoc(), SimplifyBSwap(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), simplifyRelocatesOffABase(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), TryToShrinkGlobalToBoolean(), tryUnmergingGEPsAcrossIndirectBr(), unifyBitWidth(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitTrunc(), and llvm::InstCombiner::visitXor().

◆ use_begin() [1/2]

use_iterator llvm::Value::use_begin ( )
inline

◆ use_begin() [2/2]

const_use_iterator llvm::Value::use_begin ( ) const
inline

Definition at line 361 of file Value.h.

References assertModuleIsMaterialized(), and materialized_use_begin().

◆ use_empty()

bool llvm::Value::use_empty ( ) const
inline

Definition at line 341 of file Value.h.

References assertModuleIsMaterialized().

Referenced by AddCalls(), annotateAnyAllocSite(), llvm::attributesPermitTailCall(), llvm::DomTreeUpdater::callbackDeleteBB(), canCreateAliasFor(), llvm::Attributor::checkForAllUses(), combineLoadToOperationType(), ComputePostOrders(), containsProfilingIntrinsics(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::createDeadArgHackingPass(), llvm::createDwarfEHPass(), createRetPHINode(), llvm::createSeparateConstOffsetFromGEPPass(), createShallowWrapper(), llvm::createSVEIntrinsicOptsPass(), DCEInstruction(), DeadPHICycle(), deleteDeadInstruction(), deleteIfDead(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), despeculateCountZeros(), llvm::DetatchDeadBlocks(), llvm::NVPTXAsmPrinter::doFinalization(), llvm::AsmPrinter::doFinalization(), doPromotion(), llvm::LLVMContextImpl::dropTriviallyDeadConstantArrays(), llvm::InstCombiner::eraseInstFromFunction(), llvm::objcarc::EraseInstruction(), FindPreallocatedCall(), FunctionNumber(), getEmscriptenFunction(), getIdentityValueForAtomicOp(), getMaxBackedgeTakenCount(), llvm::lto::LTO::getMaxTasks(), getMinAnalyzeableBackedgeTakenCount(), getMinVisibility(), getRetComponentType(), getScalarIntrinsicDeclaration(), hasAddressTakenAndUsed(), hasProfileData(), hasSameExtUse(), hasUseOtherThanLLVMUsed(), hasUsesOutsideLoop(), llvm::hoistRegion(), llvm::InlineFunction(), isCallableFunction(), isDirectCall(), isInertARCValue(), llvm::isInstructionTriviallyDead(), isLoadInvariantInLoop(), IsNonLocalValue(), isOnlyReachableViaThisEdge(), isOnlyUsedInEntryBlock(), isPromotedInstructionLegal(), isReportingError(), isSafeToEliminateVarargsCast(), isSafeToPromoteArgument(), isUsedOutsideOfDefiningBlock(), LinearizeExprTree(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerLoadRelative(), lowerObjCCall(), LowerRotate(), makeStatepointExplicitImpl(), MarkBlocksLiveIn(), mergeConstants(), mustPreserveGV(), OptimizeAwayTrappingUsesOfLoads(), OptimizeExtractBits(), OptimizeGlobalAddressOfMalloc(), optimizeGlobalsInModule(), optimizeMemCmpConstantSize(), passingValueIsAlwaysUndefined(), patchAndReplaceAllUsesWith(), false::LibCallsShrinkWrap::perform(), performMaskedAtomicOp(), predictValueUseListOrder(), prepareICWorklistFromFunction(), processInternalGlobal(), promoteSingleBlockAlloca(), PropagateConstantReturn(), PropagateConstantsIntoArguments(), propagateMetadata(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::StatepointLoweringState::relocCallVisited(), llvm::removeAllNonTerminatorAndEHPadInstructions(), RemoveDeadConstant(), llvm::LazyCallGraph::removeDeadFunction(), removeDeadUsersOfConstant(), removeEmptyCleanup(), llvm::MemorySSA::removeFromLookups(), removeGlobalCtors(), llvm::MemorySSAUpdater::removeMemoryAccess(), llvm::removeUnreachableBlocks(), ReplaceCallWith(), ReplaceFoldableUses(), llvm::InstCombiner::replaceInstUsesWith(), llvm::LazyCallGraph::RefSCC::replaceNodeFunction(), llvm::rewriteLoopExitValues(), RewriteUsesOfClonedInstructions(), RewriteUsesOfLoadForHeapSRoA(), llvm::GlobalDCEPass::run(), llvm::InlinerPass::run(), llvm::LoadAndStorePromoter::run(), llvm::InstCombiner::run(), llvm::JumpThreadingPass::runImpl(), llvm::runIPSCCP(), llvm::StatepointLoweringState::scheduleRelocCall(), llvm::FastISel::selectIntrinsicCall(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::TargetLowering::CallLoweringInfo::setCallee(), llvm::SITargetLowering::shouldExpandAtomicRMWInIR(), simplifyAndDCEInstruction(), llvm::InstCombiner::simplifyDivRemOfSelectWithZeroOp(), SinkCast(), sinkCmpExpression(), AllocaSlices::SliceBuilder::SliceBuilder(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitCallSite(), splitGlobal(), splitGlobals(), llvm::SplitLandingPadPredecessors(), SRAGlobal(), llvm::Function::stealArgumentListFrom(), stripDeadPrototypes(), llvm::stripDebugifyMetadata(), StripSymbolNames(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), TryToShrinkGlobalToBoolean(), updateOperand(), llvm::UpgradeARCRuntime(), useFuncSeen(), llvm::InstCombiner::visitAtomicRMWInst(), llvm::InstCombiner::visitCallInst(), llvm::PtrUseVisitor< SliceBuilder >::visitGetElementPtrInst(), llvm::VPReplicateRecipe::VPReplicateRecipe(), willNotOverflow(), and llvm::BasicBlock::~BasicBlock().

◆ use_end() [1/2]

use_iterator llvm::Value::use_end ( )
inline

◆ use_end() [2/2]

const_use_iterator llvm::Value::use_end ( ) const
inline

Definition at line 366 of file Value.h.

◆ user_back() [1/2]

User* llvm::Value::user_back ( )
inline

◆ user_back() [2/2]

const User* llvm::Value::user_back ( ) const
inline

Definition at line 408 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

◆ user_begin() [1/2]

user_iterator llvm::Value::user_begin ( )
inline

Definition at line 394 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

Referenced by addAllGlobalValueUsers(), annotateNonNullAndDereferenceable(), areAllUsesEqual(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canPaddingBeAccessed(), canSinkInstructions(), canTailPredicateInstruction(), llvm::GraphTraits< Inverse< MemoryAccess * > >::child_begin(), CleanupConstantGlobalUsers(), CleanupPointerRootUsers(), combineLoadToOperationType(), ConstantPropUsersOf(), ConvertToSInt(), llvm::CodeExtractor::findInputsOutputs(), foldOperationIntoPhiValue(), GenerateSignBits(), llvm::GCNTTIImpl::getArithmeticInstrCost(), llvm::AArch64TTIImpl::getCastInstrCost(), llvm::ScalarEvolution::getIndexExpressionsFromGEP(), llvm::getMallocType(), llvm::SystemZTTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), getOutliningPenalty(), getSubprogram(), getTrueOrFalseValue(), getTypePartition(), llvm::AliasSet::getUniqueInstruction(), hasNUndroppableUses(), hasNUndroppableUsesOrMore(), hasProfileData(), hasSameExtUse(), llvm::FastISel::hasTrivialKill(), hasUsesOutsideLoop(), INITIALIZE_PASS(), llvm::isAllocaPromotable(), llvm::SystemZTTIImpl::isFoldableLoad(), isIgnorableInst(), isKnownTypeIdMember(), llvm::RecurrenceDescriptor::isMinMaxSelectCmpPattern(), isPromotedInstructionLegal(), isReachableFromPHI(), isReInterleaveMask(), isUsedInBasicBlock(), isZeroLengthArray(), LinearizeExprTree(), MarkBlocksLiveIn(), moveUp(), operator new(), OptimizeAwayTrappingUsesOfLoads(), OptimizeAwayTrappingUsesOfValue(), OptimizeEmptyGlobalCXXDtors(), OptimizeExtractBits(), passingValueIsAlwaysUndefined(), PerformHeapAllocSRoA(), processUMulZExtIdiom(), promoteSingleBlockAlloca(), PropagateConstantReturn(), removeLifetimeIntrinsicUsers(), replaceAllUsesOfWithIn(), replaceConstantExprOp(), llvm::BitcodeReaderValueList::resolveConstantForwardRefs(), RewriteHeapSROALoadUser(), rewriteSingleStoreAlloca(), RewriteUsesOfLoadForHeapSRoA(), sink(), sinkAndCmp0Expression(), SinkCast(), sinkCmpExpression(), sinkLastInstruction(), supportedAddressingMode(), llvm::UpgradeARCRuntime(), llvm::UpgradeCallsToIntrinsic(), and llvm::PredicateInfo::~PredicateInfo().

◆ user_begin() [2/2]

const_user_iterator llvm::Value::user_begin ( ) const
inline

Definition at line 398 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

◆ user_empty()

bool llvm::Value::user_empty ( ) const
inline

◆ user_end() [1/2]

user_iterator llvm::Value::user_end ( )
inline

◆ user_end() [2/2]

const_user_iterator llvm::Value::user_end ( ) const
inline

Definition at line 403 of file Value.h.

◆ users() [1/2]

iterator_range<user_iterator> llvm::Value::users ( )
inline

Definition at line 418 of file Value.h.

References assertModuleIsMaterialized(), and materialized_users().

Referenced by addAllGlobalValueUsers(), addNoRecurseAttrsTopDown(), allCallersPassValidPointerForArgument(), AllGlobalLoadUsesSimpleEnoughForHeapSRA(), allNonInstructionUsersCanBeMadeInstructions(), allUsersAreInFunction(), AllUsesOfLoadedValueWillTrapIfNull(), AllUsesOfValueWillTrapIfNull(), AlmostDeadIV(), alwaysAvailable(), annotateAnyAllocSite(), llvm::MemorySSAUpdater::applyInsertUpdates(), BlockIsSimpleEnoughToThreadThrough(), calcArraySize(), calculateCXXStateNumbers(), calculateSEHStateNumbers(), llvm::CallGraphDOTInfo::CallGraphDOTInfo(), canonicalizeICmpPredicate(), canonicalizeSaturatedAdd(), llvm::canTrackGlobalVariableInterprocedurally(), ChangeCalleesToFastCall(), changeCallSitesToColdCC(), cheapToScalarize(), clearAssumptionsOfUsers(), llvm::InnerLoopVectorizer::clearReductionWrapFlags(), llvm::CloneAndPruneIntoFromInst(), cloneConstantExprWithNewAddressSpace(), collectCallers(), collectFunctionUsers(), collectLeaves(), combineLoadToOperationType(), completeEphemeralValues(), ComputePostOrders(), llvm::createAMDGPUPrintfRuntimeBinding(), createCallInst(), createCast(), llvm::createCodeGenPreparePass(), llvm::AbstractDependenceGraphBuilder< DataDependenceGraph >::createDefUseEdges(), llvm::createObjCARCOptPass(), createRetBitCast(), createRetPHINode(), detectPopcountIdiom(), detectShiftUntilZeroIdiom(), llvm::InstCombiner::dominatesAllUses(), doPromotion(), eraseDeadBBsAndChildren(), llvm::CodeExtractor::findAllocas(), llvm::FindDbgAddrUses(), llvm::findDbgUsers(), llvm::findDbgValues(), findInitTrampolineFromAlloca(), findInnerReductionPhi(), llvm::CodeExtractor::findInputsOutputs(), llvm::CodeExtractor::findOrCreateBlockForHoisting(), FindPreallocatedCall(), findReturnsToZap(), FindSingleUseIdentifiedObject(), llvm::InnerLoopVectorizer::fixReduction(), llvm::InnerLoopVectorizer::fixupIVUsers(), foldICmpWithDominatingICmp(), foldOperationIntoPhiValue(), getCleanupRetUnwindDest(), getEmscriptenFunction(), getFirstNonAllocaInTheEntryBlock(), llvm::ARMTTIImpl::getGatherScatterOpCost(), llvm::GCStatepointInst::getGCRelocates(), GetLoopInvariantInsertPosition(), llvm::HexagonTargetObjectFile::getLutUsedFunction(), getMaxWidenStepsOpts(), llvm::GlobalsAAResult::getModRefBehavior(), getModuleFromVal(), getNegatibleInsts(), getNumGlobalVariableUses(), llvm::getNumOfCalls(), getOrCreateDebugLoc(), getParentPad(), GetPointerOperand(), getPreferredExtendForValue(), getRangeForAffineARHelper(), getRelevantOperands(), getSubprogram(), getTypePartition(), llvm::getUniqueCastUse(), getUnwindDestToken(), getUnwindDestTokenHelper(), getVectorCallCosts(), GlobalUsersSafeToSRA(), hasAllGatScatUsers(), hasBranchUse(), hasCFUser(), hasChangeableCC(), hasExceptionPointerOrCodeUser(), hasHardUserWithinLoop(), hasInvokeCallers(), hasLifetimeMarkers(), hasMustTailCallers(), hasOnlySelectUsers(), llvm::hasOutsideLoopUser(), hasProfileData(), hasSameExtUse(), hasStoreUsersOnly(), hasUsersIn(), hasUsesOutsideLoop(), hasZeroSignBit(), INITIALIZE_PASS(), insertSinCosCall(), insertSpills(), llvm::invertCondition(), llvm::isAllocaPromotable(), isAllocSiteRemovable(), llvm::Loop::isAuxiliaryInductionVariable(), isCallPromotable(), isContiguous(), llvm::Function::isDefTriviallyDead(), isEphemeralValueOf(), isFuncOrArgAttr(), isFuncOrderCorrect(), isGOTEquivalentCandidate(), isHighCostExpansion(), isIgnorableInst(), llvm::isInlineViable(), isKnownNonNullFromDominatingCondition(), isLoadInvariantInLoop(), isLocalAlloca(), isLoopIncrement(), isNotUsedOrFreeInLoop(), isOnlyUsedInComparisonWithZero(), isOnlyUsedInEqualityComparison(), llvm::isOnlyUsedInZeroEqualityComparison(), llvm::isOverflowIntrinsicNoWrap(), isPointerValueDeadOnEntryToFunction(), isProfitableChain(), isSafeAndProfitableToSinkLoad(), llvm::TargetFrameLowering::isSafeForNoCSROpt(), isSafePHIToSpeculate(), isSafeSelectToSpeculate(), isSafeSROAGEP(), llvm::isSafeToDestroyConstant(), isTargetConstant(), isUsedByLifetimeMarker(), isUsedOutsideOfDefiningBlock(), isValidCandidateForColdCC(), LoadUsesSimpleEnoughForHeapSRA(), localAllocaNeedsStackSave(), llvm::log2(), llvm::LowerDbgDeclare(), makeAllConstantUsesInstructions(), mapBinOpcode(), mapWasmLandingPadIndex(), MarkBlocksLiveIn(), matchUAddWithOverflowConstantEdgeCases(), mayLoopAccessLocation(), mergeInlinedArrayAllocas(), moveUp(), mustExecuteUBIfPoisonOnPathTo(), llvm::InnerLoopVectorizer::needsScalarInduction(), negateICmpIfUsedByBranchOrSelectOnly(), NegateValue(), okayForPHIOfOps(), OnlyUsedBy(), llvm::onlyUsedByLifetimeMarkers(), optimizeDoubleFP(), performMaskedAtomicOp(), llvm::LoopVectorizationLegality::prepareToFoldTailByMasking(), llvm::LazyValueInfo::printLVI(), llvm::AlignmentFromAssumptionsPass::processAssumption(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), llvm::promoteLoopAccessesToScalars(), promoteSingleBlockAlloca(), PushDefUseChildren(), pushIVUsers(), PushLoopPHIs(), llvm::InstCombineWorklist::pushUsersToWorkList(), readMarker(), llvm::Attributor::registerFunctionSignatureRewrite(), relocationViaAlloca(), RemoveAttribute(), RemovePreallocated(), replaceAndRecursivelySimplifyImpl(), llvm::coro::replaceCoroFree(), replaceExtractElements(), replaceUsesOfWith(), reportMayClobberedLoad(), rewriteNonInstructionUses(), llvm::StackProtector::runOnFunction(), setCannotDuplicate(), shouldBeDeferred(), llvm::AArch64TTIImpl::shouldConsiderAddressTypePromotion(), llvm::ARMTargetLowering::shouldSinkOperands(), simplifyAllocaArraySize(), simplifyAndDCEInstruction(), simplifyRelocatesOffABase(), sinkAndCmp0Expression(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::Solve(), splitGlobal(), SRAGlobal(), swapMayExposeCSEOpportunities(), SwitchToLookupTable(), translateExtract(), truncateIVUse(), tryPromoteAllocaToVector(), tryToElideArgumentCopy(), TryToShrinkGlobalToBoolean(), tryUnmergingGEPsAcrossIndirectBr(), usedInGlobalVarDef(), usedInOneFunc(), useFuncSeen(), usesLiveOut(), ValueIsOnlyUsedLocallyOrStoredToOneGlobal(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), llvm::MemorySSA::verifyOrderingDominationAndDefUses(), llvm::LoopVersioning::versionLoop(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSub(), willNotOverflow(), and ~Value().

◆ users() [2/2]

iterator_range<const_user_iterator> llvm::Value::users ( ) const
inline

Definition at line 422 of file Value.h.

References assertModuleIsMaterialized(), and materialized_users().

◆ uses() [1/2]

iterator_range<use_iterator> llvm::Value::uses ( )
inline

Definition at line 373 of file Value.h.

References assertModuleIsMaterialized(), and materialized_uses().

Referenced by addIntrinsicToSummary(), llvm::IVUsers::AddUsersImpl(), AllUsesDominatedByBlock(), analyzeGlobalAux(), llvm::ArgumentPromotionPass::areFunctionArgsABICompatible(), canFoldIVIncExpr(), llvm::canFreelyInvertAllUsersOf(), llvm::Attributor::changeValueAfterManifest(), llvm::Attributor::checkForAllCallSites(), llvm::Attributor::checkForAllUses(), combineVBROADCAST_LOAD(), llvm::createDeadArgHackingPass(), determinePointerReadAttrs(), dropDroppableUses(), llvm::GVNExpression::Expression::dump(), eliminateDeadStores(), llvm::detail::PtrUseVisitorBase::enqueueUsers(), FindAllMemoryUses(), findCallsAtConstantOffset(), findDemandedEltsByAllUsers(), llvm::findDevirtualizableCallsForTypeCheckedLoad(), llvm::findDevirtualizableCallsForTypeTest(), findLoadCallsAtConstantOffset(), findProfitablePHIs(), findUses(), foreachUse(), llvm::formLCSSAForInstructions(), FunctionNumber(), genLoopLimit(), GetCaseResults(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), llvm::getKnowledgeForValue(), llvm::GlobalsAAResult::getModRefBehavior(), getParentPad(), getRetComponentType(), getSingleUndroppableUse(), getStartOrEndSlot(), llvm::Function::hasAddressTaken(), hasUsesOutsideLoop(), llvm::Attributor::identifyDefaultAbstractAttributes(), llvm::DenseMapInfo< ICVValue >::isEqual(), llvm::RecurrenceDescriptor::isFirstOrderRecurrence(), isKnownTypeIdMember(), isPossibleIndirectCallTarget(), isPromotedResultSafe(), isSafeAndProfitableToSpeculateAroundPHI(), llvm::isSafeToMoveBefore(), isSafeToPromoteArgument(), isSafeToSpeculatePHIUsers(), IsStoredObjCPointer(), llvm::Instruction::isUsedOutsideOfBlock(), llvm::AArch64TargetLowering::isZExtFree(), llvm::LowerDbgDeclare(), llvm::LoopInfo::movementPreservesLCSSAForm(), NewGVN::ValueDFS::operator<(), operator<<(), llvm::PointerMayBeCaptured(), llvm::PredicateInfoBuilder::PredicateInfoBuilder(), llvm::ValueEnumerator::print(), promoteArguments(), PropagateConstantsIntoArguments(), PushArgMD(), replacePrepare(), shouldCombineToPostInc(), llvm::ARMTargetLowering::shouldSinkOperands(), sinkInstruction(), transformToIndexedCompare(), truncateIVUse(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), llvm::MemorySSA::verifyOrderingDominationAndDefUses(), llvm::sroa::AllocaSliceRewriter::visit(), and visitPHIUsersAndDepsInPostOrder().

◆ uses() [2/2]

iterator_range<const_use_iterator> llvm::Value::uses ( ) const
inline

Definition at line 377 of file Value.h.

References assertModuleIsMaterialized(), and materialized_uses().

Friends And Related Function Documentation

◆ ValueAsMetadata

friend class ValueAsMetadata
friend

Definition at line 78 of file Value.h.

◆ ValueHandleBase

friend class ValueHandleBase
friend

Definition at line 79 of file Value.h.

Member Data Documentation

◆ HasDescriptor

unsigned llvm::Value::HasDescriptor
protected

◆ HasHungOffUses

unsigned llvm::Value::HasHungOffUses
protected

◆ HasName

unsigned llvm::Value::HasName
protected

Definition at line 118 of file Value.h.

Referenced by getValueName(), hasName(), and setValueName().

◆ IsUsedByMD

unsigned llvm::Value::IsUsedByMD
protected

Definition at line 117 of file Value.h.

Referenced by llvm::ValueAsMetadata::handleRAUW(), and isUsedByMetadata().

◆ MaxAlignmentExponent

const unsigned llvm::Value::MaxAlignmentExponent = 29
static

The maximum alignment for instructions.

This is the greatest alignment value supported by load, store, and alloca instructions, and global values.

Definition at line 688 of file Value.h.

Referenced by getAttrFromCode(), llvm::getOrEnforceKnownAlignment(), and getPointerAlignment().

◆ MaximumAlignment

const unsigned llvm::Value::MaximumAlignment = 1u << MaxAlignmentExponent
static

◆ NumUserOperands

unsigned llvm::Value::NumUserOperands
protected

◆ SubclassOptionalData

unsigned char llvm::Value::SubclassOptionalData
protected

Hold subclass data that can be dropped.

This member is similar to SubclassData, however it is for holding information which may be used to aid optimization, but which may be cleared to zero without affecting conservative interpretation.

Definition at line 90 of file Value.h.

Referenced by llvm::SelectInst::areInvalidOperands(), llvm::BinaryConstantExpr::BinaryConstantExpr(), clearSubclassOptionalData(), llvm::Instruction::clone(), llvm::GetElementPtrConstantExpr::Create(), llvm::ConstantExprKeyType::create(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CallBrInst::Create(), llvm::CallInst::CreateFree(), llvm::FenceInst::FenceInst(), llvm::ConstantExpr::getAsInstruction(), llvm::FPMathOperator::getFastMathFlags(), llvm::GEPOperator::getInRangeIndex(), llvm::InvokeInst::getLandingPadInst(), getRawSubclassOptionalData(), llvm::SwitchInstProfUpdateWrapper::getSuccessorWeight(), llvm::ConstantExpr::getWithOperands(), llvm::FPMathOperator::hasAllowContract(), llvm::FPMathOperator::hasAllowReassoc(), llvm::FPMathOperator::hasAllowReciprocal(), llvm::FPMathOperator::hasApproxFunc(), llvm::FPMathOperator::hasNoInfs(), llvm::FPMathOperator::hasNoNaNs(), llvm::OverflowingBinaryOperator::hasNoSignedWrap(), llvm::FPMathOperator::hasNoSignedZeros(), llvm::OverflowingBinaryOperator::hasNoUnsignedWrap(), hasSameSubclassOptionalData(), llvm::ShuffleVectorInst::isConcat(), llvm::PossiblyExactOperator::isExact(), llvm::FPMathOperator::isFast(), llvm::Instruction::isIdenticalTo(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), llvm::GEPOperator::isInBounds(), and llvm::UnreachableInst::UnreachableInst().


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