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

Matteo Franciolini llvmlistbot at llvm.org
Tue Oct 31 12:36:18 PDT 2023


================
@@ -400,6 +400,10 @@ class DialectBytecodeWriter {
 
   /// Return the bytecode version being emitted for.
   virtual int64_t getBytecodeVersion() const = 0;
+
+  /// Retrieve the dialect version by name if available.
+  virtual FailureOr<const DialectVersion *>
+  getDialectVersion(StringRef dialectName) const = 0;
----------------
mfrancio wrote:

Thanks for taking a look. I added the second API - unfortunately it can't be a template though since it is a virtual method.

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


More information about the Mlir-commits mailing list