[llvm] [LLVM][TableGen] Move DecoderEmitter output to anonymous namespace (PR #136214)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 16:17:15 PDT 2025


================
@@ -128,44 +128,6 @@ class AMDGPUDisassembler : public MCDisassembler {
 
   MCOperand errOperand(unsigned V, const Twine& ErrMsg) const;
 
-  template <typename InsnType>
-  DecodeStatus tryDecodeInst(const uint8_t *Table, MCInst &MI, InsnType Inst,
----------------
s-barannikov wrote:

Can you move the body to cpp and keep the declaration inside the class? So that you don't have to pass `this` to every call.


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


More information about the llvm-commits mailing list