[all-commits] [llvm/llvm-project] d0f927: [mlir][Standard] Support 0-D vectors in `SplatOp`

Michal Terepeta via All-commits all-commits at lists.llvm.org
Fri Nov 26 09:05:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0f927121ecef997d5df4a8879997cc8c9f8f0c9
      https://github.com/llvm/llvm-project/commit/d0f927121ecef997d5df4a8879997cc8c9f8f0c9
  Author: Michal Terepeta <michalt at google.com>
  Date:   2021-11-26 (Fri, 26 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
    M mlir/test/Conversion/StandardToLLVM/standard-to-llvm.mlir
    M mlir/test/Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir

  Log Message:
  -----------
  [mlir][Standard] Support 0-D vectors in `SplatOp`

This changes the op to produce `AnyVectorOfAnyRank` and implements this by just
inserting the element (skipping the shuffle that we do for the 1-D case).

Depends On D114549

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list