diff options
author | Min-Yih Hsu <minyihh@uci.edu> | 2022-05-30 16:50:09 -0700 |
---|---|---|
committer | Min-Yih Hsu <minyihh@uci.edu> | 2022-06-24 15:39:51 -0700 |
commit | 97579dcc6d3cd129c75b0502f7c43a18292d44b1 (patch) | |
tree | d037fb47a2a6a6406047b42a349103b5d75bf3f5 /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 048e6bb46bc2b800def49373fba75419b39d3249 (diff) | |
download | llvm-97579dcc6d3cd129c75b0502f7c43a18292d44b1.zip llvm-97579dcc6d3cd129c75b0502f7c43a18292d44b1.tar.gz llvm-97579dcc6d3cd129c75b0502f7c43a18292d44b1.tar.bz2 |
[MCA] Introducing incremental SourceMgr and resumable pipeline
The new resumable mca::Pipeline capability introduced in this patch
allows users to save the current state of pipeline and resume from the
very checkpoint.
It is better (but not require) to use with the new IncrementalSourceMgr,
where users can add mca::Instruction incrementally rather than having a
fixed number of instructions ahead-of-time.
Note that we're using unit tests to test these new features. Because
integrating them into the `llvm-mca` tool will make too many churns.
Differential Revision: https://reviews.llvm.org/D127083
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index cfd1148..409de28 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -542,7 +542,8 @@ int main(int argc, char **argv) { LoweredSequence.emplace_back(std::move(Inst.get())); } - mca::SourceMgr S(LoweredSequence, PrintInstructionTables ? 1 : Iterations); + mca::CircularSourceMgr S(LoweredSequence, + PrintInstructionTables ? 1 : Iterations); if (PrintInstructionTables) { // Create a pipeline, stages, and a printer. |