[all-commits] [llvm/llvm-project] 7c74a2: [mlir][SCF][NFC] Add helper functions to get body ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Aug 14 06:03:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c74a2507c876a5cfc6c2b88c67a499cebd2bdb0
      https://github.com/llvm/llvm-project/commit/7c74a2507c876a5cfc6c2b88c67a499cebd2bdb0
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
    M mlir/lib/Conversion/SCFToControlFlow/SCFToControlFlow.cpp
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/lib/Dialect/SCF/Transforms/ForToWhile.cpp

  Log Message:
  -----------
  [mlir][SCF][NFC] Add helper functions to get body of scf.while

Add two new helper functions `getBeforeBody` and `getAfterBody` to be consistent with "scf.for" (`getBody`) and to show in the API that both regions have exactly one block. Also simplify some code that assumed that there can be more than one block in a region.

Differential Revision: https://reviews.llvm.org/D157860




More information about the All-commits mailing list