[#llvm-LoopAccessInfo-getInstructionsForAccess] = xref:llvm.adoc[llvm]::xref:llvm/LoopAccessInfo.adoc[LoopAccessInfo]::getInstructionsForAccess :relfileprefix: ../../ :mrdocs: Return the list of instructions that use `Ptr` to read or write memory. == Synopsis Declared in `<llvm/Analysis/LoopAccessAnalysis.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/SmallVector-06.adoc[SmallVector<Instruction*, 4>] getInstructionsForAccess( xref:llvm/Value.adoc[Value]* Ptr, bool isWrite) const; ---- == Return Value The instructions that access `Ptr` as specified by `isWrite.` == Parameters [cols="1,4"] |=== | Name| Description | *Ptr* | Pointer value whose users are queried. | *isWrite* | When true, collect stores; otherwise collect loads. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#