15#ifndef LLVM_SUPPORT_SAVEANDRESTORE_H
16#define LLVM_SUPPORT_SAVEANDRESTORE_H
27 X = std::move(NewValue);
30 const T &
get() {
return OldValue; }
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
A utility class that uses RAII to save and restore the value of a variable.
SaveAndRestore(T &X, const T &NewValue)
SaveAndRestore(T &X, T &&NewValue)