llvm::LoopAccessInfo::getInstructionsForAccess

Return the list of instructions that use Ptr to read or write memory.

Synopsis

Declared in <llvm/Analysis/LoopAccessAnalysis.h>

SmallVector<Instruction*, 4>
getInstructionsForAccess(
    Value* Ptr,
    bool isWrite) const;

Return Value

The instructions that access Ptr as specified by isWrite.

Parameters

NameDescription
PtrPointer value whose users are queried.
isWriteWhen true, collect stores; otherwise collect loads.