[all-commits] [llvm/llvm-project] 3e3e27: [mlir][vector][NFC] Change UnrollVectorPattern to ...

Thomas via All-commits all-commits at lists.llvm.org
Fri Dec 4 09:54:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e3e276d22ca6917a721c4173b00b37850d8020c
      https://github.com/llvm/llvm-project/commit/3e3e276d22ca6917a721c4173b00b37850d8020c
  Author: Thomas Raoux <thomasraoux at google.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

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

  Log Message:
  -----------
  [mlir][vector][NFC] Change UnrollVectorPattern to not be statically dependent on an op type

Make UnrollVectorPattern inherit from RewritePattern instead of
OpRewritePattern so that we don't need to create many patterns when applying to
many different type of ops. Since we may want to apply the pattern to all
arithmetic op, it is more convenient to filter dynamically.

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




More information about the All-commits mailing list