I parse the instruction successfully but I am not sure what I did wrong that the Size (as you can see in the line above is Zero for this instruction. (In EncodeInstruction, Desc.getSize() returns zero.)
I think you need a ‘let Size = ‘ line in your instruction definition.
If you have fixed size instructions, then you can put a single size in the base class for all your instructions, eg, like this from AArch64InstrFormats.td
// Real instructions (have encoding information)
class EncodedI<string cstr, list pattern> : AArch64Inst<NormalFrm, cstr> {
let Pattern = pattern;
let Size = 4;
}
Or if you have variable sized instructions then you might need to set the size on each class of instruction you define, or even each instruction.