mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Added TargetInstrDescriptor::numDefs - num of results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5278784621
commit
b5910820ce
@ -130,6 +130,7 @@ class TargetInstrDescriptor {
|
||||
public:
|
||||
MachineOpCode Opcode; // The opcode.
|
||||
unsigned short numOperands; // Num of args (may be more if variable_ops).
|
||||
unsigned short numDefs; // Num of args that are definitions.
|
||||
const char * Name; // Assembly language mnemonic for the opcode.
|
||||
InstrSchedClass schedClass; // enum identifying instr sched class
|
||||
unsigned Flags; // flags identifying machine instr class
|
||||
|
@ -203,7 +203,8 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
|
||||
MinOperands = 0;
|
||||
|
||||
OS << " { ";
|
||||
OS << Num << ",\t" << MinOperands << ",\t\"";
|
||||
OS << Num << ",\t" << MinOperands << ",\t"
|
||||
<< Inst.NumDefs << ",\t\"";
|
||||
|
||||
if (Inst.Name.empty())
|
||||
OS << Inst.TheDef->getName();
|
||||
|
Loading…
Reference in New Issue
Block a user