15 #ifndef LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H
16 #define LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H
63 std::unique_ptr<TypeBasedAAResult> Result;
Analysis pass providing a never-invalidated alias analysis result.
A Module instance is used to store all the information related to an LLVM module. ...
TypeBasedAAResult & getResult()
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB)
TypeBasedAAResult run(Function &F, FunctionAnalysisManager &AM)
Legacy wrapper pass to provide the TypeBasedAAResult object.
ModRefInfo
Flags indicating whether a memory access modifies or references memory.
bool invalidate(Function &, const PreservedAnalyses &, FunctionAnalysisManager::Invalidator &)
Handle invalidation events from the new pass manager.
A CRTP-driven "mixin" base class to help implement the function alias analysis results concept...
FunctionModRefBehavior
Summary of how a function affects memory in the program.
FunctionModRefBehavior getModRefBehavior(ImmutableCallSite CS)
static GCRegistry::Add< OcamlGC > B("ocaml","ocaml 3.10-compatible GC")
bool doFinalization(Module &M) override
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
A set of analyses that are preserved following a run of a transformation pass.
A CRTP mix-in that provides informational APIs needed for analysis passes.
AliasResult
The possible results of an alias query.
Represent the analysis usage information of a pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
A simple AA result that uses TBAA metadata to answer queries.
ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc)
Representation for a specific memory location.
ImmutablePass class - This class is used to provide information that does not need to be run...
ImmutableCallSite - establish a view to a call site for examination.
ImmutablePass * createTypeBasedAAWrapperPass()
API to communicate dependencies between analyses during invalidation.
A container for analyses that lazily runs them and caches their results.
const TypeBasedAAResult & getResult() const
static GCRegistry::Add< ErlangGC > A("erlang","erlang-compatible garbage collector")
A special type used by analysis passes to provide an address that identifies that particular analysis...
bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal)
bool doInitialization(Module &M) override
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...