[llvm] [MC] Pack scheduling class entry counts (PR #202649)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 07:05:18 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- llvm/include/llvm/MC/MCSchedule.h llvm/utils/TableGen/SubtargetEmitter.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp
index 82e037fcb..8980191a6 100644
--- a/llvm/utils/TableGen/SubtargetEmitter.cpp
+++ b/llvm/utils/TableGen/SubtargetEmitter.cpp
@@ -46,9 +46,10 @@ using namespace llvm;
namespace {
-static uint8_t checkedSchedClassEntryCount(
- size_t Count, StringRef EntryKind, const CodeGenProcModel &ProcModel,
- const CodeGenSchedClass &SchedClass) {
+static uint8_t
+checkedSchedClassEntryCount(size_t Count, StringRef EntryKind,
+ const CodeGenProcModel &ProcModel,
+ const CodeGenSchedClass &SchedClass) {
if (Count > std::numeric_limits<uint8_t>::max())
PrintFatalError(ProcModel.ModelDef->getLoc(),
Twine("Too many ") + EntryKind +
@@ -1441,8 +1442,8 @@ void SubtargetEmitter::emitSchedClassTables(SchedClassTables &SchedTables,
<< format("%2d", MCDesc.ReadAdvanceIdx) << ", "
<< MCDesc.NumReadAdvanceEntries << ", "
<< static_cast<unsigned>(MCDesc.NumWriteProcResEntries) << ", "
- << static_cast<unsigned>(MCDesc.NumWriteLatencyEntries)
- << "}, // #" << SCIdx << '\n';
+ << static_cast<unsigned>(MCDesc.NumWriteLatencyEntries) << "}, // #"
+ << SCIdx << '\n';
}
OS << "}; // " << Proc.ModelName << "SchedClasses\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/202649
More information about the llvm-commits
mailing list