Skip to content

Commit 431581b

Browse files
arsenmjayfoad
andauthored
AMDGPU: Simplify definition of bitop3 operand. NFC. (#118648)
Co-authored-by: Jay Foad <jay.foad@amd.com>
1 parent e0f5253 commit 431581b

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,9 +1920,6 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
19201920
ParseStatus parseEndpgm(OperandVector &Operands);
19211921

19221922
ParseStatus parseVOPD(OperandVector &Operands);
1923-
1924-
ParseStatus parseBitOp3(OperandVector &Operands);
1925-
AMDGPUOperand::Ptr defaultBitOp3() const;
19261923
};
19271924

19281925
} // end anonymous namespace
@@ -9796,20 +9793,6 @@ ParseStatus AMDGPUAsmParser::parseEndpgm(OperandVector &Operands) {
97969793

97979794
bool AMDGPUOperand::isEndpgm() const { return isImmTy(ImmTyEndpgm); }
97989795

9799-
//===----------------------------------------------------------------------===//
9800-
// BITOP3
9801-
//===----------------------------------------------------------------------===//
9802-
9803-
ParseStatus AMDGPUAsmParser::parseBitOp3(OperandVector &Operands) {
9804-
ParseStatus Res =
9805-
parseIntWithPrefix("bitop3", Operands, AMDGPUOperand::ImmTyBitOp3);
9806-
return Res;
9807-
}
9808-
9809-
AMDGPUOperand::Ptr AMDGPUAsmParser::defaultBitOp3() const {
9810-
return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyBitOp3);
9811-
}
9812-
98139796
//===----------------------------------------------------------------------===//
98149797
// Split Barrier
98159798
//===----------------------------------------------------------------------===//

llvm/lib/Target/AMDGPU/SIInstrInfo.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ def ByteSel : NamedIntOperand<"byte_sel"> {
12711271
let Validator = "isUInt<2>";
12721272
}
12731273

1274-
def BitOp3 : CustomOperand<i32, 1, "BitOp3">;
1274+
let PrintMethod = "printBitOp3" in
1275+
def BitOp3 : NamedIntOperand<"bitop3">;
12751276
def bitop3_0 : DefaultOperand<BitOp3, 0>;
12761277

12771278
class KImmFPOperand<ValueType vt> : ImmOperand<vt> {

0 commit comments

Comments
 (0)