//===----------------------------------------------------------------------===//
// Generic Mips Format
-class MipsInst<dag ops, string asmstr, list<dag> pattern>:
+class MipsInst<dag outs, dag ins, string asmstr, list<dag> pattern>:
Instruction
{
field bits<32> Inst;
// Top 5 bits are the 'opcode' field
let Inst{31-26} = opcode;
- dag OperandList = ops;
+ dag OutOperandList = outs;
+ dag InOperandList = ins;
let AsmString = asmstr;
let Pattern = pattern;
}
// Format R instruction class in Mips : <|opcode|rs|rt|rd|shamt|funct|>
//===----------------------------------------------------------------------===//
-class FR<bits<6> op, bits<6> _funct, dag ops, string asmstr, list<dag> pattern>:
- MipsInst<ops, asmstr, pattern>
+class FR<bits<6> op, bits<6> _funct, dag outs, dag ins, string asmstr,
+ list<dag> pattern>:
+ MipsInst<outs, ins, asmstr, pattern>
{
bits<5> rd;
bits<5> rs;
// Format I instruction class in Mips : <|opcode|rs|rt|immediate|>
//===----------------------------------------------------------------------===//
-class FI<bits<6> op, dag ops, string asmstr, list<dag> pattern>:
- MipsInst<ops, asmstr, pattern>
+class FI<bits<6> op, dag outs, dag ins, string asmstr, list<dag> pattern>:
+ MipsInst<outs, ins, asmstr, pattern>
{
bits<5> rt;
bits<5> rs;
// Format J instruction class in Mips : <|opcode|address|>
//===----------------------------------------------------------------------===//
-class FJ<bits<6> op, dag ops, string asmstr, list<dag> pattern>:
- MipsInst<ops, asmstr, pattern>
+class FJ<bits<6> op, dag outs, dag ins, string asmstr, list<dag> pattern>:
+ MipsInst<outs, ins, asmstr, pattern>
{
bits<26> addr;