[llvm] [TableGen][DecoderEmitter] Move Operands to InstructionEncoding (NFCI) (PR #154456)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 20:55:51 PDT 2025
================
@@ -1950,21 +1959,13 @@ static void addOneOperandFields(const Record *EncodingDef, const BitsInit &Bits,
}
}
-static unsigned populateInstruction(
- const CodeGenTarget &Target, const Record *EncodingDef,
- const CodeGenInstruction *Inst, unsigned EncodingID,
- std::map<unsigned, std::vector<OperandInfo>> &EncodingOperands,
- bool IsVarLenInst) {
+unsigned InstructionEncoding::populateEncoding() {
+ bool IsVarLenInst = isa<DagInit>(EncodingDef->getValueInit("Inst"));
----------------
jurahul wrote:
This seems reasonable. For M68k, I am assuming all insts have DAG for Inst, so they will all get this flag as true.
https://github.com/llvm/llvm-project/pull/154456
More information about the llvm-commits
mailing list