diff options
author | Xiaolei Shi <xiaoleis@nvidia.com> | 2023-08-22 16:50:48 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2023-08-22 16:51:04 -0700 |
commit | 55e3857931d1e187af574b322e026ced379ee1f2 (patch) | |
tree | 8c09ab3e6763b7bde2b8aab9a5fa48c005fa098a /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | 9cf4280008318991099daad3fcd0a3e652b848d5 (diff) | |
download | llvm-55e3857931d1e187af574b322e026ced379ee1f2.zip llvm-55e3857931d1e187af574b322e026ced379ee1f2.tar.gz llvm-55e3857931d1e187af574b322e026ced379ee1f2.tar.bz2 |
Make buffer hoisting/promotion passes use AllocationOpInterface
This update implements the usage of AllocationOpInterface in the buffer hoisting/promotion passes. Two interface methods, namely `getHoistingKind` and `buildPromotedAlloc`, have been added. The former indicates which kind of hoisting (loop, block) an allocation operation supports, while the latter builds a stack allocation operation for promotable allocations used by the promote-buffers-to-stack pass.
This update makes these passes be functional for user customized allocation operation.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D158398
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions