[all-commits] [llvm/llvm-project] 7ec88f: [mlir][memref][transform] Add vector_to_llvm conve...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Aug 9 02:28:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ec88f06d5833dfb4c7029c7645ae6cb89520504
      https://github.com/llvm/llvm-project/commit/7ec88f06d5833dfb4c7029c7645ae6cb89520504
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.td
    M mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.td
    M mlir/include/mlir/Dialect/Vector/TransformOps/VectorTransformOps.td
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Dialect/MemRef/TransformOps/CMakeLists.txt
    M mlir/lib/Dialect/MemRef/TransformOps/MemRefTransformOps.cpp
    M mlir/lib/Dialect/Transform/IR/TransformOps.cpp
    M mlir/lib/Dialect/Vector/TransformOps/CMakeLists.txt
    M mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
    A mlir/test/Dialect/Vector/transform-op-vector-to-llvm.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][memref][transform] Add vector_to_llvm conversion patterns

These patterns are exposed via a new "apply_conversion_patterns" op.

Also provide a new type converter that converts from memref to LLVM types. Conversion patterns that lower to LLVM are special: they require an `LLVMTypeConverter`; a normal `TypeConverter` is not enough. This revision also adds a new interface method to pattern descriptor ops to verify that the default type converter of the enclosing "apply_conversion_patterns" op is compatible with the set of patterns. At the moment, a simple `StringRef` is used. This can evolve to a richer type in the future if needed.

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




More information about the All-commits mailing list