[Mlir-commits] [mlir] d0d726e - Fix GCC build problem with 288f05f related to SmallVector. (#116958)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 20 05:40:46 PST 2024
Author: Md Asghar Ahmad Shahid
Date: 2024-11-20T07:40:42-06:00
New Revision: d0d726e56da39bfbc583769a673842c0f05e72cb
URL: https://github.com/llvm/llvm-project/commit/d0d726e56da39bfbc583769a673842c0f05e72cb
DIFF: https://github.com/llvm/llvm-project/commit/d0d726e56da39bfbc583769a673842c0f05e72cb.diff
LOG: Fix GCC build problem with 288f05f related to SmallVector. (#116958)
Below is the error message for reference.
/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp: In static member
function 'static llvm::SmallVector<mlir::AffineMap>
mlir::linalg::MatmulOp::getDefaultIndexingMaps(mlir::MLIRContext*)':
/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:3468:10: error:
could not convert 'indexingMaps' from 'SmallVector<[...],3>' to
'SmallVector<[...],6>'
3468 | return indexingMaps;
| ^~~~~~~~~~~~
| |
| SmallVector<[...],3>
Here is the link to the failure.
https://lab.llvm.org/buildbot/#/builders/117/builds/3919
...
Added:
Modified:
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index cce54695c0e6c5..26d9d2b091750c 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -3460,7 +3460,7 @@ namespace linalg {
/// Returns a list of AffineMap with the typical matmul indexing charactristic.
SmallVector<AffineMap> MatmulOp::getDefaultIndexingMaps(MLIRContext *context) {
AffineExpr d0, d1, d2;
- SmallVector<AffineMap, 3> indexingMaps;
+ SmallVector<AffineMap> indexingMaps;
bindDims(context, d0, d1, d2);
indexingMaps.push_back(AffineMap::get(3, 0, {d0, d2}, context));
indexingMaps.push_back(AffineMap::get(3, 0, {d2, d1}, context));
More information about the Mlir-commits
mailing list