[Mlir-commits] [mlir] [mlir][transform] Handle multiple library preloading passes (PR #69320)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Tue Oct 17 16:25:36 PDT 2023
Ingo =?utf-8?q?M=C3=BCller?= <ingomueller at google.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69320/mlir at github.com>
================
@@ -78,20 +78,19 @@ def Transform_Dialect : Dialect {
using ExtensionTypePrintingHook =
std::function<void(::mlir::Type, ::mlir::AsmPrinter &)>;
- /// Appends the given module as a transform symbol library available to
- /// all dialect users.
- void registerLibraryModule(::mlir::OwningOpRef<::mlir::ModuleOp> &&
- library) {
- libraryModules.push_back(std::move(library));
- }
-
- /// Returns a range of registered library modules.
- auto getLibraryModules() const {
- return ::llvm::map_range(
- libraryModules,
- [](const ::mlir::OwningOpRef<::mlir::ModuleOp> &library) {
- return library.get();
- });
+ /// Loads the given module into the transform symbol library module.
----------------
ftynse wrote:
Documentation looks copy-pasted from below.
https://github.com/llvm/llvm-project/pull/69320
More information about the Mlir-commits
mailing list