[all-commits] [llvm/llvm-project] 25cc5a: [mlir][vector] Generalize vector.transpose lowerin...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Mon May 8 10:48:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25cc5a71b3a2f197fd3c31eeba1eeb1711b93de2
      https://github.com/llvm/llvm-project/commit/25cc5a71b3a2f197fd3c31eeba1eeb1711b93de2
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/Utils/VectorUtils.h
    M mlir/lib/Dialect/Vector/Transforms/LowerVectorTranspose.cpp
    M mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp
    M mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp
    M mlir/test/Dialect/Vector/vector-transpose-lowering.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][vector] Generalize vector.transpose lowering to n-D vectors

The existing vector.transpose lowering patterns only triggers if the
input vector is 2D. The revision extends the pattern to handle n-D
vectors which are effectively 2-D vectors (e.g., vector<1x4x1x8x1).

It refactors a common check about 2-D vectors from X86Vector
lowering to VectorUtils.h so it can be reused by both sides.

Reviewed By: dcaballe

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




More information about the All-commits mailing list