diff --git a/mlir/include/mlir/Bytecode/BytecodeWriter.h b/mlir/include/mlir/Bytecode/BytecodeWriter.h index 0287e004bb993..c6cff0bc81314 100644 --- a/mlir/include/mlir/Bytecode/BytecodeWriter.h +++ b/mlir/include/mlir/Bytecode/BytecodeWriter.h @@ -82,6 +82,7 @@ class BytecodeWriterConfig { /// printers for the fallback resources within the map. BytecodeWriterConfig(FallbackAsmResourceMap &map, StringRef producer = "MLIR" LLVM_VERSION_STRING); + BytecodeWriterConfig(BytecodeWriterConfig &&); ~BytecodeWriterConfig(); /// An internal implementation class that contains the state of the diff --git a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp index 0e96aa97abeba..2b4697434717d 100644 --- a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp +++ b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp @@ -66,6 +66,9 @@ BytecodeWriterConfig::BytecodeWriterConfig(FallbackAsmResourceMap &map, : BytecodeWriterConfig(producer) { attachFallbackResourcePrinter(map); } +BytecodeWriterConfig::BytecodeWriterConfig(BytecodeWriterConfig &&config) + : impl(std::move(config.impl)) {} + BytecodeWriterConfig::~BytecodeWriterConfig() = default; ArrayRef>>