[all-commits] [llvm/llvm-project] b994d3: [mlir][SCF] Add a ParallelCombiningOpInterface to ...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Fri Jul 1 00:19:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b994d388aeb26aa54611e53884447b21dd3b440b
      https://github.com/llvm/llvm-project/commit/b994d388aeb26aa54611e53884447b21dd3b440b
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2022-07-01 (Fri, 01 Jul 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SCF/IR/SCF.h
    M mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
    M mlir/include/mlir/Interfaces/CMakeLists.txt
    A mlir/include/mlir/Interfaces/ParallelCombiningOpInterface.h
    A mlir/include/mlir/Interfaces/ParallelCombiningOpInterface.td
    M mlir/lib/Dialect/SCF/IR/CMakeLists.txt
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/lib/Interfaces/CMakeLists.txt
    A mlir/lib/Interfaces/ParallelCombiningOpInterface.cpp

  Log Message:
  -----------
  [mlir][SCF] Add a ParallelCombiningOpInterface to decouple scf::PerformConcurrently from its contained operations

This allows purging references of scf.ForeachThreadOp and scf.PerformConcurrentlyOp from
ParallelInsertSliceOp.
This will allowmoving the op closer to tensor::InsertSliceOp with which it should share much more
code.

In the future, the decoupling will also allow extending the type of ops that can be used in the
parallel combinator as well as semantics related to multiple concurrent inserts to the same
result.

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




More information about the All-commits mailing list