Build and insert G_MEMCPY or G_MEMMOVE
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);
a MachineInstrBuilder for the newly created instruction.
| Name | Description |
|---|---|
| Opcode | Target opcode for the instruction. |
| DstPtr | Destination pointer of the memory transfer. |
| SrcPtr | Source pointer of the memory transfer. |
| Size | Size operand or allocation size. |
| DstMMO | Memory operand for the destination access. |
| SrcMMO | Memory operand for the source access. |