llvm::MachineIRBuilder::buildPrefetch

Build and insert G_PREFETCH Addr, RW, Locality, CacheType

Synopsis

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

MachineInstrBuilder
buildPrefetch(
    SrcOp const& Addr,
    unsigned int RW,
    unsigned int Locality,
    unsigned int CacheType,
    MachineMemOperand& MMO);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
AddrAddress operand.
RWRead/write hint for the prefetch.
LocalityTemporal locality hint for the prefetch.
CacheTypeCache level hint for the prefetch.
MMOMemory operand describing the access.