[all-commits] [llvm/llvm-project] f4d2dd: [mlir][bufferization] Fix code formatting

Krish Gupta via All-commits all-commits at lists.llvm.org
Sun Jun 28 22:24:40 PDT 2026


  Branch: refs/heads/users/KrxGu/static-memory-planner
  Home:   https://github.com/llvm/llvm-project
  Commit: f4d2dd82064062788b496702c3cb5e1d62d03a11
      https://github.com/llvm/llvm-project/commit/f4d2dd82064062788b496702c3cb5e1d62d03a11
  Author: KrxGu <krishom70 at gmail.com>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/Transforms/StaticMemoryPlannerAnalysis.cpp

  Log Message:
  -----------
  [mlir][bufferization] Fix code formatting


  Commit: 4290417bab4e7b85b5775e4c8b8776c7e69e3325
      https://github.com/llvm/llvm-project/commit/4290417bab4e7b85b5775e4c8b8776c7e69e3325
  Author: KrxGu <krishom70 at gmail.com>
  Date:   2026-06-29 (Mon, 29 Jun 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td
    M mlir/lib/Dialect/Bufferization/Transforms/StaticMemoryPlannerAnalysis.cpp

  Log Message:
  -----------
  [mlir][bufferization] Address review feedback on static memory planner

- Use InterfacePass<..., FunctionOpInterface> so the pass only runs on
  function-like ops; cast to FunctionOpInterface in runOnOperation
- Update pass description: mention memref.alloc/dealloc explicitly,
  drop outdated scf.for list and BufferViewFlowAnalysis references,
  adopt pluggable-planner wording from javedabsar
- Add time_start/time_end to Alloc struct for future lifetime-aware
  planning
- Use getNumElements(), llvm::alignTo, std::lcm (LCM is correct for
  arena alignment; std::max was wrong)
- Add precondition doc + NDEBUG assert in trivialMemoryPlanner
- Check BaseMemRefType for return type guard to cover unranked memrefs
- Add 1D rank check for arena arg memref
- Use AllocOp::create overload that takes alignment directly
- Reuse OpBuilder via setInsertionPoint instead of creating a new one
- Drop mlir:: namespace prefixes (using namespace mlir)


Compare: https://github.com/llvm/llvm-project/compare/8b10fdf6574c...4290417bab4e

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list