Skip to content

Commit d6679d5

Browse files
authored
[Target] Remove SoftFail field on targets that don't use it (NFC) (llvm#154659)
That is, on all targets except ARM and AArch64. This field used to be required due to a bug, it was fixed long ago by 23423c0.
1 parent 918c0ac commit d6679d5

21 files changed

+0
-139
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructions.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ class AMDGPUInst <dag outs, dag ins, string asm = "",
3434
let Pattern = pattern;
3535
let Itinerary = NullALU;
3636

37-
// SoftFail is a field the disassembler can use to provide a way for
38-
// instructions to not match without killing the whole decode process. It is
39-
// mainly used for ARM, but Tablegen expects this field to exist or it fails
40-
// to build the decode table.
41-
field bits<128> SoftFail = 0; // FIXME: If this is smaller than largest instruction, DecodeEmitter crashes
42-
4337
let DecoderNamespace = Namespace;
4438

4539
let TSFlags{63} = isRegisterLoad;

llvm/lib/Target/ARC/ARCInstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
class Encoding64 {
1414
field bits<64> Inst;
15-
field bits<64> SoftFail = 0;
1615
}
1716

1817
// Address operands

llvm/lib/Target/AVR/AVRInstrFormats.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class AVRInst<dag outs, dag ins, string asmstr, list<dag> pattern>
1919
dag InOperandList = ins;
2020
let AsmString = asmstr;
2121
let Pattern = pattern;
22-
23-
field bits<32> SoftFail = 0;
2422
}
2523

2624
/// A 16-bit AVR instruction.

llvm/lib/Target/BPF/BPFInstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def BPF_FETCH : BPFAtomicFlag<0x1>;
111111
class InstBPF<dag outs, dag ins, string asmstr, list<dag> pattern>
112112
: Instruction {
113113
field bits<64> Inst;
114-
field bits<64> SoftFail = 0;
115114
let Size = 8;
116115

117116
let Namespace = "BPF";

llvm/lib/Target/CSKY/CSKYInstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class CSKYInst<AddrMode am, int sz, dag outs, dag ins, string asmstr,
2424
let Namespace = "CSKY";
2525
int Size = sz;
2626
AddrMode AM = am;
27-
field bits<32> SoftFail = 0;
2827
let OutOperandList = outs;
2928
let InOperandList = ins;
3029
let AsmString = asmstr;

llvm/lib/Target/Hexagon/HexagonInstrFormats.td

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ class InstHexagon<dag outs, dag ins, string asmstr, list<dag> pattern,
6060
let Itinerary = itin;
6161
let Size = 4;
6262

63-
// SoftFail is a field the disassembler can use to provide a way for
64-
// instructions to not match without killing the whole decode process. It is
65-
// mainly used for ARM, but Tablegen expects this field to exist or it fails
66-
// to build the decode table.
67-
field bits<32> SoftFail = 0;
68-
6963
// *** Must match MCTargetDesc/HexagonBaseInfo.h ***
7064

7165
// Instruction type according to the ISA.
@@ -287,12 +281,6 @@ class InstDuplex<bits<4> iClass, string cstr = ""> : Instruction,
287281
let Itinerary = DUPLEX;
288282
let Size = 4;
289283

290-
// SoftFail is a field the disassembler can use to provide a way for
291-
// instructions to not match without killing the whole decode process. It is
292-
// mainly used for ARM, but Tablegen expects this field to exist or it fails
293-
// to build the decode table.
294-
field bits<32> SoftFail = 0;
295-
296284
// *** Must match MCTargetDesc/HexagonBaseInfo.h ***
297285

298286
let TSFlags{6-0} = Type.Value;

llvm/lib/Target/Lanai/LanaiInstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class InstLanai<dag outs, dag ins, string asmstr, list<dag> pattern>
1010
: Instruction {
1111
field bits<32> Inst;
12-
field bits<32> SoftFail = 0;
1312
let Size = 4;
1413

1514
let Namespace = "Lanai";

llvm/lib/Target/LoongArch/LoongArchInstrFormats.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ class LAInst<dag outs, dag ins, string opcstr, string opnstr,
2020
list<dag> pattern = []>
2121
: Instruction {
2222
field bits<32> Inst;
23-
// SoftFail is a field the disassembler can use to provide a way for
24-
// instructions to not match without killing the whole decode process. It is
25-
// mainly used for ARM, but Tablegen expects this field to exist or it fails
26-
// to build the decode table.
27-
field bits<32> SoftFail = 0;
2823

2924
let Namespace = "LoongArch";
3025
let Size = 4;

llvm/lib/Target/MSP430/MSP430InstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def DstMem : DestMode<1>; // m
3131
// Generic MSP430 Format
3232
class MSP430Inst<dag outs, dag ins, int size, string asmstr> : Instruction {
3333
field bits<48> Inst;
34-
field bits<48> SoftFail = 0;
3534

3635
let Namespace = "MSP430";
3736

llvm/lib/Target/Mips/MicroMipsInstrFormats.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class MicroMipsInst16<dag outs, dag ins, string asmstr, list<dag> pattern,
4545
{
4646
let Size = 2;
4747
field bits<16> Inst;
48-
field bits<16> SoftFail = 0;
4948
bits<6> Opcode = 0x0;
5049
}
5150

0 commit comments

Comments
 (0)