[all-commits] [llvm/llvm-project] 55e385: Make buffer hoisting/promotion passes use Allocati...

XiaoleiShi-NV via All-commits all-commits at lists.llvm.org
Tue Aug 22 16:51:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55e3857931d1e187af574b322e026ced379ee1f2
      https://github.com/llvm/llvm-project/commit/55e3857931d1e187af574b322e026ced379ee1f2
  Author: Xiaolei Shi <xiaoleis at nvidia.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.h
    M mlir/include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.td
    M mlir/lib/Dialect/Bufferization/TransformOps/BufferizationTransformOps.cpp
    M mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
    M mlir/lib/Dialect/Bufferization/Transforms/BufferOptimizations.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list