[all-commits] [llvm/llvm-project] f7cddf: [TableGen] Use std::move instead of swap. NFC. (#8...
Jay Foad via All-commits
all-commits at lists.llvm.org
Tue Feb 13 06:32:07 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7cddf80062848fbbb358d7e913650cc550d2547
https://github.com/llvm/llvm-project/commit/f7cddf80062848fbbb358d7e913650cc550d2547
Author: Jay Foad <jay.foad at amd.com>
Date: 2024-02-13 (Tue, 13 Feb 2024)
Changed paths:
M llvm/utils/TableGen/AsmMatcherEmitter.cpp
M llvm/utils/TableGen/CodeGenRegisters.cpp
M llvm/utils/TableGen/CodeGenSchedule.cpp
M llvm/utils/TableGen/GlobalISelMatchTable.cpp
M llvm/utils/TableGen/SubtargetEmitter.cpp
Log Message:
-----------
[TableGen] Use std::move instead of swap. NFC. (#81606)
Historically TableGen has used `A.swap(B)` to move containers without
the expense of copying them. Perhaps this predated rvalue references. In
any case `A = std::move(B)` seems like a more direct way to implement
this when only A is required after the operation.
More information about the All-commits
mailing list