[Mlir-commits] [mlir] [mlir] Allow accessing DialectResourceBlobManager::blobMap (PR #142352)
Andrei Golubev
llvmlistbot at llvm.org
Mon Jun 2 02:39:11 PDT 2025
================
@@ -93,9 +93,14 @@ class DialectResourceBlobManager {
return HandleT(&entry, dialect);
}
+ /// Provide access to all the registered blobs via a callable. During access
+ /// the blobs are guaranteed to remain unchanged.
+ void access(llvm::function_ref<void(const llvm::StringMap<BlobEntry> &)>
+ accessor) const;
+
----------------
andrey-golubev wrote:
note: the API itself is a bit weird since we need to keep access protected by a mutex. without a larger redesign of this, it seems to be the only option?
https://github.com/llvm/llvm-project/pull/142352
More information about the Mlir-commits
mailing list