|
LLVM
10.0.0
|
Wrapper class representing virtual and physical registers. More...
#include "llvm/CodeGen/Register.h"
Static Public Member Functions | |
| static bool | isStackSlot (unsigned Reg) |
| isStackSlot - Sometimes it is useful the be able to store a non-negative frame index in a variable that normally holds a register. More... | |
| static int | stackSlot2Index (unsigned Reg) |
| Compute the frame index from a register value representing a stack slot. More... | |
| static unsigned | index2StackSlot (int FI) |
| Convert a non-negative frame index to a stack slot register value. More... | |
| static bool | isPhysicalRegister (unsigned Reg) |
| Return true if the specified register number is in the physical register namespace. More... | |
| static bool | isVirtualRegister (unsigned Reg) |
| Return true if the specified register number is in the virtual register namespace. More... | |
| static unsigned | virtReg2Index (unsigned Reg) |
| Convert a virtual register number to a 0-based index. More... | |
| static unsigned | index2VirtReg (unsigned Index) |
| Convert a 0-based index to a virtual register number. More... | |
Wrapper class representing virtual and physical registers.
Should be passed by value.
Definition at line 19 of file Register.h.
|
inline |
Definition at line 23 of file Register.h.
Referenced by llvm::HexagonMCChecker::reportBranchErrors().
|
inline |
Definition at line 24 of file Register.h.
|
inline |
Definition at line 109 of file Register.h.
Referenced by llvm::VirtRegMap::assignVirt2Phys(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::VirtRegMap::clearVirt(), llvm::LiveIntervals::createEmptyInterval(), llvm::DenseMapInfo< Register >::getHashValue(), llvm::LiveIntervals::getInterval(), llvm::VirtRegMap::getPhys(), llvm::VirtRegMap::getPreSplitReg(), llvm::MachineRegisterInfo::getRegAllocationHint(), llvm::MachineRegisterInfo::getRegClass(), llvm::VirtRegMap::getStackSlot(), llvm::LiveIntervals::hasInterval(), llvm::VirtRegMap::isAssignedReg(), llvm::DenseMapInfo< Register >::isEqual(), llvm::MachineRegisterInfo::isReserved(), and llvm::VirtRegMap::setIsSplitFromReg().
|
inlinestatic |
Convert a non-negative frame index to a stack slot register value.
Definition at line 56 of file Register.h.
References assert().
Referenced by llvm::LiveStacks::getOrCreateInterval(), and llvm::rdf::PhysicalRegisterInfo::getRegMaskId().
Convert a 0-based index to a virtual register number.
This is the inverse operation of VirtReg2IndexFunctor below.
Definition at line 83 of file Register.h.
Referenced by llvm::LiveIntervals::addKillFlags(), llvm::LiveVariables::addNewBlock(), llvm::calculateSpillWeightsAndHints(), llvm::MachineRegisterInfo::clearVirtRegs(), computeWeight(), llvm::MIRPrinter::convert(), llvm::MachineRegisterInfo::createIncompleteVirtualRegister(), findStartOfTree(), llvm::getLiveRegMap(), llvm::getLiveRegs(), getOpenCLAlignment(), hasArgumentDef(), llvm::RegAllocBase::init(), INITIALIZE_PASS(), isCrossCopy(), isDebug(), isSSA(), llvm::VirtRegMap::print(), llvm::LiveIntervals::print(), llvm::GCNRPTracker::printLiveRegs(), llvm::printLivesAt(), llvm::LiveIntervals::releaseMemory(), llvm::InstructionSelect::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), subRangeLiveAt(), usedAsAddr(), and llvm::MachineRegisterInfo::verifyUseLists().
|
inline |
Return true if the specified register number is in the physical register namespace.
Definition at line 95 of file Register.h.
References isPhysicalRegister().
Referenced by llvm::LiveRegUnits::accumulateUsedDefed(), llvm::InstrEmitter::EmitDbgLabel(), llvm::SIInstrInfo::expandMovDPP64(), getOModValue(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), isCoalescable(), isIdentityValue(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::AMDGPULegalizerInfo::loadInputValue(), llvm::PeelSingleBlockLoop(), llvm::MachineInstr::setPhysRegsDeadExcept(), and tryToFoldACImm().
Return true if the specified register number is in the physical register namespace.
Definition at line 63 of file Register.h.
References llvm::MCRegister::isPhysicalRegister().
Referenced by addDefsUsesToList(), llvm::ARMBaseInstrInfo::AddDReg(), llvm::DwarfExpression::addMachineReg(), addRegAndItsAliases(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), addSegmentsWithValNo(), AddSubReg(), addToListsIfDependent(), llvm::AnalyzePhysRegInBundle(), llvm::LiveRangeEdit::anyRematerializable(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::VirtRegMap::assignVirt2Phys(), llvm::biasPhysReg(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::calculateDbgEntityHistory(), canCompareBeNewValueJump(), canFoldCopy(), canFoldIntoSelect(), llvm::X86InstrInfo::classifyLEAReg(), llvm::MachineInstr::clearRegisterKills(), collectCallSiteParameters(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::constrainSelectedInstRegOperands(), llvm::TargetRegisterClass::contains(), ConvertDoubleToBytes(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), createBBSelectReg(), llvm::createSIPreAllocateWWMRegsPass(), definesFullReg(), llvm::X86InstrInfo::describeLoadedValue(), llvm::RegScavenger::enterBasicBlockEnd(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::HexagonEvaluator::evaluate(), llvm::InstructionSelector::executeMatchTable(), llvm::HexagonBlockRanges::expandToSubRegs(), llvm::finalizeBundle(), findHoistingInsertPosAndDeps(), findOnlyInterestingUse(), llvm::MachineInstr::findRegisterDefOperandIdx(), findSingleRegDef(), llvm::CoalescerPair::flip(), llvm::SIInstrInfo::FoldImmediate(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldVGPRCopyIntoRegSequence(), llvm::RegScavenger::forward(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::rdf::PhysicalRegisterInfo::getAliasSet(), llvm::RegBankSelect::getAnalysisUsage(), llvm::BitTracker::MachineEvaluator::getCell(), llvm::getConstantVRegValWithLookThrough(), getDataDeps(), getDwarfRegNum(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::RegisterClassInfo::getLastCalleeSavedAlias(), getMappedReg(), llvm::TargetRegisterInfo::getMinimalPhysRegClass(), llvm::RegisterBankInfo::getMinimalPhysRegClass(), getMopState(), getNewSource(), getNewValueJumpOpcode(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::HexagonEvaluator::getPhysRegBitWidth(), llvm::BitTracker::MachineEvaluator::getPhysRegBitWidth(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::ARMBaseRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), llvm::RegisterBankInfo::getRegBank(), llvm::BitTracker::MachineEvaluator::getRegBitWidth(), getRegisterName(), llvm::TargetRegisterInfo::getRegSizeInBits(), llvm::getRegState(), getRegUnits(), getSubRegForIndex(), llvm::X86InstrInfo::getUndefRegClearance(), llvm::LiveVariables::HandleVirtRegDef(), llvm::VirtRegMap::hasKnownPreference(), hasUseAfterLoop(), INITIALIZE_PASS(), instAccessReg(), InstructionStoresToFI(), llvm::rdf::CopyPropagation::interpretAsCopy(), isAmbiguous(), llvm::TargetRegisterInfo::isCalleeSavedPhysReg(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), llvm::CoalescerPair::isCoalescable(), isCoalescable(), llvm::MachineRegisterInfo::isConstantPhysReg(), isCopyFeedingInvariantStore(), isCopyToReg(), isCrossCopy(), llvm::HexagonInstrInfo::isDependent(), isEvenReg(), isIdenticalOp(), isImplicitlyDef(), isKilled(), isLocalCopy(), isPhysical(), llvm::MachineOperand::isRenamable(), isSafeToMove(), llvm::SITargetLowering::isSDNodeSourceOfDivergence(), isSubRegOf(), isTerminalReg(), llvm::isTriviallyDead(), llvm::SMSchedule::isValidSchedule(), isVirtualRegisterOperand(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), loadRegPairFromStackSlot(), llvm::ARMCallLowering::lowerCall(), llvm::rdf::DataFlowGraph::makeRegRef(), llvm::CombinerHelper::matchCombineCopy(), matchSwap(), MIIsInTerminatorSequence(), moveAndTeeForMultiUse(), llvm::SIInstrInfo::moveToVALU(), performSink(), llvm::phys_regs_and_masks(), llvm::LiveIntervals::print(), llvm::MachineOperand::print(), llvm::ARMAsmPrinter::printOperand(), llvm::recomputeLivenessFlags(), llvm::MachineRegisterInfo::replaceRegWith(), llvm::GenericScheduler::reschedulePhysReg(), llvm::rdf::Liveness::resetKills(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::MachineOperand::setIsRenamable(), llvm::CoalescerPair::setRegisters(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::SystemZRegisterInfo::shouldCoalesce(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::LiveDebugVariables::splitRegister(), llvm::LivePhysRegs::stepForward(), storeRegPairToStackSlot(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::MachineInstr::substituteRegister(), unstackifyVRegsUsedInSplitBB(), llvm::LiveIntervals::HMEditor::updateAllRanges(), UpdateOperandRegClass(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), llvm::SIInstrInfo::verifyInstruction(), and llvm::VirtRegAuxInfo::weightCalcHelper().
isStackSlot - Sometimes it is useful the be able to store a non-negative frame index in a variable that normally holds a register.
isStackSlot() returns true if Reg is in the range used for stack slots.
Note that isVirtualRegister() and isPhysicalRegister() cannot handle stack slots, so if a variable may contains a stack slot, always check isStackSlot() first.
Definition at line 45 of file Register.h.
References llvm::MCRegister::isStackSlot().
Referenced by isFullUndefDef(), isLoadStoreThatCanHandleDisplacement(), llvm::rdf::PhysicalRegisterInfo::isRegMaskId(), isVirtualRegister(), llvm::printReg(), and stackSlot2Index().
|
inline |
Definition at line 115 of file Register.h.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), findExecCopy(), llvm::SIInstrInfo::getAddNoCarry(), getComparePred(), llvm::VirtRegMap::hasPreferredPhys(), isCoalescable(), isLiveOut(), llvm::MachineInstr::isUndefDebugValue(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::AMDGPULegalizerInfo::loadInputValue(), llvm::LegalizerHelper::lowerReadRegister(), llvm::LegalizerHelper::lowerShuffleVector(), llvm::SIRegisterInfo::restoreSGPR(), and llvm::SIRegisterInfo::spillSGPR().
|
inline |
Return true if the specified register number is in the virtual register namespace.
Definition at line 89 of file Register.h.
References isVirtualRegister().
Referenced by llvm::VirtRegMap::assignVirt2Phys(), llvm::VirtRegMap::assignVirt2StackSlot(), attemptDebugCopyProp(), llvm::VirtRegMap::clearVirt(), llvm::GISelKnownBits::computeKnownBitsImpl(), llvm::GISelKnownBits::computeNumSignBits(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::SIInstrInfo::expandMovDPP64(), llvm::SIInstrInfo::foldMemoryOperandImpl(), llvm::VirtRegMap::getPhys(), llvm::MachineRegisterInfo::getRegAllocationHint(), llvm::MachineRegisterInfo::getSimpleHint(), llvm::VirtRegMap::getStackSlot(), getUnderlyingArgRegs(), llvm::VirtRegMap::hasPreferredPhys(), isCoalescable(), isDefInSubRange(), llvm::TargetRegisterInfo::regsOverlap(), llvm::MachineRegisterInfo::shouldTrackSubRegLiveness(), llvm::MachineOperand::substVirtReg(), llvm::LegalizationArtifactCombiner::tryCombineInstruction(), and tryToFoldACImm().
Return true if the specified register number is in the virtual register namespace.
Definition at line 69 of file Register.h.
References assert(), and isStackSlot().
Referenced by llvm::RegsForValue::AddInlineAsmOperands(), llvm::LiveVariables::addNewBlock(), llvm::MachineRegisterInfo::addRegAllocationHint(), llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), addSegmentsWithValNo(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::RegisterOperands::adjustLaneLiveness(), llvm::GCNDownwardRPTracker::advanceToNext(), llvm::RegAllocBase::allocatePhysRegs(), allPhiOperandsUndefined(), atomicReadDroppedOnZero(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::calculateDbgEntityHistory(), canClobberPhysRegDefs(), canCombine(), canFoldCopy(), canFoldIntoCSel(), canFoldIntoSelect(), CheckForPhysRegDependency(), llvm::X86InstrInfo::classifyLEAReg(), collectVirtualRegUses(), llvm::ScheduleDAGMILive::collectVRegUses(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), computeBranchTargetAndInversion(), llvm::ScheduleDAGMILive::computeCyclicCriticalPath(), llvm::HexagonBlockRanges::computeDeadMap(), computeLiveOuts(), llvm::ScheduleDAGSDNodes::computeOperandLatency(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::LiveInterval::computeSubRangeUndefs(), llvm::constrainOperandRegClass(), llvm::FastISel::constrainOperandRegClass(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), copyHint(), llvm::WebAssemblyInstrInfo::copyPhysReg(), createBBSelectReg(), llvm::createCopyConstrainDAGMutation(), llvm::createGreedyRegisterAllocator(), llvm::createR600ISelDag(), llvm::createSIWholeQuadModePass(), definesFullReg(), dominatesAllUsesOf(), dumpMachineInstrRangeWithSlotIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::InstrEmitter::EmitDbgLabel(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::ThumbRegisterInfo::emitLoadConstPool(), emitThumbRegPlusImmInReg(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::HexagonEvaluator::evaluate(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::HexagonBlockRanges::expandToSubRegs(), llvm::FastISel::fastEmitInst_extractsubreg(), llvm::SIRegisterInfo::findReachingDef(), findSinkableLocalRegDef(), findSRegBaseAndIndex(), findSurvivorBackwards(), llvm::SIInstrInfo::FoldImmediate(), foldImmediates(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), genFusedMultiply(), genMaddR(), getCallTargetRegOpnd(), llvm::BitTracker::MachineEvaluator::getCell(), llvm::RegsForValue::getCopyFromRegs(), getCopyRegClasses(), llvm::PPCInstrInfo::getDefMIPostRA(), getDefRegMask(), getDepthOfOptCmov(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), llvm::MachineInstrExpressionTrait::getHashValue(), getImmOrMaterializedImm(), llvm::R600InstrInfo::getIndirectIndexBegin(), getLanesWithProperty(), getLiveLanesAt(), getLiveRange(), getMappedReg(), llvm::MachineRegisterInfo::getMaxLaneMaskForVReg(), getMopState(), getNewSource(), getOModValue(), llvm::PPCInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), llvm::SIRegisterInfo::getPhysRegClass(), llvm::TargetRegisterInfo::getRegAllocationHints(), llvm::MachineRegisterInfo::getRegAllocationHints(), llvm::BitTracker::MachineEvaluator::getRegBitWidth(), llvm::SIRegisterInfo::getRegClassForReg(), llvm::RegScavenger::getRegsAvailable(), getRegsUsedByPHIs(), llvm::MachineRegisterInfo::getType(), getUsedRegMask(), llvm::LiveVariables::getVarInfo(), llvm::getVRegSubRegDef(), llvm::LiveVariables::HandleVirtRegDef(), llvm::VirtRegMap::hasKnownPreference(), hasOnlyLiveInOpers(), hasOnlyLiveOutUses(), llvm::TargetInstrInfo::hasReassociableOperands(), hasUseAfterLoop(), hasVectorOperands(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::RegPressureTracker::initLiveThru(), instAccessReg(), isCallerPreservedOrConstPhysReg(), llvm::WebAssembly::isChild(), isCoalescable(), isCopyFeedingInvariantStore(), isCrossCopy(), isCVTAToLocalCombinationCandidate(), isDebug(), isDefBetween(), isDefInSubRange(), isEFLAGSLive(), llvm::isEqual(), isFPR64(), isFullCopyOf(), llvm::MachineInstr::isIdenticalTo(), isImplicitOperandIn(), isInvariantStore(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::R600InstrInfo::isLegalToSplitMBBAt(), isLoadStoreThatCanHandleDisplacement(), isNopCopy(), isPhysicalRegCopy(), llvm::R600RegisterInfo::isPhysRegLiveAcrossClauses(), isPlainlyKilled(), isRematerializable(), llvm::SIRegisterInfo::isSGPRReg(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isUncheckedLoadOrStoreOpcode(), isVirtual(), isVirtualRegisterOperand(), isVRegCompatibleReg(), llvm::SIInstrInfo::legalizeOperands(), llvm::Mips16InstrInfo::loadImmediate(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::TargetRegisterInfo::lookThruCopyLike(), MatchingStackOffset(), matchSwap(), llvm::BitTracker::RegisterCell::meet(), llvm::SIInstrInfo::moveToVALU(), needsStackFrame(), oneUseDominatesOtherUses(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), optimizeVcndVcmpPair(), llvm::SMSchedule::orderDependence(), llvm::MachineOperand::print(), llvm::printReg(), llvm::printVRegOrUnit(), llvm::ARMBaseInstrInfo::produceSameValue(), profitImm(), propagateLocalCopies(), llvm::PSetIterator::PSetIterator(), pushDepHeight(), llvm::BitTracker::MachineEvaluator::putCell(), llvm::R600InstrInfo::readsLDSSrcReg(), llvm::TargetInstrInfo::reassociateOps(), llvm::GCNUpwardRPTracker::recede(), llvm::RegPressureTracker::recede(), regIsPICBase(), llvm::WebAssemblyAsmPrinter::regToString(), llvm::R600SchedStrategy::releaseBottomNode(), removeCopies(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::LiveIntervals::repairIntervalsInRange(), rescheduleCanonically(), llvm::rewriteT2FrameIndex(), llvm::InstructionSelect::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), scavengeFrameVirtualRegsInBlock(), llvm::RegScavenger::scavengeRegister(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::MachineRegisterInfo::setRegAllocationHint(), llvm::CoalescerPair::setRegisters(), llvm::SIInstrInfo::shouldClusterMemOps(), shrinkScalarLogicOp(), llvm::LiveIntervals::shrinkToUses(), llvm::SIScheduleBlockScheduler::SIScheduleBlockScheduler(), llvm::LiveDebugVariables::splitRegister(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), stripValuesNotDefiningMask(), swapMIOperands(), tryChangeVGPRtoSGPRinCopy(), tryFoldInst(), tryToElideArgumentCopy(), tryToFoldACImm(), llvm::LiveIntervals::HMEditor::updateAllRanges(), updateOperandRegConstraints(), updatePhysDepsDownwards(), llvm::ScheduleDAGMILive::updatePressureDiffs(), llvm::ARMBaseRegisterInfo::updateRegAllocHint(), usedAsAddr(), llvm::SIInstrInfo::usesConstantBus(), llvm::MachineTraceMetrics::Ensemble::verify(), llvm::MachineFunction::verify(), llvm::SIInstrInfo::verifyInstruction(), virtReg2Index(), VisitGlobalVariableForEmission(), and llvm::VirtRegAuxInfo::weightCalcHelper().
|
inline |
Definition at line 111 of file Register.h.
|
inline |
Definition at line 105 of file Register.h.
Definition at line 121 of file Register.h.
|
inline |
Definition at line 123 of file Register.h.
References llvm::MCRegister::id().
Definition at line 130 of file Register.h.
References llvm::Other.
|
inline |
Definition at line 132 of file Register.h.
Definition at line 135 of file Register.h.
Comparisons between register objects.
Definition at line 120 of file Register.h.
|
inline |
Definition at line 122 of file Register.h.
References llvm::MCRegister::id().
Comparisons against register constants.
E.g.
Definition at line 129 of file Register.h.
References llvm::Other.
|
inline |
Definition at line 131 of file Register.h.
Definition at line 134 of file Register.h.
|
inlinestatic |
Compute the frame index from a register value representing a stack slot.
Definition at line 50 of file Register.h.
References assert(), and isStackSlot().
Referenced by llvm::rdf::PhysicalRegisterInfo::getMaskUnits(), llvm::rdf::PhysicalRegisterInfo::getRegMaskBits(), false::IntervalSorter::operator()(), and llvm::printReg().
Convert a virtual register number to a 0-based index.
The first virtual register in a function will get the index 0.
Definition at line 76 of file Register.h.
References assert(), and isVirtualRegister().
Referenced by computeWeight(), findStartOfTree(), llvm::VReg2SUnit::getSparseSetIndex(), llvm::WebAssemblyFunctionInfo::getWAReg(), INITIALIZE_PASS(), isCrossCopy(), isDebug(), llvm::WebAssemblyFunctionInfo::isVRegStackified(), llvm::VirtReg2IndexFunctor::operator()(), llvm::printReg(), llvm::printVRegOrUnit(), llvm::SelectionDAGISel::runOnMachineFunction(), scavengeFrameVirtualRegsInBlock(), llvm::WebAssemblyFunctionInfo::setWAReg(), llvm::WebAssemblyFunctionInfo::stackifyVReg(), llvm::WebAssemblyFunctionInfo::unstackifyVReg(), and virtRegIndex().
|
inline |
Convert a virtual register number to a 0-based index.
The first virtual register in a function will get the index 0.
Definition at line 101 of file Register.h.
References virtReg2Index().
1.8.13