[all-commits] [llvm/llvm-project] b6204b: [mlir][Vector] Introduce UnrollVectorOptions to co...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Fri Oct 23 13:52:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b6204b995eaa2ec771f947a2109bd2ef338e688c
      https://github.com/llvm/llvm-project/commit/b6204b995eaa2ec771f947a2109bd2ef338e688c
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/VectorTransforms.h
    A mlir/test/Dialect/Vector/vector-unroll-options.mlir
    M mlir/test/lib/Transforms/TestVectorTransforms.cpp

  Log Message:
  -----------
  [mlir][Vector] Introduce UnrollVectorOptions to control vector unrolling.

The current pattern for vector unrolling takes the native shape to
unroll to at pattern instantiation time, but the native shape might
defer based on the types of the operand. Introduce a
UnrollVectorOptions struct which allows for using a function that will
return the native shape based on the operation. Move other options of
unrolling like `filterConstraints` into this struct.

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




More information about the All-commits mailing list