[Mlir-commits] [mlir] [mlir][bufferize] Add hoist-dynamic-allocs-option to buffer-results-to-out-params (PR #160985)
Matthias Springer
llvmlistbot at llvm.org
Sat Sep 27 10:37:59 PDT 2025
================
@@ -164,8 +165,12 @@ struct BufferResultsToOutParamsOpts {
bool addResultAttribute = false;
/// If true, the pass eliminates the memref.alloc and memcpy if the returned
- /// memref is allocated in the current function.
+ /// memref is static allocated in the current function.
----------------
matthias-springer wrote:
nit: "is allocated in the current function and has static shape"
The term "static allocation" sounds like `alloca`.
https://github.com/llvm/llvm-project/pull/160985
More information about the Mlir-commits
mailing list