[PATCH] D153530: [Sparc] Remove unused TableGen classes and multiclasses.
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 04:05:55 PDT 2023
kosarev created this revision.
Herald added subscribers: jrtc27, fedor.sergeev, hiraditya, jyknight.
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/D153530
Files:
llvm/lib/Target/Sparc/CMakeLists.txt
llvm/lib/Target/Sparc/SparcInstr64Bit.td
llvm/lib/Target/Sparc/SparcInstrInfo.td
Index: llvm/lib/Target/Sparc/SparcInstrInfo.td
===================================================================
--- llvm/lib/Target/Sparc/SparcInstrInfo.td
+++ llvm/lib/Target/Sparc/SparcInstrInfo.td
@@ -847,10 +847,6 @@
// unconditional branch class.
class BranchAlways<dag ins, string asmstr, list<dag> pattern>
: F2_2<0b010, 0, (outs), ins, asmstr, pattern>;
-
-// Same as BranchAlways but uses the new v9 encoding
-class BranchPredictAlways<dag ins, string asmstr, list<dag> pattern>
- : F2_3<0b001, 0, 1, (outs), ins, asmstr, pattern>;
}
let cond = 8 in
Index: llvm/lib/Target/Sparc/SparcInstr64Bit.td
===================================================================
--- llvm/lib/Target/Sparc/SparcInstr64Bit.td
+++ llvm/lib/Target/Sparc/SparcInstr64Bit.td
@@ -367,13 +367,6 @@
"br$rcond,a,pn $rs1, $imm16", []>;
}
-multiclass bpr_alias<string OpcStr, Instruction NAPT, Instruction APT> {
- def : InstAlias<!strconcat(OpcStr, ",pt $rs1, $imm16"),
- (NAPT I64Regs:$rs1, bprtarget16:$imm16), 0>;
- def : InstAlias<!strconcat(OpcStr, ",a,pt $rs1, $imm16"),
- (APT I64Regs:$rs1, bprtarget16:$imm16), 0>;
-}
-
let Predicates = [Is64Bit] in
defm BP : BranchOnReg<[(SPbrreg bb:$imm16, imm:$rcond, i64:$rs1)]>;
Index: llvm/lib/Target/Sparc/CMakeLists.txt
===================================================================
--- llvm/lib/Target/Sparc/CMakeLists.txt
+++ llvm/lib/Target/Sparc/CMakeLists.txt
@@ -5,7 +5,7 @@
tablegen(LLVM SparcGenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM SparcGenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM SparcGenCallingConv.inc -gen-callingconv)
-tablegen(LLVM SparcGenDAGISel.inc -gen-dag-isel)
+tablegen(LLVM SparcGenDAGISel.inc -gen-dag-isel -warn-on-unused-entities)
tablegen(LLVM SparcGenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM SparcGenInstrInfo.inc -gen-instr-info)
tablegen(LLVM SparcGenMCCodeEmitter.inc -gen-emitter)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153530.533547.patch
Type: text/x-patch
Size: 1959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/efc5018b/attachment.bin>
More information about the llvm-commits
mailing list