/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | VirtRegRewriter.cpp | 93 bool runOnMachineFunction(MachineFunction &MF, VirtRegMap &VRM, in runOnMachineFunction() 118 if (!VRM.hasPhys(reg)) in runOnMachineFunction() 120 unsigned pReg = VRM.getPhys(reg); in runOnMachineFunction() 424 VirtRegMap &VRM); 442 VirtRegMap &VRM) { in GetRegForReload() argument 447 Rejected, RegKills, KillOps, VRM); in GetRegForReload() 679 VirtRegMap &VRM) { in ReMaterialize() argument 680 MachineInstr *ReMatDefMI = VRM.getReMaterializedMI(Reg); in ReMaterialize() 696 unsigned Phys = VRM.getPhys(VirtReg); in ReMaterialize() 873 VirtRegMap &VRM) { in GetRegForReload() argument [all …]
|
D | AllocationOrder.cpp | 26 const VirtRegMap &VRM, in AllocationOrder() argument 29 const TargetRegisterClass *RC = VRM.getRegInfo().getRegClass(VirtReg); in AllocationOrder() 31 VRM.getRegInfo().getRegAllocationHint(VirtReg); in AllocationOrder() 38 Hint = VRM.getPhys(Hint); in AllocationOrder() 42 const TargetRegisterInfo &TRI = VRM.getTargetRegInfo(); in AllocationOrder() 46 VRM.getMachineFunction()); in AllocationOrder() 61 VRM.getMachineFunction()); in AllocationOrder()
|
D | RegAllocBasic.cpp | 204 if (!VRM->hasPhys(reg)) continue; // spilled? in verify() 205 unsigned PhysReg = VRM->getPhys(reg); in verify() 234 VRM = &vrm; in init() 279 assert(!VRM->hasPhys(VirtReg.reg) && "Duplicate VirtReg assignment"); in assign() 280 VRM->assignVirt2Phys(VirtReg.reg, PhysReg); in assign() 289 assert(VRM->getPhys(VirtReg.reg) == PhysReg && "Inconsistent unassign"); in unassign() 291 VRM->clearVirt(VirtReg.reg); in unassign() 302 assert(!VRM->hasPhys(VirtReg->reg) && "Register already assigned"); in allocatePhysRegs() 338 VRM->assignVirt2Phys(VirtReg->reg, in allocatePhysRegs() 349 assert(!VRM->hasPhys(SplitVirtReg->reg) && "Register already assigned"); in allocatePhysRegs() [all …]
|
D | LiveRangeEdit.cpp | 34 VirtRegMap &VRM) { in createFrom() argument 35 MachineRegisterInfo &MRI = VRM.getRegInfo(); in createFrom() 37 VRM.grow(); in createFrom() 38 VRM.setIsSplitFromReg(VReg, VRM.getOriginal(OldReg)); in createFrom() 212 LiveIntervals &LIS, VirtRegMap &VRM, in eliminateDeadDefs() argument 217 MachineRegisterInfo &MRI = VRM.getRegInfo(); in eliminateDeadDefs() 301 bool IsOriginal = VRM.getOriginal(LI->reg) == LI->reg; in eliminateDeadDefs() 305 Dups.push_back(&createFrom(LI->reg, LIS, VRM)); in eliminateDeadDefs() 310 VRM.setIsSplitFromReg(Dups.back()->reg, 0); in eliminateDeadDefs()
|
D | LiveDebugVariables.cpp | 260 void rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI); 263 void emitDebugValues(VirtRegMap *VRM, 344 void emitDebugValues(VirtRegMap *VRM); 876 UserValue::rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI) { in rewriteLocations() argument 886 if (VRM.isAssignedReg(VirtReg) && in rewriteLocations() 887 TargetRegisterInfo::isPhysicalRegister(VRM.getPhys(VirtReg))) { in rewriteLocations() 891 Loc.substPhysReg(VRM.getPhys(VirtReg), TRI); in rewriteLocations() 892 } else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT && in rewriteLocations() 893 VRM.isSpillSlotUsed(VRM.getStackSlot(VirtReg))) { in rewriteLocations() 895 Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg)); in rewriteLocations() [all …]
|
/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 | 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 | 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 | 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 | 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 | 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()
|
D | RegAllocBase.cpp | 59 VRM = &vrm; in init() 86 assert(!VRM->hasPhys(VirtReg->reg) && "Register already assigned"); in allocatePhysRegs() 127 VRM->assignVirt2Phys(VirtReg->reg, in allocatePhysRegs() 138 assert(!VRM->hasPhys(SplitVirtReg->reg) && "Register already assigned"); in allocatePhysRegs()
|
D | VirtRegMap.cpp | 163 VirtRegMap *VRM; member in __anonca79f8400111::VirtRegRewriter 219 VRM = &getAnalysis<VirtRegMap>(); in runOnMachineFunction() 223 DEBUG(VRM->dump()); in runOnMachineFunction() 226 LIS->addKillFlags(VRM); in runOnMachineFunction() 235 getAnalysis<LiveDebugVariables>().emitDebugValues(VRM); in runOnMachineFunction() 239 VRM->clearAllVirt(); in runOnMachineFunction() 299 unsigned PhysReg = VRM->getPhys(VirtReg); in addMBBLiveIns() 399 unsigned PhysReg = VRM->getPhys(VirtReg); in rewrite()
|
D | LiveDebugVariables.cpp | 267 void rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI); 270 void emitDebugValues(VirtRegMap *VRM, 355 void emitDebugValues(VirtRegMap *VRM); 914 UserValue::rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI) { in rewriteLocations() argument 924 if (VRM.isAssignedReg(VirtReg) && in rewriteLocations() 925 TargetRegisterInfo::isPhysicalRegister(VRM.getPhys(VirtReg))) { in rewriteLocations() 929 Loc.substPhysReg(VRM.getPhys(VirtReg), TRI); in rewriteLocations() 930 } else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) { in rewriteLocations() 932 Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg)); in rewriteLocations() 987 void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, in emitDebugValues() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 37 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() 86 unsigned Original = VRM->getOriginal(getReg()); in scanRemattable() 291 if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef() && in eliminateDeadDef() 294 unsigned Original = VRM->getOriginal(Dest); in eliminateDeadDef() 436 unsigned Original = VRM ? VRM->getOriginal(VReg) : 0; in eliminateDeadDefs() 442 VRM->setIsSplitFromReg(SplitLI->reg, Original); in eliminateDeadDefs() 454 if (VRM) in MRI_NoteNewVirtualRegister() [all …]
|
D | RegAllocBasic.cpp | 147 if (VRM->hasPhys(VirtReg)) { in INITIALIZE_PASS_DEPENDENCY() 161 if (!VRM->hasPhys(VirtReg)) in LRE_WillShrinkVirtReg() 231 if (!VRM->hasPhys(Spill.reg)) in spillInterferences() 239 LiveRangeEdit LRE(&Spill, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in spillInterferences() 263 AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix); in selectOrSplit() 298 LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM, this, &DeadRemats); in selectOrSplit() 315 calculateSpillWeightsAndHints(*LIS, *MF, VRM, in runOnMachineFunction() 319 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM)); in runOnMachineFunction() 325 LLVM_DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *VRM << "\n"); in runOnMachineFunction()
|
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 if (TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix)) in AllocationOrder()
|
D | RegAllocPBQP.cpp | 167 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller); 171 MachineFunction &MF, LiveIntervals &LIS, VirtRegMap &VRM, 178 VirtRegMap &VRM, 184 VirtRegMap &VRM) const; 578 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph() argument 642 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph() 680 VirtRegMap &VRM, Spiller &VRegSpiller) { in spillVReg() argument 682 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg() 706 VirtRegMap &VRM, in mapPBQPToRegAlloc() argument 717 VRM.clearAllVirt(); in mapPBQPToRegAlloc() [all …]
|
D | CalcSpillWeights.cpp | 34 VirtRegMap *VRM, in calculateSpillWeightsAndHints() argument 42 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints() 96 VirtRegMap *VRM, in isRematerializable() argument 99 unsigned Original = VRM ? VRM->getOriginal(Reg) : 0; in isRematerializable() 114 if (VRM) { in isRematerializable() 126 VRM->getOriginal(Reg) != Original) in isRematerializable() 320 if (isRematerializable(li, LIS, VRM, *MF.getSubtarget().getInstrInfo())) in weightCalcHelper()
|
D | RegAllocBase.cpp | 62 VRM = &vrm; in init() 90 assert(!VRM->hasPhys(VirtReg->reg) && "Register already assigned"); in allocatePhysRegs() 133 VRM->assignVirt2Phys(VirtReg->reg, in allocatePhysRegs() 145 assert(!VRM->hasPhys(SplitVirtReg->reg) && "Register already assigned"); in allocatePhysRegs()
|
D | LiveRegMatrix.cpp | 58 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 unsigned PhysReg = VRM->getPhys(VirtReg.reg); in unassign() 125 VRM->clearVirt(VirtReg.reg); in unassign()
|
D | LiveDebugVariables.cpp | 315 void rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI, 319 void emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, 403 void emitDebugValues(VirtRegMap *VRM); 1042 void UserValue::rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI, in rewriteLocations() argument 1061 if (VRM.isAssignedReg(VirtReg) && in rewriteLocations() 1062 TargetRegisterInfo::isPhysicalRegister(VRM.getPhys(VirtReg))) { in rewriteLocations() 1066 Loc.substPhysReg(VRM.getPhys(VirtReg), TRI); in rewriteLocations() 1067 } else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) { in rewriteLocations() 1069 Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg)); in rewriteLocations() 1208 void UserValue::emitDebugValues(VirtRegMap *VRM, LiveIntervals &LIS, in emitDebugValues() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 31 const VirtRegMap *VRM, in getRC32() argument 44 if (VRM && VRM->hasPhys(MO.getReg())) { in getRC32() 45 unsigned PhysReg = VRM->getPhys(MO.getReg()); in getRC32() 62 const VirtRegMap *VRM, in getRegAllocationHints() argument 84 TRI->getCommonSubClass(getRC32(FalseMO, VRM, MRI), in getRegAllocationHints() 85 getRC32(TrueMO, VRM, MRI)); in getRegAllocationHints() 106 VRM, Matrix); 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,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | CalcSpillWeights.h | 54 VirtRegMap *VRM; variable 65 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF() 100 VirtRegMap *VRM,
|