diff --git a/mlir/lib/Dialect/Linalg/Transforms/TransposeMatmul.cpp b/mlir/lib/Dialect/Linalg/Transforms/TransposeMatmul.cpp index e624f589917d1..233f180e48be0 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/TransposeMatmul.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/TransposeMatmul.cpp @@ -38,7 +38,7 @@ FailureOr mlir::linalg::transposeMatmul(RewriterBase &rewriter, matmulOp, "only matmul ops with non-extended semantics are supported"); } - if (!bufferization::hasTensorSemantics(matmulOp)) + if (!matmulOp.hasPureTensorSemantics()) return rewriter.notifyMatchFailure( matmulOp, "only matmul ops with tensors are supported"); @@ -93,7 +93,7 @@ mlir::linalg::transposeBatchMatmul(RewriterBase &rewriter, batchMatmulOp, "ops with user-defined maps are not supported"); } - if (!bufferization::hasTensorSemantics(batchMatmulOp)) + if (!batchMatmulOp.hasPureTensorSemantics()) return rewriter.notifyMatchFailure( batchMatmulOp, "only matmul ops with tensors are supported");