| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExecutionDomainFix.cpp | 74 if (LiveRegs[rx] == dv) in setLiveReg() 76 if (LiveRegs[rx]) in setLiveReg() 77 release(LiveRegs[rx]); in setLiveReg() 84 if (!LiveRegs[rx]) in kill() 87 release(LiveRegs[rx]); in kill() 88 LiveRegs[rx] = nullptr; in kill() 159 if (LiveRegs.empty()) in enterBasicBlock() 219 LiveRegs.clear(); in leaveBasicBlock() 289 if (!LiveRegs.empty()) in visitSoftInstr() 387 if (!LiveRegs[rx] || (mo.isDef() && LiveRegs[rx] != dv)) { in visitSoftInstr() [all …]
|
| H A D | LivePhysRegs.cpp | 34 while (LRI != LiveRegs.end()) { in removeRegsInMask() 38 LRI = LiveRegs.erase(LRI); in removeRegsInMask() 143 if (LiveRegs.count(Reg)) in available() 148 if (LiveRegs.count(*R)) in available() 178 LiveRegs.addReg(*CSR); in addCalleeSavedRegs() 253 LiveRegs.init(TRI); in computeLiveIns() 283 LivePhysRegs LiveRegs; in recomputeLivenessFlags() local 284 LiveRegs.init(TRI); in recomputeLivenessFlags() 315 LiveRegs.removeDefs(MI); in recomputeLivenessFlags() 332 LiveRegs.addUses(MI); in recomputeLivenessFlags() [all …]
|
| H A D | ReachingDefAnalysis.cpp | 62 if (LiveRegs.empty()) in enterBasicBlock() 73 LiveRegs[Unit] = -1; in enterBasicBlock() 94 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]); in enterBasicBlock() 118 LiveRegs.clear(); in leaveBasicBlock() 226 LiveRegs.clear(); in releaseMemory() 424 LivePhysRegs LiveRegs(*TRI); in getLiveOuts() local 425 LiveRegs.addLiveOuts(*MBB); in getLiveOuts() 472 LivePhysRegs LiveRegs(*TRI); in isRegUsedAfter() local 473 LiveRegs.addLiveOuts(*MBB); in isRegUsedAfter() 508 LiveRegs.addLiveOuts(*MBB); in isReachingDefLiveOut() [all …]
|
| H A D | StackMapLivenessAnalysis.cpp | 52 LivePhysRegs LiveRegs; member in __anon721b8beb0111::StackMapLiveness 128 LiveRegs.init(*TRI); in calculateLiveness() 130 LiveRegs.addLiveOutsNoPristines(MBB); in calculateLiveness() 141 LLVM_DEBUG(dbgs() << " " << LiveRegs << " " << MI); in calculateLiveness() 142 LiveRegs.stepBackward(MI); in calculateLiveness() 164 for (auto Reg : LiveRegs) in createRegisterMask()
|
| H A D | RegisterPressure.cpp | 256 LiveRegs.clear(); in reset() 289 LiveRegs.init(*MRI); in init() 326 P.LiveInRegs.reserve(LiveRegs.size()); in closeTop() 327 LiveRegs.appendTo(P.LiveInRegs); in closeTop() 338 P.LiveOutRegs.reserve(LiveRegs.size()); in closeBottom() 339 LiveRegs.appendTo(P.LiveOutRegs); in closeBottom() 706 LaneBitmask PrevMask = LiveRegs.insert(P); in addLiveRegs() 745 LaneBitmask LiveMask = LiveRegs.contains(Reg); in bumpDeadDefs() 751 LaneBitmask LiveMask = LiveRegs.contains(Reg); in bumpDeadDefs() 914 LaneBitmask LiveMask = LiveRegs.contains(Reg); in advance() [all …]
|
| H A D | ScheduleDAGInstrs.cpp | 1106 static void toggleKills(const MachineRegisterInfo &MRI, LivePhysRegs &LiveRegs, in toggleKills() argument 1116 bool IsKill = LiveRegs.available(MRI, Reg); in toggleKills() 1119 LiveRegs.addReg(Reg); in toggleKills() 1126 LiveRegs.init(*TRI); in fixupKills() 1127 LiveRegs.addLiveOuts(MBB); in fixupKills() 1145 LiveRegs.removeReg(Reg); in fixupKills() 1147 LiveRegs.removeRegsInMask(MO); in fixupKills() 1153 toggleKills(MRI, LiveRegs, MI, true); in fixupKills() 1157 toggleKills(MRI, LiveRegs, MI, false); in fixupKills() 1167 toggleKills(MRI, LiveRegs, *I, true); in fixupKills()
|
| H A D | BranchRelaxation.cpp | 89 LivePhysRegs LiveRegs; member in __anon69b1c36f0111::BranchRelaxation 322 computeAndAddLiveIns(LiveRegs, *NewBB); in splitBlockBeforeInstr() 392 computeAndAddLiveIns(LiveRegs, *NewBB); in fixupConditionalBranch() 636 computeAndAddLiveIns(LiveRegs, *RestoreBB); in fixupUnconditionalBranch()
|
| H A D | BranchFolding.cpp | 363 LiveRegs.clear(); in replaceTailWithBranchTo() 364 LiveRegs.addLiveOuts(OldMBB); in replaceTailWithBranchTo() 369 LiveRegs.stepBackward(*I); in replaceTailWithBranchTo() 381 if (!LiveRegs.available(*MRI, Reg)) in replaceTailWithBranchTo() 423 computeAndAddLiveIns(LiveRegs, *NewMBB); in SplitMBBAt() 846 LiveRegs.init(*TRI); in mergeCommonTails() 851 LiveRegs.clear(); in mergeCommonTails() 852 LiveRegs.addLiveOuts(*Pred); in mergeCommonTails() 855 if (!LiveRegs.available(*MRI, Reg)) in mergeCommonTails()
|
| H A D | BranchFolding.h | 125 LivePhysRegs LiveRegs; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | LivePhysRegs.h | 53 RegisterSet LiveRegs; variable 61 LiveRegs.setUniverse(TRI.getNumRegs()); in LivePhysRegs() 70 LiveRegs.clear(); in init() 71 LiveRegs.setUniverse(TRI.getNumRegs()); in init() 75 void clear() { LiveRegs.clear(); } in clear() 78 bool empty() const { return LiveRegs.empty(); } in empty() 85 LiveRegs.insert(SubReg); in addReg() 94 LiveRegs.erase(*R); in removeReg() 156 const_iterator begin() const { return LiveRegs.begin(); } in begin() 157 const_iterator end() const { return LiveRegs.end(); } in end() [all …]
|
| H A D | ExecutionDomainFix.h | 129 LiveRegsDVInfo LiveRegs; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNRegPressure.cpp | 237 LiveRegs[Reg] = LiveMask; in getLiveRegs() 239 return LiveRegs; in getLiveRegs() 249 LiveRegs = *LiveRegsCopy; in reset() 264 LiveRegs = LiveRegs_; in reset() 294 auto I = LiveRegs.find(Reg); in recede() 295 if (I == LiveRegs.end()) in recede() 303 LiveRegs.erase(I); in recede() 368 auto It = LiveRegs.end(); in advanceBeforeNext() 382 LiveRegs.erase(It); in advanceBeforeNext() 385 if (It == LiveRegs.end()) in advanceBeforeNext() [all …]
|
| H A D | GCNRegPressure.h | 140 LiveRegSet LiveRegs; variable 152 const decltype(LiveRegs) &getLiveRegs() const { return LiveRegs; } in decltype() argument 159 decltype(LiveRegs) moveLiveRegs() { in moveLiveRegs() 160 return std::move(LiveRegs); in moveLiveRegs() 229 bool reset(const MachineInstr &MI, const LiveRegSet *LiveRegs = nullptr); 319 Range &&LiveRegs) { in getRegPressure() argument 321 for (const auto &RM : LiveRegs) in getRegPressure() 331 Printable print(const GCNRPTracker::LiveRegSet &LiveRegs,
|
| H A D | SIMachineScheduler.cpp | 1580 DAG->fillVgprSgprCost(LiveRegs.begin(), LiveRegs.end(), in pickBlock() 1592 : LiveRegs) dbgs() in pickBlock() 1654 (void) LiveRegs.insert(Reg); in addLiveRegs() 1662 std::set<unsigned>::iterator Pos = LiveRegs.find(Reg); in decreaseLiveRegs() 1663 assert (Pos != LiveRegs.end() && // Reg must be live. in decreaseLiveRegs() 1668 LiveRegs.erase(Pos); in decreaseLiveRegs()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchExpandAtomicPseudoInsts.cpp | 331 LivePhysRegs LiveRegs; in expandAtomicBinOp() local 332 computeAndAddLiveIns(LiveRegs, *LoopMBB); in expandAtomicBinOp() 333 computeAndAddLiveIns(LiveRegs, *DoneMBB); in expandAtomicBinOp() 460 LivePhysRegs LiveRegs; in expandAtomicMinMaxOp() local 461 computeAndAddLiveIns(LiveRegs, *LoopHeadMBB); in expandAtomicMinMaxOp() 463 computeAndAddLiveIns(LiveRegs, *LoopTailMBB); in expandAtomicMinMaxOp() 464 computeAndAddLiveIns(LiveRegs, *DoneMBB); in expandAtomicMinMaxOp() 596 LivePhysRegs LiveRegs; in expandAtomicCmpXchg() local 597 computeAndAddLiveIns(LiveRegs, *LoopHeadMBB); in expandAtomicCmpXchg() 599 computeAndAddLiveIns(LiveRegs, *TailMBB); in expandAtomicCmpXchg() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZShortenInst.cpp | 49 LivePhysRegs LiveRegs; member in __anon483e562a0111::SystemZShortenInst 91 if (LiveRegs.contains(OtherReg)) in shortenIIF() 146 if (!LiveRegs.contains(SystemZ::CC) && shortenOn001(MI, Opcode)) { in shortenOn001AddCC() 211 LiveRegs.clear(); in processBlock() 212 LiveRegs.addLiveOuts(MBB); in processBlock() 380 LiveRegs.stepBackward(MI); in processBlock() 393 LiveRegs.init(*TRI); in runOnMachineFunction()
|
| H A D | SystemZPostRewrite.cpp | 164 LivePhysRegs LiveRegs(TII->getRegisterInfo()); in expandCondMove() local 165 LiveRegs.addLiveOuts(MBB); in expandCondMove() 167 LiveRegs.stepBackward(*I); in expandCondMove() 174 for (MCPhysReg R : LiveRegs) in expandCondMove() 181 for (MCPhysReg R : LiveRegs) in expandCondMove()
|
| H A D | SystemZElimCompare.cpp | 693 LivePhysRegs LiveRegs(*TRI); in processBlock() local 694 LiveRegs.addLiveOuts(MBB); in processBlock() 695 bool CompleteCCUsers = !LiveRegs.contains(SystemZ::CC); in processBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsExpandPseudo.cpp | 191 LivePhysRegs LiveRegs; in expandAtomicCmpSwapSubword() local 192 computeAndAddLiveIns(LiveRegs, *loop1MBB); in expandAtomicCmpSwapSubword() 193 computeAndAddLiveIns(LiveRegs, *loop2MBB); in expandAtomicCmpSwapSubword() 194 computeAndAddLiveIns(LiveRegs, *sinkMBB); in expandAtomicCmpSwapSubword() 195 computeAndAddLiveIns(LiveRegs, *exitMBB); in expandAtomicCmpSwapSubword() 292 LivePhysRegs LiveRegs; in expandAtomicCmpSwap() local 293 computeAndAddLiveIns(LiveRegs, *loop1MBB); in expandAtomicCmpSwap() 294 computeAndAddLiveIns(LiveRegs, *loop2MBB); in expandAtomicCmpSwap() 295 computeAndAddLiveIns(LiveRegs, *exitMBB); in expandAtomicCmpSwap() 566 LivePhysRegs LiveRegs; in expandAtomicBinOpSubword() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVExpandAtomicPseudoInsts.cpp | 420 LivePhysRegs LiveRegs; in expandAtomicBinOp() local 421 computeAndAddLiveIns(LiveRegs, *LoopMBB); in expandAtomicBinOp() 422 computeAndAddLiveIns(LiveRegs, *DoneMBB); in expandAtomicBinOp() 550 LivePhysRegs LiveRegs; in expandAtomicMinMaxOp() local 551 computeAndAddLiveIns(LiveRegs, *LoopHeadMBB); in expandAtomicMinMaxOp() 553 computeAndAddLiveIns(LiveRegs, *LoopTailMBB); in expandAtomicMinMaxOp() 554 computeAndAddLiveIns(LiveRegs, *DoneMBB); in expandAtomicMinMaxOp() 723 LivePhysRegs LiveRegs; in expandAtomicCmpXchg() local 724 computeAndAddLiveIns(LiveRegs, *LoopHeadMBB); in expandAtomicCmpXchg() 725 computeAndAddLiveIns(LiveRegs, *LoopTailMBB); in expandAtomicCmpXchg() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandPseudoInsts.cpp | 289 LivePhysRegs LiveRegs; in expandCMP_SWAP() local 290 computeAndAddLiveIns(LiveRegs, *DoneBB); in expandCMP_SWAP() 291 computeAndAddLiveIns(LiveRegs, *StoreBB); in expandCMP_SWAP() 295 computeAndAddLiveIns(LiveRegs, *StoreBB); in expandCMP_SWAP() 421 LivePhysRegs LiveRegs; in expandCMP_SWAP_128() local 422 computeAndAddLiveIns(LiveRegs, *DoneBB); in expandCMP_SWAP_128() 423 computeAndAddLiveIns(LiveRegs, *FailBB); in expandCMP_SWAP_128() 429 computeAndAddLiveIns(LiveRegs, *FailBB); in expandCMP_SWAP_128() 734 LivePhysRegs LiveRegs; in expandSetTagLoop() local 735 computeAndAddLiveIns(LiveRegs, *DoneBB); in expandSetTagLoop() [all …]
|
| H A D | AArch64FrameLowering.cpp | 998 LiveRegs.addLiveIns(MBB); in getLiveRegsForEntryMBB() 1002 LiveRegs.addReg(CSRegs[i]); in getLiveRegsForEntryMBB() 1025 LivePhysRegs LiveRegs(TRI); in findScratchNonCalleeSaveRegister() local 1052 LivePhysRegs LiveRegs(TRI); in canUseAsPrologue() local 1607 LiveRegs.addLiveOuts(MBB); in getLivePhysRegsUpTo() 1610 LiveRegs.stepBackward(MI); in getLivePhysRegsUpTo() 1642 LivePhysRegs LiveRegs(*TRI); in emitPrologue() local 1646 LiveRegs.removeReg(AArch64::SP); in emitPrologue() 1648 LiveRegs.removeReg(AArch64::FP); in emitPrologue() 4032 LiveRegs.addLiveOuts(*MBB); in tryMergeAdjacentSTG() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMExpandPseudoInsts.cpp | 1894 LivePhysRegs LiveRegs; in ExpandCMP_SWAP() local 1895 computeAndAddLiveIns(LiveRegs, *DoneBB); in ExpandCMP_SWAP() 1896 computeAndAddLiveIns(LiveRegs, *StoreBB); in ExpandCMP_SWAP() 1900 computeAndAddLiveIns(LiveRegs, *StoreBB); in ExpandCMP_SWAP() 2015 LivePhysRegs LiveRegs; in ExpandCMP_SWAP_64() local 2016 computeAndAddLiveIns(LiveRegs, *DoneBB); in ExpandCMP_SWAP_64() 2017 computeAndAddLiveIns(LiveRegs, *StoreBB); in ExpandCMP_SWAP_64() 2303 LivePhysRegs LiveRegs(*TRI); in ExpandMI() local 2304 LiveRegs.addLiveOuts(MBB); in ExpandMI() 2306 LiveRegs.stepBackward(MI); in ExpandMI() [all …]
|
| H A D | ARMBlockPlacement.cpp | 138 LivePhysRegs LiveRegs; in revertWhileToDoLoop() local 139 computeAndAddLiveIns(LiveRegs, *NewBlock); in revertWhileToDoLoop()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ExpandPseudo.cpp | 648 LivePhysRegs LiveRegs(*STI->getRegisterInfo()); in ExpandVastartSaveXmmRegs() local 651 LiveRegs.addLiveIns(*EntryBlk); in ExpandVastartSaveXmmRegs() 656 LiveRegs.stepForward(MI, Clobbers); in ExpandVastartSaveXmmRegs() 713 addLiveIns(*GuardedRegsBlk, LiveRegs); in ExpandVastartSaveXmmRegs() 714 addLiveIns(*TailBlk, LiveRegs); in ExpandVastartSaveXmmRegs()
|