llvm::NonLocalDepResult::getAddress

Returns the address of this pointer in this block.

Synopsis

Declared in <llvm/Analysis/MemoryDependenceAnalysis.h>

SelectAddr
getAddress() const;

Description

This can be different than the address queried for the non-local result because of phi translation. This returns null if the address was not available in a block (i.e. because phi translation failed) or if this is a cached result and that address was deleted.

The address is always null for a non-local 'call' dependence.

If the result is a select dependency (

Return Value

The (possibly phi-translated) address in this block, or a null SelectAddr if unavailable.

See Also

MemDepResult::isSelect), the returned SelectAddr instead carries the select condition and the two translated addresses (true/false side).