Home
last modified time | relevance | path

Searched refs:LRU (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostSelectOptimize.cpp124 LiveRegUnits LRU(*MBB.getParent()->getSubtarget().getRegisterInfo()); in optimizeNZCVDefs() local
125 LRU.addLiveOuts(MBB); in optimizeNZCVDefs()
126 bool NZCVDead = LRU.available(AArch64::NZCV); in optimizeNZCVDefs()
129 LRU.stepBackward(II); in optimizeNZCVDefs()
140 bool NZCVDeadAtCurrInstr = LRU.available(AArch64::NZCV); in optimizeNZCVDefs()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineTraceMetrics.cpp744 LiveRegUnit &LRU = RegUnits[*Units]; in updatePhysDepsDownwards() local
745 LRU.MI = UseMI; in updatePhysDepsDownwards()
746 LRU.Op = DefOp; in updatePhysDepsDownwards()
936 LiveRegUnit &LRU = RegUnits[*Units]; in updatePhysDepsUpwards() local
938 if (LRU.Cycle <= Height && LRU.MI != &MI) { in updatePhysDepsUpwards()
939 LRU.Cycle = Height; in updatePhysDepsUpwards()
940 LRU.MI = &MI; in updatePhysDepsUpwards()
941 LRU.Op = ReadOps[I]; in updatePhysDepsUpwards()
H A DEarlyIfConversion.cpp411 for (unsigned LRU : LiveRegUnits) in findInsertionPoint()
412 dbgs() << ' ' << printRegUnit(LRU, TRI); in findInsertionPoint()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DTUScheduler.cpp161 if (It == LRU.end() || !It->second) in getUsedBytes()
170 assert(findByKey(K) == LRU.end()); in put()
172 LRU.insert(LRU.begin(), {K, std::move(V)}); in put()
173 if (LRU.size() <= MaxRetainedASTs) in put()
176 std::unique_ptr<ParsedAST> ForCleanup = std::move(LRU.back().second); in put()
177 LRU.pop_back(); in put()
192 if (Existing == LRU.end()) { in take()
200 LRU.erase(Existing); in take()
211 return llvm::find_if(LRU, [K](const KVPair &P) { return P.first == K; }); in findByKey()
218 std::vector<KVPair> LRU; /* GUARDED_BY(Mut) */ member in clang::clangd::TUScheduler::ASTCache
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonBitSimplify.cpp86 LRU.clear(); in clear()
113 LRU.push_back(Idx); in insert()
114 if (LRU.size() > RegisterSetLimit) { in insert()
115 unsigned T = LRU.front(); in insert()
117 LRU.pop_front(); in insert()
128 auto F = llvm::find(LRU, Idx); in remove()
129 assert(F != LRU.end()); in remove()
130 LRU.erase(F); in remove()
171 std::deque<unsigned> LRU; member
/llvm-project-15.0.7/llvm/docs/HistoricalNotes/
H A D2003-06-25-Reoptimizer1.txt125 replacement policy; we have found that this is almost as good as LRU
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp7452 LiveRegUnits LRU(getRegisterInfo()); in isMBBSafeToOutlineFrom() local
7455 LRU.accumulate(MI); in isMBBSafeToOutlineFrom()
7458 bool W16AvailableInBlock = LRU.available(AArch64::W16); in isMBBSafeToOutlineFrom()
7459 bool W17AvailableInBlock = LRU.available(AArch64::W17); in isMBBSafeToOutlineFrom()
7460 bool NZCVAvailableInBlock = LRU.available(AArch64::NZCV); in isMBBSafeToOutlineFrom()
7468 LRU.addLiveOuts(MBB); in isMBBSafeToOutlineFrom()
7472 if (W16AvailableInBlock && !LRU.available(AArch64::W16)) in isMBBSafeToOutlineFrom()
7474 if (W17AvailableInBlock && !LRU.available(AArch64::W17)) in isMBBSafeToOutlineFrom()
7476 if (NZCVAvailableInBlock && !LRU.available(AArch64::NZCV)) in isMBBSafeToOutlineFrom()
7497 Reg != AArch64::X16 && Reg != AArch64::X17 && LRU.available(Reg)) { in isMBBSafeToOutlineFrom()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMBaseInstrInfo.cpp6214 LiveRegUnits LRU(getRegisterInfo()); in isMBBSafeToOutlineFrom() local
6217 LRU.accumulate(MI); in isMBBSafeToOutlineFrom()
6220 bool R12AvailableInBlock = LRU.available(ARM::R12); in isMBBSafeToOutlineFrom()
6221 bool CPSRAvailableInBlock = LRU.available(ARM::CPSR); in isMBBSafeToOutlineFrom()
6229 LRU.addLiveOuts(MBB); in isMBBSafeToOutlineFrom()
6233 if (R12AvailableInBlock && !LRU.available(ARM::R12)) in isMBBSafeToOutlineFrom()
6235 if (CPSRAvailableInBlock && !LRU.available(ARM::CPSR)) in isMBBSafeToOutlineFrom()
6248 : LRU.available(ARM::LR); in isMBBSafeToOutlineFrom()