[Mlir-commits] [mlir] [mlir][bytecode] Implements back deployment capability for MLIR dialects (PR #70724)
Matteo Franciolini
llvmlistbot at llvm.org
Tue Oct 31 13:24:13 PDT 2023
================
@@ -54,6 +54,10 @@ class DialectBytecodeReader {
/// Retrieve the dialect version by name if available.
virtual FailureOr<const DialectVersion *>
getDialectVersion(StringRef dialectName) const = 0;
+ template <class T>
+ FailureOr<const DialectVersion *> getDialectVersion() {
+ return getDialectVersion(T::getDialectNamespace());
----------------
mfrancio wrote:
Fixed :)
https://github.com/llvm/llvm-project/pull/70724
More information about the Mlir-commits
mailing list