Skip to content

Commit 70c3e30

Browse files
authored
[RISCV][NFC] Remove unused methods of tuimm5 (#79680)
Since we only use tuimm5 in patterns, it doesn't need those methods for MC layer. And there is not `getUImmOpValue` defination now, leave those methods is confusing.
1 parent c34aa78 commit 70c3e30

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZvk.td

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@
1515
// Operand and SDNode transformation definitions.
1616
//===----------------------------------------------------------------------===//
1717

18-
def tuimm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]> {
19-
let ParserMatchClass = UImmAsmOperand<5>;
20-
let EncoderMethod = "getUImmOpValue";
21-
let DecoderMethod = "decodeUImmOperand<5>";
22-
let MCOperandPredicate = [{
23-
int64_t UImm;
24-
if (MCOp.evaluateAsConstantImm(UImm))
25-
return isUInt<5>(UImm);
26-
return MCOp.isBareSymbolRef();
27-
}];
28-
}
18+
def tuimm5 : RISCVOp, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]>;
2919

3020
//===----------------------------------------------------------------------===//
3121
// Instruction class templates

0 commit comments

Comments
 (0)