[all-commits] [llvm/llvm-project] bcc9b3: Split `ElementwiseMappable` trait into four more p...

frgossen via All-commits all-commits at lists.llvm.org
Tue Mar 2 06:31:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcc9b371e43be8fa3fba65f2363eaf767731e0c7
      https://github.com/llvm/llvm-project/commit/bcc9b371e43be8fa3fba65f2363eaf767731e0c7
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2021-03-02 (Tue, 02 Mar 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
    M mlir/include/mlir/Dialect/Math/IR/MathOps.td
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
    M mlir/lib/IR/Operation.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  Split `ElementwiseMappable` trait into four more precise traits.

Some elementwise operations are not scalarizable, vectorizable, or tensorizable.
Split `ElementwiseMappable` trait into the following, more precise traits.
  - `Elementwise`
  - `Scalarizable`
  - `Vectorizable`
  - `Tensorizable`
This allows for reuse of `Elementwise` in dialects like HLO.

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




More information about the All-commits mailing list