[Mlir-commits] [mlir] [mlir][transform] Handle multiple library preloading passes. (PR #69705)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Oct 20 11:11:54 PDT 2023


Ingo =?utf-8?q?M=C3=BCller?= <ingomueller at google.com>,
Ingo =?utf-8?q?M=C3=BCller?= <ingomueller at google.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69705/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:

Copy-pasta documentation?

https://github.com/llvm/llvm-project/pull/69705


More information about the Mlir-commits mailing list