Skip to content

Commit 3d6b108

Browse files
committed
[AMDGPU] Remove the unused u8imm operand definition.
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D142193
1 parent e6eb84a commit 3d6b108

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructions.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ def s16imm : Operand<i16> {
146146
let ParserMatchClass = s16ImmTarget;
147147
}
148148

149-
def u8imm : Operand<i8> {
150-
let PrintMethod = "printU8ImmOperand";
151-
}
152-
153149
} // End OperandType = "OPERAND_IMMEDIATE"
154150

155151
//===--------------------------------------------------------------------===//

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ void AMDGPUInstPrinter::printU4ImmOperand(const MCInst *MI, unsigned OpNo,
6060
O << formatHex(MI->getOperand(OpNo).getImm() & 0xf);
6161
}
6262

63-
void AMDGPUInstPrinter::printU8ImmOperand(const MCInst *MI, unsigned OpNo,
64-
raw_ostream &O) {
65-
O << formatHex(MI->getOperand(OpNo).getImm() & 0xff);
66-
}
67-
6863
void AMDGPUInstPrinter::printU16ImmOperand(const MCInst *MI, unsigned OpNo,
6964
const MCSubtargetInfo &STI,
7065
raw_ostream &O) {

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class AMDGPUInstPrinter : public MCInstPrinter {
3838
private:
3939
void printU4ImmOperand(const MCInst *MI, unsigned OpNo,
4040
const MCSubtargetInfo &STI, raw_ostream &O);
41-
void printU8ImmOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
4241
void printU16ImmOperand(const MCInst *MI, unsigned OpNo,
4342
const MCSubtargetInfo &STI, raw_ostream &O);
4443
void printU4ImmDecOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);

0 commit comments

Comments
 (0)