Skip to content

Commit 0ceea68

Browse files
committed
[MLIR] Add move constructor to BytecodeWriterConfig
1 parent 4c8acbd commit 0ceea68

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mlir/include/mlir/Bytecode/BytecodeWriter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class BytecodeWriterConfig {
8282
/// printers for the fallback resources within the map.
8383
BytecodeWriterConfig(FallbackAsmResourceMap &map,
8484
StringRef producer = "MLIR" LLVM_VERSION_STRING);
85+
BytecodeWriterConfig(BytecodeWriterConfig &&);
8586
~BytecodeWriterConfig();
8687

8788
/// An internal implementation class that contains the state of the

mlir/lib/Bytecode/Writer/BytecodeWriter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ BytecodeWriterConfig::BytecodeWriterConfig(FallbackAsmResourceMap &map,
6666
: BytecodeWriterConfig(producer) {
6767
attachFallbackResourcePrinter(map);
6868
}
69+
BytecodeWriterConfig::BytecodeWriterConfig(BytecodeWriterConfig &&config)
70+
: impl(std::move(config.impl)) {}
71+
6972
BytecodeWriterConfig::~BytecodeWriterConfig() = default;
7073

7174
ArrayRef<std::unique_ptr<AttrTypeBytecodeWriter<Attribute>>>

0 commit comments

Comments
 (0)