[all-commits] [llvm/llvm-project] 92c694: [mlir] support external named transform libraries

ftynse via All-commits all-commits at lists.llvm.org
Tue Mar 28 02:47:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92c69468405283a9e084ea7bd18c451680d4777f
      https://github.com/llvm/llvm-project/commit/92c69468405283a9e084ea7bd18c451680d4777f
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
    M mlir/include/mlir/Dialect/Transform/Transforms/TransformInterpreterPassBase.h
    M mlir/lib/Dialect/Transform/IR/TransformOps.cpp
    M mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
    M mlir/test/Dialect/Transform/ops-invalid.mlir
    A mlir/test/Dialect/Transform/test-interpreter-external-symbol-decl-and-schedule.mlir
    A mlir/test/Dialect/Transform/test-interpreter-external-symbol-decl-invalid.mlir
    A mlir/test/Dialect/Transform/test-interpreter-external-symbol-decl.mlir
    A mlir/test/Dialect/Transform/test-interpreter-external-symbol-def.mlir
    M mlir/test/lib/Dialect/Transform/TestTransformDialectInterpreter.cpp
    M utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel

  Log Message:
  -----------
  [mlir] support external named transform libraries

Introduce support for external definitions of named sequences in the
transform dialect by letting the TransformInterpreterPassBase read a
"library" MLIR file. This file is expected to contain definitions for
named sequences that are only declared in the main transformation
script. This allows for sharing non-trivial transform combinations
without duplication.

This patch provides only the minimal plumbing for a single textual IR
file. Further changes are possible to support multiple libraries and
bytecode files.

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list