[all-commits] [llvm/llvm-project] d2ee2c: [RISCV] Add an operand kind to the opcode/imm retu...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue May 24 15:00:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2ee2c9c8d34bc915a3d7c00951831eb24708f6a
https://github.com/llvm/llvm-project/commit/d2ee2c9c8d34bc915a3d7c00951831eb24708f6a
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-05-24 (Tue, 24 May 2022)
Changed paths:
M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
Log Message:
-----------
[RISCV] Add an operand kind to the opcode/imm returned from RISCVMatInt.
Instead of matching opcodes to know the format to emit, use an
enum value that we can get from the RISCVMatInt::Inst class.
Change the consumers to use fully covered switches so that we get
a compiler warning if a new kind is added. With the opcode checks
it was easier to forget to update one of the 3 consumers.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D126317
More information about the All-commits
mailing list