llvm::MachineIRBuilder::buildLoadFromOffset

Helper to create a load from a constant offset given a base address. Load the type of Dst from Offset from the given base address and memory operand.

Synopsis

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

MachineInstrBuilder
buildLoadFromOffset(
    DstOp const& Dst,
    SrcOp const& BasePtr,
    MachineMemOperand& BaseMMO,
    int64_t Offset);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
DstDestination operand for the result.
BasePtrBase pointer of the access.
BaseMMOMemory operand for the base access.
OffsetByte offset from the base pointer.