Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DGCNNSAReassign.cpp71 VirtRegMap *VRM; member in __anon85ea4db40111::GCNNSAReassign
112 if (VRM->hasPhys(Intervals[N]->reg())) in tryAssignRegisters()
173 if (Reg.isPhysical() || !VRM->isAssignedReg(Reg)) in CheckNSA()
176 Register PhysReg = VRM->getPhys(Reg); in CheckNSA()
198 if (VRM->getPreSplitReg(Reg)) in CheckNSA()
234 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
291 OrigRegs.push_back(VRM->getPhys(Reg)); in runOnMachineFunction()
310 << " " << llvm::printReg((VRM->getPhys(LI->reg())), TRI); in runOnMachineFunction()
316 if (VRM->hasPhys(Intervals.back()->reg())) // Did not change allocation. in runOnMachineFunction()
335 if (VRM->hasPhys(Intervals[I]->reg())) in runOnMachineFunction()
[all …]
H A DSIPreAllocateWWMRegs.cpp37 VirtRegMap *VRM; member in __anon62c696f20111::SIPreAllocateWWMRegs
98 if (VRM->hasPhys(Reg)) in processDef()
128 if (!VRM->hasPhys(VirtReg)) in rewriteRegs()
131 Register PhysReg = VRM->getPhys(VirtReg); in rewriteRegs()
150 const Register PhysReg = VRM->getPhys(Reg); in rewriteRegs()
209 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DLiveRangeEdit.cpp36 if (VRM) in createEmptyIntervalFrom()
37 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom()
56 if (VRM) { in createFrom()
57 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom()
85 unsigned Original = VRM->getOriginal(getReg()); in scanRemattable()
293 if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef() && in eliminateDeadDef()
296 unsigned Original = VRM->getOriginal(Dest); in eliminateDeadDef()
438 Register Original = VRM ? VRM->getOriginal(VReg) : Register(); in eliminateDeadDefs()
444 VRM->setIsSplitFromReg(SplitLI->reg(), Original); in eliminateDeadDefs()
455 if (VRM) in MRI_NoteNewVirtualRegister()
[all …]
H A DRegAllocPBQP.cpp165 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller);
169 MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM,
176 VirtRegMap &VRM,
182 VirtRegMap &VRM) const;
529 PBQPVirtRegAuxInfo(MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM, in PBQPVirtRegAuxInfo() argument
532 : VirtRegAuxInfo(MF, LIS, VRM, Loops, MBFI) {} in PBQPVirtRegAuxInfo()
590 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph() argument
654 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph()
693 VirtRegMap &VRM, Spiller &VRegSpiller) { in spillVReg() argument
695 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg()
[all …]
H A DRegAllocBasic.cpp151 if (VRM->hasPhys(VirtReg)) { in INITIALIZE_PASS_DEPENDENCY()
165 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg()
235 if (!VRM->hasPhys(Spill.reg())) in spillInterferences()
243 LiveRangeEdit LRE(&Spill, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in spillInterferences()
268 AllocationOrder::create(VirtReg.reg(), *VRM, RegClassInfo, Matrix); in selectOrSplit()
303 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in selectOrSplit()
319 VirtRegAuxInfo VRAI(*MF, *LIS, *VRM, getAnalysis<MachineLoopInfo>(), in runOnMachineFunction()
323 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM, VRAI)); in runOnMachineFunction()
329 LLVM_DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
H A DAllocationOrder.cpp29 AllocationOrder AllocationOrder::create(unsigned 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 DInlineSpiller.cpp93 VirtRegMap &VRM; member in __anonf47227990111::HoistSpillHelper
146 Loops(pass.getAnalysis<MachineLoopInfo>()), VRM(vrm), in HoistSpillHelper()
166 VirtRegMap &VRM; member in __anonf47227990111::InlineSpiller
200 InlineSpiller(MachineFunctionPass &Pass, MachineFunction &MF, VirtRegMap &VRM, in InlineSpiller() argument
206 Loops(Pass.getAnalysis<MachineLoopInfo>()), VRM(VRM), in InlineSpiller()
210 HSpiller(Pass, MF, VRM), VRAI(VRAI) {} in InlineSpiller()
247 MachineFunction &MF, VirtRegMap &VRM, in createInlineSpiller() argument
249 return new InlineSpiller(Pass, MF, VRM, VRAI); in createInlineSpiller()
363 return Reg.isVirtual() && VRM.getOriginal(Reg) == Original; in isSibling()
895 : TII.foldMemoryOperand(*MI, FoldOps, StackSlot, &LIS, &VRM); in foldMemoryOperand()
[all …]
H A DMIRVRegNamerUtils.cpp26 bool VRegRenamer::doVRegRenaming(const VRegRenameMap &VRM) { in doVRegRenaming() argument
29 for (const auto &E : VRM) { in doVRegRenaming()
49 VRegRenameMap VRM; in getVRegRenameMap() local
52 VRM[Reg] = createVirtualRegisterWithLowerName(Reg, GetUniqueVRegName(VReg)); in getVRegRenameMap()
54 return VRM; in getVRegRenameMap()
H A DRegAllocBase.cpp61 VRM = &vrm; in init()
89 assert(!VRM->hasPhys(VirtReg->reg()) && "Register already assigned"); in allocatePhysRegs()
142 VRM->assignVirt2Phys(VirtReg->reg(), AllocOrder.front()); in allocatePhysRegs()
153 assert(!VRM->hasPhys(SplitVirtReg->reg()) && "Register already assigned"); in allocatePhysRegs()
H A DLiveRegMatrix.cpp58 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
107 assert(!VRM->hasPhys(VirtReg.reg()) && "Duplicate VirtReg assignment"); in assign()
108 VRM->assignVirt2Phys(VirtReg.reg(), PhysReg); in assign()
122 Register PhysReg = VRM->getPhys(VirtReg.reg()); in unassign()
125 VRM->clearVirt(VirtReg.reg()); in unassign()
H A DCalcSpillWeights.cpp81 const VirtRegMap &VRM, in isRematerializable() argument
84 unsigned Original = VRM.getOriginal(Reg); in isRematerializable()
109 if (!Register::isVirtualRegister(Reg) || VRM.getOriginal(Reg) != Original) in isRematerializable()
130 return any_of(VRM.getRegInfo().reg_operands(LI.reg()), in isLiveAtStatepointVarArg()
168 Register Original = VRM.getOriginal(Reg); in weightCalcHelper()
321 if (isRematerializable(LI, LIS, VRM, *MF.getSubtarget().getInstrInfo())) in weightCalcHelper()
H A DVirtRegMap.cpp183 VirtRegMap *VRM; member in __anon15286ba00111::VirtRegRewriter
251 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
254 LLVM_DEBUG(VRM->dump()); in runOnMachineFunction()
257 LIS->addKillFlags(VRM); in runOnMachineFunction()
266 getAnalysis<LiveDebugVariables>().emitDebugValues(VRM); in runOnMachineFunction()
271 VRM->clearAllVirt(); in runOnMachineFunction()
334 Register PhysReg = VRM->getPhys(VirtReg); in addMBBLiveIns()
544 MCRegister PhysReg = VRM->getPhys(VirtReg); in rewrite()
H A DRegAllocGreedy.cpp676 if (VRM->hasPhys(VirtReg)) { in LRE_CanEraseVirtReg()
690 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg()
776 if (VRM->hasKnownPreference(Reg)) in enqueue()
855 AllocationOrder::create(VirtReg.reg(), *VRM, RegClassInfo, Matrix); in canReassign()
980 bool BreaksHint = VRM->hasPreferredPhys(Intf->reg()); in canEvictInterference()
1039 bool BreaksHint = VRM->hasPreferredPhys(Intf->reg()); in canEvictInterferenceInRange()
1121 if (!VRM->hasPhys(Intf->reg())) in evictInterference()
1985 LiveRangeEdit LREdit(&VirtReg, NewVRegs, *MF, *LIS, VRM, this, &DeadRemats); in doRegionSplit()
2032 LiveRangeEdit LREdit(&VirtReg, NewVRegs, *MF, *LIS, VRM, this, &DeadRemats); in tryBlockSplit()
2102 LiveRangeEdit LREdit(&VirtReg, NewVRegs, *MF, *LIS, VRM, this, &DeadRemats); in tryInstructionSplit()
[all …]
H A DLiveDebugVariables.cpp479 void rewriteLocations(VirtRegMap &VRM, const MachineFunction &MF,
485 void emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS,
636 void emitDebugValues(VirtRegMap *VRM);
1405 void UserValue::rewriteLocations(VirtRegMap &VRM, const MachineFunction &MF, in rewriteLocations() argument
1427 if (VRM.isAssignedReg(VirtReg) && in rewriteLocations()
1428 Register::isPhysicalRegister(VRM.getPhys(VirtReg))) { in rewriteLocations()
1432 Loc.substPhysReg(VRM.getPhys(VirtReg), TRI); in rewriteLocations()
1433 } else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) { in rewriteLocations()
1444 Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg)); in rewriteLocations()
1638 void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, in emitDebugValues() argument
[all …]
H A DSplitKit.cpp155 : MF(vrm.getMachineFunction()), VRM(vrm), LIS(lis), Loops(mli), in SplitAnalysis()
343 unsigned OrigReg = VRM.getOriginal(CurLI->reg()); in isOriginalEndpoint()
368 LiveIntervals &LIS, VirtRegMap &VRM, in SplitEditor() argument
371 : SA(SA), AA(AA), LIS(LIS), VRM(VRM), in SplitEditor()
372 MRI(VRM.getMachineFunction().getRegInfo()), MDT(MDT), in SplitEditor()
373 TII(*VRM.getMachineFunction().getSubtarget().getInstrInfo()), in SplitEditor()
374 TRI(*VRM.getMachineFunction().getSubtarget().getRegisterInfo()), in SplitEditor()
385 LICalc[0].reset(&VRM.getMachineFunction(), LIS.getSlotIndexes(), &MDT, in reset()
388 LICalc[1].reset(&VRM.getMachineFunction(), LIS.getSlotIndexes(), &MDT, in reset()
598 unsigned Original = VRM.getOriginal(Edit->get(RegIdx)); in defFromParent()
[all …]
H A DSplitKit.h100 const VirtRegMap &VRM; variable
270 VirtRegMap &VRM; variable
463 VirtRegMap &VRM, MachineDominatorTree &MDT,
H A DLiveDebugVariables.h50 void emitDebugValues(VirtRegMap *VRM);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DCalcSpillWeights.h49 const VirtRegMap &VRM; variable
59 const VirtRegMap &VRM, const MachineLoopInfo &Loops, in VirtRegAuxInfo() argument
61 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), MBFI(MBFI) {} in VirtRegAuxInfo()
H A DVirtRegMap.h205 inline raw_ostream &operator<<(raw_ostream &OS, const VirtRegMap &VRM) {
206 VRM.print(OS);
H A DLiveRangeEdit.h75 VirtRegMap *VRM; variable
144 VRM(vrm), TII(*MF.getSubtarget().getInstrInfo()), TheDelegate(delegate), in Parent()
H A DSpiller.h39 VirtRegMap &VRM, VirtRegAuxInfo &VRAI);
/netbsd-src/external/apache2/llvm/dist/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()
77 const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const { in getRegAllocationHints() argument
83 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
85 if (VRM != nullptr) { in getRegAllocationHints()
112 : Register(VRM->getPhys(Reg)); in getRegAllocationHints()
151 TRI->getCommonSubClass(getRC32(FalseMO, VRM, MRI), in getRegAllocationHints()
152 getRC32(TrueMO, VRM, MRI)); in getRegAllocationHints()
155 getRC32(Use.getOperand(0), VRM, MRI)); in getRegAllocationHints()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86TileConfig.cpp85 VirtRegMap &VRM = getAnalysis<VirtRegMap>(); in INITIALIZE_PASS_DEPENDENCY() local
87 if (VRM.isShapeMapEmpty()) in INITIALIZE_PASS_DEPENDENCY()
123 unsigned Index = VRM.getPhys(VirtReg) - X86::TMM0; in INITIALIZE_PASS_DEPENDENCY()
135 ShapeT Shape = VRM.getShape(Phys2Virt[I]); in INITIALIZE_PASS_DEPENDENCY()
H A DX86RegisterInfo.cpp875 static ShapeT getTileShape(Register VirtReg, VirtRegMap *VRM, in getTileShape() argument
877 if (VRM->hasShape(VirtReg)) in getTileShape()
878 return VRM->getShape(VirtReg); in getTileShape()
889 ShapeT Shape = getTileShape(SrcReg, VRM, MRI); in getTileShape()
890 VRM->assignVirt2Shape(VirtReg, Shape); in getTileShape()
904 VRM->assignVirt2Shape(VirtReg, Shape); in getTileShape()
913 const VirtRegMap *VRM, in getRegAllocationHints() argument
918 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
923 ShapeT VirtShape = getTileShape(VirtReg, const_cast<VirtRegMap *>(VRM), MRI); in getRegAllocationHints()
930 ShapeT PhysShape = getTileShape(VReg, const_cast<VirtRegMap *>(VRM), MRI); in getRegAllocationHints()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp321 const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const { in getRegAllocationHints() argument
334 TargetRegisterInfo::getRegAllocationHints(VirtReg, Order, Hints, MF, VRM); in getRegAllocationHints()
339 return TargetRegisterInfo::getRegAllocationHints(VirtReg, Order, Hints, MF, VRM); in getRegAllocationHints()
352 } else if (VRM && VRM->hasPhys(Paired)) { in getRegAllocationHints()
353 PairedPhys = getPairedGPR(VRM->getPhys(Paired), Odd, this); in getRegAllocationHints()

12