Replace our memrefs with a clone of MI's memref list.
Declared in <llvm/CodeGen/MachineInstr.h>
void
cloneMemRefs(
MachineFunction& MF,
MachineInstr const& MI);
Note that *this may be the incoming MI!
Prefer this API whenever possible as it can avoid allocations in common cases.
| Name | Description |
|---|---|
| MF | Machine function used for memref allocation. |
| MI | Source instruction whose memrefs are cloned. |