[llvm] [NFC][LLVM][CodeGen] Refactor MIR Printer (PR #137361)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 15:12:20 PDT 2025


================
@@ -971,10 +911,11 @@ static std::string formatOperandComment(std::string Comment) {
 }
 
 void MIPrinter::print(const MachineInstr &MI, unsigned OpIdx,
-                      const TargetRegisterInfo *TRI,
-                      const TargetInstrInfo *TII,
-                      bool ShouldPrintRegisterTies, LLT TypeToPrint,
-                      bool PrintDef) {
+                      const TargetRegisterInfo *TRI, const TargetInstrInfo *TII,
+                      bool ShouldPrintRegisterTies,
+                      SmallBitVector &PrintedTypes, bool PrintDef) {
+  const auto &MRI = MI.getMF()->getRegInfo();
----------------
jurahul wrote:

Done.

https://github.com/llvm/llvm-project/pull/137361


More information about the llvm-commits mailing list