[llvm] [LLVM][TableGen] Change InstrInfoEmitter to use const RecordKeeper (PR #110110)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 04:26:06 PDT 2024


https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/110110

Change InstrInfoEmitter to use const RecordKeeper.

>From 95c7ae44af91b2b928c1f7785e2b23d20b0321e8 Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Thu, 26 Sep 2024 04:02:17 -0700
Subject: [PATCH] [LLVM][TableGen] Change InstrInfoEmitter to use const
 RecordKeeper

---
 llvm/utils/TableGen/InstrInfoEmitter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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