[PATCH] D153525: [MSP430] Remove unused TableGen classes and multiclasses.
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 04:03:17 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/D153525
Files:
llvm/lib/Target/MSP430/CMakeLists.txt
llvm/lib/Target/MSP430/MSP430InstrFormats.td
llvm/lib/Target/MSP430/MSP430InstrInfo.td
Index: llvm/lib/Target/MSP430/MSP430InstrInfo.td
===================================================================
--- llvm/lib/Target/MSP430/MSP430InstrInfo.td
+++ llvm/lib/Target/MSP430/MSP430InstrInfo.td
@@ -12,12 +12,6 @@
include "MSP430InstrFormats.td"
-//===----------------------------------------------------------------------===//
-// Type Constraints.
-//===----------------------------------------------------------------------===//
-class SDTCisI8<int OpNum> : SDTCisVT<OpNum, i8>;
-class SDTCisI16<int OpNum> : SDTCisVT<OpNum, i16>;
-
//===----------------------------------------------------------------------===//
// Type Profiles.
//===----------------------------------------------------------------------===//
Index: llvm/lib/Target/MSP430/MSP430InstrFormats.td
===================================================================
--- llvm/lib/Target/MSP430/MSP430InstrFormats.td
+++ llvm/lib/Target/MSP430/MSP430InstrFormats.td
@@ -345,27 +345,6 @@
let Inst{31-16} = src{19-4};
}
-class II8i<bits<3> opcode,
- dag outs, dag ins, string asmstr, list<dag> pattern>
- : IIForm8<opcode, SrcImm, 4, outs, ins, asmstr, pattern> {
- bits<16> imm;
- let rs = 0b0000;
- let Inst{31-16} = imm;
-}
-
-class II8c<bits<3> opcode,
- dag outs, dag ins, string asmstr, list<dag> pattern>
- : MSP430Inst<outs, ins, 2, asmstr> {
- let Pattern = pattern;
-
- bits<6> imm;
-
- let Inst{15-10} = 0b000100;
- let Inst{9-7} = opcode;
- let Inst{6} = 1;
- let Inst{5-0} = imm;
-}
-
class II8n<bits<3> opcode,
dag outs, dag ins, string asmstr, list<dag> pattern>
: IIForm8<opcode, SrcIndReg, 2, outs, ins, asmstr, pattern>;
Index: llvm/lib/Target/MSP430/CMakeLists.txt
===================================================================
--- llvm/lib/Target/MSP430/CMakeLists.txt
+++ llvm/lib/Target/MSP430/CMakeLists.txt
@@ -5,7 +5,7 @@
tablegen(LLVM MSP430GenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM MSP430GenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM MSP430GenCallingConv.inc -gen-callingconv)
-tablegen(LLVM MSP430GenDAGISel.inc -gen-dag-isel)
+tablegen(LLVM MSP430GenDAGISel.inc -gen-dag-isel -warn-on-unused-entities)
tablegen(LLVM MSP430GenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM MSP430GenInstrInfo.inc -gen-instr-info)
tablegen(LLVM MSP430GenMCCodeEmitter.inc -gen-emitter)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153525.533542.patch
Type: text/x-patch
Size: 2375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/8d5d7937/attachment.bin>
More information about the llvm-commits
mailing list