forked from OSchip/llvm-project
[mips][NFC] Remove unused instruction formats
`BranchBase` unused sice: rL170663 `FI` unsused since: rL170954 `FFI` unused since: rL190221 Differential revision: https://reviews.llvm.org/D73489
This commit is contained in:
parent
3d1f0ce3b9
commit
4c8817cddf
|
@ -168,39 +168,6 @@ class FR<bits<6> op, bits<6> _funct, dag outs, dag ins, string asmstr,
|
||||||
let Inst{5-0} = funct;
|
let Inst{5-0} = funct;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
// Format I instruction class in Mips : <|opcode|rs|rt|immediate|>
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
class FI<bits<6> op, dag outs, dag ins, string asmstr, list<dag> pattern,
|
|
||||||
InstrItinClass itin>: InstSE<outs, ins, asmstr, pattern, itin, FrmI>
|
|
||||||
{
|
|
||||||
bits<5> rt;
|
|
||||||
bits<5> rs;
|
|
||||||
bits<16> imm16;
|
|
||||||
|
|
||||||
let Opcode = op;
|
|
||||||
|
|
||||||
let Inst{25-21} = rs;
|
|
||||||
let Inst{20-16} = rt;
|
|
||||||
let Inst{15-0} = imm16;
|
|
||||||
}
|
|
||||||
|
|
||||||
class BranchBase<bits<6> op, dag outs, dag ins, string asmstr,
|
|
||||||
list<dag> pattern, InstrItinClass itin>:
|
|
||||||
InstSE<outs, ins, asmstr, pattern, itin, FrmI>
|
|
||||||
{
|
|
||||||
bits<5> rs;
|
|
||||||
bits<5> rt;
|
|
||||||
bits<16> imm16;
|
|
||||||
|
|
||||||
let Opcode = op;
|
|
||||||
|
|
||||||
let Inst{25-21} = rs;
|
|
||||||
let Inst{20-16} = rt;
|
|
||||||
let Inst{15-0} = imm16;
|
|
||||||
}
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Format J instruction class in Mips : <|opcode|address|>
|
// Format J instruction class in Mips : <|opcode|address|>
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -711,20 +678,6 @@ class EI_FM<bits<1> sc> : StdArch
|
||||||
// Format FI instruction class in Mips : <|opcode|base|ft|immediate|>
|
// Format FI instruction class in Mips : <|opcode|base|ft|immediate|>
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
class FFI<bits<6> op, dag outs, dag ins, string asmstr, list<dag> pattern>:
|
|
||||||
InstSE<outs, ins, asmstr, pattern, NoItinerary, FrmFI>
|
|
||||||
{
|
|
||||||
bits<5> ft;
|
|
||||||
bits<5> base;
|
|
||||||
bits<16> imm16;
|
|
||||||
|
|
||||||
let Opcode = op;
|
|
||||||
|
|
||||||
let Inst{25-21} = base;
|
|
||||||
let Inst{20-16} = ft;
|
|
||||||
let Inst{15-0} = imm16;
|
|
||||||
}
|
|
||||||
|
|
||||||
class ADDS_FM<bits<6> funct, bits<5> fmt> : StdArch {
|
class ADDS_FM<bits<6> funct, bits<5> fmt> : StdArch {
|
||||||
bits<5> fd;
|
bits<5> fd;
|
||||||
bits<5> fs;
|
bits<5> fs;
|
||||||
|
|
Loading…
Reference in New Issue