Hello LLVM,
I have a value that is encoded as that value shifted right by 2. I
can see two ways to do this.
First way using the tblgen definition for this instruction, something like this:
bits<10> Value;
Inst{7-0} = Value{9-2}; // 2-bit effective downshift
Second way with custom EncoderMethod and DecoderMethods specified on
the operand.
Which way is best?
Thanks,
-steve