[llvm] 6b2cb3b - [XCore] Remove unused TableGen classes and multiclasses

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 26 14:24:24 PDT 2023


Author: Ivan Kosarev
Date: 2023-08-26T17:22:37-04:00
New Revision: 6b2cb3bfaa7b79fd12a6a5bb949031268285dd09

URL: https://github.com/llvm/llvm-project/commit/6b2cb3bfaa7b79fd12a6a5bb949031268285dd09
DIFF: https://github.com/llvm/llvm-project/commit/6b2cb3bfaa7b79fd12a6a5bb949031268285dd09.diff

LOG: [XCore] Remove unused TableGen classes and multiclasses

And warn on them from now on.

Reviewed By: nigelp-xmos

Differential Revision: https://reviews.llvm.org/D153533

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/XCore/CMakeLists.txt b/llvm/lib/Target/XCore/CMakeLists.txt
index 447f5c54528850..c759acc626870a 100644
--- a/llvm/lib/Target/XCore/CMakeLists.txt
+++ b/llvm/lib/Target/XCore/CMakeLists.txt
@@ -4,7 +4,7 @@ set(LLVM_TARGET_DEFINITIONS XCore.td)
 
 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)

diff  --git a/llvm/lib/Target/XCore/XCoreInstrInfo.td b/llvm/lib/Target/XCore/XCoreInstrInfo.td
index de1fb60a30f700..57158e18464a56 100644
--- a/llvm/lib/Target/XCore/XCoreInstrInfo.td
+++ b/llvm/lib/Target/XCore/XCoreInstrInfo.td
@@ -241,17 +241,6 @@ class F3R_np<bits<5> opc, string OpcStr> :
        !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 @@ multiclass FU6_LU6_np<bits<10> opc, string OpcStr> {
   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
 //===----------------------------------------------------------------------===//


        


More information about the llvm-commits mailing list