LLVM  6.0.0svn
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 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 replaceUsesExceptBlockAddr (Value *New)
 replaceUsesExceptBlockAddr - 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
 
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...
 
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 aliases. More...
 
ValuestripPointerCasts ()
 
const ValuestripPointerCastsAndBarriers () const
 Strip off pointer casts, all-zero GEPs, aliases and barriers. More...
 
ValuestripPointerCastsAndBarriers ()
 
const ValuestripPointerCastsNoFollowAliases () const
 Strip off pointer casts and all-zero GEPs. More...
 
ValuestripPointerCastsNoFollowAliases ()
 
const ValuestripInBoundsConstantOffsets () const
 Strip off pointer casts and all-constant inbounds GEPs. More...
 
ValuestripInBoundsConstantOffsets ()
 
const ValuestripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset) const
 Accumulate offsets from stripInBoundsConstantOffsets(). More...
 
ValuestripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset)
 
const ValuestripInBoundsOffsets () const
 Strip off pointer casts and inbounds GEPs. More...
 
ValuestripInBoundsOffsets ()
 
unsigned getPointerDereferenceableBytes (const DataLayout &DL, bool &CanBeNull) const
 Returns the number of bytes known to be dereferenceable for the pointer value. More...
 
unsigned 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 73 of file Value.h.

Member Typedef Documentation

◆ const_use_iterator

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

Definition at line 334 of file Value.h.

◆ const_user_iterator

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

Definition at line 371 of file Value.h.

◆ use_iterator

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

Definition at line 333 of file Value.h.

◆ user_iterator

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

Definition at line 370 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 114 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 446 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 69 of file Value.cpp.

References assert(), llvm::dbgs(), getName(), llvm::ValueAsMetadata::handleDeletion(), isUsedByMetadata(), 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 438 of file Value.h.

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

◆ assertModuleIsMaterialized()

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

Definition at line 322 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 477 of file Value.h.

References SubclassOptionalData.

Referenced by ClearSubclassDataAfterReassociation(), LinearizeExprTree(), and simplifyAssocCastAssoc().

◆ 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 720 of file Value.cpp.

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

Referenced by llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), 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 586 of file Value.h.

References DoPHITranslation().

◆ dump()

LLVM_DUMP_METHOD void Value::dump ( ) const

◆ getContext()

LLVMContext & Value::getContext ( ) const

All values hold a context through their type.

Definition at line 728 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::LoopAccessInfo::addRuntimeChecks(), llvm::addStringMetadataToLoop(), llvm::SelectInst::areInvalidOperands(), asmClobbersCTR(), BitCastConstantVector(), BuildConstantFromSCEV(), buildMultiplyTree(), CanShareConstantPoolEntry(), CC_MipsO32_FP64(), llvm::changeToUnreachable(), llvm::Function::clearGC(), llvm::FenceInst::cloneImpl(), llvm::UnreachableInst::cloneImpl(), CloneLoop(), collectInsertionElements(), collectShuffleElements(), collectSingleShuffleElements(), combineLoadToNewType(), combineLoadToOperationType(), computeBytesPoppedByCalleeForSRet(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), computeUnsignedMinMaxValuesFromKnownBits(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), convert_i1_to_i8(), ConvertDoubleToBytes(), ConvertToSInt(), llvm::copyNonnullMetadata(), llvm::copyRangeMetadata(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::ARMConstantPoolConstant::Create(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemCpy(), llvm::createFalkorMarkStridedAccessesPass(), createIfThenElse(), llvm::createObjCARCOptPass(), CreatePrologue(), llvm::createSeparateConstOffsetFromGEPPass(), despeculateCountZeros(), DFS(), eliminateDeadSwitchCases(), emitSignedInt64(), llvm::Function::eraseFromParent(), expandBounds(), llvm::SCEVExpander::expandUnionPredicate(), llvm::SCEVExpander::expandWrapPredicate(), ExtractConstantBytes(), extractMDNode(), findBasePointer(), llvm::FindDbgAddrUses(), findDbgUsers(), llvm::findDbgValues(), findInitTrampoline(), llvm::CodeExtractor::findInputsOutputs(), FindLIVLoopCondition(), findRetainForStoreStrongContraction(), fitsInFPType(), fixPhis(), foldConstantInsEltIntoShuffle(), foldCtpop(), foldCttzCtlz(), foldICmpShlOne(), foldInsSequenceIntoBroadcast(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), llvm::SCEVExpander::generateOverflowCheck(), genLoopLimit(), llvm::ConstantAggregateZero::get(), llvm::ValueAsMetadata::get(), llvm::ConstantPointerNull::get(), llvm::ConstantExpr::get(), llvm::UndefValue::get(), llvm::IRTranslator::getAnalysisUsage(), getArrayElements(), getAsConstantIndexedAddress(), llvm::GlobalVariable::getAttributesAsList(), llvm::GlobalValue::getComdat(), getCompareCC(), getComparePred(), llvm::LazyValueInfo::getConstant(), getConstantAt(), GetConstantInt(), llvm::LazyValueInfo::getConstantOnEdge(), llvm::ValueAsMetadata::getContext(), getEdgeValueLocal(), llvm::ConstantDataSequential::getElementAsConstant(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getFCmp(), getFPSequenceIfElementsMatch(), llvm::Function::getGC(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getICmp(), llvm::ValueAsMetadata::getIfExists(), llvm::ConstantDataSequential::getImpl(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getInsertValue(), getIntSequenceIfElementsMatch(), llvm::InvokeInst::getLandingPadInst(), GetLoopInvariantInsertPosition(), getMemCmpLoad(), getName(), getNegativeIsTrueBoolVec(), llvm::getObjectSize(), getParentPad(), getPow(), llvm::FastISel::getRegForValue(), GetRMWLibcall(), llvm::ConstantExpr::getSelect(), llvm::ConstantDataVector::getSplat(), getTrueOrFalseValue(), getType(), llvm::ConstantStruct::getTypeForElements(), getUnderlyingArgReg(), getValueName(), getX86SSEConditionCode(), handleBrSelExpect(), llvm::Constant::handleOperandChange(), handleSwitchExpect(), hasUnaryFloatFn(), INITIALIZE_PASS(), llvm::InlineFunction(), insertDebugValues(), isBroadcastShuffle(), llvm::isBytewiseValue(), llvm::IsConstantOffsetFromGlobal(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), isLoadInvariantInLoop(), isOrdered(), isReportingError(), isStrideMul(), llvm::LibCallSimplifier::LibCallSimplifier(), LLVMGetOperand(), LLVMSetParamAlignment(), llvm::RecurrenceDescriptor::lookThroughAnd(), lookThroughFPExtensions(), llvm::BlockAddress::lookup(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerSubFn(), MakeGuardControlFlowExplicit(), llvm::AMDGPUSubtarget::makeLIDRangeMetadata(), makeStatepointExplicitImpl(), matchesOr(), mayLoopAccessLocation(), llvm::MergeBasicBlockIntoOnlyPred(), mergeCleanupPad(), mergeInlinedArrayAllocas(), llvm::EscapeEnumerator::Next(), OptimizeGlobalAddressOfMalloc(), OptimizeNoopCopyExpression(), optimizeVectorResize(), parseOptionalLinkageAux(), llvm::peelLoop(), false::LibCallsShrinkWrap::perform(), PerformHeapAllocSRoA(), llvm::OperandBundleUser< InvokeInst, User::op_iterator >::populateBundleOperandInfos(), processCallSite(), processCmp(), processOverflowIntrinsic(), processUGT_ADDCST_ADD(), llvm::promoteIndirectCall(), ReduceSwitchRange(), remapInstruction(), llvm::Function::removeAttribute(), llvm::Function::removeAttributes(), llvm::SwitchInst::removeCase(), llvm::Function::removeParamAttr(), llvm::Function::removeParamAttrs(), llvm::coro::replaceCoroFree(), llvm::replaceDbgValueForAlloca(), replaceExtractElements(), ReplaceFPIntrinsicWithCall(), ReplaceUsesOfWith(), rewriteGEPAsOffset(), RewriteUsesOfClonedInstructions(), llvm::salvageDebugInfo(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectFNeg(), llvm::AtomicMemIntrinsic::setElementSizeInBytes(), llvm::Function::setEntryCount(), llvm::Function::setGC(), setNoClobberMetadata(), llvm::Instruction::setProfWeight(), llvm::Function::setPrologueData(), llvm::GlobalObject::setSection(), llvm::Function::setSectionPrefix(), setUsedInitializer(), setValueName(), ShrinkDemandedConstant(), SimplifyBranchOnICmpChain(), SimplifyICmpInst(), simplifyICmpWithBinOp(), SimplifyRelativeLoad(), SimplifyTerminatorOnSelect(), simplifyX86extrq(), simplifyX86insertq(), simplifyX86pshufb(), simplifyX86vpermilvar(), simplifyX86vpermv(), llvm::SplitCriticalEdge(), splitGlobal(), splitMergedValStore(), SRAGlobal(), transformToIndexedCompare(), TryToShrinkGlobalToBoolean(), tryUnmergingGEPsAcrossIndirectBr(), TurnSwitchRangeIntoICmp(), llvm::UnreachableInst::UnreachableInst(), unswitchTrivialBranch(), updateBranchWeights(), llvm::Instruction::updateProfWeight(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeIntrinsicCall(), llvm::AMDGPULibCalls::useNative(), llvm::ValueHandleBase::ValueIsDeleted(), llvm::ValueHandleBase::ValueIsRAUWd(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitAllocSite(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFree(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::Interpreter::visitReturnInst(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSwitchInst(), 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 220 of file Value.cpp.

References 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::StringRef::npos, llvm::StringMapEntry< ValueTy >::setValue(), setValueName(), llvm::ARM_MB::ST, and llvm::Twine::toStringRef().

Referenced by AddAliasScopeMetadata(), addForcedAttributes(), llvm::X86FrameLowering::adjustForHiPEPrologue(), analyzeParsePointLiveness(), llvm::DiagnosticInfoOptimizationBase::Argument::Argument(), asmClobbersCTR(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), assureFPCallStub(), llvm::WinException::beginFunction(), llvm::CodeViewDebug::beginInstruction(), llvm::CFGMST< Edge, BBInfo >::buildEdges(), buildFrameType(), buildMultiplyTree(), llvm::LoopVectorizationPlanner::buildVPlans(), llvm::BlockFrequencyInfo::calculate(), llvm::BranchProbabilityInfo::calculate(), llvm::calculateClrEHStateNumbers(), calculateCXXStateNumbers(), calculateSEHStateNumbers(), llvm::Interpreter::callExternalFunction(), callsiteIsHot(), llvm::canConstantFoldCallTo(), CanPropagatePredecessorsForPHIs(), llvm::canRenameComdatFunc(), llvm::changeToInvokeAndSplitBasicBlock(), cheapToScalarize(), llvm::classifyEHPersonality(), llvm::CloneBasicBlock(), llvm::CloneFunction(), llvm::orc::cloneFunctionDecl(), llvm::orc::cloneGlobalAliasDecl(), llvm::orc::cloneGlobalVariableDecl(), CloneInstructionInExitBlock(), CloneLoop(), CloneLoopBlocks(), llvm::collectCmpOps(), llvm::colorEHFunclets(), combineInstructionsOverFunction(), combineLoadToNewType(), llvm::InstCombiner::commonShiftTransforms(), compareNames(), computeAliasSummary(), llvm::ARM::computeDefaultTargetABI(), computeVariableSummary(), ConnectEpilog(), ConnectProlog(), llvm::ConstantFoldCall(), ConstructSSAForLoadSet(), ConvertToSInt(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), createCast(), createClone(), llvm::createConstantHoistingPass(), createFPFnStub(), llvm::createPGOFuncNameMetadata(), CreatePrologue(), createReplacementInstr(), createResumeEntryBlock(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), llvm::VPBlockBase::deleteCFG(), deleteDeadInstruction(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), DescKind(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::NVPTXAsmPrinter::doFinalization(), llvm::FunctionImportGlobalProcessing::doImportAsDefinition(), doPromotion(), llvm::GVNExpression::Expression::dump(), llvm::AliasSetTracker::dump(), llvm::CFGMST< Edge, BBInfo >::dumpEdges(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::DuplicateInstructionsInSplitBetween(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), EmitCamlGlobal(), llvm::AsmPrinter::EmitDebugThreadLocal(), llvm::ARCFrameLowering::emitEpilogue(), llvm::EmitGEPOffset(), llvm::ExecutionEngine::emitGlobals(), llvm::AMDGPU::HSAMD::MetadataStreamer::emitKernel(), llvm::ARCFrameLowering::emitPrologue(), llvm::AsmPrinter::EmitSpecialLLVMGlobal(), enableCallSafepoints(), llvm::WinException::endFunclet(), llvm::Function::eraseFromParent(), llvm::Evaluator::EvaluateBlock(), EvaluateStaticConstructor(), llvm::VPBasicBlock::execute(), findBaseDefiningValueCached(), findBasePointer(), llvm::CodeExtractor::findInputsOutputs(), FindPredecessorAutoreleaseWithSafePath(), fixPhis(), llvm::AMDGPULibCalls::fold(), foldBlockIntoPredecessor(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), foldICmpShlOne(), foldICmpWithMinMax(), foldLogicCastConstant(), foldOperationIntoSelectOperand(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), FoldTwoEntryPHINode(), forceRenaming(), forEachUser(), llvm::formLCSSAForInstructions(), FunctionNumber(), getAllocationDataForFunction(), getArrayElements(), getAttrFromCode(), getBinOpsForFactorization(), llvm::bfi_detail::getBlockName(), getBranchHint(), getCmpForPseudo(), llvm::DOTGraphTraits< const Function * >::getCompleteNodeLabel(), llvm::X86ELFTargetObjectFile::getDebugThreadLocalSymbol(), llvm::Intrinsic::getDeclaration(), getDescription(), llvm::DeadArgumentEliminationPass::RetOrArg::getDescription(), getEdgeValueLocal(), getEncodedUnnamedAddr(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), getFromRangeMetadata(), llvm::MachineBasicBlock::getFullName(), llvm::objcarc::GetFunctionClass(), llvm::GlobalValue::getGlobalIdentifier(), GetGlobalTypeString(), llvm::ModuleSummaryIndex::getGlobalValueSummary(), llvm::DOTGraphTraits< const Function * >::getGraphName(), GetHeapSROAValue(), llvm::getInlineCost(), getLayoutSuccessorProbThreshold(), llvm::TargetLibraryInfoImpl::getLibFunc(), llvm::ExecutionEngine::getMangledName(), getMCSymbolForMBB(), getMinVisibility(), llvm::DiagnosticInfoOptimizationBase::getMsg(), getName(), llvm::MachineFunction::getName(), llvm::Mangler::getNameWithPrefix(), llvm::DILocalScope::getNonLexicalBlockFileScope(), getOpenCLAlignment(), getParentPad(), llvm::getPGOFuncName(), getPointerOperand(), GetPointerOperand(), llvm::orc::OrcMCJITReplacement::getPointerToFunction(), getPow(), getRetComponentType(), llvm::getSamplerName(), llvm::sampleprof::SampleProfileReader::getSamplesFor(), getScalarIntrinsicDeclaration(), getSelectFoldableConstant(), getSignature(), llvm::DOTGraphTraits< const Function * >::getSimpleNodeLabel(), getSimpleNodeName(), getStartOrEndSlot(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), getSuccPad(), getSuccState(), llvm::getSurfaceName(), llvm::getTextureName(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), getTypePartition(), getVarName(), getVectorCallCost(), GlobalWasGeneratedByCompiler(), HandleByValArgument(), handleNonPrevailingComdat(), hasName(), hasOnlyUniformBranches(), HoistThenElseCodeToIf(), INITIALIZE_PASS(), INITIALIZE_PASS_WITH_OPTIONS(), llvm::MIRParserImpl::initializeFrameInfo(), inlineCallsImpl(), llvm::InlineFunction(), insertDebugValues(), llvm::InsertPreheaderForLoop(), insertSpills(), insertUniqueBackedgeBlock(), instrumentMaskedLoadOrStore(), llvm::InternalizePass::internalizeModule(), IntersectUnsignedRange(), isAlwaysFoldable(), isBroadcastShuffle(), isCallPromotable(), llvm::isFreeCall(), isGCSafepointPoll(), llvm::HexagonTargetObjectFile::isGlobalInSmallSection(), isIgnorableInst(), isInPartition(), isIntrinsicInline(), isKnownLibFunction(), isKnownTypeIdMember(), llvm::isLegalToPromote(), isLoadConditional(), isLoopInvariant(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), isObjectDereferencedInBlock(), isOnlyReachableViaThisEdge(), isProfitableForVectorization(), isReassociableOp(), isReInterleaveMask(), isReportingError(), isSafeAndProfitableToSinkLoad(), isSafeToPromoteArgument(), isSortedByValueNo(), isTrivialLoopExitBlock(), isUnconditionalBranch(), isWrapperOnlyCall(), llvm::LibCallSimplifier::LibCallSimplifier(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::log2(), lookupFunction(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::IntrinsicLowering::LowerToByteSwap(), llvm::TargetLowering::LowerToTLSEmulatedModel(), makeStatepointExplicitImpl(), mapArchToCVCPUType(), mapBinOpcode(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), MarkBlocksLiveIn(), matchDeMorgansLaws(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), maybePrintComdat(), mayLoopAccessLocation(), moveUp(), nearest_common_dominator(), llvm::orc::GlobalRenamer::needsRenaming(), needsRuntimeRegistrationOfSectionRange(), llvm::TargetRegisterInfo::needsStackRealignment(), NegateValue(), normalizePBQPSpillWeight(), llvm::DiagnosticPrinterRawOStream::operator<<(), false::operator<<(), llvm::rdf::operator<<(), optimizeBinaryDoubleFP(), OptimizeGlobalAddressOfMalloc(), optimizeUnaryDoubleFP(), llvm::OptLevelChanger::OptLevelChanger(), llvm::ARM::parseCPUArch(), llvm::peelLoop(), PerformHeapAllocSRoA(), llvm::PHITransAddr::PHITranslateWithInsertion(), populateWorklist(), preheader(), llvm::LinkDiagnosticInfo::print(), llvm::Trace::print(), llvm::ValueEnumerator::print(), llvm::MemoryDepChecker::Dependence::print(), llvm::CallGraphNode::print(), llvm::MemoryPhi::print(), llvm::DiagnosticInfoUnsupported::print(), llvm::BranchProbabilityInfo::printEdgeProbability(), llvm::MIPrinter::printIRBlockReference(), llvm::MIPrinter::printIRValueReference(), PrintLLVMName(), llvm::LazyValueInfo::printLVI(), printNode(), printNodeDOT(), processAShr(), llvm::JumpThreadingPass::ProcessBlock(), llvm::ARCFrameLowering::processFunctionBeforeFrameFinalized(), processGlobal(), processInternalGlobal(), llvm::LoopVectorizePass::processLoop(), processOverflowIntrinsic(), processSDiv(), processSRem(), llvm::JumpThreadingPass::ProcessThreadableEdges(), processUGT_ADDCST_ADD(), llvm::promoteLoopAccessesToScalars(), propagateMetadata(), PushArgMD(), llvm::GVNHoist::rank(), llvm::Function::recalculateIntrinsicID(), llvm::ImportedFunctionsInliningStatistics::recordInline(), recoverFramePointer(), llvm::Intrinsic::remangleIntrinsicFunction(), rename(), ReplaceCallWith(), replaceDominatedUsesWith(), ReplaceUsesOfWith(), reportFastISelFailure(), reportMayClobberedLoad(), llvm::ARCFrameLowering::restoreCalleeSavedRegisters(), rewriteComdat(), rewriteGEPAsOffset(), RewriteHeapSROALoadUser(), rewriteMaterializableInstructions(), rewritePHIs(), RewriteUsesOfClonedInstructions(), llvm::LoopAccessInfoPrinterPass::run(), llvm::LoopDataPrefetchPass::run(), llvm::SimpleLoopUnswitchPass::run(), llvm::AAEvaluator::run(), llvm::PostDominatorTreePrinterPass::run(), llvm::PrintFunctionPass::run(), llvm::InlinerPass::run(), llvm::BlockFrequencyPrinterPass::run(), llvm::AssumptionPrinterPass::run(), llvm::DominanceFrontierPrinterPass::run(), llvm::WholeProgramDevirtPass::run(), llvm::BranchProbabilityPrinterPass::run(), llvm::DominatorTreePrinterPass::run(), llvm::PredicateInfoPrinterPass::run(), llvm::DevirtSCCRepeatedPass< PassT >::run(), llvm::MemorySSAPrinterPass::run(), llvm::RegionInfoPrinterPass::run(), llvm::Float2IntPass::runImpl(), llvm::SLPVectorizerPass::runImpl(), llvm::JumpThreadingPass::runImpl(), runIPSCCP(), llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::RGPassManager::runOnFunction(), llvm::LPPassManager::runOnFunction(), llvm::FPPassManager::runOnFunction(), llvm::DetectRoundChange::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), runSCCP(), llvm::InnerLoopVectorizer::scalarizeInstruction(), scaleWeights(), selectELFSectionForGlobal(), llvm::FastISel::selectInstruction(), selectJumpTableArmEncoding(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), setCoroInfo(), llvm::BranchProbabilityInfo::setEdgeProbability(), shouldInstrumentBlock(), llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection(), shouldSpeculateInstrs(), ShrinkDemandedConstant(), simplifyAllocaArraySize(), SimplifyBSwap(), SimplifyCondBranchToCondBranch(), SimplifyNVVMIntrinsic(), simplifyOneLoop(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), sinkInstruction(), llvm::BasicBlockPass::skipBasicBlock(), llvm::FunctionPass::skipFunction(), llvm::LoopPass::skipLoop(), llvm::RegionPass::skipRegion(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), SortCallTargets(), speculatePHINodeLoads(), speculateSelectInstLoads(), llvm::ARCFrameLowering::spillCalleeSavedRegisters(), llvm::SplitBlock(), llvm::SplitBlockPredecessors(), splitCallSite(), llvm::SplitCriticalEdge(), splitGlobal(), llvm::SplitLandingPadPredecessors(), SRAGlobal(), StackMallocSizeClass(), StripSymtab(), suffixed_name_or(), SumCanReachMin(), llvm::JumpThreadingPass::ThreadEdge(), llvm::JumpThreadingPass::ThreadGuard(), TransferBlock(), tryToOptimizeStoreOfMallocToGlobal(), TryToShrinkGlobalToBoolean(), tryToUnrollLoop(), TurnSwitchRangeIntoICmp(), TypeSizeToSizeIndex(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::UnrollLoop(), llvm::UnrollRuntimeLoopRemainder(), updateOperand(), UpdatePHINodes(), llvm::orc::CompileOnDemandLayer< CompileLayerT, CompileCallbackMgr >::updatePointer(), updatePredecessorProfileMetadata(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), llvm::AMDGPULibCalls::useNative(), llvm::ValueHandleBase::ValueIsDeleted(), llvm::ValueHandleBase::ValueIsRAUWd(), Verify(), llvm::LoopVersioning::versionLoop(), viewRegionInfo(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitFMul(), llvm::InstCombiner::visitFPTrunc(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitLoadInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitTrunc(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), writeCFGToDotFile(), writeFunctionTypeMetadataRecords(), llvm::WriteIndexToFile(), 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 166 of file Value.cpp.

References use_begin(), and use_end().

Referenced by llvm::createSeparateConstOffsetFromGEPPass(), llvm::GVNExpression::Expression::dump(), getIncrmentFactorSCEV(), hasOneUse(), llvm::log2(), SpeculativelyExecuteBB(), and splitCallSite().

◆ getPointerAlignment()

unsigned Value::getPointerAlignment ( const DataLayout DL) const

Returns an alignment of the pointer value.

Returns an alignment which is either specified explicitly, e.g. via align attribute of a function argument, or guaranteed by DataLayout.

Definition at line 673 of file Value.cpp.

References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::DataLayout::getABITypeAlignment(), llvm::ConstantInt::getLimitedValue(), llvm::DataLayout::getPreferredAlignment(), llvm::DataLayout::getPrefTypeAlignment(), getType(), llvm::Type::isSized(), and llvm::LLVMContext::MD_align.

Referenced by computeKnownBits(), despeculateCountZeros(), isAligned(), and stripInBoundsOffsets().

◆ getPointerDereferenceableBytes()

unsigned 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 622 of file Value.cpp.

References assert(), llvm::ConstantInt::getLimitedValue(), getType(), llvm::DataLayout::getTypeStoreSize(), llvm::LLVMContext::MD_dereferenceable, llvm::LLVMContext::MD_dereferenceable_or_null, and llvm::AttributeList::ReturnIndex.

Referenced by isDereferenceableAndAlignedPointer(), and stripInBoundsOffsets().

◆ 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 472 of file Value.h.

References SubclassOptionalData.

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

◆ 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 245 of file Value.h.

References getContext().

Referenced by llvm::GetElementPtrInst::accumulateConstantOffset(), llvm::AliasSetTracker::add(), AddAliasScopeMetadata(), AddAlignmentAssumptions(), addArgumentReturnedAttrs(), addAssumeNonNull(), llvm::SSAUpdater::AddAvailableValue(), llvm::LandingPadInst::addClause(), llvm::AddOne(), llvm::RecurrenceDescriptor::AddReductionVar(), addStackMapLiveVars(), llvm::addStringMetadataToLoop(), llvm::IVUsers::AddUsersImpl(), adjustToPointerSize(), llvm::AMDGPUAAResult::alias(), aliasSameBasePointerGEPs(), alwaysAvailable(), llvm::VNCoercion::analyzeLoadFromClobberingLoad(), llvm::VNCoercion::analyzeLoadFromClobberingStore(), appendTypeSuffix(), ApplyX86MaskOn1BitsVec(), llvm::SelectInst::areInvalidOperands(), areInverseVectorBitmasks(), areStridedAccessesIndependent(), llvm::AtomicCmpXchgInst::AtomicCmpXchgInst(), atomicSizeSupported(), llvm::BinaryOperator::BinaryOperator(), BitCastConstantVector(), BrPHIToSelect(), buildClonedLoopBlocks(), BuildConstantFromSCEV(), buildFrameType(), buildMultiplyTree(), buildNew(), llvm::InnerLoopVectorizer::buildScalarSteps(), BuildSubAggregate(), llvm::LoopVectorizationPlanner::buildVPlans(), llvm::calculateClrEHStateNumbers(), llvm::VNCoercion::canCoerceMustAliasedValueToLoad(), llvm::canConstantFoldCallTo(), canEvaluateSExtd(), canEvaluateShiftedShift(), canEvaluateTruncated(), canEvaluateZExtd(), llvm::FastISel::canFoldAddIntoGEP(), canFoldIVIncExpr(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canonicalizeBitCastExtElt(), canonicalizeCmpWithConstant(), canonicalizeICmpBool(), llvm::canReplaceOperandWithVariable(), canRewriteGEPAsOffset(), CanShareConstantPoolEntry(), canSinkInstructions(), canTrapImpl(), llvm::CastInst::castIsValid(), castRequiresQueuePtr(), llvm::castToCStr(), CC_MipsO32_FP64(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), cheapToScalarize(), checkForNegativeOperand(), checkFunctionMemoryAccess(), llvm::FPMathOperator::classof(), llvm::ExtractValueInst::classof(), llvm::TypeFinder::clear(), clearAssumptionsOfUsers(), llvm::CloneAndPruneIntoFromInst(), cloneConstantExprWithNewAddressSpace(), llvm::AllocaInst::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(), cloneInstructionWithNewAddressSpace(), CloneLoop(), CloneLoopBlocks(), llvm::FunctionComparator::cmpBasicBlocks(), llvm::FunctionComparator::cmpConstants(), llvm::FunctionComparator::cmpOperations(), collectBitParts(), llvm::collectCmpOps(), collectInsertionElements(), collectShuffleElements(), collectSingleShuffleElements(), llvm::LoopVectorizationPlanner::collectTriviallyDeadInstructions(), combineLoadToOperationType(), combineShuffleOfSplat(), combineStoreToNewValue(), combineStoreToValueType(), CombineUAddWithOverflow(), llvm::InstCombiner::commonCastTransforms(), llvm::InstCombiner::commonIDivTransforms(), llvm::InstCombiner::commonShiftTransforms(), CompareValueComplexity(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::ObjectSizeOffsetEvaluator::compute(), computeBytesPoppedByCalleeForSRet(), computeKillSet(), computeKnownBits(), computeKnownBitsFromOperator(), computeLiveInValues(), computeLiveOutSeed(), llvm::computeMinimumValueSizes(), llvm::ComputeMultiple(), ComputeNumSignBitsImpl(), llvm::computeOverflowForUnsignedMul(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), computePointerICmp(), ComputePostOrders(), llvm::ComputeSignatureVTs(), computeUnsignedMinMaxValuesFromKnownBits(), llvm::computeUsesVAFloatArgument(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), concatenateTwoVectors(), llvm::concatenateVectors(), concatSubVector(), ConnectEpilog(), 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::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), constantFoldUser(), ConstructSSAForLoadSet(), contains(), llvm::ConvertDebugDeclareToDebugValue(), ConvertDoubleToBytes(), ConvertShiftToMul(), ConvertToSInt(), convertValue(), llvm::copyNonnullMetadata(), llvm::copyRangeMetadata(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::BinaryOperator::Create(), llvm::ConstantExprKeyType::create(), llvm::GetElementPtrInst::Create(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), CreateAdd(), llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::IRBuilder< TargetFolder >::CreateAnd(), createAndInstr(), llvm::IRBuilder< TargetFolder >::CreateAShr(), llvm::IRBuilderBase::CreateAssumption(), llvm::IRBuilderBase::CreateBinaryIntrinsic(), CreateBinOpAsGiven(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), llvm::CastInst::CreateBitOrPointerCast(), llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), llvm::IRBuilder< TargetFolder >::CreateCall(), llvm::TargetFolder::CreateCast(), createCast(), llvm::IRBuilder< TargetFolder >::CreateCast(), createCTLZIntrinsic(), llvm::createDeadArgHackingPass(), createDirectCallInst(), llvm::createEfficiencySanitizerPass(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemCpy(), llvm::IRBuilder< TargetFolder >::CreateExtractInteger(), llvm::IRBuilderBase::CreateFAddReduce(), llvm::IRBuilderBase::CreateFMulReduce(), llvm::BinaryOperator::CreateFNeg(), llvm::TargetFolder::CreateFPCast(), llvm::CastInst::CreateFPCast(), llvm::IRBuilder< TargetFolder >::CreateFPCast(), createFree(), llvm::CallInst::CreateFree(), CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), llvm::IRBuilderBase::CreateGlobalString(), llvm::InnerLoopVectorizer::createInductionVariable(), llvm::TargetFolder::CreateIntCast(), llvm::IRBuilder< TargetFolder >::CreateIntCast(), llvm::CastInst::CreateIntegerCast(), llvm::IRBuilder< TargetFolder >::CreateInvariantGroupBarrier(), llvm::IRBuilderBase::CreateInvariantStart(), llvm::IRBuilder< TargetFolder >::CreateIsNotNull(), llvm::IRBuilder< TargetFolder >::CreateIsNull(), llvm::IRBuilderBase::CreateLifetimeEnd(), llvm::IRBuilderBase::CreateLifetimeStart(), llvm::IRBuilder< TargetFolder >::CreateLShr(), createMalloc(), createMaskedBitTest(), llvm::IRBuilderBase::CreateMaskedGather(), llvm::IRBuilderBase::CreateMaskedLoad(), llvm::IRBuilderBase::CreateMaskedScatter(), llvm::IRBuilderBase::CreateMaskedStore(), createMaskInstrs(), llvm::IRBuilderBase::CreateMemCpy(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), llvm::IRBuilderBase::CreateMemMove(), createMemMoveLoop(), llvm::IRBuilderBase::CreateMemSet(), createMemSetLoop(), CreateMul(), CreateNeg(), llvm::BinaryOperator::CreateNeg(), llvm::BinaryOperator::CreateNot(), llvm::BinaryOperator::CreateNSWNeg(), llvm::BinaryOperator::CreateNUWNeg(), llvm::createObjCARCOptPass(), llvm::IRBuilder< TargetFolder >::CreateOr(), createOrdering(), llvm::InstCombiner::CreateOverflowTuple(), llvm::createPGOFuncNameVar(), createPHIsForSplitLoopExit(), llvm::TargetFolder::CreatePointerBitCastOrAddrSpaceCast(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::IRBuilder< TargetFolder >::CreatePointerBitCastOrAddrSpaceCast(), llvm::TargetFolder::CreatePointerCast(), llvm::CastInst::CreatePointerCast(), llvm::IRBuilder< TargetFolder >::CreatePointerCast(), createPopcntIntrinsic(), createPrivateGlobalForString(), createPrivateNonConstGlobalForString(), llvm::IRBuilder< TargetFolder >::CreatePtrDiff(), createRdxShuffleMask(), createReplacementInstr(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::TargetFolder::CreateSExtOrBitCast(), llvm::CastInst::CreateSExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateSExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateSExtOrTrunc(), llvm::createShadowStackGCLoweringPass(), llvm::IRBuilder< TargetFolder >::CreateShl(), llvm::createSimpleTargetReduction(), llvm::TargetFolder::CreateTruncOrBitCast(), llvm::CastInst::CreateTruncOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateTruncOrBitCast(), llvm::InnerLoopVectorizer::createVectorIntOrFpInductionPHI(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), llvm::IRBuilder< TargetFolder >::CreateVectorSplat(), createVirtualRegs(), CreateWrapper(), llvm::IRBuilder< TargetFolder >::CreateXor(), llvm::TargetFolder::CreateZExtOrBitCast(), llvm::CastInst::CreateZExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateZExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateZExtOrTrunc(), CvtFDivConstToReciprocal(), llvm::DecodePSHUFBMask(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPERMV3Mask(), llvm::DecodeVPERMVMask(), llvm::DecodeVPPERMMask(), llvm::decomposeBitTestICmp(), decomposeBitTestICmp(), decomposeSimpleLinearExpr(), llvm::DeleteDeadBlock(), deleteDeadInstruction(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), despeculateCountZeros(), detectCTLZIdiom(), determinePointerReadAttrs(), DFS(), doPromotion(), llvm::GVNExpression::Expression::dump(), eliminateDeadSwitchCases(), eliminateRecursiveTailCall(), llvm::emitBinaryFloatFnCall(), emitDebugValueComment(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), llvm::EmitGEPOffset(), llvm::AsmPrinter::EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantStruct(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::InnerLoopVectorizer::emitMinimumIterationCountCheck(), emitMissedWarning(), emitSignedInt64(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::emitStrNCpy(), llvm::PPCTargetLowering::emitTrailingFence(), llvm::emitUnaryFloatFnCall(), emitX86MaskSelect(), EmitX86Select(), llvm::ARMAsmPrinter::EmitXXStructor(), EnsureFPIntrinsicsExist(), ensurePromotedGV(), ensureValueAvailableInSuccessor(), EqualityPropUnSafe(), EraseTerminatorInstAndDCECond(), llvm::Evaluator::EvaluateBlock(), EvaluateExpression(), evaluateFCmpRelation(), evaluateGEPOffsetExpression(), evaluateICmpRelation(), EvaluateStoreInto(), 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(), extractVector(), llvm::FenceInst::FenceInst(), FindAllMemoryUses(), findArgumentCopyElisionCandidates(), llvm::FindAvailableLoadedValue(), findBaseDefiningValue(), findBaseDefiningValueOfVector(), findBasePointer(), findCommonAlignment(), findInitTrampoline(), llvm::CodeExtractor::findInputsOutputs(), llvm::FindInsertedValue(), findInsertPointAfter(), FindLIVLoopCondition(), FindLoopCounter(), findRetainForStoreStrongContraction(), llvm::findScalarElement(), findUnwindDestinations(), FitWeights(), llvm::InnerLoopVectorizer::fixFirstOrderRecurrence(), llvm::InnerLoopVectorizer::fixReduction(), fixupFPReturnAndCall(), llvm::InnerLoopVectorizer::fixupIVUsers(), llvm::AMDGPULibCalls::fold(), foldAndOrOfEqualityCmpsWithConstants(), FoldBitCast(), foldBitCastBitwiseLogic(), foldBitCastSelect(), foldConstantCastPair(), foldConstantInsEltIntoShuffle(), foldCttzCtlz(), foldICmpShlOne(), foldICmpWithMinMax(), foldIdentityShuffles(), llvm::InstCombiner::FoldItoFPtoI(), foldLogicCastConstant(), foldLogOpOfMaskedICmps(), foldOperationIntoPhiValue(), foldOperationIntoSelectOperand(), foldSelectICmpAnd(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftedShift(), FoldTwoEntryPHINode(), foldUDivNegCst(), foldUDivPow2Cst(), foldUDivShl(), foldVecTruncToExtElt(), forEachUser(), llvm::formLCSSAForInstructions(), FunctionNumber(), generateSignedDivisionCode(), generateSignedRemainderCode(), generateUnsignedDivisionCode(), genLoopLimit(), llvm::MemoryLocation::get(), llvm::ConstantAggregateZero::get(), llvm::ConstantArray::get(), llvm::ConstantVector::get(), llvm::ConstantPointerNull::get(), llvm::ConstantExpr::get(), llvm::UndefValue::get(), getAccessType(), getAddressForMemoryInput(), llvm::SITargetLowering::getAddrModeArguments(), llvm::ConstantExpr::getAddrSpaceCast(), getAdjustedPtr(), llvm::Constant::getAggregateElement(), getAISize(), llvm::MemIntrinsic::getAlignmentType(), llvm::IRTranslator::getAnalysisUsage(), GetAnyNonZeroConstInt(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), getArrayElements(), getAsConstantIndexedAddress(), llvm::ConstantExpr::getAsInstruction(), getAtomicOpAlign(), getAtomicOpSize(), getBaseType(), llvm::ConstantExpr::getBinOpAbsorber(), getBinOpsForFactorization(), llvm::ConstantExpr::getBitCast(), getBranchCondString(), llvm::getCallsiteCost(), llvm::CastInst::getCastOpcode(), getCodeAddrSpace(), llvm::ConstantExpr::getCompare(), getCompareCC(), getComparePred(), GetCompareTy(), getConstantFromPool(), GetConstantInt(), llvm::VNCoercion::getConstantLoadValueForLoad(), llvm::SelectionDAG::getConstantPool(), llvm::LazyValueInfo::getConstantRange(), llvm::LazyValueInfo::getConstantRangeOnEdge(), llvm::ExecutionEngine::getConstantValue(), llvm::BasicBlock::getContext(), llvm::Function::getContext(), llvm::IRBuilderBase::getCurrentFunctionReturnType(), llvm::Intrinsic::getDeclaration(), llvm::DemandedBits::getDemandedBits(), llvm::Argument::getDereferenceableBytes(), llvm::Argument::getDereferenceableOrNullBytes(), llvm::BitCastOperator::getDestTy(), llvm::CastInst::getDestTy(), getEdgeValueLocal(), llvm::ConstantDataSequential::getElementType(), llvm::ConstantAggregateZero::getElementValue(), llvm::UndefValue::getElementValue(), getEstimate(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getFCmp(), getFCmpValue(), llvm::ConstantExpr::getFNeg(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getFPTrunc(), getFrameType(), getFromRangeMetadata(), llvm::objcarc::GetFunctionClass(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::GVNExpression::VariableExpression::getHashValue(), llvm::GVNExpression::ConstantExpression::getHashValue(), GetHeapSROAValue(), llvm::ConstantExpr::getICmp(), llvm::getICmpValue(), getIdentityValue(), llvm::ConstantDataSequential::getImpl(), getImplicitScaleFactor(), getIncrmentFactorSCEV(), llvm::DataLayout::getIndexedOffsetInType(), getInductionVariable(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getInsertValue(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getInstructionLatency(), llvm::ConstantExpr::getIntegerCast(), llvm::ConstantExpr::getIntToPtr(), llvm::SCEVExpander::getIVIncOperand(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::InvokeInst::getLandingPadInst(), llvm::MemoryDependenceResults::getLoadLoadClobberFullWidthSize(), llvm::VNCoercion::getLoadValueForLoad(), getLogBase2Vector(), GetLoopInvariantInsertPosition(), llvm::getMallocType(), getMaskedTypeForICmpPair(), getMemCmpLoad(), getMemSetPatternValue(), getMetadataTypeOrder(), llvm::GlobalsAAResult::getModRefBehavior(), llvm::AAResults::getModRefInfo(), getName(), getNaturalGEPWithOffset(), getNaturalGEPWithType(), llvm::ConstantExpr::getNeg(), getNegativeIsTrueBoolVec(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeAttributes(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), getNoopInput(), llvm::ConstantExpr::getNot(), getNumBytes(), llvm::ConstantAggregateZero::getNumElements(), llvm::ConstantDataSequential::getNumElements(), llvm::UndefValue::getNumElements(), getOpenCLAlignment(), getOptimizationFlags(), llvm::AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(), llvm::InnerLoopVectorizer::getOrCreateTripCount(), llvm::InnerLoopVectorizer::getOrCreateVectorTripCount(), llvm::InnerLoopVectorizer::getOrCreateVectorValue(), llvm::getOrEnforceKnownAlignment(), llvm::Argument::getParamAlignment(), getParameterABIAttributes(), getParentPad(), getPointerAlignment(), llvm::GetPointerBaseWithConstantOffset(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), getPointerDereferenceableBytes(), GetPointerOperand(), getPointerOperands(), getPow(), llvm::LazyValueInfo::getPredicateAt(), llvm::getPtrStride(), llvm::ConstantExpr::getPtrToInt(), getRangeForAffineARHelper(), getReductionIntrinsic(), llvm::FastISel::getRegForGEPIndex(), llvm::FastISel::getRegForValue(), getRetComponentType(), GetRMWLibcall(), getScalarIntrinsicDeclaration(), getScalarizationOverhead(), llvm::ScalarEvolution::getSCEV(), llvm::ConstantExpr::getSelect(), getSelectCondition(), getSelectFoldableConstant(), llvm::ConstantAggregateZero::getSequentialElement(), llvm::UndefValue::getSequentialElement(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::getShuffleReduction(), llvm::ConstantExpr::getShuffleVector(), getSignature(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantExpr::getSIToFP(), llvm::MipsCCState::getSpecialCallingConvForCallee(), llvm::ConstantVector::getSplat(), llvm::ConstantDataVector::getSplat(), llvm::getSplatValue(), llvm::Constant::getSplatValue(), llvm::BitCastOperator::getSrcTy(), llvm::CastInst::getSrcTy(), llvm::SelectionDAG::getSrcValue(), llvm::SparcTargetLowering::getSRetArgSize(), llvm::InnerLoopVectorizer::getStepVector(), getStoreSizeInBytes(), llvm::getStrideFromPointer(), llvm::GetStringLength(), llvm::ConstantAggregateZero::getStructElement(), llvm::UndefValue::getStructElement(), getSuccPad(), getTargetConstantBitsFromNode(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::NVPTXTargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::X86TargetLowering::getTgtMemIntrinsic(), llvm::DenseMapInfo< SimpleValue >::getTombstoneKey(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), 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::ConstantDataSequential::getType(), llvm::ConstantDataArray::getType(), llvm::ConstantDataVector::getType(), llvm::InsertElementInst::getType(), llvm::ShuffleVectorInst::getType(), llvm::ConstantStruct::getTypeForElements(), getTypePartition(), llvm::ConstantExpr::getUIToFP(), getUnderlyingArgReg(), llvm::GetUnderlyingObject(), getUnderlyingObjectFromInt(), llvm::getUnderlyingObjectsForCodeGen(), getUniformBase(), llvm::getUniqueCastUse(), llvm::PPCTTIImpl::getUserCost(), llvm::X86TTIImpl::getUserCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), llvm::SelectionDAGBuilder::getValue(), getValueFromICmpCondition(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCallCost(), llvm::slpvectorizer::BoUpSLP::getVectorElementSize(), getVectorIntrinsicCost(), llvm::ConstantExpr::getWithOperandReplaced(), llvm::ConstantExpr::getWithOperands(), getX86MaskVec(), getX86SSEConditionCode(), llvm::ConstantExpr::getZExt(), llvm::ConstantExpr::getZExtOrBitCast(), llvm::GlobalVariable::GlobalVariable(), GlobalWasGeneratedByCompiler(), HandleByValArgument(), HandleByValArgumentInit(), llvm::ValueAsMetadata::handleDeletion(), handleMemIntrinsicPtrUse(), llvm::Constant::handleOperandChange(), llvm::ValueAsMetadata::handleRAUW(), llvm::Argument::hasByValAttr(), llvm::Argument::hasByValOrInAllocaAttr(), llvm::PHINode::hasConstantOrUndefValue(), llvm::Argument::hasInAllocaAttr(), llvm::Argument::hasNestAttr(), llvm::Argument::hasNoAliasAttr(), llvm::Argument::hasNoCaptureAttr(), llvm::Argument::hasNonNullAttr(), hasOnlyOneNonZeroIndex(), hasOnlySelectUsers(), hasOutsideLoopUser(), hasPositiveOperands(), hasProfileData(), hasSameArgumentList(), hasSameExtUse(), hasStoreUsersOnly(), llvm::Argument::hasStructRetAttr(), hasUnaryFloatFn(), hasUnsafeFPMath(), hasValueBeenRAUWed(), hasZeroSignBit(), llvm::haveNoCommonBitsSet(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::SCEVExpander::hoistIVInc(), HoistThenElseCodeToIf(), llvm::NVPTXAsmPrinter::ignoreLoc(), llvm::CompositeType::indexValid(), INITIALIZE_PASS(), INITIALIZE_PASS_WITH_OPTIONS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::ExecutionEngine::InitializeMemory(), llvm::FunctionLoweringInfo::InitializeRegForValue(), llvm::InlineFunction(), llvm::RuntimePointerChecking::insert(), insertCallRetCast(), insertCallRetPHI(), insertInteger(), insertParsePoints(), insertSinCosCall(), insertUniqueBackedgeBlock(), insertVector(), llvm::cflaa::instantiateInterfaceValue(), instrumentMaskedLoadOrStore(), instrumentMemAccess(), llvm::MemoryDependenceResults::invalidateCachedPointerInfo(), isAligned(), isAlwaysFoldable(), isAtomic(), isBroadcastShuffle(), llvm::isBytewiseValue(), isCallPromotable(), llvm::LandingPadInst::isCatch(), isCompatibleIVType(), isCompatibleReplacement(), llvm::isConsecutiveAccess(), llvm::LanaiTargetObjectFile::isConstantInSmallSection(), llvm::MipsTargetObjectFile::IsConstantInSmallSection(), llvm::IsConstantOffsetFromGlobal(), isContiguous(), llvm::isDereferenceableAndAlignedPointer(), isDivZero(), isExistingPhi(), llvm::TargetLoweringBase::isExtFree(), llvm::TargetLoweringBase::isExtLoad(), llvm::LandingPadInst::isFilter(), isFiniteNonZeroFp(), isFNEG(), llvm::InductionDescriptor::isFPInductionPHI(), llvm::IsFreeToInvert(), isFuncOrArgAttr(), isGEPFoldable(), isGEPKnownNonNull(), isHighCostExpansion(), llvm::Instruction::isIdenticalToWhenDefined(), isIgnorableInst(), isImageOrSamplerVal(), isImplicitOperandIn(), llvm::isImpliedCondition(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), IsIncrementNUW(), isIndirectBrTarget(), llvm::InductionDescriptor::isInductionPHI(), llvm::CastInst::isIntegerCast(), isIntegerLoopHeaderPHI(), isInterestingPointer(), isIntExtFree(), llvm::isKnownNeverNaN(), isKnownNonEqual(), isKnownNonNullFromDominatingCondition(), isKnownNonZero(), isKnownToBeAPowerOfTwo(), isKnownTypeIdMember(), llvm::isLegalToPromote(), isLoadConditional(), isLoadInvariantInLoop(), llvm::CastInst::isLosslessCast(), llvm::isMathLibCallNoop(), isMulPowOf2(), llvm::Constant::isNegativeZeroValue(), IsNonLocalValue(), llvm::CastInst::isNoopCast(), isNormalFp(), isNoWrap(), IsNullTerminatedString(), isObjectDereferencedInBlock(), isObjectSize(), isOnlyReachableViaThisEdge(), IsPointerOffset(), isPointerOperand(), isPointerValueDeadOnEntryToFunction(), llvm::objcarc::IsPotentialRetainableObjPtr(), isProfitableChain(), llvm::AArch64TargetLowering::isProfitableToHoist(), isPromotedInstructionLegal(), llvm::RecurrenceDescriptor::isRecurrenceInstr(), isReInterleaveMask(), isRepeatedByteSequence(), isReportingError(), isSafeAndProfitableToSinkLoad(), isSafeToEliminateVarargsCast(), llvm::isSafeToLoadUnconditionally(), llvm::Instruction::isSameOperationAs(), isSelect01(), isSExtLoad(), isShuffleEquivalentToSelect(), isShuffleExtractingFromLHS(), isSimpleEnoughPointerToCommit(), isSimpleEnoughValueToCommitHelper(), isSimpleIVUser(), isStrideMul(), llvm::ConstantDataSequential::isString(), isSupportedType(), isTruePredicate(), isUndefShift(), llvm::LoopAccessInfo::isUniform(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), isValidVisibilityForLinkage(), isVectorReductionOp(), isZero(), llvm::AArch64TargetLowering::isZExtFree(), jumpToValueSymbolTable(), likeBitCastFromVector(), LinearizeExprTree(), LLVMConstRealGetDouble(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::LoadInst::LoadInst(), llvm::log2(), lookThroughCast(), llvm::BlockAddress::lookup(), llvm::WebAssemblyMCInstLower::Lower(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), LowerAtomicCmpXchgInst(), LowerBSWAP(), llvm::CallLowering::lowerCall(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundle(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::AsmPrinter::lowerConstant(), LowerCTLZ(), LowerCTPOP(), llvm::X86CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), llvm::IntrinsicLowering::LowerIntrinsicCall(), LowerNegateToMultiply(), llvm::lowerObjectSizeCall(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::SelectionDAGBuilder::LowerStatepoint(), lowerStatepointMetaArgs(), llvm::IntrinsicLowering::LowerToByteSwap(), LowerXALUO(), makeBitReverse(), makeStatepointExplicitImpl(), mapBinOpcode(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), MarkBlocksLiveIn(), matchesOr(), matchPairwiseReductionAtLevel(), matchSelectFromAndOr(), llvm::matchSelectPattern(), matchVectorSplittingReduction(), llvm::gvn::AvailableValue::MaterializeAdjustedValue(), llvm::gvn::AvailableValueInBlock::MaterializeAdjustedValue(), maybePrintComdat(), mayLoopAccessLocation(), MergeAliasResults(), llvm::MergeBasicBlockIntoOnlyPred(), mergeConditionalStoreToAddress(), mergeEmptyReturnBlocks(), MightBeFoldableInst(), llvm::TargetTransformInfoImplBase::minRequiredElementSize(), moveUp(), llvm::InstDeleterIRStrategy::mutate(), narrowUDivURem(), needsFPFromSig(), needsRuntimeRegistrationOfSectionRange(), NegateValue(), llvm::RandomIRBuilder::newSink(), okayForPHIOfOps(), operandWithNewAddressSpaceOrCreateUndef(), operator new(), operator<<(), OptimizeAndOrXor(), OptimizeAwayTrappingUsesOfValue(), optimizeBinaryDoubleFP(), optimizeDivRem(), OptimizeEmptyGlobalCXXDtors(), OptimizeExtractBits(), OptimizeGlobalAddressOfMalloc(), optimizeIntegerToVectorInsertions(), OptimizeNoopCopyExpression(), optimizeOnceStoredGlobal(), optimizeSQRT(), optimizeUnaryDoubleFP(), optimizeVectorResize(), llvm::InnerLoopVectorizer::packScalarIntoVectorValue(), llvm::TargetLowering::ParseConstraints(), patchAndReplaceAllUsesWith(), false::LibCallsShrinkWrap::perform(), performAtomicOp(), PerformHeapAllocSRoA(), performMaskedAtomicOp(), llvm::PHITransAddr::PHITranslateWithInsertion(), PhiTypeSorterFunc(), pickOpcodeForVT(), llvm::PointerMayBeCaptured(), llvm::AMDGPUAAResult::pointsToConstantMemory(), llvm::SelectionDAGBuilder::populateCallLoweringInfo(), preassignSwiftErrorRegs(), preheader(), llvm::ARMConstantPoolValue::print(), llvm::ScalarEvolution::print(), printAsOperandImpl(), processAdd(), processAShr(), llvm::JumpThreadingPass::ProcessBranchOnXOR(), processInternalGlobal(), processOverflowIntrinsic(), processPHI(), processSDiv(), processSelect(), processSRem(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), promotedOpIsNUW(), llvm::promoteLoopAccessesToScalars(), promoteSingleBlockAlloca(), PropagateConstantsIntoArguments(), propagateMetadata(), readWideAPInt(), llvm::recognizeBSwapOrBitReverseIdiom(), ReduceSwitchRange(), llvm::DemandedBitsWrapperPass::releaseMemory(), llvm::removeAllNonTerminatorAndEHPadInstructions(), llvm::SwitchInst::removeCase(), RemoveDeadConstant(), llvm::CatchSwitchInst::removeHandler(), RemoveInstInputs(), llvm::MemoryDependenceResults::removeInstruction(), removeLifetimeIntrinsicUsers(), RemoveNonValidAttrAtIndex(), replaceAllUsesOfWithIn(), llvm::SCEVExpander::replaceCongruentIVs(), replaceDominatedUsesWith(), llvm::InstCombiner::replacedSelectWithOperand(), ReplaceFoldableUses(), ReplaceFPIntrinsicWithCall(), llvm::InstCombiner::replaceInstUsesWith(), llvm::replaceNonLocalUsesWith(), llvm::replaceSymbolicStrideSCEV(), replaceUnaryCall(), ReplaceUsesOfWith(), replaceUsesOutsideBlock(), replaceWithConstant(), reportLoadElim(), reportMayClobberedLoad(), llvm::returnTypeIsEligibleForTailCall(), reuseTableCompare(), llvm::InnerLoopVectorizer::reverseVector(), rewriteGEPAsOffset(), RewriteHeapSROALoadUser(), rewritePHIs(), rewriteSingleStoreAlloca(), RewriteUsesOfClonedInstructions(), llvm::LoopDataPrefetchPass::run(), llvm::LoadAndStorePromoter::run(), llvm::WholeProgramDevirtPass::run(), llvm::InstCombiner::run(), runIPSCCP(), runPartiallyInlineLibCalls(), runSCCP(), scalarConstantToHexString(), llvm::InnerLoopVectorizer::scalarizeInstruction(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectBitCast(), llvm::FastISel::selectCast(), llvm::FastISel::selectExtractValue(), llvm::FastISel::selectFNeg(), llvm::FastISel::selectIntrinsicCall(), selectJumpTableArmEncoding(), llvm::FastISel::selectOperator(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FunctionLoweringInfo::set(), llvm::GlobalAlias::setAliasee(), llvm::LoadInst::setAlignment(), llvm::StoreInst::setAlignment(), llvm::CallInst::setCalledFunction(), llvm::InvokeInst::setCalledFunction(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::setDest(), llvm::AtomicMemIntrinsic::setElementSizeInBytes(), llvm::PHINode::setIncomingValue(), llvm::GlobalVariable::setInitializer(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::setLength(), llvm::AtomicMemTransferInst::setSource(), llvm::MemTransferInst::setSource(), llvm::AnyMemTransferInst::setSource(), llvm::AtomicMemSetInst::setValue(), llvm::MemSetInst::setValue(), llvm::AnyMemSetInst::setValue(), shorter_filter(), llvm::AArch64TTIImpl::shouldConsiderAddressTypePromotion(), shouldConvertImpl(), llvm::HexagonTargetLowering::shouldExpandAtomicCmpXchgInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicLoadInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicLoadInIR(), llvm::ARMTargetLowering::shouldExpandAtomicLoadInIR(), llvm::SparcTargetLowering::shouldExpandAtomicRMWInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicRMWInIR(), llvm::ARMTargetLowering::shouldExpandAtomicRMWInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicStoreInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicStoreInIR(), llvm::ARMTargetLowering::shouldExpandAtomicStoreInIR(), shouldInstrumentBlock(), shouldInstrumentReadWriteFromAddress(), shouldKeepFDivF32(), shouldMergeGEPs(), shouldReorderOperands(), ShrinkDemandedConstant(), shrinkInsertElt(), shrinkSplatShuffle(), SimplifyAddInst(), simplifyAllocaArraySize(), SimplifyAndInst(), simplifyAndOfICmpsWithAdd(), simplifyAndOfICmpsWithSameOperands(), simplifyAndOrOfCmps(), simplifyAndOrOfFCmps(), simplifyAndOrOfICmpsWithConstants(), SimplifyAShrInst(), simplifyAssocCastAssoc(), SimplifyBranchOnICmpChain(), SimplifyBSwap(), SimplifyCall(), SimplifyCastInst(), simplifyDiv(), simplifyDivRem(), llvm::InstCombiner::simplifyDivRemOfSelectWithZeroOp(), SimplifyExtractElementInst(), SimplifyFAddInst(), SimplifyFCmpInst(), SimplifyFDivInst(), SimplifyFSubInst(), SimplifyGEPInst(), SimplifyICmpInst(), simplifyICmpOfBools(), simplifyICmpWithBinOp(), SimplifyInsertValueInst(), llvm::SimplifyInstruction(), SimplifyMulInst(), SimplifyNVVMIntrinsic(), SimplifyOrInst(), simplifyOrOfICmpsWithAdd(), simplifyOrOfICmpsWithSameOperands(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), SimplifyPHINode(), simplifyRelocatesOffABase(), SimplifyRightShift(), SimplifyShift(), SimplifyShlInst(), SimplifyShuffleVectorInst(), SimplifySubInst(), simplifyUnsignedRangeCheck(), simplifyX86extrq(), simplifyX86insertps(), simplifyX86insertq(), simplifyX86MaskedLoad(), simplifyX86MaskedStore(), simplifyX86movmsk(), simplifyX86muldq(), simplifyX86pack(), simplifyX86pshufb(), simplifyX86varShift(), simplifyX86vpcom(), simplifyX86vpermilvar(), simplifyX86vpermv(), SimplifyXorInst(), sink(), SinkCast(), SinkShiftAndTruncate(), skipToNextUser(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), SolveQuadraticEquation(), speculatePHINodeLoads(), SplitAddRecs(), splitCallSite(), llvm::SplitLandingPadPredecessors(), splitMergedValStore(), StackMallocSizeClass(), stripAndAccumulateInBoundsConstantOffsets(), stripAndComputeConstantOffsets(), llvm::SubOne(), SumCanReachMin(), supportedAddressingMode(), swapMayExposeCSEOpportunities(), switchToSelect(), ThreadCmpOverSelect(), TransferInstruction(), llvm::InductionDescriptor::transform(), transformToIndexedCompare(), truncateIVUse(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), tryCreateCallSitesOnOrPredicatedArgument(), tryToElideArgumentCopy(), tryToOptimizeStoreOfMallocToGlobal(), tryToReplaceWithConstant(), tryToReplaceWithConstantRange(), TryToShrinkGlobalToBoolean(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), tryToVectorizeHorReductionOrInstOperands(), tryUnmergingGEPsAcrossIndirectBr(), TurnSwitchRangeIntoICmp(), TypeSizeToSizeIndex(), underlyingObjectsAlias(), UnpackFromArgumentSlot(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::UnreachableInst::UnreachableInst(), llvm::UnrollRuntimeLoopRemainder(), UpdatePHINodes(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), upgradeAbs(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), upgradeMaskedCompare(), UpgradeMaskedLoad(), UpgradeMaskedStore(), UpgradeMaskToInt(), UpgradeX86ALIGNIntrinsics(), UpgradeX86PSLLDQIntrinsics(), UpgradeX86PSRLDQIntrinsics(), llvm::AMDGPULibCalls::useNative(), valueHasFloatPrecision(), llvm::ValueHandleBase::ValueIsDeleted(), llvm::ValueHandleBase::ValueIsRAUWd(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), Verify(), 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::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::visitFAdd(), llvm::Interpreter::visitFCmpInst(), llvm::InstCombiner::visitFCmpInst(), llvm::Interpreter::visitFPExtInst(), llvm::Interpreter::visitFPToSIInst(), llvm::Interpreter::visitFPToUIInst(), llvm::InstCombiner::visitFPTrunc(), llvm::Interpreter::visitFPTruncInst(), llvm::InstCombiner::visitFSub(), llvm::InstCombiner::visitGetElementPtrInst(), 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(), 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::InstCombiner::visitURem(), llvm::Interpreter::visitVAArgInst(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), llvm::Interpreter::visitZExtInst(), llvm::InnerLoopVectorizer::widenIntOrFpInduction(), llvm::InnerLoopVectorizer::widenPHIInstruction(), wrapConstantAsMetadata(), WriteAsOperandInternal(), WriteConstantInternal(), X86ChooseCmpImmediateOpcode(), llvm::reassociate::XorOpnd::XorOpnd(), and llvm::BasicBlock::~BasicBlock().

◆ 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 465 of file Value.h.

Referenced by alwaysAvailable(), llvm::GlobalIFunc::classof(), llvm::ConstantData::classof(), llvm::GlobalIndirectSymbol::classof(), llvm::GlobalAlias::classof(), llvm::Constant::classof(), llvm::Argument::classof(), llvm::MemoryAccess::classof(), llvm::GlobalObject::classof(), llvm::InlineAsm::classof(), llvm::MetadataAsValue::classof(), llvm::GlobalVariable::classof(), llvm::MemoryUseOrDef::classof(), llvm::ConstantInt::classof(), llvm::MemoryUse::classof(), llvm::ConstantFP::classof(), llvm::BasicBlock::classof(), llvm::MemoryDef::classof(), llvm::ConstantAggregateZero::classof(), llvm::ConstantAggregate::classof(), llvm::ConstantArray::classof(), llvm::ConstantStruct::classof(), llvm::ConstantVector::classof(), llvm::MemoryPhi::classof(), llvm::ConstantPointerNull::classof(), llvm::GlobalValue::classof(), llvm::Instruction::classof(), llvm::ConstantDataSequential::classof(), llvm::Function::classof(), llvm::ConstantDataArray::classof(), llvm::ConstantDataVector::classof(), llvm::ConstantTokenNone::classof(), llvm::BlockAddress::classof(), llvm::ConstantExpr::classof(), llvm::UndefValue::classof(), llvm::FunctionComparator::cmpConstants(), CompareValueComplexity(), deleteValue(), llvm::Constant::destroyConstant(), 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 251 of file Value.h.

References assertModuleIsMaterializedImpl(), getName(), getValueName(), HasName, replaceAllUsesWith(), replaceNonMetadataUsesWith(), replaceUsesExceptBlockAddr(), replaceUsesOutsideBlock(), setName(), setValueName(), and takeName().

Referenced by AddAliasScopeMetadata(), asmClobbersCTR(), llvm::canConstantFoldCallTo(), llvm::CloneBasicBlock(), llvm::CloneFunction(), computeFunctionSummary(), llvm::ConstantFoldCall(), llvm::NVPTXAsmPrinter::doFinalization(), llvm::FunctionImportGlobalProcessing::doImportAsDefinition(), externalize(), foldBlockIntoPredecessor(), forEachUser(), FunctionNumber(), llvm::ModuleSummaryIndex::getGlobalValueSummary(), llvm::ExecutionEngine::getMangledName(), getName(), llvm::Mangler::getNameWithPrefix(), getParentPad(), GetPointerOperand(), llvm::getSamplerName(), llvm::getSurfaceName(), llvm::getTextureName(), initSlots2BasicBlocks(), insertIfNamed(), instrumentMaskedLoadOrStore(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), makeStatepointExplicitImpl(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), maybePrintComdat(), llvm::MergeBlockIntoPredecessor(), llvm::orc::GlobalRenamer::needsRenaming(), false::operator<<(), OptimizeFunctions(), OptimizeGlobalAliases(), OptimizeGlobalVars(), llvm::LinkDiagnosticInfo::print(), llvm::ValueEnumerator::print(), llvm::MemoryPhi::print(), llvm::MIPrinter::printIRBlockReference(), llvm::MIPrinter::printIRValueReference(), printWithoutType(), readWideAPInt(), llvm::ReplaceInstWithValue(), llvm::FastISel::selectInstruction(), StackMallocSizeClass(), suffixed_name_or(), takeName(), llvm::AMDGPULibCalls::useNative(), and llvm::ValueSymbolTable::~ValueSymbolTable().

◆ hasNUses()

bool Value::hasNUses ( unsigned  N) const

Return true if this Value has exactly N users.

Definition at line 128 of file Value.cpp.

References E, N, use_begin(), and use_end().

Referenced by AddAlignmentAssumptions(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), createRdxShuffleMask(), foldSelectICmpAndOr(), hasOneUse(), and mergeConditionalStores().

◆ hasNUsesOrMore()

bool Value::hasNUsesOrMore ( unsigned  N) const

Return true if this value has N users or more.

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

Definition at line 136 of file Value.cpp.

References E, N, use_begin(), and use_end().

Referenced by foldSelectICmpAndOr(), hasMoreThanOneUseOtherThanLLVMUsed(), hasOneUse(), isLoopIncrement(), processUMulZExtIdiom(), llvm::BasicBlock::removePredecessor(), replaceConstantExprOp(), and SRAGlobal().

◆ 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 414 of file Value.h.

References E, getNumUses(), hasNUses(), hasNUsesOrMore(), I, isUsedInBasicBlock(), N, use_begin(), and use_end().

Referenced by buildMultiplyTree(), canEvaluateSExtd(), canEvaluateShifted(), CanEvaluateShuffled(), canEvaluateTruncated(), canEvaluateZExtd(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canSinkInstructions(), canTransformAccumulatorRecursion(), cheapToScalarize(), checkForNegativeOperand(), llvm::collectCmpOps(), collectInsertionElements(), collectValuesToDemote(), combineLoadToOperationType(), CombineUAddWithOverflow(), ConnectEpilog(), ConvertToSInt(), createAndInstr(), createRdxShuffleMask(), llvm::createSeparateConstOffsetFromGEPPass(), DeadPHICycle(), decomposeSimpleLinearExpr(), despeculateCountZeros(), detectLog2OfHalf(), emitGlobalConstantImpl(), findBuildAggregate(), findBuildVector(), findInitTrampolineFromAlloca(), llvm::SelectionDAGBuilder::FindMergedConditions(), FindSingleUseIdentifiedObject(), foldAndOrOfEqualityCmpsWithConstants(), foldAndToXor(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), llvm::InstCombiner::foldFMulConst(), foldICmpShlOne(), foldICmpWithMinMax(), foldInsSequenceIntoBroadcast(), foldOperationIntoPhiValue(), foldOperationIntoSelectOperand(), foldOrToXor(), foldSelectICmpAndOr(), llvm::InstCombiner::FoldShiftByConstant(), foldVecTruncToExtElt(), foldXorToXor(), getBinOpsForFactorization(), llvm::AArch64TTIImpl::getCastInstrCost(), getCompareCC(), getComparePred(), getIncrmentFactorSCEV(), llvm::SystemZTTIImpl::getMemoryOpCost(), getSelectFoldableConstant(), llvm::RecurrenceDescriptor::getSourceExtensionKind(), getTypePartition(), llvm::HexagonTTIImpl::getUserCost(), hasOutsideLoopUser(), hasSameExtUse(), llvm::FastISel::hasTrivialKill(), hasUseOtherThanLLVMUsed(), hasValueBeenRAUWed(), isAlwaysFoldable(), isBroadcastShuffle(), llvm::TargetLoweringBase::isExtLoad(), llvm::RecurrenceDescriptor::isFirstOrderRecurrence(), isFormingBranchFromSelectProfitable(), isGEPFoldable(), isKnownTypeIdMember(), llvm::RecurrenceDescriptor::isMinMaxSelectCmpPattern(), isMulPowOf2(), isOnlyReachableViaThisEdge(), llvm::AArch64TargetLowering::isProfitableToHoist(), isPromotedInstructionLegal(), isReInterleaveMask(), isSafeAndProfitableToSinkLoad(), IsSafeComputationToRemove(), LinearizeExprTree(), llvm::RecurrenceDescriptor::lookThroughAnd(), matchDeMorgansLaws(), matchSelectFromAndOr(), narrowUDivURem(), llvm::InstCombiner::OptimizePointerDifference(), preassignSwiftErrorRegs(), processUGT_ADDCST_ADD(), llvm::recognizeBSwapOrBitReverseIdiom(), removeEmptyCleanup(), replaceAllUsesOfWithIn(), replaceExtractElements(), llvm::InstCombiner::run(), shouldBeDeferred(), ShouldBreakUpSubtract(), shouldMergeGEPs(), ShrinkDemandedConstant(), simplifyAssocCastAssoc(), SimplifyBSwap(), llvm::InstCombiner::simplifyDivRemOfSelectWithZeroOp(), simplifySelectWithICmpCond(), simplifyValueKnownNonZero(), sinkAndCmp0Expression(), sinkLastInstruction(), sinkSelectOperand(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), supportedAddressingMode(), SwitchToLookupTable(), transformToIndexedCompare(), llvm::FastISel::tryToFoldLoad(), tryToSimplifyUncondBranchWithICmpInIt(), TryToSinkInstruction(), llvm::JumpThreadingPass::TryToUnfoldSelect(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), 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(), 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 482 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 487 of file Value.h.

Referenced by findInitTrampoline(), and llvm::MemorySSAUpdater::removeMemoryAccess().

◆ isSwiftError()

bool Value::isSwiftError ( ) const

◆ isUsedByMetadata()

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

Return true if there is metadata referencing this value.

Definition at line 490 of file Value.h.

References isSwiftError(), IsUsedByMD, and stripPointerCasts().

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

◆ isUsedInBasicBlock()

bool Value::isUsedInBasicBlock ( const BasicBlock BB) const

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

Definition at line 145 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 336 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 337 of file Value.h.

◆ materialized_user_begin() [1/2]

user_iterator llvm::Value::materialized_user_begin ( )
inline

Definition at line 373 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 374 of file Value.h.

◆ materialized_users() [1/2]

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

Definition at line 395 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 398 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 350 of file Value.h.

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

Referenced by readWideAPInt(), and uses().

◆ materialized_uses() [2/2]

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

Definition at line 353 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 604 of file Value.h.

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

Referenced by isBroadcastShuffle(), isCallPromotable(), llvm::CallInst::mutateFunctionType(), llvm::InvokeInst::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 3573 of file AsmWriter.cpp.

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

Referenced by AddRuntimeUnrollDisableMetaData(), llvm::DiagnosticInfoOptimizationBase::Argument::Argument(), llvm::MIRPrinter::convert(), llvm::createMemDepPrinter(), llvm::GVNExpression::Expression::dump(), llvm::ScheduleDAGInstrs::Value2SUsMap::dump(), llvm::AsmPrinter::EmitDebugThreadLocal(), llvm::AsmPrinter::EmitGlobalVariable(), llvm::VPlan::execute(), llvm::DOTGraphTraits< const Function * >::getCompleteNodeLabel(), llvm::DOTGraphTraits< const Function * >::getSimpleNodeLabel(), getSimpleNodeName(), llvm::NVPTXAsmPrinter::ignoreLoc(), llvm::AsmPrinter::lowerConstant(), patchAndReplaceAllUsesWith(), llvm::SCEV::print(), llvm::IVUsers::print(), llvm::MIPrinter::print(), llvm::AliasSet::print(), llvm::MemoryPhi::print(), llvm::ScalarEvolution::print(), llvm::GVNExpression::BasicExpression::printInternal(), llvm::GVNExpression::CallExpression::printInternal(), llvm::GVNExpression::LoadExpression::printInternal(), llvm::GVNExpression::StoreExpression::printInternal(), llvm::MIPrinter::printIRValueReference(), llvm::LazyValueInfo::printLVI(), PrintModRefResults(), PrintResults(), reportLoadElim(), reportMayClobberedLoad(), setFastFlags(), SinkInstruction(), 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 430 of file Value.cpp.

Referenced by AddReachableCodeToWorklist(), atomicSizeSupported(), buildClonedLoopBlocks(), buildMultiplyTree(), llvm::calculateClrEHStateNumbers(), changeToCall(), llvm::changeToInvokeAndSplitBasicBlock(), checkCSEInPredecessor(), CleanupConstantGlobalUsers(), llvm::CloneAndPruneIntoFromInst(), CloneLoop(), collectCallers(), combineLoadToOperationType(), CombineUAddWithOverflow(), ComputePostOrders(), ConvertShiftToMul(), ConvertToSInt(), createCast(), createClone(), llvm::createConstantPropagationPass(), llvm::createDeadArgHackingPass(), CreateGCRelocates(), llvm::createObjCARCOptPass(), createOrdering(), createRdxShuffleMask(), createResumeEntryBlock(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), CreateWrapper(), cse(), llvm::DeleteDeadBlock(), deleteDeadInstruction(), llvm::DemotePHIToStack(), despeculateCountZeros(), doPromotion(), llvm::GVNExpression::Expression::dump(), llvm::EliminateDuplicatePHINodes(), llvm::objcarc::EraseInstruction(), llvm::expandAtomicRMWToCmpXchg(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), findIBRPredecessor(), llvm::CodeExtractor::findInputsOutputs(), findPHIToPartitionLoops(), findRetainForStoreStrongContraction(), llvm::SanitizerStatReport::finish(), llvm::InnerLoopVectorizer::fixFirstOrderRecurrence(), foldBlockIntoPredecessor(), foldMallocMemset(), FoldTwoEntryPHINode(), FunctionNumber(), getArrayElements(), llvm::VNCoercion::getLoadValueForLoad(), GetLoopInvariantInsertPosition(), getOrInsertValueProfilingCall(), GetPointerOperand(), getRetComponentType(), GetRMWLibcall(), getScalarIntrinsicDeclaration(), getSignature(), getStartOrEndSlot(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), getTrueOrFalseValue(), getTypePartition(), handleNoSuspendCoroutine(), llvm::Constant::handleOperandChange(), hasName(), hasProfileData(), hasSameExtUse(), hasUnsafeFPMath(), hasZeroSignBit(), llvm::hoistRegion(), HoistThenElseCodeToIf(), INITIALIZE_PASS(), INITIALIZE_PASS_WITH_OPTIONS(), llvm::InlineFunction(), insertCallRetPHI(), llvm::MemorySSAUpdater::insertDef(), InsertRootInitializers(), instrumentMaskedLoadOrStore(), isAlwaysFoldable(), isBroadcastShuffle(), isCallPromotable(), isKnownTypeIdMember(), isOnlyReachableViaThisEdge(), isProfitableForVectorization(), isValidVisibilityForLinkage(), llvm::log2(), LowerAtomicCmpXchgInst(), LowerAtomicRMWInst(), lowerExpectIntrinsic(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerLoadRelative(), lowerSubFn(), llvm::IntrinsicLowering::LowerToByteSwap(), LowerXALUO(), makeBitReverse(), mapBinOpcode(), MarkBlocksLiveIn(), llvm::MergeBasicBlockIntoOnlyPred(), llvm::MergeBlockIntoPredecessor(), mergeCleanupPad(), mergeEmptyReturnBlocks(), mergeInlinedArrayAllocas(), llvm::InstDeleterIRStrategy::mutate(), operator<<(), llvm::LibCallSimplifier::optimizeCall(), optimizeDivRem(), OptimizeEmptyGlobalCXXDtors(), llvm::slpvectorizer::BoUpSLP::optimizeGatherSequence(), OptimizeGlobalAddressOfMalloc(), OptimizeGlobalAliases(), optimizeSQRT(), llvm::LLParser::parseTypeAtBeginning(), patchAndReplaceAllUsesWith(), performMaskedAtomicOp(), processAShr(), llvm::JumpThreadingPass::ProcessBranchOnXOR(), processCmp(), processInternalGlobal(), processOverflowIntrinsic(), processPHI(), processSDiv(), processSelect(), processSRem(), promotedOpIsNUW(), promoteSingleBlockAlloca(), PropagateConstantReturn(), PropagateConstantsIntoArguments(), propagateMetadata(), PushArgMD(), llvm::GVNHoist::rank(), llvm::removeAllNonTerminatorAndEHPadInstructions(), removeCoroEnds(), llvm::BasicBlock::removePredecessor(), llvm::removeUnwindEdge(), replaceAllUsesOfWithIn(), replaceAndRecursivelySimplifyImpl(), llvm::AMDGPULibCalls::replaceCall(), ReplaceCallWith(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::coro::replaceCoroFree(), replaceFrameSize(), llvm::InstCombiner::replaceInstUsesWith(), llvm::ReplaceInstWithValue(), ReplaceUsesOfWith(), reportLoadElim(), reportMayClobberedLoad(), llvm::BitcodeReaderValueList::resolveConstantForwardRefs(), reuseTableCompare(), rewriteGEPAsOffset(), RewriteHeapSROALoadUser(), rewritePHINodesForExitAndUnswitchedBlocks(), rewritePHIs(), rewriteSingleStoreAlloca(), llvm::LoadAndStorePromoter::run(), llvm::WholeProgramDevirtPass::run(), llvm::lto::LTO::run(), llvm::InstCombiner::run(), runImpl(), scalarizeMaskedGather(), scalarizeMaskedLoad(), selectJumpTableArmEncoding(), shouldKeepFDivF32(), simplifyAndDCEInstruction(), SimplifyLoopInst(), simplifyOneLoop(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), simplifyRelocatesOffABase(), simplifySuspendPoint(), sink(), skipToNextUser(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitCallSite(), splitGlobal(), llvm::SplitLandingPadPredecessors(), SRAGlobal(), StackMallocSizeClass(), truncateIVUse(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), tryPromoteAllocaToVector(), tryToOptimizeStoreOfMallocToGlobal(), tryToReplaceWithConstant(), tryToReplaceWithConstantRange(), TryToShrinkGlobalToBoolean(), llvm::TryToSimplifyUncondBranchFromEmptyBlock(), tryToSimplifyUncondBranchWithICmpInIt(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), tryUnmergingGEPsAcrossIndirectBr(), llvm::UnrollLoop(), llvm::UpgradeIntrinsicCall(), llvm::AMDGPULibCalls::useNative(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::ObjectSizeOffsetEvaluator::visitPHINode(), and llvm::BasicBlock::~BasicBlock().

◆ 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 434 of file Value.cpp.

Referenced by hasName().

◆ replaceUsesExceptBlockAddr()

void Value::replaceUsesExceptBlockAddr ( Value New)

replaceUsesExceptBlockAddr - 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 skips blockaddr uses.

Definition at line 459 of file Value.cpp.

References C, E, llvm::Use::getUser(), llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::insert(), llvm::Use::set(), use_begin(), and use_end().

Referenced by hasName(), and selectJumpTableArmEncoding().

◆ 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 440 of file Value.cpp.

References assert(), contains(), llvm::dyn_cast(), E, getType(), llvm::Use::getUser(), llvm::Use::set(), use_begin(), and use_end().

Referenced by createCTLZIntrinsic(), hasName(), and llvm::InstCombiner::replacedSelectWithOperand().

◆ reverseUseList()

void Value::reverseUseList ( )

Reverse the use-list.

Definition at line 730 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 286 of file Value.cpp.

References F().

Referenced by llvm::GetElementPtrInst::accumulateConstantOffset(), llvm::AllocaInst::AllocaInst(), llvm::Argument::Argument(), llvm::BinaryOperator::BinaryOperator(), buildMultiplyTree(), llvm::CastInst::CastInst(), llvm::CloneBasicBlock(), llvm::CloneFunction(), CloneInstructionInExitBlock(), llvm::CloneModule(), llvm::CmpInst::CmpInst(), createIfThenElse(), createMemMoveLoop(), llvm::InnerLoopVectorizer::createVectorizedLoopSkeleton(), llvm::FunctionImportGlobalProcessing::doImportAsDefinition(), doPromotion(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::DuplicateInstructionsInSplitBetween(), eliminateRecursiveTailCall(), llvm::InnerLoopVectorizer::emitMemRuntimeChecks(), llvm::InnerLoopVectorizer::emitSCEVChecks(), externalize(), llvm::FenceInst::FenceInst(), findInitTrampoline(), llvm::CodeExtractor::findInputsOutputs(), llvm::InnerLoopVectorizer::fixFirstOrderRecurrence(), llvm::InnerLoopVectorizer::fixupIVUsers(), foldBlockIntoPredecessor(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), forceRenaming(), FunctionNumber(), generateUnsignedDivisionCode(), getAttrFromCode(), llvm::BasicBlock::getContext(), llvm::ShuffleVectorInst::getShuffleMask(), getSignature(), hasName(), INITIALIZE_PASS(), insertDebugValues(), llvm::IRBuilderDefaultInserter::InsertHelper(), instrumentMaskedLoadOrStore(), isAlwaysFoldable(), isKnownTypeIdMember(), isOnlyReachableViaThisEdge(), llvm::ExtractElementInst::isValidOperands(), jumpToValueSymbolTable(), llvm::LoadInst::LoadInst(), llvm::IntrinsicLowering::LowerIntrinsicCall(), MakeGuardControlFlowExplicit(), makeStatepointExplicitImpl(), mayLoopAccessLocation(), NegateValue(), llvm::peelLoop(), false::LibCallsShrinkWrap::perform(), llvm::orc::raiseVisibilityOnValue(), rematerializeLiveValues(), rename(), ReplaceCallWith(), rewriteComdat(), rewriteMaterializableInstructions(), llvm::WholeProgramDevirtPass::run(), llvm::InnerLoopVectorizer::scalarizeInstruction(), selectJumpTableArmEncoding(), shouldKeepInEntry(), llvm::ShuffleVectorInst::ShuffleVectorInst(), sinkInstruction(), splitBlockIfNotFirst(), llvm::SplitLandingPadPredecessors(), StripSymtab(), SumCanReachMin(), SwitchToLookupTable(), takeName(), llvm::JumpThreadingPass::ThreadEdge(), TypeSizeToSizeIndex(), unpackLoadToAggregate(), llvm::UnrollRuntimeLoopRemainder(), llvm::UpgradeIntrinsicCall(), llvm::VAArgInst::VAArgInst(), 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 693 of file Value.h.

References assert(), and I.

Referenced by FunctionNumber(), mutateType(), and readWideAPInt().

◆ stripAndAccumulateInBoundsConstantOffsets() [1/2]

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

Accumulate offsets from stripInBoundsConstantOffsets().

Stores the resulting constant offset stripped into the APInt provided. The provided APInt will be extended or truncated as needed to be the correct bitwidth for an offset of this pointer type.

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

Definition at line 576 of file Value.cpp.

References assert(), GEP, llvm::APInt::getBitWidth(), llvm::Operator::getOpcode(), llvm::DataLayout::getPointerSizeInBits(), getType(), llvm::SmallPtrSetImpl< PtrType >::insert(), and llvm::Type::isPointerTy().

Referenced by llvm::createSeparateConstOffsetFromGEPPass(), despeculateCountZeros(), llvm::GlobalIndirectSymbol::getBaseObject(), llvm::isConsecutiveAccess(), propagateMetadata(), stripAndAccumulateInBoundsConstantOffsets(), stripInBoundsConstantOffsets(), and llvm::InstCombiner::visitGetElementPtrInst().

◆ stripAndAccumulateInBoundsConstantOffsets() [2/2]

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

Definition at line 548 of file Value.h.

References stripAndAccumulateInBoundsConstantOffsets(), 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 566 of file Value.cpp.

Referenced by getUnderlyingArgReg(), llvm::CodeExtractor::isLegalToShrinkwrapLifetimeMarkers(), llvm::FastISel::selectIntrinsicCall(), stripInBoundsConstantOffsets(), and stripPointerCastsNoFollowAliases().

◆ stripInBoundsConstantOffsets() [2/2]

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

◆ stripInBoundsOffsets() [1/2]

const Value * Value::stripInBoundsOffsets ( ) 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 618 of file Value.cpp.

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

◆ stripInBoundsOffsets() [2/2]

Value* llvm::Value::stripInBoundsOffsets ( )
inline

◆ stripPointerCasts() [1/2]

const Value * Value::stripPointerCasts ( ) const

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

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

Definition at line 558 of file Value.cpp.

Referenced by llvm::addLandingPadInfo(), llvm::calculateClrEHStateNumbers(), llvm::classifyEHPersonality(), llvm::ObjectSizeOffsetVisitor::compute(), llvm::ObjectSizeOffsetEvaluator::compute(), computePointerICmp(), ConvertDoubleToBytes(), llvm::emitBinaryFloatFnCall(), emitCalloc(), llvm::emitMemChr(), llvm::emitMemCmp(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), llvm::AsmPrinter::EmitSpecialLLVMGlobal(), llvm::emitStrCpy(), llvm::emitStrNCmp(), llvm::emitStrNCpy(), llvm::emitUnaryFloatFnCall(), enforceKnownAlignment(), llvm::Evaluator::EvaluateBlock(), llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), llvm::ExtractTypeInfo(), findArgumentCopyElisionCandidates(), llvm::FindAvailablePtrLoadStore(), findBasePointer(), llvm::findDevirtualizableCallsForTypeTest(), findInitTrampoline(), findInitTrampolineFromAlloca(), findSafeStoreForStoreStrongContraction(), findUsedValues(), getCalledFunction(), llvm::getConstantDataArrayInfo(), llvm::MemIntrinsicBase< AnyMemIntrinsic >::getDest(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), getKnownConstant(), llvm::InstrProfIncrementInst::getName(), llvm::InstrProfValueProfileInst::getName(), getOpenCLAlignment(), getParentPad(), llvm::LazyValueInfo::getPredicateAt(), llvm::CoroIdInst::getPromise(), llvm::objcarc::GetRCIdentityRoot(), llvm::objcarc::getreturnRVOperand(), llvm::AtomicMemTransferInst::getSource(), llvm::MemTransferInst::getSource(), llvm::AnyMemTransferInst::getSource(), GetStringLengthH(), getSuccPad(), getSuccState(), getUnderlyingArgReg(), hasNoAliasAttr(), llvm::InlineFunction(), instrumentMaskedLoadOrStore(), isKnownNonConstant(), isObjectSizeLessThanOrEq(), isOverwrite(), IsPointerOffset(), llvm::isSafeToLoadUnconditionally(), isUsedByMetadata(), isZero(), llvm::BlockAddress::lookup(), moveUp(), OptimizeEmptyGlobalCXXDtors(), optimizeOnceStoredGlobal(), llvm::JumpThreadingPass::ProcessBlock(), propagateMetadata(), removePartiallyOverlappedStores(), llvm::WholeProgramDevirtPass::run(), llvm::FastISel::selectPatchpoint(), simplifySuspendPoint(), llvm::Constant::stripPointerCasts(), stripPointerCasts(), transformToIndexedCompare(), llvm::InstCombiner::visitGetElementPtrInst(), and llvm::InstCombiner::visitLandingPadInst().

◆ stripPointerCasts() [2/2]

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

Definition at line 503 of file Value.h.

References stripPointerCasts(), and stripPointerCastsAndBarriers().

◆ stripPointerCastsAndBarriers() [1/2]

const Value * Value::stripPointerCastsAndBarriers ( ) const

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

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 570 of file Value.cpp.

Referenced by aliasSameBasePointerGEPs(), MergeAliasResults(), stripPointerCasts(), and stripPointerCastsAndBarriers().

◆ stripPointerCastsAndBarriers() [2/2]

Value* llvm::Value::stripPointerCastsAndBarriers ( )
inline

Definition at line 514 of file Value.h.

References stripPointerCastsAndBarriers(), and stripPointerCastsNoFollowAliases().

◆ stripPointerCastsNoFollowAliases() [1/2]

const Value * Value::stripPointerCastsNoFollowAliases ( ) const

Strip off pointer casts and all-zero GEPs.

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

Definition at line 562 of file Value.cpp.

Referenced by compareNames(), FindUsedValues(), stripPointerCastsAndBarriers(), and stripPointerCastsNoFollowAliases().

◆ stripPointerCastsNoFollowAliases() [2/2]

Value* llvm::Value::stripPointerCastsNoFollowAliases ( )
inline

Definition at line 524 of file Value.h.

References stripInBoundsConstantOffsets(), and stripPointerCastsNoFollowAliases().

◆ 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 292 of file Value.cpp.

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

Referenced by buildClonedLoopBlocks(), changeToCall(), ConvertShiftToMul(), ConvertToSInt(), createCast(), llvm::createDeadArgHackingPass(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::createShadowStackGCLoweringPass(), decomposeSimpleLinearExpr(), doPromotion(), eliminateRecursiveTailCall(), llvm::FoldBranchToCommonDest(), foldICmpShlOne(), foldICmpWithMinMax(), foldOperationIntoPhiValue(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftedShift(), FoldTwoEntryPHINode(), forceRenaming(), getBinOpsForFactorization(), llvm::VNCoercion::getLoadValueForLoad(), getMinVisibility(), getRetComponentType(), getScalarIntrinsicDeclaration(), getSignature(), getTrueOrFalseValue(), HandleInlinedEHPad(), hasName(), HoistThenElseCodeToIf(), INITIALIZE_PASS(), INITIALIZE_PASS_WITH_OPTIONS(), llvm::InlineFunction(), InsertRootInitializers(), instrumentMaskedLoadOrStore(), isGEPFoldable(), isSelect01(), isZeroLengthArray(), LowerNegateToMultiply(), llvm::MergeBlockIntoPredecessor(), OptimizeGlobalAliases(), llvm::removeUnwindEdge(), llvm::ReplaceInstWithValue(), replaceUnaryCall(), reportLoadElim(), reportMayClobberedLoad(), rewritePHIs(), setUsedInitializer(), shouldKeepFDivF32(), ShrinkDemandedConstant(), simplifyAllocaArraySize(), simplifyAssocCastAssoc(), SimplifyBSwap(), llvm::JumpThreadingPass::SimplifyPartiallyRedundantLoad(), simplifyRelocatesOffABase(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), TryToShrinkGlobalToBoolean(), unifyBitWidth(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFMul(), llvm::InstCombiner::visitGetElementPtrInst(), 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 344 of file Value.h.

References assertModuleIsMaterialized(), and materialized_use_begin().

◆ use_empty()

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

Definition at line 328 of file Value.h.

References assertModuleIsMaterialized().

Referenced by AddAliasScopeMetadata(), AddReachableCodeToWorklist(), llvm::RecurrenceDescriptor::AddReductionVar(), AddRuntimeUnrollDisableMetaData(), buildMultiplyTree(), combineLoadToOperationType(), ComputePostOrders(), contains(), ConvertToSInt(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), createCast(), llvm::createConstantPropagationPass(), llvm::createDeadArgHackingPass(), llvm::createDwarfEHPass(), llvm::createObjCARCOptPass(), DCEInstruction(), DeadPHICycle(), llvm::DeleteDeadBlock(), deleteDeadInstruction(), deleteIfDead(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), despeculateCountZeros(), llvm::Constant::destroyConstant(), llvm::NVPTXAsmPrinter::doFinalization(), llvm::AsmPrinter::doFinalization(), doPromotion(), llvm::LLVMContextImpl::dropTriviallyDeadConstantArrays(), llvm::InstCombiner::eraseInstFromFunction(), llvm::objcarc::EraseInstruction(), findInitTrampoline(), FunctionNumber(), getIncrmentFactorSCEV(), getMinVisibility(), getRetComponentType(), getScalarIntrinsicDeclaration(), getSignature(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), getTypePartition(), getUnderlyingArgReg(), hasAddressTakenAndUsed(), hasProfileData(), hasSameExtUse(), hasUseOtherThanLLVMUsed(), inlineCallsImpl(), llvm::InlineFunction(), insertCallRetPHI(), isAlwaysFoldable(), isBroadcastShuffle(), llvm::isInstructionTriviallyDead(), isLoadInvariantInLoop(), IsNonLocalValue(), isOnlyReachableViaThisEdge(), isOnlyUsedInEntryBlock(), isPromotedInstructionLegal(), isReportingError(), isSafeToEliminateVarargsCast(), isSafeToPromoteArgument(), isUsedOutsideOfDefiningBlock(), LinearizeExprTree(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerLoadRelative(), LowerXALUO(), makeStatepointExplicitImpl(), MarkBlocksLiveIn(), maybePrintComdat(), mergeConstants(), mustPreserveGV(), OptimizeAwayTrappingUsesOfLoads(), OptimizeExtractBits(), OptimizeGlobalAddressOfMalloc(), optimizeGlobalsInModule(), passingValueIsAlwaysUndefined(), patchAndReplaceAllUsesWith(), false::LibCallsShrinkWrap::perform(), performMaskedAtomicOp(), preassignSwiftErrorRegs(), predictValueUseListOrder(), processInternalGlobal(), llvm::promoteLoopAccessesToScalars(), promoteSingleBlockAlloca(), PropagateConstantsIntoArguments(), propagateMetadata(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::removeAllNonTerminatorAndEHPadInstructions(), RemoveDeadConstant(), llvm::LazyCallGraph::removeDeadFunction(), removeDeadUsersOfConstant(), removeEmptyCleanup(), llvm::MemorySSA::removeFromLookups(), llvm::MemorySSAUpdater::removeMemoryAccess(), ReplaceCallWith(), ReplaceFoldableUses(), llvm::InstCombiner::replaceInstUsesWith(), llvm::LazyCallGraph::RefSCC::replaceNodeFunction(), RewriteUsesOfClonedInstructions(), RewriteUsesOfLoadForHeapSRoA(), llvm::GlobalDCEPass::run(), llvm::InlinerPass::run(), llvm::LoadAndStorePromoter::run(), llvm::WholeProgramDevirtPass::run(), llvm::InstCombiner::run(), runImpl(), llvm::JumpThreadingPass::runImpl(), runIPSCCP(), llvm::FastISel::selectIntrinsicCall(), selectJumpTableArmEncoding(), llvm::FunctionLoweringInfo::set(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::TargetLowering::CallLoweringInfo::setCallee(), simplifyAndDCEInstruction(), llvm::InstCombiner::simplifyDivRemOfSelectWithZeroOp(), SimplifyLoopInst(), sink(), SinkCast(), SinkCmpExpression(), skipToNextUser(), AllocaSlices::SliceBuilder::SliceBuilder(), speculatePHINodeLoads(), speculateSelectInstLoads(), splitGlobal(), splitGlobals(), llvm::SplitLandingPadPredecessors(), SRAGlobal(), llvm::Function::stealArgumentListFrom(), stripDeadPrototypes(), StripSymbolNames(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), tryToElideArgumentCopy(), TryToShrinkGlobalToBoolean(), updateOperand(), useFuncSeen(), llvm::PtrUseVisitor< SliceBuilder >::visitGetElementPtrInst(), llvm::BasicBlock::~BasicBlock(), and ~Value().

◆ 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 349 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 391 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

◆ user_begin() [1/2]

user_iterator llvm::Value::user_begin ( )
inline

Definition at line 377 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

Referenced by addAllGlobalValueUsers(), areAllUsesEqual(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canPaddingBeAccessed(), canSinkInstructions(), llvm::GraphTraits< Inverse< MemoryAccess * > >::child_begin(), CleanupConstantGlobalUsers(), CleanupPointerRootUsers(), combineLoadToOperationType(), CombineUAddWithOverflow(), ConstantPropUsersOf(), ConvertToSInt(), llvm::ScalarEvolution::delinearize(), llvm::CodeExtractor::findInputsOutputs(), foldOperationIntoPhiValue(), foldSelectICmpAndOr(), llvm::AArch64TTIImpl::getCastInstrCost(), getIncrmentFactorSCEV(), llvm::getMallocType(), llvm::SystemZTTIImpl::getMemoryOpCost(), getTypePartition(), hasProfileData(), hasSameExtUse(), llvm::FastISel::hasTrivialKill(), hasUnaryFloatFn(), INITIALIZE_PASS(), llvm::isAllocaPromotable(), isBroadcastShuffle(), isIgnorableInst(), isKnownTypeIdMember(), llvm::RecurrenceDescriptor::isMinMaxSelectCmpPattern(), isReInterleaveMask(), isUsedInBasicBlock(), isZeroLengthArray(), LinearizeExprTree(), MarkBlocksLiveIn(), moveUp(), operator new(), OptimizeAwayTrappingUsesOfLoads(), OptimizeAwayTrappingUsesOfValue(), OptimizeEmptyGlobalCXXDtors(), OptimizeExtractBits(), passingValueIsAlwaysUndefined(), PerformHeapAllocSRoA(), promoteSingleBlockAlloca(), relocationViaAlloca(), llvm::Constant::removeDeadConstantUsers(), removeLifetimeIntrinsicUsers(), replaceAllUsesOfWithIn(), replaceConstantExprOp(), llvm::BitcodeReaderValueList::resolveConstantForwardRefs(), RewriteHeapSROALoadUser(), rewriteSingleStoreAlloca(), RewriteUsesOfLoadForHeapSRoA(), llvm::InstCombiner::run(), runIPSCCP(), sink(), sinkAndCmp0Expression(), SinkCast(), SinkCmpExpression(), sinkLastInstruction(), SinkShiftAndTruncate(), supportedAddressingMode(), SwitchToLookupTable(), and llvm::UpgradeCallsToIntrinsic().

◆ user_begin() [2/2]

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

Definition at line 381 of file Value.h.

References assertModuleIsMaterialized(), and materialized_user_begin().

◆ user_empty()

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

Definition at line 365 of file Value.h.

References assertModuleIsMaterialized().

Referenced by getIncrmentFactorSCEV(), and INITIALIZE_PASS().

◆ 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 386 of file Value.h.

◆ users() [1/2]

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

Definition at line 401 of file Value.h.

References assertModuleIsMaterialized(), and materialized_users().

Referenced by addAllGlobalValueUsers(), addNoRecurseAttrsTopDown(), llvm::RecurrenceDescriptor::AddReductionVar(), llvm::InstCombineWorklist::AddUsersToWorkList(), allCallersPassInValidPointerForArgument(), AllGlobalLoadUsesSimpleEnoughForHeapSRA(), allNonInstructionUsersCanBeMadeInstructions(), allUsersAreInFunction(), allUsersAreInFunctions(), AllUsesOfLoadedValueWillTrapIfNull(), AllUsesOfValueWillTrapIfNull(), AlmostDeadIV(), alwaysAvailable(), BlockIsSimpleEnoughToThreadThrough(), buildMultiplyTree(), llvm::calculateClrEHStateNumbers(), calculateCXXStateNumbers(), calculateSEHStateNumbers(), llvm::canTrackGlobalVariableInterprocedurally(), llvm::ARMTargetLowering::CCAssignFnForReturn(), ChangeCalleesToFastCall(), cheapToScalarize(), clearAssumptionsOfUsers(), llvm::CloneAndPruneIntoFromInst(), cloneConstantExprWithNewAddressSpace(), collectCallers(), combineLoadToOperationType(), completeEphemeralValues(), ComputePostOrders(), createCast(), llvm::createConstantPropagationPass(), llvm::createObjCARCOptPass(), llvm::createSeparateConstOffsetFromGEPPass(), detectCTLZIdiom(), detectPopcountIdiom(), llvm::InstCombiner::dominatesAllUses(), doPromotion(), llvm::CodeExtractor::findAllocas(), llvm::FindDbgAddrUses(), findDbgUsers(), llvm::findDbgValues(), findIBRPredecessor(), findInitTrampoline(), findInitTrampolineFromAlloca(), llvm::CodeExtractor::findInputsOutputs(), findRetainForStoreStrongContraction(), FindSingleUseIdentifiedObject(), llvm::InnerLoopVectorizer::fixupIVUsers(), foldOperationIntoPhiValue(), foldSelectICmpAndOr(), getCleanupRetUnwindDest(), getFirstNonAllocaInTheEntryBlock(), getIncrmentFactorSCEV(), getInductionVariable(), GetLoopInvariantInsertPosition(), llvm::HexagonTargetObjectFile::getLutUsedFunction(), llvm::GlobalsAAResult::getModRefBehavior(), getModuleFromVal(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeAttributes(), getNumGlobalVariableUses(), getParentPad(), getPreferredExtendForValue(), getRangeForAffineARHelper(), llvm::StatepointBase< Function, Instruction, Value, CallSite >::getRelocates(), getSignature(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), getTypePartition(), llvm::getUniqueCastUse(), getUnwindDestToken(), getUnwindDestTokenHelper(), GlobalUsersSafeToSRA(), hasBranchUse(), hasExceptionPointerOrCodeUser(), hasLifetimeMarkers(), hasOnlySelectUsers(), hasOutsideLoopUser(), hasProfileData(), hasSameExtUse(), hasStoreUsersOnly(), hasUsesOutsideLoop(), hasZeroSignBit(), INITIALIZE_PASS(), insertSinCosCall(), llvm::isAllocaPromotable(), isAllocSiteRemovable(), isBroadcastShuffle(), isCallPromotable(), llvm::Constant::isConstantUsed(), isContiguous(), llvm::Function::isDefTriviallyDead(), isEmptyFunction(), isEphemeralValueOf(), llvm::RecurrenceDescriptor::isFirstOrderRecurrence(), isFuncOrArgAttr(), isGOTEquivalentCandidate(), isHighCostExpansion(), isIgnorableInst(), isKnownNonNullFromDominatingCondition(), isLoadInvariantInLoop(), isLoopIncrement(), isNotUsedInLoop(), isOnlyUsedInEntryBlock(), isOnlyUsedInEqualityComparison(), llvm::isOnlyUsedInZeroEqualityComparison(), llvm::isOverflowIntrinsicNoWrap(), isPointerValueDeadOnEntryToFunction(), isProfitableChain(), isSafeAndProfitableToSinkLoad(), llvm::TargetFrameLowering::isSafeForNoCSROpt(), isSafePHIToSpeculate(), isSafeSelectToSpeculate(), isSafeSROAElementUse(), llvm::isSafeToDestroyConstant(), isTargetConstant(), isUsedByLifetimeMarker(), isUsedOutsideOfDefiningBlock(), IsUserOfGlobalSafeForSRA(), isVectorReductionOp(), LoadUsesSimpleEnoughForHeapSRA(), llvm::log2(), makeAllConstantUsesInstructions(), mapBinOpcode(), MarkBlocksLiveIn(), mayLoopAccessLocation(), mergeInlinedArrayAllocas(), moveSpillUsesAfterCoroBegin(), moveUp(), llvm::InnerLoopVectorizer::needsScalarInduction(), NegateValue(), okayForPHIOfOps(), OnlyUsedBy(), llvm::onlyUsedByLifetimeMarkers(), optimizeUnaryDoubleFP(), performMaskedAtomicOp(), llvm::LazyValueInfo::printLVI(), llvm::AlignmentFromAssumptionsPass::processAssumption(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), llvm::programUndefinedIfFullPoison(), llvm::promoteLoopAccessesToScalars(), promoteSingleBlockAlloca(), PushDefUseChildren(), pushIVUsers(), llvm::GVNHoist::rank(), relocationViaAlloca(), llvm::safestack::StackColoring::removeAllMarkers(), RemoveInstInputs(), RemoveNestAttribute(), replaceAllUsesOfWithIn(), replaceAndRecursivelySimplifyImpl(), llvm::coro::replaceCoroFree(), replaceExtractElements(), ReplaceUsesOfWith(), reportMayClobberedLoad(), rewriteNonInstructionUses(), runImpl(), llvm::StackProtector::runOnFunction(), setCannotDuplicate(), shouldBeDeferred(), llvm::AArch64TTIImpl::shouldConsiderAddressTypePromotion(), shouldSpeculateInstrs(), simplifyAllocaArraySize(), simplifyAndDCEInstruction(), SimplifyLoopInst(), simplifyRelocatesOffABase(), sinkAndCmp0Expression(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::Solve(), splitGlobal(), swapMayExposeCSEOpportunities(), SwitchToLookupTable(), truncateIVUse(), tryPromoteAllocaToVector(), tryToElideArgumentCopy(), TryToShrinkGlobalToBoolean(), tryUnmergingGEPsAcrossIndirectBr(), usedInGlobalVarDef(), usedInOneFunc(), useFuncSeen(), ValueIsOnlyUsedLocallyOrStoredToOneGlobal(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), llvm::MemorySSA::verifyDomination(), llvm::LoopVersioning::versionLoop(), llvm::InstCombiner::visitShuffleVectorInst(), and ~Value().

◆ users() [2/2]

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

Definition at line 405 of file Value.h.

References assertModuleIsMaterialized(), and materialized_users().

◆ uses() [1/2]

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

Definition at line 356 of file Value.h.

References assertModuleIsMaterialized(), and materialized_uses().

Referenced by addIntrinsicToSummary(), llvm::IVUsers::AddUsersImpl(), AllUsesDominatedByBlock(), analyzeGlobalAux(), llvm::calculateClrEHStateNumbers(), canFoldInAddressingMode(), canFoldIVIncExpr(), canRewriteGEPAsOffset(), llvm::createDeadArgHackingPass(), determinePointerReadAttrs(), llvm::GVNExpression::Expression::dump(), llvm::detail::PtrUseVisitorBase::enqueueUsers(), FindAllMemoryUses(), findCallsAtConstantOffset(), llvm::findDevirtualizableCallsForTypeCheckedLoad(), llvm::findDevirtualizableCallsForTypeTest(), findLoadCallsAtConstantOffset(), FindUses(), llvm::formLCSSAForInstructions(), FunctionNumber(), genLoopLimit(), GetCaseResults(), getIncrmentFactorSCEV(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), llvm::GlobalsAAResult::getModRefBehavior(), getParentPad(), getRetComponentType(), getStartOrEndSlot(), llvm::Function::hasAddressTaken(), hasSameExtUse(), isSafeToPromoteArgument(), IsStoredObjCPointer(), llvm::Instruction::isUsedOutsideOfBlock(), llvm::AArch64TargetLowering::isZExtFree(), llvm::PredicateInfoClasses::ValueDFS_Compare::localComesBefore(), llvm::LowerDbgDeclare(), llvm::LoopInfo::movementPreservesLCSSAForm(), NewGVN::ValueDFS::operator<(), operator<<(), llvm::PointerMayBeCaptured(), predictValueUseListOrderImpl(), llvm::ValueEnumerator::print(), promoteArguments(), PropagateConstantsIntoArguments(), PushArgMD(), sinkInstruction(), llvm::InnerLoopVectorizer::sinkScalarOperands(), transformToIndexedCompare(), truncateIVUse(), tryToReplaceWithConstantRange(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), llvm::MemorySSA::verifyDomination(), and llvm::sroa::AllocaSliceRewriter::visit().

◆ uses() [2/2]

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

Definition at line 360 of file Value.h.

References assertModuleIsMaterialized(), and materialized_uses().

Friends And Related Function Documentation

◆ ValueAsMetadata

friend class ValueAsMetadata
friend

Definition at line 79 of file Value.h.

◆ ValueHandleBase

friend class ValueHandleBase
friend

Definition at line 80 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 119 of file Value.h.

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

◆ IsUsedByMD

unsigned llvm::Value::IsUsedByMD
protected

◆ 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 595 of file Value.h.

Referenced by getAttrFromCode().

◆ 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 91 of file Value.h.

Referenced by llvm::LandingPadInst::addClause(), llvm::SelectInst::areInvalidOperands(), llvm::BinaryConstantExpr::BinaryConstantExpr(), clearSubclassOptionalData(), llvm::Instruction::clone(), llvm::GetElementPtrConstantExpr::Create(), llvm::ConstantExprKeyType::create(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CallInst::CreateFree(), llvm::FenceInst::FenceInst(), llvm::ConstantExpr::getAsInstruction(), llvm::FPMathOperator::getFastMathFlags(), llvm::GEPOperator::getInRangeIndex(), llvm::InvokeInst::getLandingPadInst(), getRawSubclassOptionalData(), llvm::ShuffleVectorInst::getShuffleMask(), 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::PossiblyExactOperator::isExact(), llvm::FPMathOperator::isFast(), llvm::Instruction::isIdenticalTo(), llvm::CmpInst::isImpliedFalseByMatchingCmp(), llvm::GEPOperator::isInBounds(), llvm::SwitchInst::removeCase(), and llvm::UnreachableInst::UnreachableInst().


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