llvm::MachineInstr::cloneMemRefs

Replace our memrefs with a clone of MI's memref list.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

void
cloneMemRefs(
    MachineFunction& MF,
    MachineInstr const& MI);

Description

Note that *this may be the incoming MI!

Prefer this API whenever possible as it can avoid allocations in common cases.

Parameters

NameDescription
MFMachine function used for memref allocation.
MISource instruction whose memrefs are cloned.