[PATCH] D153523: TODO: BPF

Ivan Kosarev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 03:58:02 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.

[BPF] Remove unused TableGen classes and multiclasses.

And warn on them from now on.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153523

Files:
  llvm/lib/Target/BPF/BPFInstrFormats.td
  llvm/lib/Target/BPF/CMakeLists.txt


Index: llvm/lib/Target/BPF/CMakeLists.txt
===================================================================
--- llvm/lib/Target/BPF/CMakeLists.txt
+++ llvm/lib/Target/BPF/CMakeLists.txt
@@ -5,7 +5,7 @@
 tablegen(LLVM BPFGenAsmMatcher.inc -gen-asm-matcher)
 tablegen(LLVM BPFGenAsmWriter.inc -gen-asm-writer)
 tablegen(LLVM BPFGenCallingConv.inc -gen-callingconv)
-tablegen(LLVM BPFGenDAGISel.inc -gen-dag-isel)
+tablegen(LLVM BPFGenDAGISel.inc -gen-dag-isel -warn-on-unused-entities)
 tablegen(LLVM BPFGenDisassemblerTables.inc -gen-disassembler)
 tablegen(LLVM BPFGenInstrInfo.inc -gen-instr-info)
 tablegen(LLVM BPFGenMCCodeEmitter.inc -gen-emitter)
Index: llvm/lib/Target/BPF/BPFInstrFormats.td
===================================================================
--- llvm/lib/Target/BPF/BPFInstrFormats.td
+++ llvm/lib/Target/BPF/BPFInstrFormats.td
@@ -48,10 +48,6 @@
 def BPF_XCHG    : BPFArithOp<0xe>;
 def BPF_CMPXCHG : BPFArithOp<0xf>;
 
-class BPFEndDir<bits<1> val> {
-  bits<1> Value = val;
-}
-
 def BPF_TO_LE : BPFSrcType<0x0>;
 def BPF_TO_BE : BPFSrcType<0x1>;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153523.533539.patch
Type: text/x-patch
Size: 1078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/9fa4e9db/attachment.bin>


More information about the llvm-commits mailing list