Return the list of instructions that use Ptr to read or write memory.
Declared in <llvm/Analysis/LoopAccessAnalysis.h>
SmallVector<Instruction*, 4>
getInstructionsForAccess(
Value* Ptr,
bool isWrite) const;
The instructions that access Ptr as specified by isWrite.
| Name | Description |
|---|---|
| Ptr | Pointer value whose users are queried. |
| isWrite | When true, collect stores; otherwise collect loads. |