[all-commits] [llvm/llvm-project] 804d3c: [mlir][IR] Add `Block::isReachable` helper functio...

Matthias Springer via All-commits all-commits at lists.llvm.org
Tue Nov 12 21:58:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 804d3c4ce192391ef7ba8724c6b9eff456b5c4b2
      https://github.com/llvm/llvm-project/commit/804d3c4ce192391ef7ba8724c6b9eff456b5c4b2
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M mlir/include/mlir/IR/Block.h
    M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp
    M mlir/lib/IR/Block.cpp

  Log Message:
  -----------
  [mlir][IR] Add `Block::isReachable` helper function (#114928)

Add a new helper function `isReachable` to `Block`. This function
traverses all successors of a block to determine if another block is
reachable from the current block.

This functionality has been reimplemented in multiple places in MLIR.
Possibly additional copies in downstream projects. Therefore, moving it
to a common place.



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