[RISCV] Merge RISCVMCInstLower.cpp into RISCVAsmPrinter.cpp.
authorCraig Topper <craig.topper@sifive.com>
Mon, 12 Jun 2023 16:36:57 +0000 (09:36 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 12 Jun 2023 16:36:57 +0000 (09:36 -0700)
commit11e5a0d290bac87f3290547fa2b0aaffc98a798e
tree9dfaefbb47fbb8ecec21a72425c3aa050fab3259
parent80fe3168b507587cd9db47115de609d98188c6f5
[RISCV] Merge RISCVMCInstLower.cpp into RISCVAsmPrinter.cpp.

The separation here doesn't make much sense. I think it's a
leftover from the creation of the MC layer that has been
replicated to new targets.

By merging them we can avoid passing the AsmPrinter to the
MCInstLowering functions. We can make them member functions instead.

I think we can still do more integration of lowerSymbolOperand
and lowerRISCVVMachineInstrToMCInst, but I wanted to get feedback
on the direction first.

Reviewed By: asb, barannikov88

Differential Revision: https://reviews.llvm.org/D152311
llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/RISCV.h
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
llvm/lib/Target/RISCV/RISCVMCInstLower.cpp [deleted file]