[PATCH] D73489: [mips][NFC] Remove unused instruction formats

Miloš Stojanović via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 08:21:22 PST 2020


mstojanovic created this revision.
mstojanovic added reviewers: atanasyan, petarj.
Herald added subscribers: hiraditya, arichardson, sdardis.
Herald added a project: LLVM.

`BranchBase` unused sice: rL170663 <https://reviews.llvm.org/rL170663>
`FI` unsused since: rL170954 <https://reviews.llvm.org/rL170954>
`FFI` unused since: rL190221 <https://reviews.llvm.org/rL190221>


https://reviews.llvm.org/D73489

Files:
  llvm/lib/Target/Mips/MipsInstrFormats.td


Index: llvm/lib/Target/Mips/MipsInstrFormats.td
===================================================================
--- llvm/lib/Target/Mips/MipsInstrFormats.td
+++ llvm/lib/Target/Mips/MipsInstrFormats.td
@@ -168,39 +168,6 @@
   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|>
 //===----------------------------------------------------------------------===//
@@ -711,20 +678,6 @@
 // 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 {
   bits<5> fd;
   bits<5> fs;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73489.240601.patch
Type: text/x-patch
Size: 1929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200127/c1544465/attachment.bin>


More information about the llvm-commits mailing list