[Mlir-commits] [mlir] [mlir][bufferization] Add deallocation option to remove existing dealloc operations, add option to specify the kind of alloc operations to consider (PR #67556)
Matthias Springer
llvmlistbot at llvm.org
Thu Sep 28 01:14:23 PDT 2023
================
@@ -40,6 +40,12 @@ struct BufferDeallocationPipelineOptions
"statically that the ABI is not adhered to, an error will already be "
"emitted at compile time. This cannot be changed with this option."),
llvm::cl::init(true)};
+ PassOptions::Option<bool> removeExistingDeallocations{
+ *this, "remove-existing-deallocations",
+ llvm::cl::desc("Removes all pre-existing memref.dealloc operations and "
+ "insert all deallocations according to the buffer "
----------------
matthias-springer wrote:
I think just `Removes pre-existing memref.dealloc operations` should be enough.
https://github.com/llvm/llvm-project/pull/67556
More information about the Mlir-commits
mailing list