/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonBlockRanges.cpp | 293 std::map<RegisterRef,IndexType> LastDef, LastUse; in computeInitialLiveRanges() local 304 auto closeRange = [&LastUse,&LastDef,&LiveMap] (RegisterRef R) -> void { in computeInitialLiveRanges() 305 auto LD = LastDef[R], LU = LastUse[R]; in computeInitialLiveRanges() 311 LastUse[R] = LastDef[R] = IndexType::None; in computeInitialLiveRanges() 329 LastUse[S] = Index; in computeInitialLiveRanges() 380 if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None) in computeInitialLiveRanges() 389 if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None) in computeInitialLiveRanges() 392 LastDef[S] = LastUse[S] = Index; in computeInitialLiveRanges() 404 LastUse[R] = IndexType::Exit; in computeInitialLiveRanges() 408 for (auto &I : LastUse) in computeInitialLiveRanges()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonBlockRanges.cpp | 285 std::map<RegisterRef,IndexType> LastDef, LastUse; in computeInitialLiveRanges() local 297 auto closeRange = [&LastUse,&LastDef,&LiveMap] (RegisterRef R) -> void { in computeInitialLiveRanges() 298 auto LD = LastDef[R], LU = LastUse[R]; in computeInitialLiveRanges() 304 LastUse[R] = LastDef[R] = IndexType::None; in computeInitialLiveRanges() 320 LastUse[S] = Index; in computeInitialLiveRanges() 333 if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None) in computeInitialLiveRanges() 348 LastUse[R] = IndexType::Exit; in computeInitialLiveRanges() 352 for (auto &I : LastUse) in computeInitialLiveRanges()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | RegAllocFast.cpp | 73 MachineInstr *LastUse; // Last instr to use reg. member 78 LiveReg(unsigned p=0) : LastUse(0), PhysReg(p), LastOpNum(0), in LiveReg() 213 if (!LR.LastUse) return; in addKillFlag() 214 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag() 215 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag() 219 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true); in addKillFlag() 262 bool SpillKill = LR.LastUse != MI; in spillVirtReg() 302 LR.LastUse = 0; // Don't kill register again in spillVirtReg() 559 } else if (LR.LastUse) { in defineVirtReg() 562 if (LR.LastUse != MI || LR.LastUse->getOperand(LR.LastOpNum).isUse()) in defineVirtReg() [all …]
|
D | LiveVariables.cpp | 282 MachineInstr *LastUse = PhysRegUse[Reg]; in FindLastRefOrPartRef() local 283 if (!LastDef && !LastUse) in FindLastRefOrPartRef() 286 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in FindLastRefOrPartRef() 312 MachineInstr *LastUse = PhysRegUse[Reg]; in HandlePhysRegKill() local 313 if (!LastDef && !LastUse) in HandlePhysRegKill() 316 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in HandlePhysRegKill()
|
D | TwoAddressInstructionPass.cpp | 345 unsigned LastUse = Dist; in NoUseAfterLastDef() local 355 if (MO.isUse() && DI->second < LastUse) in NoUseAfterLastDef() 356 LastUse = DI->second; in NoUseAfterLastDef() 361 return !(LastUse > LastDef && LastUse < Dist); in NoUseAfterLastDef() 368 MachineInstr *LastUse = 0; in FindLastUseInMBB() local 382 LastUse = DI->first; in FindLastUseInMBB() 386 return LastUse; in FindLastUseInMBB()
|
D | StrongPHIElimination.cpp | 390 MachineOperand *LastUse = findLastUse(MBB, SrcReg); in runOnMachineFunction() local 391 assert(LastUse); in runOnMachineFunction() 392 SlotIndex LastUseIndex = LI->getInstructionIndex(LastUse->getParent()); in runOnMachineFunction() 394 LastUse->setIsKill(true); in runOnMachineFunction()
|
D | SplitKit.cpp | 929 SlotIndex LastUse = End.getPrevSlot(); in extendPHIKillRanges() local 932 if (Edit->getParent().liveAt(LastUse)) { in extendPHIKillRanges() 933 assert(RegAssign.lookup(LastUse) == RegIdx && in extendPHIKillRanges()
|
D | LiveIntervalAnalysis.cpp | 2037 MachineInstr *LastUse = getInstructionFromIndex(LastUseIdx); in addIntervalsForSpills() local 2038 int UseIdx = LastUse->findRegisterUseOperandIdx(LI->reg, false); in addIntervalsForSpills() 2040 if (!LastUse->isRegTiedToDefOperand(UseIdx)) { in addIntervalsForSpills() 2041 LastUse->getOperand(UseIdx).setIsKill(); in addIntervalsForSpills()
|
/external/llvm/lib/CodeGen/ |
D | RegAllocFast.cpp | 70 MachineInstr *LastUse; // Last instr to use reg. member 77 : LastUse(nullptr), VirtReg(v), PhysReg(0), LastOpNum(0), Dirty(false){} in LiveReg() 238 if (!LR.LastUse) return; in addKillFlag() 239 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag() 240 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag() 244 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true); in addKillFlag() 287 bool SpillKill = MachineBasicBlock::iterator(LR.LastUse) != MI; in spillVirtReg() 326 LR.LastUse = nullptr; // Don't kill register again in spillVirtReg() 617 } else if (LRI->LastUse) { in defineVirtReg() 620 if (LRI->LastUse != &MI || LRI->LastUse->getOperand(LRI->LastOpNum).isUse()) in defineVirtReg() [all …]
|
D | LiveVariables.cpp | 283 MachineInstr *LastUse = PhysRegUse[Reg]; in FindLastRefOrPartRef() local 284 if (!LastDef && !LastUse) in FindLastRefOrPartRef() 287 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in FindLastRefOrPartRef() 313 MachineInstr *LastUse = PhysRegUse[Reg]; in HandlePhysRegKill() local 314 if (!LastDef && !LastUse) in HandlePhysRegKill() 317 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in HandlePhysRegKill()
|
D | TwoAddressInstructionPass.cpp | 359 unsigned LastUse = Dist; in noUseAfterLastDef() local 367 if (MO.isUse() && DI->second < LastUse) in noUseAfterLastDef() 368 LastUse = DI->second; in noUseAfterLastDef() 373 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
|
D | LiveIntervalAnalysis.cpp | 1315 SlotIndex LastUse = Before; in findLastUseBefore() local 1326 if (InstSlot > LastUse && InstSlot < OldIdx) in findLastUseBefore() 1327 LastUse = InstSlot.getRegSlot(); in findLastUseBefore() 1329 return LastUse; in findLastUseBefore()
|
D | SplitKit.cpp | 1050 SlotIndex LastUse = End.getPrevSlot(); in extendPHIKillRanges() local 1053 if (Edit->getParent().liveAt(LastUse)) { in extendPHIKillRanges() 1054 assert(RegAssign.lookup(LastUse) == RegIdx && in extendPHIKillRanges()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | RegAllocFast.cpp | 85 MachineInstr *LastUse = nullptr; ///< Last instr to use reg. member 266 if (!LR.LastUse) return; in addKillFlag() 267 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag() 268 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag() 323 bool SpillKill = MachineBasicBlock::iterator(LR.LastUse) != MI; in spillVirtReg() 351 LR.LastUse = nullptr; // Don't kill register again in spillVirtReg() 631 } else if (LRI->LastUse) { in defineVirtReg() 634 if (LRI->LastUse != &MI || LRI->LastUse->getOperand(LRI->LastOpNum).isUse()) in defineVirtReg() 638 LRI->LastUse = &MI; in defineVirtReg() 690 LRI->LastUse = &MI; in reloadVirtReg()
|
D | LiveVariables.cpp | 283 MachineInstr *LastUse = PhysRegUse[Reg]; in FindLastRefOrPartRef() local 284 if (!LastDef && !LastUse) in FindLastRefOrPartRef() 287 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in FindLastRefOrPartRef() 313 MachineInstr *LastUse = PhysRegUse[Reg]; in HandlePhysRegKill() local 314 if (!LastDef && !LastUse) in HandlePhysRegKill() 317 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in HandlePhysRegKill()
|
D | TwoAddressInstructionPass.cpp | 388 unsigned LastUse = Dist; in noUseAfterLastDef() local 396 if (MO.isUse() && DI->second < LastUse) in noUseAfterLastDef() 397 LastUse = DI->second; in noUseAfterLastDef() 402 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
|
D | LiveIntervals.cpp | 1391 SlotIndex LastUse = Before; in findLastUseBefore() local 1402 if (InstSlot > LastUse && InstSlot < OldIdx) in findLastUseBefore() 1403 LastUse = InstSlot.getRegSlot(); in findLastUseBefore() 1405 return LastUse; in findLastUseBefore()
|
D | SplitKit.cpp | 1246 SlotIndex LastUse = End.getPrevSlot(); in extendPHIRange() local 1254 if (PSR.liveAt(LastUse)) in extendPHIRange()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | ObjCARC.cpp | 2700 Instruction *LastUse = *PI; in MoveCalls() local 2702 if (InvokeInst *II = dyn_cast<InvokeInst>(LastUse)) { in MoveCalls() 2712 InsertPts[0] = llvm::next(BasicBlock::iterator(LastUse)); in MoveCalls()
|