[all-commits] [llvm/llvm-project] 297ba1: [mlir][linalg] Add tile_size option to `structured...

Chris via All-commits all-commits at lists.llvm.org
Thu Jul 21 09:36:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 297ba167ded073a47dd9ea7e408aa95acdfcedf1
      https://github.com/llvm/llvm-project/commit/297ba167ded073a47dd9ea7e408aa95acdfcedf1
  Author: Christopher Bate <cbate at nvidia.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Affine/IR/AffineOps.cpp
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
    M mlir/test/Dialect/Linalg/tile-to-foreach-thread.mlir

  Log Message:
  -----------
  [mlir][linalg] Add tile_size option to `structured.tile_to_foreach_thread_op`

This change modifies `structured.tile_to_foreach_thread_op` so that
it accepts either `tile_sizes` or `num_threads` parameters. If
`tile_sizes` are specified, then the number of threads required is
derived the tile sizes rather than the other way around. In both cases,
more aggressive folding of loop parameters is enabled during the
transformation, allowing for the potential elimination of `affine.min`
and `affine.max` operations in the static shape case when calculating
the final adjusted tile size.

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




More information about the All-commits mailing list