Skip to content

Commit a6986f6

Browse files
committed
Revert "[XCore] Remove unused TableGen classes and multiclasses"
The command line parameter added for llvm-tblgen is not valid. This reverts commit 6b2cb3b.
1 parent c852145 commit a6986f6

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

llvm/lib/Target/XCore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(LLVM_TARGET_DEFINITIONS XCore.td)
44

55
tablegen(LLVM XCoreGenAsmWriter.inc -gen-asm-writer)
66
tablegen(LLVM XCoreGenCallingConv.inc -gen-callingconv)
7-
tablegen(LLVM XCoreGenDAGISel.inc -gen-dag-isel -warn-on-unused-entities)
7+
tablegen(LLVM XCoreGenDAGISel.inc -gen-dag-isel)
88
tablegen(LLVM XCoreGenDisassemblerTables.inc -gen-disassembler)
99
tablegen(LLVM XCoreGenInstrInfo.inc -gen-instr-info)
1010
tablegen(LLVM XCoreGenRegisterInfo.inc -gen-register-info)

llvm/lib/Target/XCore/XCoreInstrInfo.td

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,17 @@ class F3R_np<bits<5> opc, string OpcStr> :
241241
!strconcat(OpcStr, " $dst, $b, $c"), []>;
242242
// Three operand long
243243

244+
/// FL3R_L2RUS multiclass - Define a normal FL3R/FL2RUS pattern in one shot.
245+
multiclass FL3R_L2RUS<bits<9> opc1, bits<9> opc2, string OpcStr,
246+
SDNode OpNode> {
247+
def _l3r: _FL3R<opc1, (outs GRRegs:$dst), (ins GRRegs:$b, GRRegs:$c),
248+
!strconcat(OpcStr, " $dst, $b, $c"),
249+
[(set GRRegs:$dst, (OpNode GRRegs:$b, GRRegs:$c))]>;
250+
def _l2rus : _FL2RUS<opc2, (outs GRRegs:$dst), (ins GRRegs:$b, i32imm:$c),
251+
!strconcat(OpcStr, " $dst, $b, $c"),
252+
[(set GRRegs:$dst, (OpNode GRRegs:$b, immUs:$c))]>;
253+
}
254+
244255
/// FL3R_L2RUS multiclass - Define a normal FL3R/FL2RUS pattern in one shot.
245256
multiclass FL3R_L2RBITP<bits<9> opc1, bits<9> opc2, string OpcStr,
246257
SDNode OpNode> {
@@ -294,6 +305,14 @@ multiclass FU6_LU6_np<bits<10> opc, string OpcStr> {
294305
def _lu6: _FLU6<opc, (outs), (ins i32imm:$a), !strconcat(OpcStr, " $a"), []>;
295306
}
296307

308+
// Two operand short
309+
310+
class F2R_np<bits<6> opc, string OpcStr> :
311+
_F2R<opc, (outs GRRegs:$dst), (ins GRRegs:$b),
312+
!strconcat(OpcStr, " $dst, $b"), []>;
313+
314+
// Two operand long
315+
297316
//===----------------------------------------------------------------------===//
298317
// Pseudo Instructions
299318
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)