[Mlir-commits] [mlir] [MLIR][Bufferization] BufferResultsToOutParams: Add an option to eliminate AllocOp and avoid Copy (PR #90011)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon May 6 18:31:17 PDT 2024


================
@@ -320,6 +320,11 @@ def BufferResultsToOutParams : Pass<"buffer-results-to-out-params", "ModuleOp">
     Option<"addResultAttribute", "add-result-attr", "bool",
        /*default=*/"false",
        "Add the attribute 'bufferize.result' to all output parameters.">,
+    Option<"avoidBufferResultAllocAndCopy", "avoid-buffer-result-alloc-copy",
+       "bool", /*default=*/"false",
+       "When the returned memref has static shape and is allocated by "
----------------
ciyongch wrote:

I see, thanks for the clarification:)

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


More information about the Mlir-commits mailing list