/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ExecutionDomainFix.cpp | 72 assert(!LiveRegs.empty() && "Must enter basic block first."); in setLiveReg() 74 if (LiveRegs[rx] == dv) in setLiveReg() 76 if (LiveRegs[rx]) in setLiveReg() 77 release(LiveRegs[rx]); in setLiveReg() 78 LiveRegs[rx] = retain(dv); in setLiveReg() 83 assert(!LiveRegs.empty() && "Must enter basic block first."); in kill() 84 if (!LiveRegs[rx]) in kill() 87 release(LiveRegs[rx]); in kill() 88 LiveRegs[rx] = nullptr; in kill() 93 assert(!LiveRegs.empty() && "Must enter basic block first."); in force() [all …]
|
D | LivePhysRegs.cpp | 33 RegisterSet::iterator LRI = LiveRegs.begin(); in removeRegsInMask() 34 while (LRI != LiveRegs.end()) { in removeRegsInMask() 38 LRI = LiveRegs.erase(LRI); in removeRegsInMask() 141 if (LiveRegs.count(Reg)) in available() 146 if (LiveRegs.count(*R)) in available() 172 static void addCalleeSavedRegs(LivePhysRegs &LiveRegs, in addCalleeSavedRegs() argument 176 LiveRegs.addReg(*CSR); in addCalleeSavedRegs() 242 void llvm::computeLiveIns(LivePhysRegs &LiveRegs, in computeLiveIns() argument 247 LiveRegs.init(TRI); in computeLiveIns() 248 LiveRegs.addLiveOutsNoPristines(MBB); in computeLiveIns() [all …]
|
D | ReachingDefAnalysis.cpp | 37 if (LiveRegs.empty()) in enterBasicBlock() 38 LiveRegs.assign(NumRegUnits, ReachingDefDefaultVal); in enterBasicBlock() 47 LiveRegs[*Unit] = -1; in enterBasicBlock() 48 MBBReachingDefs[MBBNumber][*Unit].push_back(LiveRegs[*Unit]); in enterBasicBlock() 67 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]); in enterBasicBlock() 68 if ((LiveRegs[Unit] != ReachingDefDefaultVal)) in enterBasicBlock() 69 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]); in enterBasicBlock() 80 assert(!LiveRegs.empty() && "Must enter basic block first."); in leaveBasicBlock() 85 MBBOutRegsInfos[MBBNumber] = LiveRegs; in leaveBasicBlock() 93 LiveRegs.clear(); in leaveBasicBlock() [all …]
|
D | StackMapLivenessAnalysis.cpp | 52 LivePhysRegs LiveRegs; member in __anonae991b200111::StackMapLiveness 128 LiveRegs.init(*TRI); in calculateLiveness() 130 LiveRegs.addLiveOutsNoPristines(MBB); in calculateLiveness() 141 LLVM_DEBUG(dbgs() << " " << LiveRegs << " " << *I); in calculateLiveness() 142 LiveRegs.stepBackward(*I); in calculateLiveness() 164 for (auto Reg : LiveRegs) in createRegisterMask()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | ExecutionDomainFix.cpp | 72 assert(!LiveRegs.empty() && "Must enter basic block first."); in setLiveReg() 74 if (LiveRegs[rx] == dv) in setLiveReg() 76 if (LiveRegs[rx]) in setLiveReg() 77 release(LiveRegs[rx]); in setLiveReg() 78 LiveRegs[rx] = retain(dv); in setLiveReg() 83 assert(!LiveRegs.empty() && "Must enter basic block first."); in kill() 84 if (!LiveRegs[rx]) in kill() 87 release(LiveRegs[rx]); in kill() 88 LiveRegs[rx] = nullptr; in kill() 93 assert(!LiveRegs.empty() && "Must enter basic block first."); in force() [all …]
|
D | LivePhysRegs.cpp | 33 RegisterSet::iterator LRI = LiveRegs.begin(); in removeRegsInMask() 34 while (LRI != LiveRegs.end()) { in removeRegsInMask() 38 LRI = LiveRegs.erase(LRI); in removeRegsInMask() 141 if (LiveRegs.count(Reg)) in available() 146 if (LiveRegs.count(*R)) in available() 172 static void addCalleeSavedRegs(LivePhysRegs &LiveRegs, in addCalleeSavedRegs() argument 176 LiveRegs.addReg(*CSR); in addCalleeSavedRegs() 242 void llvm::computeLiveIns(LivePhysRegs &LiveRegs, in computeLiveIns() argument 247 LiveRegs.init(TRI); in computeLiveIns() 248 LiveRegs.addLiveOutsNoPristines(MBB); in computeLiveIns() [all …]
|
D | ReachingDefAnalysis.cpp | 55 if (LiveRegs.empty()) in enterBasicBlock() 56 LiveRegs.assign(NumRegUnits, ReachingDefDefaultVal); in enterBasicBlock() 65 if (LiveRegs[*Unit] != -1) { in enterBasicBlock() 66 LiveRegs[*Unit] = -1; in enterBasicBlock() 87 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]); in enterBasicBlock() 92 if (LiveRegs[Unit] != ReachingDefDefaultVal) in enterBasicBlock() 93 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]); in enterBasicBlock() 97 assert(!LiveRegs.empty() && "Must enter basic block first."); in leaveBasicBlock() 102 MBBOutRegsInfos[MBBNumber] = LiveRegs; in leaveBasicBlock() 111 LiveRegs.clear(); in leaveBasicBlock() [all …]
|
D | StackMapLivenessAnalysis.cpp | 52 LivePhysRegs LiveRegs; member in __anon0ce217ac0111::StackMapLiveness 128 LiveRegs.init(*TRI); in calculateLiveness() 130 LiveRegs.addLiveOutsNoPristines(MBB); in calculateLiveness() 141 LLVM_DEBUG(dbgs() << " " << LiveRegs << " " << *I); in calculateLiveness() 142 LiveRegs.stepBackward(*I); in calculateLiveness() 164 for (auto Reg : LiveRegs) in createRegisterMask()
|
/external/llvm/lib/CodeGen/ |
D | ExecutionDepsFix.cpp | 142 LiveReg *LiveRegs; member in __anonf3da55440311::ExeDepsFix 274 assert(LiveRegs && "Must enter basic block first."); in setLiveReg() 276 if (LiveRegs[rx].Value == dv) in setLiveReg() 278 if (LiveRegs[rx].Value) in setLiveReg() 279 release(LiveRegs[rx].Value); in setLiveReg() 280 LiveRegs[rx].Value = retain(dv); in setLiveReg() 286 assert(LiveRegs && "Must enter basic block first."); in kill() 287 if (!LiveRegs[rx].Value) in kill() 290 release(LiveRegs[rx].Value); in kill() 291 LiveRegs[rx].Value = nullptr; in kill() [all …]
|
D | LivePhysRegs.cpp | 32 SparseSet<unsigned>::iterator LRI = LiveRegs.begin(); in removeRegsInMask() 33 while (LRI != LiveRegs.end()) { in removeRegsInMask() 37 LRI = LiveRegs.erase(LRI); in removeRegsInMask() 132 if (LiveRegs.count(Reg)) in available() 137 if (LiveRegs.count(*R)) in available() 144 static void addLiveIns(LivePhysRegs &LiveRegs, const MachineBasicBlock &MBB) { in addLiveIns() argument 146 LiveRegs.addReg(LI.PhysReg); in addLiveIns() 151 static void addPristines(LivePhysRegs &LiveRegs, const MachineFunction &MF, in addPristines() argument 155 LiveRegs.addReg(*CSR); in addPristines() 157 LiveRegs.removeReg(Info.getReg()); in addPristines()
|
D | StackMapLivenessAnalysis.cpp | 53 LivePhysRegs LiveRegs; member in __anon7aceb83e0111::StackMapLiveness 129 LiveRegs.init(TRI); in calculateLiveness() 131 LiveRegs.addLiveOutsNoPristines(MBB); in calculateLiveness() 142 DEBUG(dbgs() << " " << LiveRegs << " " << *I); in calculateLiveness() 143 LiveRegs.stepBackward(*I); in calculateLiveness() 165 for (auto Reg : LiveRegs) in createRegisterMask()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | LivePhysRegs.h | 51 RegisterSet LiveRegs; variable 59 LiveRegs.setUniverse(TRI.getNumRegs()); in LivePhysRegs() 68 LiveRegs.clear(); in init() 69 LiveRegs.setUniverse(TRI.getNumRegs()); in init() 73 void clear() { LiveRegs.clear(); } in clear() 76 bool empty() const { return LiveRegs.empty(); } in empty() 84 LiveRegs.insert(*SubRegs); in addReg() 93 LiveRegs.erase(*R); in removeReg() 106 bool contains(MCPhysReg Reg) const { return LiveRegs.count(Reg); } in contains() 151 const_iterator begin() const { return LiveRegs.begin(); } in begin() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | LivePhysRegs.h | 51 RegisterSet LiveRegs; variable 59 LiveRegs.setUniverse(TRI.getNumRegs()); in LivePhysRegs() 68 LiveRegs.clear(); in init() 69 LiveRegs.setUniverse(TRI.getNumRegs()); in init() 73 void clear() { LiveRegs.clear(); } in clear() 76 bool empty() const { return LiveRegs.empty(); } in empty() 84 LiveRegs.insert(*SubRegs); in addReg() 93 LiveRegs.erase(*R); in removeReg() 106 bool contains(MCPhysReg Reg) const { return LiveRegs.count(Reg); } in contains() 151 const_iterator begin() const { return LiveRegs.begin(); } in begin() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | LivePhysRegs.h | 45 SparseSet<unsigned> LiveRegs; variable 51 LivePhysRegs() : TRI(nullptr), LiveRegs() {} in LivePhysRegs() 56 LiveRegs.setUniverse(TRI->getNumRegs()); in LivePhysRegs() 63 LiveRegs.clear(); in init() 64 LiveRegs.setUniverse(TRI->getNumRegs()); in init() 68 void clear() { LiveRegs.clear(); } in clear() 71 bool empty() const { return LiveRegs.empty(); } in empty() 79 LiveRegs.insert(*SubRegs); in addReg() 88 LiveRegs.erase(*R); in removeReg() 100 bool contains(unsigned Reg) const { return LiveRegs.count(Reg); } in contains() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | SIFrameLowering.cpp | 39 LivePhysRegs &LiveRegs, in findScratchNonCalleeSaveRegister() argument 45 LiveRegs.addReg(CSRegs[i]); in findScratchNonCalleeSaveRegister() 51 if (!MRI.isPhysRegUsed(Reg) && LiveRegs.available(MRI, Reg)) in findScratchNonCalleeSaveRegister() 56 if (LiveRegs.available(MRI, Reg)) in findScratchNonCalleeSaveRegister() 71 LivePhysRegs &LiveRegs, in getVGPRSpillLaneOrTempRegister() argument 105 MF.getRegInfo(), LiveRegs, AMDGPU::SReg_32_XM0_XEXECRegClass, true); in getVGPRSpillLaneOrTempRegister() 137 static void buildPrologSpill(const GCNSubtarget &ST, LivePhysRegs &LiveRegs, in buildPrologSpill() argument 180 LiveRegs.addReg(SpillReg); in buildPrologSpill() 184 MF->getRegInfo(), LiveRegs, AMDGPU::SReg_32_XM0RegClass); in buildPrologSpill() 200 MF->getRegInfo(), LiveRegs, AMDGPU::VGPR_32RegClass); in buildPrologSpill() [all …]
|
D | GCNRegPressure.cpp | 280 GCNRPTracker::LiveRegSet LiveRegs; in getLiveRegs() local 287 LiveRegs[Reg] = LiveMask; in getLiveRegs() 289 return LiveRegs; in getLiveRegs() 298 if (&LiveRegs != LiveRegsCopy) in reset() 299 LiveRegs = *LiveRegsCopy; in reset() 301 LiveRegs = After ? getLiveRegsAfter(MI, LIS) in reset() 305 MaxPressure = CurPressure = getRegPressure(*MRI, LiveRegs); in reset() 326 auto LiveMask = LiveRegs[U.RegUnit]; in recede() 337 auto I = LiveRegs.find(Reg); in recede() 338 if (I == LiveRegs.end()) in recede() [all …]
|
D | GCNRegPressure.h | 112 LiveRegSet LiveRegs; variable 124 const decltype(LiveRegs) &getLiveRegs() const { return LiveRegs; } in decltype() argument 136 decltype(LiveRegs) moveLiveRegs() { in moveLiveRegs() 137 return std::move(LiveRegs); in moveLiveRegs() 140 static void printLiveRegs(raw_ostream &OS, const LiveRegSet& LiveRegs, 150 void reset(const MachineInstr &MI, const LiveRegSet *LiveRegs = nullptr); 174 bool reset(const MachineInstr &MI, const LiveRegSet *LiveRegs = nullptr); 262 Range &&LiveRegs) { in getRegPressure() argument 264 for (const auto &RM : LiveRegs) in getRegPressure()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | GCNRegPressure.cpp | 278 GCNRPTracker::LiveRegSet LiveRegs; in getLiveRegs() local 285 LiveRegs[Reg] = LiveMask; in getLiveRegs() 287 return LiveRegs; in getLiveRegs() 296 if (&LiveRegs != LiveRegsCopy) in reset() 297 LiveRegs = *LiveRegsCopy; in reset() 299 LiveRegs = After ? getLiveRegsAfter(MI, LIS) in reset() 303 MaxPressure = CurPressure = getRegPressure(*MRI, LiveRegs); in reset() 324 auto LiveMask = LiveRegs[U.RegUnit]; in recede() 335 auto I = LiveRegs.find(Reg); in recede() 336 if (I == LiveRegs.end()) in recede() [all …]
|
D | GCNRegPressure.h | 104 LiveRegSet LiveRegs; variable 116 const decltype(LiveRegs) &getLiveRegs() const { return LiveRegs; } in decltype() argument 128 decltype(LiveRegs) moveLiveRegs() { in moveLiveRegs() 129 return std::move(LiveRegs); in moveLiveRegs() 132 static void printLiveRegs(raw_ostream &OS, const LiveRegSet& LiveRegs, 142 void reset(const MachineInstr &MI, const LiveRegSet *LiveRegs = nullptr); 166 bool reset(const MachineInstr &MI, const LiveRegSet *LiveRegs = nullptr); 254 Range &&LiveRegs) { in getRegPressure() argument 256 for (const auto &RM : LiveRegs) in getRegPressure()
|
D | SIFrameLowering.cpp | 51 LivePhysRegs &LiveRegs, in findScratchNonCalleeSaveRegister() argument 57 LiveRegs.addReg(CSRegs[i]); in findScratchNonCalleeSaveRegister() 63 if (!MRI.isPhysRegUsed(Reg) && LiveRegs.available(MRI, Reg)) in findScratchNonCalleeSaveRegister() 68 if (LiveRegs.available(MRI, Reg)) in findScratchNonCalleeSaveRegister() 83 LivePhysRegs LiveRegs; in findUnusedSGPRNonCalleeSaved() local 84 LiveRegs.init(*MRI.getTargetRegisterInfo()); in findUnusedSGPRNonCalleeSaved() 86 MRI, LiveRegs, AMDGPU::SReg_32_XM0_XEXECRegClass, true); in findUnusedSGPRNonCalleeSaved() 92 static void buildPrologSpill(LivePhysRegs &LiveRegs, MachineBasicBlock &MBB, in buildPrologSpill() argument 121 MF->getRegInfo(), LiveRegs, AMDGPU::VGPR_32RegClass); in buildPrologSpill() 140 static void buildEpilogReload(LivePhysRegs &LiveRegs, MachineBasicBlock &MBB, in buildEpilogReload() argument [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FixupBWInsts.cpp | 144 LivePhysRegs LiveRegs; member in __anon034626400111::FixupBWInstPass 161 LiveRegs.init(&TII->getRegisterInfo()); in runOnMachineFunction() 199 if (LiveRegs.contains(SuperDestReg)) in getSuperRegDestIfDead() 209 if (LiveRegs.contains(UpperByteReg)) in getSuperRegDestIfDead() 341 LiveRegs.clear(); in processBasicBlock() 343 LiveRegs.addLiveOuts(MBB); in processBasicBlock() 359 LiveRegs.stepBackward(*MI); in processBasicBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86FixupBWInsts.cpp | 147 LivePhysRegs LiveRegs; member in __anonbac087a20111::FixupBWInstPass 170 LiveRegs.init(TII->getRegisterInfo()); in runOnMachineFunction() 206 if (!LiveRegs.contains(SuperDestReg)) { in getSuperRegDestIfDead() 214 if (!LiveRegs.contains(getX86SubSuperRegister(OrigDestReg, 16)) && in getSuperRegDestIfDead() 215 !LiveRegs.contains(getX86SubSuperRegister(SuperDestReg, 8, in getSuperRegDestIfDead() 436 LiveRegs.clear(); in processBasicBlock() 438 LiveRegs.addLiveOuts(MBB); in processBasicBlock() 450 LiveRegs.stepBackward(*MI); in processBasicBlock()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86FixupBWInsts.cpp | 147 LivePhysRegs LiveRegs; member in __anone45a0b2e0111::FixupBWInstPass 170 LiveRegs.init(TII->getRegisterInfo()); in runOnMachineFunction() 205 if (!LiveRegs.contains(SuperDestReg)) { in getSuperRegDestIfDead() 213 if (!LiveRegs.contains(getX86SubSuperRegister(OrigDestReg, 16)) && in getSuperRegDestIfDead() 214 !LiveRegs.contains(getX86SubSuperRegister(SuperDestReg, 8, in getSuperRegDestIfDead() 435 LiveRegs.clear(); in processBasicBlock() 437 LiveRegs.addLiveOuts(MBB); in processBasicBlock() 449 LiveRegs.stepBackward(*MI); in processBasicBlock()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZShortenInst.cpp | 53 LivePhysRegs LiveRegs; member in __anon67570cdd0111::SystemZShortenInst 90 if (LiveRegs.contains(OtherReg)) in shortenIIF() 145 if (!LiveRegs.contains(SystemZ::CC) && shortenOn001(MI, Opcode)) { in shortenOn001AddCC() 184 LiveRegs.clear(); in processBlock() 185 LiveRegs.addLiveOuts(MBB); in processBlock() 265 LiveRegs.stepBackward(MI); in processBlock() 278 LiveRegs.init(TRI); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZPostRewrite.cpp | 171 LivePhysRegs LiveRegs(TII->getRegisterInfo()); in expandCondMove() local 172 LiveRegs.addLiveOuts(MBB); in expandCondMove() 174 LiveRegs.stepBackward(*I); in expandCondMove() 181 for (auto I = LiveRegs.begin(); I != LiveRegs.end(); ++I) in expandCondMove() 188 for (auto I = LiveRegs.begin(); I != LiveRegs.end(); ++I) in expandCondMove()
|