mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 08:26:39 +00:00
Add FixedLenDecoderEmitter, the skeleton of a new disassembler emitter for fixed-length instruction encodings.
A major part of its (eventual) goal is to support a much cleaner separation between disassembly callbacks provided by the target and the disassembler emitter itself, i.e. not requiring hardcoding of knowledge in tblgen like the existing disassembly emitters do. The hope is that some day this will allow us to replace the existing non-Thumb ARM disassembler and remove some of the hacks the old one introduced to tblgen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125966 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -245,6 +245,7 @@ class Instruction {
|
||||
string DisableEncoding = "";
|
||||
|
||||
string PostEncoderMethod = "";
|
||||
string DecoderMethod = "";
|
||||
|
||||
/// Target-specific flags. This becomes the TSFlags field in TargetInstrDesc.
|
||||
bits<64> TSFlags = 0;
|
||||
@@ -360,6 +361,7 @@ class Operand<ValueType ty> {
|
||||
ValueType Type = ty;
|
||||
string PrintMethod = "printOperand";
|
||||
string EncoderMethod = "";
|
||||
string DecoderMethod = "";
|
||||
string AsmOperandLowerMethod = ?;
|
||||
dag MIOperandInfo = (ops);
|
||||
|
||||
|
Reference in New Issue
Block a user