Skip to content

Commit

Permalink
Drop U6Imm-related definitions
Browse files Browse the repository at this point in the history
They are no longer used, which leads to the -Wunused-function warning.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D147521
  • Loading branch information
iii-i committed Apr 4, 2023
1 parent 7dc4754 commit 3c8df69
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ class SystemZOperand : public MCParsedAsmOperand {
bool isU2Imm() const { return isImm(0, 3); }
bool isU3Imm() const { return isImm(0, 7); }
bool isU4Imm() const { return isImm(0, 15); }
bool isU6Imm() const { return isImm(0, 63); }
bool isU8Imm() const { return isImm(0, 255); }
bool isS8Imm() const { return isImm(-128, 127); }
bool isU12Imm() const { return isImm(0, 4095); }
Expand Down
5 changes: 0 additions & 5 deletions llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ void SystemZInstPrinter::printU4ImmOperand(const MCInst *MI, int OpNum,
printUImmOperand<4>(MI, OpNum, O);
}

void SystemZInstPrinter::printU6ImmOperand(const MCInst *MI, int OpNum,
raw_ostream &O) {
printUImmOperand<6>(MI, OpNum, O);
}

void SystemZInstPrinter::printS8ImmOperand(const MCInst *MI, int OpNum,
raw_ostream &O) {
printSImmOperand<8>(MI, OpNum, O);
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class SystemZInstPrinter : public MCInstPrinter {
void printU2ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printU3ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printU4ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printU6ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printS8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printU8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
void printU12ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Target/SystemZ/SystemZOperands.td
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ def U1Imm : ImmediateAsmOperand<"U1Imm">;
def U2Imm : ImmediateAsmOperand<"U2Imm">;
def U3Imm : ImmediateAsmOperand<"U3Imm">;
def U4Imm : ImmediateAsmOperand<"U4Imm">;
def U6Imm : ImmediateAsmOperand<"U6Imm">;
def S8Imm : ImmediateAsmOperand<"S8Imm">;
def U8Imm : ImmediateAsmOperand<"U8Imm">;
def U12Imm : ImmediateAsmOperand<"U12Imm">;
Expand Down

0 comments on commit 3c8df69

Please sign in to comment.