[Mlir-commits] [mlir] 99cd1e7 - Revert "[mlir][bufferization] Remove unused function"
Martin Erhart
llvmlistbot at llvm.org
Wed Sep 13 06:54:08 PDT 2023
Author: Martin Erhart
Date: 2023-09-13T13:53:47Z
New Revision: 99cd1e70041bfe263720484986fcee9cd160b0a4
URL: https://github.com/llvm/llvm-project/commit/99cd1e70041bfe263720484986fcee9cd160b0a4
DIFF: https://github.com/llvm/llvm-project/commit/99cd1e70041bfe263720484986fcee9cd160b0a4.diff
LOG: Revert "[mlir][bufferization] Remove unused function"
This reverts commit cb5fe6ce7560fa05fbb7a1d94567e8c3be971930.
This caused problems in downstream projects. We are reverting to give
them more time for integration.
Added:
Modified:
mlir/lib/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.cpp b/mlir/lib/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.cpp
index f2e7732e8ea4aa3..62722569ba0c10d 100644
--- a/mlir/lib/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.cpp
+++ b/mlir/lib/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.cpp
@@ -16,6 +16,8 @@
using namespace mlir;
using namespace mlir::bufferization;
+static bool isMemref(Value v) { return v.getType().isa<BaseMemRefType>(); }
+
namespace {
/// Provides custom logic to materialize ownership indicator values for the
/// result value of 'arith.select'. Instead of cloning or runtime alias
More information about the Mlir-commits
mailing list