llvm::MachineInstr::cloneMergedMemRefs

Replace our memrefs with the merged memrefs of instructions in MIs.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

void
cloneMergedMemRefs(
    MachineFunction& MF,
    ArrayRef<MachineInstr const*> MIs);

Description

Note that *this may be one of the incoming MIs!

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

Parameters

NameDescription
MFMachine function used for memref allocation.
MIsInstructions whose memrefs are merged.