[Mlir-commits] [mlir] [mlir][bufferization] Buffer deallocation: skip ops that do not operate on buffers (PR #75126)

Mehdi Amini llvmlistbot at llvm.org
Mon Dec 11 21:45:34 PST 2023


================
@@ -48,6 +48,19 @@ static Value buildBoolValue(OpBuilder &builder, Location loc, bool value) {
 
 static bool isMemref(Value v) { return v.getType().isa<BaseMemRefType>(); }
 
+/// Return "true" if the given op has buffer semantics. I.e., it has buffer
+/// operands, buffer results and/or buffer region entry block arguments.
----------------
joker-eph wrote:

What about an op that implicitly mutate global state? A pointer that escaped? This may be implicitly outside the model?

https://github.com/llvm/llvm-project/pull/75126


More information about the Mlir-commits mailing list