[Mlir-commits] [mlir] [mlir][bytecode] Implements back deployment capability for MLIR dialects (PR #70724)

Jacques Pienaar llvmlistbot at llvm.org
Tue Oct 31 13:50:55 PDT 2023


================
@@ -97,6 +98,14 @@ class BytecodeWriterConfig {
   /// Get the set desired bytecode version to emit.
   int64_t getDesiredBytecodeVersion() const;
 
+  /// A map containing the dialect versions to emit.
+  llvm::StringMap<std::unique_ptr<DialectVersion>> &
+  getDialectVersionMap() const;
----------------
jpienaar wrote:

And this is to allow reading multiple versions? E.g., why not hide the map as an internal detail and require dialect as arg, and just have it return a DialectVersion ?

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


More information about the Mlir-commits mailing list