[all-commits] [llvm/llvm-project] f54312: [mlir][Linalg] Drop function attribute from generi...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Thu Apr 16 06:51:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f54312277cdbc9e52657ec904ca4c1c333208c43
      https://github.com/llvm/llvm-project/commit/f54312277cdbc9e52657ec904ca4c1c333208c43
  Author: Nicolas Vasilache <ntv at google.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
    M mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
    M mlir/lib/Dialect/Linalg/EDSC/Builders.cpp
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
    M mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp
    M mlir/test/Dialect/Linalg/invalid.mlir
    M mlir/test/Dialect/Linalg/loops.mlir
    M mlir/test/Dialect/Linalg/roundtrip.mlir
    M mlir/test/Dialect/Linalg/transform-patterns.mlir
    M mlir/test/lib/DeclarativeTransforms/TestLinalgTransformPatterns.td

  Log Message:
  -----------
  [mlir][Linalg] Drop function attribute from generic ops.

The function attribute in generic ops is not paying for itself.
A region is the more standardized way of specifying a custom computation.
If needed this region can call a function directly.
This is deemed more natural than managing a dedicated function attribute.

This also simplifies named ops generation by trimming unnecessary complexity.

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




More information about the All-commits mailing list