[all-commits] [llvm/llvm-project] 4f1c12: [mlir] Add IteratorType enum to StructuredOpsUtils.

Oleg Shyshkov via All-commits all-commits at lists.llvm.org
Mon Sep 26 04:10:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f1c12425179608298dc39f5524ba2612609b5e4
      https://github.com/llvm/llvm-project/commit/4f1c12425179608298dc39f5524ba2612609b5e4
  Author: Oleg Shyshkov <shyshkov at google.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/CMakeLists.txt
    M mlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td
    A mlir/include/mlir/Dialect/Linalg/IR/LinalgEnums.td
    A mlir/include/mlir/Dialect/Utils/CMakeLists.txt
    M mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
    A mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.td
    M mlir/include/mlir/Interfaces/TilingInterface.h
    M mlir/include/mlir/Interfaces/TilingInterface.td
    M mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
    M mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
    M mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp
    M mlir/lib/Dialect/Utils/StructuredOpsUtils.cpp
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir] Add IteratorType enum to StructuredOpsUtils.

Summary:
Use the new enum in TilingIterface and verify that `iterator_type` attribute in
LinalgOp interface is compatible with the enum values. Later IteratorType enum
will be used in LinalgInterface to replace the current `iterator_type` attribute
array of string.

Existing enums in Linalg are moved into a separate td file and tablegen build
target. This is necessary, have one I32EnumAttr in a shared space that generated
enum class definition and EnumAttrs is dialect-specific location. Otherwise
there might be a conflict that I32EnumAttr generates enum definitions in
multiple places.

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




More information about the All-commits mailing list