[all-commits] [llvm/llvm-project] a1aad2: [mlir][vector] NFC: Improve vector type accessor m...

Lei Zhang via All-commits all-commits at lists.llvm.org
Wed Feb 15 20:12:01 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1aad28d297abb14e812cacf97947a0f857a2f54
      https://github.com/llvm/llvm-project/commit/a1aad28d297abb14e812cacf97947a0f857a2f54
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
    M mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
    M mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp

  Log Message:
  -----------
  [mlir][vector] NFC: Improve vector type accessor methods

Plain `getVectorType()` can be quite confusing and error-prone
given that, well, vector ops always work on vector types, and
it can commonly involve both source and result vectors. So this
commit makes various such accessor methods to be explicit w.r.t.
source or result vectors.

Reviewed By: ThomasRaoux

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




More information about the All-commits mailing list