mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[mlir][linalg] update tiling to support linalg index operations.
The patch updates the tiling pass to add the tile offsets to the indices returned by the linalg operations. Differential Revision: https://reviews.llvm.org/D100379
This commit is contained in:
1 parent
d7ce89c769
commit
8ea5d190ec
4 files changed
+168
-18
No files matched your search
@@ -246,8 +246,7 @@ mlir::linalg::LinalgBaseTilingPattern::LinalgBaseTilingPattern(
|
||||
LogicalResult mlir::linalg::LinalgBaseTilingPattern::matchAndRewriteBase(
|
||||
Operation *op, PatternRewriter &rewriter, TiledLinalgOp &result) const {
|
||||
LinalgOp linalgOp = dyn_cast<LinalgOp>(op);
|
||||
// TODO: remove hasIndexSemantics check once index ops are supported.
|
||||
if (!linalgOp || linalgOp.hasIndexSemantics())
|
||||
if (!linalgOp)
|
||||
return failure();
|
||||
if (failed(filter.checkAndNotify(rewriter, linalgOp)))
|
||||
return failure();
|
||||
|
||||
Reference in new issue
Block a user