Skip to content

Commit 1eafacb

Browse files
author
git apple-llvm automerger
committed
Merge commit 'dac9d8f8e06d' from llvm.org/main into next
2 parents c5c664b + dac9d8f commit 1eafacb

File tree

1 file changed

+2
-71
lines changed

1 file changed

+2
-71
lines changed

llvm/lib/Target/XCore/Disassembler/XCoreDisassembler.cpp

Lines changed: 2 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -74,66 +74,13 @@ static unsigned getReg(const MCDisassembler *D, unsigned RC, unsigned RegNo) {
7474
return *(RegInfo->getRegClass(RC).begin() + RegNo);
7575
}
7676

77-
static DecodeStatus DecodeGRRegsRegisterClass(MCInst &Inst, unsigned RegNo,
78-
uint64_t Address,
79-
const MCDisassembler *Decoder);
80-
81-
static DecodeStatus DecodeRRegsRegisterClass(MCInst &Inst, unsigned RegNo,
82-
uint64_t Address,
83-
const MCDisassembler *Decoder);
84-
85-
static DecodeStatus DecodeBitpOperand(MCInst &Inst, unsigned Val,
86-
uint64_t Address,
87-
const MCDisassembler *Decoder);
88-
89-
static DecodeStatus DecodeNegImmOperand(MCInst &Inst, unsigned Val,
90-
uint64_t Address,
91-
const MCDisassembler *Decoder);
92-
93-
static DecodeStatus Decode2RInstruction(MCInst &Inst, unsigned Insn,
94-
uint64_t Address,
95-
const MCDisassembler *Decoder);
96-
97-
static DecodeStatus Decode2RImmInstruction(MCInst &Inst, unsigned Insn,
98-
uint64_t Address,
99-
const MCDisassembler *Decoder);
100-
101-
static DecodeStatus DecodeR2RInstruction(MCInst &Inst, unsigned Insn,
102-
uint64_t Address,
103-
const MCDisassembler *Decoder);
104-
105-
static DecodeStatus Decode2RSrcDstInstruction(MCInst &Inst, unsigned Insn,
106-
uint64_t Address,
107-
const MCDisassembler *Decoder);
108-
109-
static DecodeStatus DecodeRUSInstruction(MCInst &Inst, unsigned Insn,
110-
uint64_t Address,
111-
const MCDisassembler *Decoder);
112-
113-
static DecodeStatus DecodeRUSBitpInstruction(MCInst &Inst, unsigned Insn,
114-
uint64_t Address,
115-
const MCDisassembler *Decoder);
116-
117-
static DecodeStatus
118-
DecodeRUSSrcDstBitpInstruction(MCInst &Inst, unsigned Insn, uint64_t Address,
119-
const MCDisassembler *Decoder);
120-
121-
static DecodeStatus DecodeL2RInstruction(MCInst &Inst, unsigned Insn,
122-
uint64_t Address,
123-
const MCDisassembler *Decoder);
124-
125-
static DecodeStatus DecodeLR2RInstruction(MCInst &Inst, unsigned Insn,
126-
uint64_t Address,
127-
const MCDisassembler *Decoder);
128-
12977
static DecodeStatus Decode3RInstruction(MCInst &Inst, unsigned Insn,
13078
uint64_t Address,
13179
const MCDisassembler *Decoder);
13280

13381
static DecodeStatus Decode3RImmInstruction(MCInst &Inst, unsigned Insn,
13482
uint64_t Address,
13583
const MCDisassembler *Decoder);
136-
13784
static DecodeStatus Decode2RUSInstruction(MCInst &Inst, unsigned Insn,
13885
uint64_t Address,
13986
const MCDisassembler *Decoder);
@@ -158,24 +105,6 @@ static DecodeStatus DecodeL2RUSBitpInstruction(MCInst &Inst, unsigned Insn,
158105
uint64_t Address,
159106
const MCDisassembler *Decoder);
160107

161-
static DecodeStatus DecodeL6RInstruction(MCInst &Inst, unsigned Insn,
162-
uint64_t Address,
163-
const MCDisassembler *Decoder);
164-
165-
static DecodeStatus DecodeL5RInstruction(MCInst &Inst, unsigned Insn,
166-
uint64_t Address,
167-
const MCDisassembler *Decoder);
168-
169-
static DecodeStatus DecodeL4RSrcDstInstruction(MCInst &Inst, unsigned Insn,
170-
uint64_t Address,
171-
const MCDisassembler *Decoder);
172-
173-
static DecodeStatus
174-
DecodeL4RSrcDstSrcDstInstruction(MCInst &Inst, unsigned Insn, uint64_t Address,
175-
const MCDisassembler *Decoder);
176-
177-
#include "XCoreGenDisassemblerTables.inc"
178-
179108
static DecodeStatus DecodeGRRegsRegisterClass(MCInst &Inst, unsigned RegNo,
180109
uint64_t Address,
181110
const MCDisassembler *Decoder) {
@@ -713,6 +642,8 @@ DecodeL4RSrcDstSrcDstInstruction(MCInst &Inst, unsigned Insn, uint64_t Address,
713642
return S;
714643
}
715644

645+
#include "XCoreGenDisassemblerTables.inc"
646+
716647
MCDisassembler::DecodeStatus
717648
XCoreDisassembler::getInstruction(MCInst &instr, uint64_t &Size,
718649
ArrayRef<uint8_t> Bytes, uint64_t Address,

0 commit comments

Comments
 (0)