aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorsrcarroll <50210727+srcarroll@users.noreply.github.com>2024-12-26 11:32:51 -0600
committerGitHub <noreply@github.com>2024-12-26 11:32:51 -0600
commit8906b7be918be653d3c5f2ef3dbd923561603969 (patch)
treeb9f765da976706bdfcbc31227090cd3d64635f2e /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent831e1ac12e766ae8c94d8d735d8f32c8d319e576 (diff)
downloadllvm-8906b7be918be653d3c5f2ef3dbd923561603969.zip
llvm-8906b7be918be653d3c5f2ef3dbd923561603969.tar.gz
llvm-8906b7be918be653d3c5f2ef3dbd923561603969.tar.bz2
Enable custom alloc-like ops in `promoteBufferResultsToOutParams` (#120288)
In `buffer-results-to-out-params`, when `hoist-static-allocs` option is enabled the pass was looking for `memref.alloc`s in order to attempt to avoid copies when it can. Which makes it not extensible to external ops that have allocation like properties. This patch simply changes `memref::AllocOp` to `AllocationOpInterface` in the check to enable for any allocation op. Moreover, for function call updates, we enable setting an allocation function callback in `BufferResultsToOutParamsOpts` to allow users to emit their own alloc-like op.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions