diff options
| author | Clement Courbet <courbet@google.com> | 2018-06-01 14:18:02 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-06-01 14:18:02 +0000 |
| commit | df79e79e225c05d1b4e6fce51d17b038e1caf863 (patch) | |
| tree | 988fd0e43d69e0e2514e00c471ba5722b6921f47 /llvm/tools/llvm-exegesis/lib/Analysis.h | |
| parent | d101b5d7f7b82da622af6574d9fb5764c8c6cb1c (diff) | |
| download | bcm5719-llvm-df79e79e225c05d1b4e6fce51d17b038e1caf863.tar.gz bcm5719-llvm-df79e79e225c05d1b4e6fce51d17b038e1caf863.zip | |
[llvm-exegesis] Analysis: Display idealized sched class port pressure.
Summary: Screenshot in phabricator diff.
Reviewers: gchatelet
Subscribers: mgorny, tschuett, mgrang, llvm-commits
Differential Revision: https://reviews.llvm.org/D47329
llvm-svn: 333753
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.h')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/Analysis.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.h b/llvm/tools/llvm-exegesis/lib/Analysis.h index cb3ef30f0a5..36110076a12 100644 --- a/llvm/tools/llvm-exegesis/lib/Analysis.h +++ b/llvm/tools/llvm-exegesis/lib/Analysis.h @@ -58,6 +58,13 @@ private: std::unordered_map<std::string, unsigned> MnemonicToOpcode_; }; +// Computes the idealized ProcRes Unit pressure. This is the expected +// distribution if the CPU scheduler can distribute the load as evenly as +// possible. +std::vector<std::pair<uint16_t, float>> computeIdealizedProcResPressure( + const llvm::MCSchedModel &SM, + llvm::SmallVector<llvm::MCWriteProcResEntry, 8> WPRS); + } // namespace exegesis #endif // LLVM_TOOLS_LLVM_EXEGESIS_CLUSTERING_H |

