Home
last modified time | relevance | path

Searched refs:VRM (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIPreAllocateWWMRegs.cpp44 VirtRegMap *VRM; member in __anonf07969e70111::SIPreAllocateWWMRegs
56 VirtRegMap *VRM) in SIPreAllocateWWMRegs() argument
57 : LIS(LIS), Matrix(Matrix), VRM(VRM) {} in SIPreAllocateWWMRegs()
104 if (VRM->hasPhys(Reg)) in processDef()
133 if (!VRM->hasPhys(VirtReg)) in rewriteRegs()
136 Register PhysReg = VRM->getPhys(VirtReg); in rewriteRegs()
154 const Register PhysReg = VRM->getPhys(Reg); in rewriteRegs()
194 auto *VRM = &getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in runOnMachineFunction() local
195 return SIPreAllocateWWMRegs(LIS, Matrix, VRM).run(MF); in runOnMachineFunction()
267 auto *VRM = &MFAM.getResult<VirtRegMapAnalysis>(MF); in run() local
[all …]
H A DGCNNSAReassign.cpp41 : VRM(VM), LRM(LM), LIS(LS) {} in GCNNSAReassignImpl()
60 VirtRegMap *VRM; member in __anond94b4ce90111::GCNNSAReassignImpl
120 if (VRM->hasPhys(Intervals[N]->reg())) in tryAssignRegisters()
189 if (Reg.isPhysical() || !VRM->isAssignedReg(Reg)) in CheckNSA()
192 Register PhysReg = VRM->getPhys(Reg); in CheckNSA()
215 if (VRM->getPreSplitReg(Reg)) in CheckNSA()
307 OrigRegs.push_back(VRM->getPhys(Reg)); in run()
326 << " " << llvm::printReg((VRM->getPhys(LI->reg())), TRI); in run()
332 if (VRM->hasPhys(Intervals.back()->reg())) // Did not change allocation. in run()
353 if (VRM->hasPhys(Intervals[I]->reg())) in run()
[all …]
H A DSILowerWWMCopies.cpp36 SILowerWWMCopies(LiveIntervals *LIS, SlotIndexes *SI, VirtRegMap *VRM) in SILowerWWMCopies() argument
37 : LIS(LIS), Indexes(SI), VRM(VRM) {} in SILowerWWMCopies()
46 VirtRegMap *VRM; member in __anon72eb24b60111::SILowerWWMCopies
105 MCRegister PhysReg = VRM->getPhys(Reg); in addToWWMSpills()
119 auto *VRM = VRMWrapper ? &VRMWrapper->getVRM() : nullptr; in runOnMachineFunction() local
121 SILowerWWMCopies Impl(LIS, Indexes, VRM); in runOnMachineFunction()
130 auto *VRM = MFAM.getCachedResult<VirtRegMapAnalysis>(MF); in run() local
132 SILowerWWMCopies Impl(LIS, Indexes, VRM); in run()
H A DAMDGPURewriteAGPRCopyMFMA.cpp49 VirtRegMap &VRM; member in __anone22991190111::AMDGPURewriteAGPRCopyMFMAImpl
54 AMDGPURewriteAGPRCopyMFMAImpl(MachineFunction &MF, VirtRegMap &VRM, in AMDGPURewriteAGPRCopyMFMAImpl() argument
57 TRI(*ST.getRegisterInfo()), MRI(MF.getRegInfo()), VRM(VRM), LRM(LRM), in AMDGPURewriteAGPRCopyMFMAImpl()
106 Register PhysReg = VRM.getPhys(VReg); in run()
152 Register Src2PhysReg = VRM.getPhys(Src2->getReg()); in run()
283 auto &VRM = getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in runOnMachineFunction() local
287 AMDGPURewriteAGPRCopyMFMAImpl Impl(MF, VRM, LRM, LIS); in runOnMachineFunction()
294 VirtRegMap &VRM = MFAM.getResult<VirtRegMapAnalysis>(MF); in run() local
298 AMDGPURewriteAGPRCopyMFMAImpl Impl(MF, VRM, LRM, LIS); in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DCalcSpillWeights.h49 const VirtRegMap &VRM; variable
60 const VirtRegMap &VRM, const MachineLoopInfo &Loops,
63 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), PSI(PSI), MBFI(MBFI) {} in MF()
83 const VirtRegMap &VRM,
H A DVirtRegMap.h189 inline raw_ostream &operator<<(raw_ostream &OS, const VirtRegMap &VRM) {
190 VRM.print(OS);
195 VirtRegMap VRM; variable
203 VRM.print(OS, M);
206 VirtRegMap &getVRM() { return VRM; } in getVRM()
207 const VirtRegMap &getVRM() const { return VRM; } in getVRM()
210 VRM.init(MF); in runOnMachineFunction()
H A DLiveRegMatrix.h45 VirtRegMap *VRM = nullptr; variable
69 void init(MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegAllocBasic.cpp149 if (VRM->hasPhys(VirtReg)) { in INITIALIZE_PASS_DEPENDENCY()
163 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg()
232 if (!VRM->hasPhys(Spill->reg())) in spillInterferences()
240 LiveRangeEdit LRE(Spill, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in spillInterferences()
265 AllocationOrder::create(VirtReg.reg(), *VRM, RegClassInfo, Matrix); in selectOrSplit()
300 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in selectOrSplit()
320 VirtRegAuxInfo VRAI(*MF, *LIS, *VRM, in runOnMachineFunction()
326 createInlineSpiller({*LIS, LiveStks, MDT, MBFI}, *MF, *VRM, VRAI)); in runOnMachineFunction()
332 LLVM_DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
H A DRegAllocPBQP.cpp162 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller);
166 MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM,
173 VirtRegMap &VRM,
179 VirtRegMap &VRM) const;
526 PBQPVirtRegAuxInfo(MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM, in PBQPVirtRegAuxInfo() argument
529 : VirtRegAuxInfo(MF, LIS, VRM, Loops, MBFI) {} in PBQPVirtRegAuxInfo()
587 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph() argument
651 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph()
690 VirtRegMap &VRM, Spiller &VRegSpiller) { in spillVReg() argument
692 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg()
[all …]
H A DLiveRangeEdit.cpp37 if (VRM) in createEmptyIntervalFrom()
38 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom()
57 if (VRM) { in createFrom()
58 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom()
85 Register Original = VRM->getOriginal(getReg()); in scanRemattable()
315 if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef() && in eliminateDeadDef()
319 Register Original = VRM->getOriginal(Dest); in eliminateDeadDef()
470 Register Original = VRM ? VRM->getOriginal(VReg) : Register(); in eliminateDeadDefs()
476 VRM->setIsSplitFromReg(SplitLI->reg(), Original); in eliminateDeadDefs()
487 if (VRM) in MRI_NoteNewVirtualRegister()
[all …]
H A DAllocationOrder.cpp29 AllocationOrder AllocationOrder::create(Register VirtReg, const VirtRegMap &VRM, in create() argument
32 const MachineFunction &MF = VRM.getMachineFunction(); in create()
33 const TargetRegisterInfo *TRI = &VRM.getTargetRegInfo(); in create()
37 TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix); in create()
H A DLiveRegMatrix.cpp55 auto &VRM = getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in runOnMachineFunction() local
56 LRM.init(MF, LIS, VRM); in runOnMachineFunction()
64 VRM = &pVRM; in init()
114 assert(!VRM->hasPhys(VirtReg.reg()) && "Duplicate VirtReg assignment"); in assign()
115 VRM->assignVirt2Phys(VirtReg.reg(), PhysReg); in assign()
129 Register PhysReg = VRM->getPhys(VirtReg.reg()); in unassign()
132 VRM->clearVirt(VirtReg.reg()); in unassign()
298 auto &VRM = MFAM.getResult<VirtRegMapAnalysis>(MF); in run() local
300 LRM.init(MF, LIS, VRM); in run()
H A DVirtRegMap.cpp184 VirtRegMap VRM; in run() local
185 VRM.init(MF); in run()
186 return VRM; in run()
208 VirtRegMap *VRM = nullptr; member in __anonbe45f4950111::VirtRegRewriter
226 LiveRegMatrix *LRM, VirtRegMap *VRM, in VirtRegRewriter() argument
228 : Indexes(Indexes), LIS(LIS), LRM(LRM), VRM(VRM), DebugVars(DebugVars), in VirtRegRewriter()
290 VirtRegMap &VRM = getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in runOnMachineFunction() local
297 VirtRegRewriter R(ClearVirtRegs, &Indexes, &LIS, &LRM, &VRM, &DebugVars); in runOnMachineFunction()
306 VirtRegMap &VRM = MFAM.getResult<VirtRegMapAnalysis>(MF); in run() local
313 VirtRegRewriter R(ClearVirtRegs, &Indexes, &LIS, &LRM, &VRM, &DebugVars); in run()
[all …]
H A DMIRVRegNamerUtils.cpp25 bool VRegRenamer::doVRegRenaming(const VRegRenameMap &VRM) { in doVRegRenaming() argument
28 for (const auto &E : VRM) { in doVRegRenaming()
46 VRegRenameMap VRM; in getVRegRenameMap() local
49 VRM[Reg] = createVirtualRegisterWithLowerName(Reg, GetUniqueVRegName(VReg)); in getVRegRenameMap()
51 return VRM; in getVRegRenameMap()
H A DRegAllocBase.cpp63 VRM = &vrm; in init()
92 assert(!VRM->hasPhys(VirtReg->reg()) && "Register already assigned"); in allocatePhysRegs()
139 assert(!VRM->hasPhys(SplitVirtReg->reg()) && "Register already assigned"); in allocatePhysRegs()
201 if (VRM->hasPhys(Reg)) in enqueue()
215 MachineFunction &MF = VRM->getMachineFunction(); in getErrorAssignment()
H A DInlineSpiller.cpp84 VirtRegMap &VRM; member in __anon2f89086e0111::HoistSpillHelper
134 VRM(vrm), MRI(mf.getRegInfo()), TII(*mf.getSubtarget().getInstrInfo()), in HoistSpillHelper()
149 VirtRegMap &VRM; member in __anon2f89086e0111::InlineSpiller
190 VirtRegMap &VRM, VirtRegAuxInfo &VRAI, LiveRegMatrix *Matrix) in InlineSpiller() argument
191 : MF(MF), LIS(Analyses.LIS), LSS(Analyses.LSS), VRM(VRM), in InlineSpiller()
194 HSpiller(Analyses, MF, VRM), VRAI(VRAI) {} in InlineSpiller()
235 MachineFunction &MF, VirtRegMap &VRM, in createInlineSpiller() argument
237 return new InlineSpiller(Analyses, MF, VRM, VRAI, Matrix); in createInlineSpiller()
411 return Reg.isVirtual() && VRM.getOriginal(Reg) == Original; in isSibling()
989 : TII.foldMemoryOperand(*MI, FoldOps, StackSlot, &LIS, &VRM); in foldMemoryOperand()
[all …]
H A DRegAllocGreedy.cpp177 VirtRegMap *VRM = nullptr; member
202 VRM = Analyses.VRM; in RAGreedy()
241 VRM = &MFAM.getResult<VirtRegMapAnalysis>(MF); in RequiredAnalyses()
267 VRM = &P.getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in RequiredAnalyses()
371 if (VRM->hasPhys(VirtReg)) { in LRE_CanEraseVirtReg()
385 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg()
503 if (VRM->hasKnownPreference(Reg)) in getPriority()
598 AllocationOrder::create(VirtReg.reg(), *VRM, RegClassInfo, Matrix)) { in canReassign()
641 if (!VRM->hasPhys(Intf->reg())) in evictInterference()
1329 LiveRangeEdit LREdit(&VirtReg, NewVRegs, *MF, *LIS, VRM, this, &DeadRemats); in doRegionSplit()
[all …]
H A DCalcSpillWeights.cpp83 const VirtRegMap &VRM, in isRematerializable() argument
86 Register Original = VRM.getOriginal(Reg); in isRematerializable()
111 if (!Reg.isVirtual() || VRM.getOriginal(Reg) != Original) in isRematerializable()
132 return any_of(VRM.getRegInfo().reg_operands(LI.reg()), in isLiveAtStatepointVarArg()
174 Register Original = VRM.getOriginal(Reg); in weightCalcHelper()
342 if (isRematerializable(LI, LIS, VRM, *MF.getSubtarget().getInstrInfo())) in weightCalcHelper()
H A DLiveDebugVariables.cpp484 void rewriteLocations(VirtRegMap &VRM, const MachineFunction &MF,
490 void emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS,
681 void emitDebugValues(VirtRegMap *VRM);
1558 void UserValue::rewriteLocations(VirtRegMap &VRM, const MachineFunction &MF, in rewriteLocations() argument
1579 if (VRM.isAssignedReg(VirtReg) && VRM.hasPhys(VirtReg)) { in rewriteLocations()
1583 Loc.substPhysReg(VRM.getPhys(VirtReg), TRI); in rewriteLocations()
1584 } else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) { in rewriteLocations()
1595 Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg)); in rewriteLocations()
1790 void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, in emitDebugValues() argument
1795 MachineFunction::iterator MFEnd = VRM->getMachineFunction().end(); in emitDebugValues()
[all …]
H A DSplitKit.cpp156 : MF(vrm.getMachineFunction()), VRM(vrm), LIS(lis), Loops(mli), in SplitAnalysis()
334 Register OrigReg = VRM.getOriginal(CurLI->reg()); in isOriginalEndpoint()
358 SplitEditor::SplitEditor(SplitAnalysis &SA, LiveIntervals &LIS, VirtRegMap &VRM, in SplitEditor() argument
361 : SA(SA), LIS(LIS), VRM(VRM), MRI(VRM.getMachineFunction().getRegInfo()), in SplitEditor()
362 MDT(MDT), TII(*VRM.getMachineFunction().getSubtarget().getInstrInfo()), in SplitEditor()
363 TRI(*VRM.getMachineFunction().getSubtarget().getRegisterInfo()), in SplitEditor()
374 LICalc[0].reset(&VRM.getMachineFunction(), LIS.getSlotIndexes(), &MDT, in reset()
377 LICalc[1].reset(&VRM.getMachineFunction(), LIS.getSlotIndexes(), &MDT, in reset()
632 Register Original = VRM.getOriginal(Edit->get(RegIdx)); in defFromParent()
1343 SubLIC.reset(&VRM.getMachineFunction(), LIS.getSlotIndexes(), &MDT, in extendPHIKillRanges()
[all …]
H A DRegAllocEvictionAdvisor.cpp184 LIS(RA.getLiveIntervals()), VRM(RA.getVirtRegMap()), in RegAllocEvictionAdvisor()
185 MRI(&VRM->getRegInfo()), TRI(MF.getSubtarget().getRegisterInfo()), in RegAllocEvictionAdvisor()
306 bool BreaksHint = VRM->hasPreferredPhys(Intf->reg()); in canEvictInterferenceBasedOnCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TileConfig.cpp93 static void collectVirtRegShapes(MachineRegisterInfo *MRI, VirtRegMap &VRM, in collectVirtRegShapes() argument
97 MCRegister PhysReg = VRM.getPhys(VirtReg); in collectVirtRegShapes()
104 ShapeT Shape = VRM.getShape(VirtReg); in collectVirtRegShapes()
115 ShapeT Shape = VRM.getShape(VirtReg); in collectVirtRegShapes()
145 VirtRegMap &VRM = getAnalysis<VirtRegMapWrapperLegacy>().getVRM(); in runOnMachineFunction() local
147 if (VRM.isShapeMapEmpty()) in runOnMachineFunction()
186 collectVirtRegShapes(&MRI, VRM, VirtReg, Phys2Shapes); in runOnMachineFunction()
H A DX86RegisterInfo.cpp1049 static ShapeT getTileShape(Register VirtReg, VirtRegMap *VRM, in getTileShape() argument
1051 if (VRM->hasShape(VirtReg)) in getTileShape()
1052 return VRM->getShape(VirtReg); in getTileShape()
1063 ShapeT Shape = getTileShape(SrcReg, VRM, MRI); in getTileShape()
1064 VRM->assignVirt2Shape(VirtReg, Shape); in getTileShape()
1097 VRM->assignVirt2Shape(VirtReg, Shape); in getTileShape()
1112 VRM->assignVirt2Shape(VirtReg, Shape); in getTileShape()
1156 const VirtRegMap *VRM, in getRegAllocationHints() argument
1161 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
1167 if (!VRM) in getRegAllocationHints()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZRegisterInfo.cpp28 const VirtRegMap *VRM, in getRC32() argument
41 if (VRM && VRM->hasPhys(MO.getReg())) { in getRC32()
42 Register PhysReg = VRM->getPhys(MO.getReg()); in getRC32()
76 const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const { in getRegAllocationHints() argument
82 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
84 if (VRM != nullptr) { in getRegAllocationHints()
110 Reg.isPhysical() ? Reg : Register(VRM->getPhys(Reg)); in getRegAllocationHints()
149 TRI->getCommonSubClass(getRC32(FalseMO, VRM, MRI), in getRegAllocationHints()
150 getRC32(TrueMO, VRM, MRI)); in getRegAllocationHints()
153 getRC32(Use.getOperand(0), VRM, MRI)); in getRegAllocationHints()
/freebsd/sys/contrib/device-tree/Bindings/regulator/
H A Dqcom,rpmh-regulator.txt4 Regulator Manager (VRM) and Oscillator Buffer (XOB) RPMh accelerators. The APPS
6 Coordinator (RSC) using command packets. The VRM allows changing three
122 specified for VRM regulators using mode values from
124 may be specified for BOB type regulators managed via VRM.
126 VRM.

123