[all-commits] [llvm/llvm-project] 80e0bf: Add vector.scan op

harsh-nod via All-commits all-commits at lists.llvm.org
Fri Jan 28 12:08:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80e0bf1af11c0c7bd2a6261d83dcb18987cd7f11
      https://github.com/llvm/llvm-project/commit/80e0bf1af11c0c7bd2a6261d83dcb18987cd7f11
  Author: harsh <harsh at nod-labs.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/VectorOps.td
    M mlir/include/mlir/Dialect/Vector/VectorRewritePatterns.h
    M mlir/lib/Dialect/Vector/VectorOps.cpp
    M mlir/lib/Dialect/Vector/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/invalid.mlir
    M mlir/test/Dialect/Vector/ops.mlir
    A mlir/test/Dialect/Vector/vector-scan-transforms.mlir
    A mlir/test/Integration/Dialect/Vector/CPU/test-scan.mlir
    M mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp

  Log Message:
  -----------
  Add vector.scan op

This patch adds the vector.scan op which computes the
scan for a given n-d vector. It requires specifying the operator,
the identity element and whether the scan is inclusive or
exclusive.

TEST: Added test in ops.mlir

Reviewed By: ThomasRaoux

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




More information about the All-commits mailing list