[Mlir-commits] [mlir] 2ef3dcf - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Mon Aug 26 10:12:06 PDT 2024
Author: Kazu Hirata
Date: 2024-08-26T10:12:00-07:00
New Revision: 2ef3dcf1fd4b3a2fc849b113644533f3e6df8b1e
URL: https://github.com/llvm/llvm-project/commit/2ef3dcf1fd4b3a2fc849b113644533f3e6df8b1e
DIFF: https://github.com/llvm/llvm-project/commit/2ef3dcf1fd4b3a2fc849b113644533f3e6df8b1e.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp:906:11: error:
enumeration value 'EmptyConvolvedDims' not handled in switch
[-Werror,-Wswitch]
with a workaround. I've notified the author of the new enum value in
https://github.com/llvm/llvm-project/pull/102087.
Added:
Modified:
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
index a38b20eed3a00c..d5c21fb5d845e9 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
@@ -918,6 +918,8 @@ mlir::linalg::detail::getMatchConvolutionMessage(MatchConvolutionResult res) {
return "expected all iterators used to access outputs to be parallel";
case MatchConvolutionResult::NonOutputDimNotReduction:
return "expected all iterators not used to access outputs to be reduction";
+ case MatchConvolutionResult::EmptyConvolvedDims:
+ return "FIXME";
case MatchConvolutionResult::Success:
return "";
}
More information about the Mlir-commits
mailing list