llvm::MachineIRBuilder::buildCopy

Build and insert Res = COPY Op

Synopsis

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

MachineInstrBuilder
buildCopy(
    DstOp const& Res,
    SrcOp const& Op);

Description

Register-to-register COPY sets Res to Op.

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
ResDestination operand for the result.
OpSource operand.

Preconditions

  • setBasicBlock or setMI must have been called.