llvm::MachineIRBuilder::buildCast

Build and insert an appropriate cast between two registers of equal size.

Synopsis

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

MachineInstrBuilder
buildCast(
    DstOp const& Dst,
    SrcOp const& Src);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
DstDestination operand for the result.
SrcSource operand.