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

Name

Description

MF

Machine function used for memref allocation.

MIs

Instructions whose memrefs are merged.

Created with MrDocs