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.
Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>
MachineInstrBuilder
buildLoadFromOffset(
DstOp const& Dst,
SrcOp const& BasePtr,
MachineMemOperand& BaseMMO,
int64_t Offset);
a MachineInstrBuilder for the newly created instruction.
| Name | Description |
|---|---|
| Dst | Destination operand for the result. |
| BasePtr | Base pointer of the access. |
| BaseMMO | Memory operand for the base access. |
| Offset | Byte offset from the base pointer. |