Skip to content

Commit 6bfedfa

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp:1136:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp:1388:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent 8a39214 commit 6bfedfa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,6 @@ LogicalResult NVVM::Tcgen05CpOp::verify() {
11331133
return emitError(
11341134
"Shape 32x128b requires multicast warpx4 for tcgen05.cp Op");
11351135
break;
1136-
default:
1137-
return emitError("Invalid shape for tcgen05.cp Op");
11381136
}
11391137
return success();
11401138
}
@@ -1385,9 +1383,8 @@ llvm::Intrinsic::ID Tcgen05CpOp::getIntrinsicID(Operation &op) {
13851383
return (mc == Tcgen05CpMulticast::WARPX2_01_23)
13861384
? GET_TCGEN05_CP_ID(_64x128b_warpx2_01_23, srcFmt, is2CTA)
13871385
: GET_TCGEN05_CP_ID(_64x128b_warpx2_02_13, srcFmt, is2CTA);
1388-
default:
1389-
llvm_unreachable("Invalid shape in tcgen05 cp Op");
13901386
}
1387+
llvm_unreachable("Invalid shape in tcgen05 cp Op");
13911388
}
13921389

13931390
/// Infer the result ranges for the NVVM SpecialRangeableRegisterOp that might

0 commit comments

Comments
 (0)