Skip to content

Commit 80f5210

Browse files
committed
Use right type for OpNames
1 parent 1e77766 commit 80f5210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ bool SDWASrcOperand::convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII) {
508508
/// Verify that the SDWA selection operand \p SrcSelOpName of the SDWA
509509
/// instruction \p MI can be combined with the selection \p OpSel.
510510
static bool canCombineOpSel(const MachineInstr &MI, const SIInstrInfo *TII,
511-
unsigned SrcSelOpName, SdwaSel OpSel) {
511+
AMDGPU::OpName SrcSelOpName, SdwaSel OpSel) {
512512
assert(TII->isSDWA(MI.getOpcode()));
513513

514514
const MachineOperand *SrcSelOp = TII->getNamedOperand(MI, SrcSelOpName);
@@ -521,7 +521,7 @@ static bool canCombineOpSel(const MachineInstr &MI, const SIInstrInfo *TII,
521521
/// instruction \p MI named by \p SrcOpName and that the SDWA
522522
/// selection \p SrcSelOpName can be combined with the \p OpSel.
523523
static bool canCombineOpSel(const MachineInstr &MI, const SIInstrInfo *TII,
524-
unsigned SrcOpName, unsigned SrcSelOpName,
524+
AMDGPU::OpName SrcOpName, AMDGPU::OpName SrcSelOpName,
525525
MachineOperand *Op, SdwaSel OpSel) {
526526
assert(TII->isSDWA(MI.getOpcode()));
527527

0 commit comments

Comments
 (0)