[all-commits] [llvm/llvm-project] ec62e3: [mlir] [vector] Add an optional filter to vector c...

poechsel via All-commits all-commits at lists.llvm.org
Fri Jul 17 09:06:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ec62e37c86fa67a40bc9e04b9112668deb003b9a
      https://github.com/llvm/llvm-project/commit/ec62e37c86fa67a40bc9e04b9112668deb003b9a
  Author: Pierre Oechsel <pierre.oechsel at gmail.com>
  Date:   2020-07-17 (Fri, 17 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/VectorTransforms.h
    M mlir/lib/Dialect/Vector/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/vector-contract-transforms.mlir
    M mlir/test/lib/Transforms/TestVectorTransforms.cpp

  Log Message:
  -----------
  [mlir] [vector] Add an optional filter to vector contract lowering patterns.

Summary: Vector contract patterns were only parameterized by a `vectorTransformsOptions`. As a result, even if an mlir file was containing several occurrences of `vector.contract`, all of them would be lowered in the same way. More granularity might be required . This Diff adds a `constraint` argument to each of these patterns which allows the user to specify with more precision on which `vector.contract` should each of the lowering apply.

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




More information about the All-commits mailing list