llvm::MachineIRBuilder::buildMemTransferInst

Build and insert G_MEMCPY or G_MEMMOVE

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>

MachineInstrBuilder
buildMemTransferInst(
    unsigned int Opcode,
    SrcOp const& DstPtr,
    SrcOp const& SrcPtr,
    SrcOp const& Size,
    MachineMemOperand& DstMMO,
    MachineMemOperand& SrcMMO);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
OpcodeTarget opcode for the instruction.
DstPtrDestination pointer of the memory transfer.
SrcPtrSource pointer of the memory transfer.
SizeSize operand or allocation size.
DstMMOMemory operand for the destination access.
SrcMMOMemory operand for the source access.