diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-23 17:36:07 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-23 17:36:07 +0000 |
commit | 51dba7d3ab5e8790e04114ece7df70977324d9e2 (patch) | |
tree | 8127b14c7950725d7465a9089514032aa664e395 /llvm/tools/llvm-mca/Scheduler.h | |
parent | c244a15801b2f9a679c188cd13e101a9cfbd2b9c (diff) | |
download | bcm5719-llvm-51dba7d3ab5e8790e04114ece7df70977324d9e2.tar.gz bcm5719-llvm-51dba7d3ab5e8790e04114ece7df70977324d9e2.zip |
[llvm-mca] Make the resource cost a double.
This is done in preparation for the fix for PR36874.
The number of cycles consumed for each pipe is now a double quantity. This
allows reuse of the resource pressure view to print out instruction tables.
llvm-svn: 328335
Diffstat (limited to 'llvm/tools/llvm-mca/Scheduler.h')
-rw-r--r-- | llvm/tools/llvm-mca/Scheduler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/Scheduler.h b/llvm/tools/llvm-mca/Scheduler.h index 6f677744a38..a3ef14456a3 100644 --- a/llvm/tools/llvm-mca/Scheduler.h +++ b/llvm/tools/llvm-mca/Scheduler.h @@ -363,7 +363,7 @@ public: void issueInstruction( unsigned Index, const InstrDesc &Desc, - llvm::SmallVectorImpl<std::pair<ResourceRef, unsigned>> &Pipes); + llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes); void cycleEvent(llvm::SmallVectorImpl<ResourceRef> &ResourcesFreed); @@ -420,7 +420,7 @@ class Scheduler { void notifyInstructionIssued( unsigned Index, - llvm::ArrayRef<std::pair<ResourceRef, unsigned>> Used); + llvm::ArrayRef<std::pair<ResourceRef, double>> Used); void notifyInstructionExecuted(unsigned Index); void notifyInstructionReady(unsigned Index); void notifyResourceAvailable(const ResourceRef &RR); |