[Mlir-commits] [mlir] [mlir][bufferize] Make buffer-results-to-out-params support only functions that are neither public nor extern (PR #162441)
Matthias Springer
llvmlistbot at llvm.org
Mon Oct 20 09:02:54 PDT 2025
matthias-springer wrote:
> The reason lies in the fact that during DeadCodeAnalysis, public and extern functions have unknown function calls, so we cannot modify the function signatures.
There are a few other passes that behave similarly: e.g., the ownership-based buffer deallocation pass changes function signatures only if the function os private:
```
The `private-function-dynamic-ownership` pass option allows the pass to add
additional arguments to private functions to dynamically give ownership of
MemRefs to callees. This can enable earlier deallocations and allows the
pass to by-pass the function boundary ABI and thus potentially leading to
fewer MemRef clones being inserted.
```
https://github.com/llvm/llvm-project/pull/162441
More information about the Mlir-commits
mailing list