llvm::MachineIRBuilder::buildStore

buildStore overloads

Synopses

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

Build and insert G_STORE Val, Addr, MMO.

MachineInstrBuilder
buildStore(
    SrcOp const& Val,
    SrcOp const& Addr,
    MachineMemOperand& MMO);
» more...

Build and insert a G_STORE instruction, while constructing the MachineMemOperand.

MachineInstrBuilder
buildStore(
    SrcOp const& Val,
    SrcOp const& Addr,
    MachinePointerInfo PtrInfo,
    Align Alignment,
    MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone,
    AAMDNodes const& AAInfo = AAMDNodes());
» more...

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
ValValue operand.
AddrAddress operand.
MMOMemory operand describing the access.
PtrInfoMachine pointer info for the memory access.
AlignmentRequired alignment.
MMOFlagsMachineMemOperand flags for the access.
AAInfoOptional AA metadata for the access.

Preconditions

  • setBasicBlock or setMI must have been called.
  • Val must be a generic virtual register.
  • Addr must be a generic virtual register with pointer type.