[LLVMdev] Inst field in MSP430InstrFormats.td

David Wiberg
Mon, 22 Jul 2013 11:35:23 -0000

2013/7/22 Owen Anderson <resistor at mac.com>:
> The Inst field is used to specify instruction encodings, which are then
used to generate assemblers and disassemblers.  I'm not sure offhand, but
it's possible that the MSP430 backend doesn't make use of an
auto-generated assembler.
>
> --Owen
>

Thanks for the explanation. I was expecting fields which are used by
non target specific code to be contained in the "Instruction" class in
"Target.td" (compare to e.g. DecoderMethod). Is it the need to support
different sizes which requires it to be created in the target specific
file? Is there any documentation available with regards to which
fields are available and what they do?

/ David