llvm::MemDepResult

A memory dependence query can return one of three different answers.

Synopsis

Declared in <llvm/Analysis/MemoryDependenceAnalysis.h>

class MemDepResult;

Member Functions

NameDescription
MemDepResult [constructor]Construct a default MemDepResult in the Invalid state with a null instruction.
getInst If this is a normal dependency, returns the instruction that is depended on. Otherwise, returns null.
isClobber Tests if this MemDepResult represents a query that is an instruction clobber dependency.
isDef Tests if this MemDepResult represents a query that is an instruction definition dependency.
isLocal Tests if this MemDepResult represents a valid local query (Clobber/Def).
isNonFuncLocal Tests if this MemDepResult represents a query that is transparent to the start of the function.
isNonLocal Tests if this MemDepResult represents a query that is transparent to the start of the block, but where a non-local hasn't been done.
isSelect Tests if this MemDepResult represents a query that depends on a select instruction whose two sides each reach a non-clobbered value.
isUnknown Tests if this MemDepResult represents a query which cannot and/or will not be computed.
operator== Return true if this result equals M.
operator!= Return true if this result differs from M.
operator< Return true if this result is ordered before M.
operator> Return true if this result is ordered after M.

Static Member Functions

NameDescription
getClobber Create a Clobber result that depends on Inst.
getDef Create a Def result that depends on Inst.
getNonFuncLocal Create a NonFuncLocal result indicating no dependency in the function.
getNonLocal Create a NonLocal result indicating no dependency in the queried block.
getSelect Create a Select result indicating dependence on a select of two addresses.
getUnknown Create an Unknown result for a dependency that cannot be computed.

Friends

NameDescription
llvm::MemoryDependenceResultsProvides a lazy, caching interface for making common memory aliasing information queries, backed by LLVM's alias analysis passes.