[all-commits] [llvm/llvm-project] 03391d: [mlir][Linalg] Add loop.parallel lowering for all ...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Mon Apr 13 13:20:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 03391df90ed142aafc0669501071cd30218adc0e
      https://github.com/llvm/llvm-project/commit/03391df90ed142aafc0669501071cd30218adc0e
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h
    M mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp
    M mlir/test/Dialect/Linalg/loops.mlir
    M mlir/test/Dialect/Linalg/parallel_loops.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add loop.parallel lowering for all Linalg Ops.

The outer parallel loops of a linalg operation is lowered to
loop.parallel, with the other loops lowered to loop.for. This gets the
lowering to loop.parallel on par with the loop.for lowering. In future
the reduction loop could also be lowered to loop.parallel.
Also add a utility function that returns the loops that are
created.

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




More information about the All-commits mailing list