diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2023-08-22 17:00:50 -0700 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2023-08-24 11:20:37 -0700 |
commit | 030d33409568b2f0ea61116e83fd40ca27ba33ac (patch) | |
tree | 5edf70901bb799bccdbe5031c8bf012c7ea564c8 /llvm/tools/llvm-exegesis/lib/Analysis.cpp | |
parent | be556ee157c9dbb9f7e79ae1bd7ebf927bd4395d (diff) | |
download | llvm-030d33409568b2f0ea61116e83fd40ca27ba33ac.zip llvm-030d33409568b2f0ea61116e83fd40ca27ba33ac.tar.gz llvm-030d33409568b2f0ea61116e83fd40ca27ba33ac.tar.bz2 |
[TableGen] Rename ResourceCycles and StartAtCycle to clarify semantics
D150312 added a TODO:
TODO: consider renaming the field `StartAtCycle` and `Cycles` to
`AcquireAtCycle` and `ReleaseAtCycle` respectively, to stress the
fact that resource allocation is now represented as an interval,
relatively to the issue cycle of the instruction.
This patch implements that TODO. This naming clarifies how to use these
fields in the scheduler. In addition it was confusing that `StartAtCycle` was
singular but `Cycles` was plural. This renaming fixes this inconsistency.
Differential Revision: https://reviews.llvm.org/D158568
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/Analysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp index 7c44373..bd088b9 100644 --- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp +++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp @@ -390,7 +390,7 @@ void Analysis::printSchedClassDescHtml(const ResolvedSchedClass &RSC, OS << "<li><span class=\"mono\">"; writeEscaped<kEscapeHtml>(OS, SM.getProcResource(WPR.ProcResourceIdx)->Name); - OS << "</span>: " << WPR.Cycles << "</li>"; + OS << "</span>: " << WPR.ReleaseAtCycle << "</li>"; } OS << "</ul></td>"; // Idealized port pressure. |