Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/
DScheduler.cpp85 void ResourceManager::use(ResourceRef RR) { in use()
107 void ResourceManager::release(ResourceRef RR) { in release()
179 SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes) { in issueInstruction() argument
189 ResourceRef Pipe = selectPipe(R.first); in issueInstruction()
196 std::pair<ResourceRef, double>(Pipe, static_cast<double>(CS.size()))); in issueInstruction()
202 BusyResources[ResourceRef(R.first, R.first)] += CS.size(); in issueInstruction()
207 void ResourceManager::cycleEvent(SmallVectorImpl<ResourceRef> &ResourcesFreed) { in cycleEvent()
208 for (std::pair<ResourceRef, unsigned> &BR : BusyResources) { in cycleEvent()
213 const ResourceRef &RR = BR.first; in cycleEvent()
223 for (const ResourceRef &RF : ResourcesFreed) in cycleEvent()
[all …]
DScheduler.h260 typedef std::pair<uint64_t, uint64_t> ResourceRef; typedef
281 llvm::SmallDenseMap<ResourceRef, unsigned> BusyResources;
295 ResourceRef selectPipe(uint64_t ResourceID);
297 void use(ResourceRef RR);
298 void release(ResourceRef RR);
368 llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes);
370 void cycleEvent(llvm::SmallVectorImpl<ResourceRef> &ResourcesFreed);
420 llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes);
445 llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Used);
468 void reclaimSimulatedResources(llvm::SmallVectorImpl<ResourceRef> &Freed);
DExecuteStage.cpp31 SmallVector<ResourceRef, 8> ResourcesFreed; in reclaimSchedulerResources()
33 for (const ResourceRef &RR : ResourcesFreed) in reclaimSchedulerResources()
55 SmallVector<std::pair<ResourceRef, double>, 4> Used; in issueReadyInstructions()
142 SmallVector<std::pair<ResourceRef, double>, 4> Used; in execute()
168 void ExecuteStage::notifyResourceAvailable(const ResourceRef &RR) { in notifyResourceAvailable()
176 const InstRef &IR, ArrayRef<std::pair<ResourceRef, double>> Used) { in notifyInstructionIssued() argument
179 for (const std::pair<ResourceRef, unsigned> &Resource : Used) { in notifyInstructionIssued()
DHWEventListener.h63 using ResourceRef = std::pair<uint64_t, uint64_t>;
65 llvm::ArrayRef<std::pair<ResourceRef, double>> UR) in HWInstructionIssuedEvent() argument
68 llvm::ArrayRef<std::pair<ResourceRef, double>> UsedResources;
126 using ResourceRef = std::pair<uint64_t, uint64_t>; variable
127 virtual void onResourceAvailable(const ResourceRef &RRef) {} in onResourceAvailable()
DExecuteStage.h53 llvm::ArrayRef<std::pair<ResourceRef, double>> Used);
56 void notifyResourceAvailable(const ResourceRef &RR);
DInstructionTables.cpp43 ResourceRef ResourceUnit = std::make_pair(Index, 1U << I); in execute()
58 ResourceRef ResourceUnit = std::make_pair(SubUnitIdx, 1U << I2); in execute()
DResourcePressureView.cpp49 for (const std::pair<ResourceRef, double> &Use : IssueEvent.UsedResources) { in onEvent()
50 const ResourceRef &RR = Use.first; in onEvent()
DInstructionTables.h32 llvm::SmallVector<std::pair<ResourceRef, double>, 4> UsedResources;