diff options
| author | Karim Nosseir <44206880+karimnosseir@users.noreply.github.com> | 2025-02-06 21:30:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 21:30:55 -0800 |
| commit | 7fa57cd430f5811beed8cfc862768238fc5d06bb (patch) | |
| tree | 0914a8fc46c1730b450124bf17704b4b777d42c5 /mlir/lib/Bytecode | |
| parent | 4d3148d92681c154de51379a0cf393f9af8e1d75 (diff) | |
[MLIR] Add move constructor to BytecodeWriterConfig (#126130)
The config is currently not movable and because there are constructors
the default move won't be generated, which prevents it from being moved.
Also, it is not copyable because of the unique_ptr. This PR adds move
constructor to allow moving it.
Diffstat (limited to 'mlir/lib/Bytecode')
| -rw-r--r-- | mlir/lib/Bytecode/Writer/BytecodeWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp index 0e96aa97abeb..2b4697434717 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<std::unique_ptr<AttrTypeBytecodeWriter<Attribute>>> |
