llvm::MachineInstr::addMemOperand

Append MachineMemOperand MO to this instruction's memref list.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

void
addMemOperand(
    MachineFunction& MF,
    MachineMemOperand* MO);

Description

Prefer setMemRefs for setting up the full list; use this only occasionally.

Parameters

NameDescription
MFMachine function used for memref allocation.
MOMemory operand to append.