Return the set of instructions that define or clobber QueryInst's memory.
Synopsis
Declared in <llvm/Analysis/MemoryDependenceAnalysis.h>
void
getNonLocalPointerDependency(
Instruction* QueryInst,
SmallVectorImpl<NonLocalDepResult>& Result);
Description
Perform a full dependency query for an access to the QueryInst's specified memory location, returning the set of instructions that either define or clobber the value.
Warning: For a volatile query instruction, the dependencies will be accurate, and thus usable for reordering, but it is never legal to remove the query instruction.
This method assumes the pointer has a "NonLocal" dependency within QueryInst's parent basic block.
Parameters
Name |
Description |
QueryInst |
Instruction whose memory location is queried. |
Result |
Filled with per‐block non‐local dependence results. |
Created with MrDocs