llvm::MachineInstr::cloneMergedMemRefs

Clone the merge of multiple MachineInstrs' memory reference descriptors list and replace ours with it.

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
MIsRepresent a constant reference to an array (0 or more elements consecutively in memory), i.e. a start pointer and a length. It allows various APIs to take consecutive elements easily and conveniently.