Hi,
Is it possible to add a custom field to the Instructions description, so I can read it from a MCInstrDesc
in C++ code.
For example, I have a lot of PUSH instructions with different . It would be great to add field size
to its description, like this:
class MyInst<int sz, ...> : Instruction {
...
let size = sz;
}
And use it from code:
MI.getDesc().getSize();
Instead of this:
switch (MI.getOpcode) {
case PUSH1: ...
case PUSH2: ...
...
}
Thanks.