[llvm] f9cba2e - [LLVM][TableGen] Change InstrInfoEmitter to use const RecordKeeper (#110110)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 07:33:57 PDT 2024
Author: Rahul Joshi
Date: 2024-09-26T07:33:53-07:00
New Revision: f9cba2eea4c23f80a2a49b21052d313009801d7d
URL: https://github.com/llvm/llvm-project/commit/f9cba2eea4c23f80a2a49b21052d313009801d7d
DIFF: https://github.com/llvm/llvm-project/commit/f9cba2eea4c23f80a2a49b21052d313009801d7d.diff
LOG: [LLVM][TableGen] Change InstrInfoEmitter to use const RecordKeeper (#110110)
Change InstrInfoEmitter to use const RecordKeeper.
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
Added:
Modified:
llvm/utils/TableGen/InstrInfoEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index 46605095ba85f8..5653434ddd6827 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp
@@ -1357,7 +1357,7 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
OS << "#endif // GET_INSTRINFO_SCHED_ENUM\n\n";
}
-static void EmitInstrInfo(RecordKeeper &RK, raw_ostream &OS) {
+static void EmitInstrInfo(const RecordKeeper &RK, raw_ostream &OS) {
RK.startTimer("Analyze DAG patterns");
InstrInfoEmitter(RK).run(OS);
RK.startTimer("Emit map table");
More information about the llvm-commits
mailing list