[PATCH] D153533: [XCore] Remove unused TableGen classes and multiclasses.

Ivan Kosarev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 04:08:45 PDT 2023


kosarev created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
kosarev requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

And warn on them from now on.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153533

Files:
  llvm/lib/Target/XCore/CMakeLists.txt
  llvm/lib/Target/XCore/XCoreInstrInfo.td


Index: llvm/lib/Target/XCore/XCoreInstrInfo.td
===================================================================
--- llvm/lib/Target/XCore/XCoreInstrInfo.td
+++ llvm/lib/Target/XCore/XCoreInstrInfo.td
@@ -241,17 +241,6 @@
        !strconcat(OpcStr, " $dst, $b, $c"), []>;
 // Three operand long
 
-/// FL3R_L2RUS multiclass - Define a normal FL3R/FL2RUS pattern in one shot.
-multiclass FL3R_L2RUS<bits<9> opc1, bits<9> opc2, string OpcStr,
-                      SDNode OpNode> {
-  def _l3r: _FL3R<opc1, (outs GRRegs:$dst), (ins GRRegs:$b, GRRegs:$c),
-                  !strconcat(OpcStr, " $dst, $b, $c"),
-                  [(set GRRegs:$dst, (OpNode GRRegs:$b, GRRegs:$c))]>;
-  def _l2rus : _FL2RUS<opc2, (outs GRRegs:$dst), (ins GRRegs:$b, i32imm:$c),
-                       !strconcat(OpcStr, " $dst, $b, $c"),
-                       [(set GRRegs:$dst, (OpNode GRRegs:$b, immUs:$c))]>;
-}
-
 /// FL3R_L2RUS multiclass - Define a normal FL3R/FL2RUS pattern in one shot.
 multiclass FL3R_L2RBITP<bits<9> opc1, bits<9> opc2, string OpcStr,
                         SDNode OpNode> {
@@ -305,14 +294,6 @@
   def _lu6: _FLU6<opc, (outs), (ins i32imm:$a), !strconcat(OpcStr, " $a"), []>;
 }
 
-// Two operand short
-
-class F2R_np<bits<6> opc, string OpcStr> :
-  _F2R<opc, (outs GRRegs:$dst), (ins GRRegs:$b),
-       !strconcat(OpcStr, " $dst, $b"), []>;
-
-// Two operand long
-
 //===----------------------------------------------------------------------===//
 // Pseudo Instructions
 //===----------------------------------------------------------------------===//
Index: llvm/lib/Target/XCore/CMakeLists.txt
===================================================================
--- llvm/lib/Target/XCore/CMakeLists.txt
+++ llvm/lib/Target/XCore/CMakeLists.txt
@@ -4,7 +4,7 @@
 
 tablegen(LLVM XCoreGenAsmWriter.inc -gen-asm-writer)
 tablegen(LLVM XCoreGenCallingConv.inc -gen-callingconv)
-tablegen(LLVM XCoreGenDAGISel.inc -gen-dag-isel)
+tablegen(LLVM XCoreGenDAGISel.inc -gen-dag-isel -warn-on-unused-entities)
 tablegen(LLVM XCoreGenDisassemblerTables.inc -gen-disassembler)
 tablegen(LLVM XCoreGenInstrInfo.inc -gen-instr-info)
 tablegen(LLVM XCoreGenRegisterInfo.inc -gen-register-info)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153533.533550.patch
Type: text/x-patch
Size: 2203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/61838ad1/attachment.bin>


More information about the llvm-commits mailing list