/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 36 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() 292 if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef() && in eliminateDeadDef() 295 unsigned Original = VRM->getOriginal(Dest); in eliminateDeadDef() 437 unsigned Original = VRM ? VRM->getOriginal(VReg) : 0; in eliminateDeadDefs() 443 VRM->setIsSplitFromReg(SplitLI->reg, Original); in eliminateDeadDefs() 455 if (VRM) in MRI_NoteNewVirtualRegister() [all …]
|
D | RegAllocBasic.cpp | 146 if (VRM->hasPhys(VirtReg)) { in INITIALIZE_PASS_DEPENDENCY() 160 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg() 230 if (!VRM->hasPhys(Spill.reg)) in spillInterferences() 238 LiveRangeEdit LRE(&Spill, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in spillInterferences() 262 AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix); in selectOrSplit() 297 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in selectOrSplit() 314 calculateSpillWeightsAndHints(*LIS, *MF, VRM, in runOnMachineFunction() 318 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM)); in runOnMachineFunction() 324 LLVM_DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
|
D | AllocationOrder.cpp | 30 const VirtRegMap &VRM, in AllocationOrder() argument 34 const MachineFunction &MF = VRM.getMachineFunction(); in AllocationOrder() 35 const TargetRegisterInfo *TRI = &VRM.getTargetRegInfo(); in AllocationOrder() 37 if (TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix)) in AllocationOrder()
|
D | RegAllocPBQP.cpp | 166 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller); 170 MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM, 177 VirtRegMap &VRM, 183 VirtRegMap &VRM) const; 577 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph() argument 641 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph() 679 VirtRegMap &VRM, Spiller &VRegSpiller) { in spillVReg() argument 681 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg() 705 VirtRegMap &VRM, in mapPBQPToRegAlloc() argument 716 VRM.clearAllVirt(); in mapPBQPToRegAlloc() [all …]
|
D | CalcSpillWeights.cpp | 33 VirtRegMap *VRM, in calculateSpillWeightsAndHints() argument 41 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints() 87 VirtRegMap *VRM, in isRematerializable() argument 90 unsigned Original = VRM ? VRM->getOriginal(Reg) : 0; in isRematerializable() 105 if (VRM) { in isRematerializable() 117 VRM->getOriginal(Reg) != Original) in isRematerializable() 298 if (isRematerializable(li, LIS, VRM, *MF.getSubtarget().getInstrInfo())) in weightCalcHelper()
|
D | MIRVRegNamerUtils.cpp | 18 bool VRegRenamer::doVRegRenaming(const VRegRenameMap &VRM) { in doVRegRenaming() argument 21 for (const auto &E : VRM) { in doVRegRenaming() 41 VRegRenameMap VRM; in getVRegRenameMap() local 44 VRM[Reg] = createVirtualRegisterWithLowerName(Reg, GetUniqueVRegName(VReg)); in getVRegRenameMap() 46 return VRM; in getVRegRenameMap()
|
/external/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 36 if (VRM) { in createEmptyIntervalFrom() 37 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom() 45 if (VRM) { in createFrom() 46 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom() 66 unsigned Original = VRM->getOriginal(getReg()); in scanRemattable() 266 if (VRM && MI->getOperand(0).isReg()) { in eliminateDeadDef() 268 unsigned Original = VRM->getOriginal(Dest); in eliminateDeadDef() 410 unsigned Original = VRM ? VRM->getOriginal(VReg) : 0; in eliminateDeadDefs() 416 VRM->setIsSplitFromReg(SplitLI->reg, Original); in eliminateDeadDefs() 428 if (VRM) in MRI_NoteNewVirtualRegister() [all …]
|
D | AllocationOrder.cpp | 31 const VirtRegMap &VRM, in AllocationOrder() argument 35 const MachineFunction &MF = VRM.getMachineFunction(); in AllocationOrder() 36 const TargetRegisterInfo *TRI = &VRM.getTargetRegInfo(); in AllocationOrder() 38 TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix); in AllocationOrder()
|
D | CalcSpillWeights.cpp | 28 VirtRegMap *VRM, in calculateSpillWeightsAndHints() argument 36 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints() 79 VirtRegMap *VRM, in isRematerializable() argument 82 unsigned Original = VRM ? VRM->getOriginal(Reg) : 0; in isRematerializable() 97 if (VRM) { in isRematerializable() 109 VRM->getOriginal(Reg) != Original) in isRematerializable() 232 if (isRematerializable(li, LIS, VRM, *MF.getSubtarget().getInstrInfo())) in calculateSpillWeightAndHint()
|
D | RegAllocBasic.cpp | 194 if (!VRM->hasPhys(Spill.reg)) in spillInterferences() 202 LiveRangeEdit LRE(&Spill, SplitVRegs, *MF, *LIS, VRM, nullptr, &DeadRemats); in spillInterferences() 226 AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix); in selectOrSplit() 261 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, nullptr, &DeadRemats); in selectOrSplit() 279 calculateSpillWeightsAndHints(*LIS, *MF, VRM, in runOnMachineFunction() 283 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM)); in runOnMachineFunction() 289 DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
|
D | RegAllocPBQP.cpp | 136 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller); 140 MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM, 147 VirtRegMap &VRM, 153 VirtRegMap &VRM) const; 561 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph() argument 614 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph() 638 VirtRegMap &VRM, Spiller &VRegSpiller) { in spillVReg() argument 641 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg() 665 VirtRegMap &VRM, in mapPBQPToRegAlloc() argument 676 VRM.clearAllVirt(); in mapPBQPToRegAlloc() [all …]
|
D | LiveRegMatrix.cpp | 52 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction() 100 assert(!VRM->hasPhys(VirtReg.reg) && "Duplicate VirtReg assignment"); in assign() 101 VRM->assignVirt2Phys(VirtReg.reg, PhysReg); in assign() 115 unsigned PhysReg = VRM->getPhys(VirtReg.reg); in unassign() 118 VRM->clearVirt(VirtReg.reg); in unassign()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 36 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 unsigned Original = VRM ? VRM->getOriginal(VReg) : 0; in eliminateDeadDefs() 444 VRM->setIsSplitFromReg(SplitLI->reg(), Original); in eliminateDeadDefs() 455 if (VRM) in MRI_NoteNewVirtualRegister() [all …]
|
D | RegAllocBasic.cpp | 151 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() 305 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in selectOrSplit() 321 VirtRegAuxInfo VRAI(*MF, *LIS, *VRM, getAnalysis<MachineLoopInfo>(), in runOnMachineFunction() 325 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM)); in runOnMachineFunction() 331 LLVM_DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
|
D | AllocationOrder.cpp | 29 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()
|
D | RegAllocPBQP.cpp | 165 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 …]
|
D | MIRVRegNamerUtils.cpp | 26 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()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | GCNNSAReassign.cpp | 76 VirtRegMap *VRM; member in __anon9b0f6be00111::GCNNSAReassign 117 if (VRM->hasPhys(Intervals[N]->reg())) in tryAssignRegisters() 178 if (Reg.isPhysical() || !VRM->isAssignedReg(Reg)) in CheckNSA() 181 Register PhysReg = VRM->getPhys(Reg); in CheckNSA() 231 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction() 288 OrigRegs.push_back(VRM->getPhys(Reg)); in runOnMachineFunction() 307 << " " << llvm::printReg((VRM->getPhys(LI->reg())), TRI); in runOnMachineFunction() 313 if (VRM->hasPhys(Intervals.back()->reg())) // Did not change allocation. in runOnMachineFunction() 332 if (VRM->hasPhys(Intervals[I]->reg())) in runOnMachineFunction() 345 << llvm::printReg((VRM->getPhys(Intervals.front()->reg())), TRI) in runOnMachineFunction() [all …]
|
D | SIPreAllocateWWMRegs.cpp | 43 VirtRegMap *VRM; member in __anon8dcca61e0111::SIPreAllocateWWMRegs 101 if (VRM->hasPhys(Reg)) in processDef() 131 if (!VRM->hasPhys(VirtReg)) in rewriteRegs() 134 Register PhysReg = VRM->getPhys(VirtReg); in rewriteRegs() 152 const Register PhysReg = VRM->getPhys(Reg); in rewriteRegs() 174 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | GCNNSAReassign.cpp | 76 VirtRegMap *VRM; member in __anona506d5540111::GCNNSAReassign 117 if (VRM->hasPhys(Intervals[N]->reg)) in tryAssignRegisters() 178 if (Register::isPhysicalRegister(Reg) || !VRM->isAssignedReg(Reg)) in CheckNSA() 181 Register PhysReg = VRM->getPhys(Reg); in CheckNSA() 231 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction() 288 OrigRegs.push_back(VRM->getPhys(Reg)); in runOnMachineFunction() 299 dbgs() << " " << llvm::printReg((VRM->getPhys(LI->reg)), TRI); in runOnMachineFunction() 305 if (VRM->hasPhys(Intervals.back()->reg)) // Did not change allocation. in runOnMachineFunction() 324 if (VRM->hasPhys(Intervals[I]->reg)) in runOnMachineFunction() 336 << llvm::printReg((VRM->getPhys(Intervals.front()->reg)), TRI) in runOnMachineFunction() [all …]
|
D | SIPreAllocateWWMRegs.cpp | 43 VirtRegMap *VRM; member in __anon795256920111::SIPreAllocateWWMRegs 102 if (VRM->hasPhys(Reg)) in processDef() 132 if (!VRM->hasPhys(VirtReg)) in rewriteRegs() 135 Register PhysReg = VRM->getPhys(VirtReg); in rewriteRegs() 153 const Register PhysReg = VRM->getPhys(Reg); in rewriteRegs() 175 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | CalcSpillWeights.h | 49 const VirtRegMap &VRM; variable 55 const VirtRegMap &VRM, const MachineLoopInfo &Loops, in VirtRegAuxInfo() argument 57 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), MBFI(MBFI) {} in VirtRegAuxInfo()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 30 const VirtRegMap *VRM, in getRC32() argument 43 if (VRM && VRM->hasPhys(MO.getReg())) { in getRC32() 44 Register PhysReg = VRM->getPhys(MO.getReg()); in getRC32() 79 const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const { in getRegAllocationHints() argument 85 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints() 87 if (VRM != nullptr) { in getRegAllocationHints() 114 : Register(VRM->getPhys(Reg)); in getRegAllocationHints() 153 TRI->getCommonSubClass(getRC32(FalseMO, VRM, MRI), in getRegAllocationHints() 154 getRC32(TrueMO, VRM, MRI)); in getRegAllocationHints() 157 getRC32(Use.getOperand(0), VRM, MRI)); in getRegAllocationHints()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 30 const VirtRegMap *VRM, in getRC32() argument 43 if (VRM && VRM->hasPhys(MO.getReg())) { in getRC32() 44 Register PhysReg = VRM->getPhys(MO.getReg()); in getRC32() 81 const VirtRegMap *VRM, in getRegAllocationHints() argument 88 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints() 90 if (VRM != nullptr) { in getRegAllocationHints() 116 Register::isPhysicalRegister(Reg) ? Reg : VRM->getPhys(Reg); in getRegAllocationHints() 155 TRI->getCommonSubClass(getRC32(FalseMO, VRM, MRI), in getRegAllocationHints() 156 getRC32(TrueMO, VRM, MRI)); in getRegAllocationHints() 159 getRC32(Use.getOperand(0), VRM, MRI)); in getRegAllocationHints()
|
/external/llvm/include/llvm/CodeGen/ |
D | CalcSpillWeights.h | 55 VirtRegMap *VRM; variable 66 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF() 75 VirtRegMap *VRM,
|