[PATCH] D156432: [RISCV][NFC] Use !format to simplify some code

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 08:50:57 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:195
+    let ParserMatchClass = UImmAsmOperand<i>;
+    let DecoderMethod = !format("decodeUImmOperand<{0}>", i);
+    let OperandType = "OPERAND_UIMM" # i;
----------------
Why do we need !format for DecoderMethod?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156432/new/

https://reviews.llvm.org/D156432



More information about the llvm-commits mailing list