Go to the documentation of this file.
15 #ifndef LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H
16 #define LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H
71 std::unique_ptr<TypeBasedAAResult> Result;
95 #endif // LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H
A set of analyses that are preserved following a run of a transformation pass.
ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI)
ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI, bool IgnoreLocals)
This is an optimization pass for GlobalISel generic memory operations.
bool doFinalization(Module &M) override
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
ImmutablePass class - This class is used to provide information that does not need to be run.
TypeBasedAAResult run(Function &F, FunctionAnalysisManager &AM)
A simple AA result that uses TBAA metadata to answer queries.
The possible results of an alias query.
bool doInitialization(Module &M) override
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...
Analysis pass providing a never-invalidated alias analysis result.
Summary of how a function affects memory in the program.
This class stores info we want to provide to or retain within an alias query.
MemoryEffects getMemoryEffects(const CallBase *Call, AAQueryInfo &AAQI)
Represent the analysis usage information of a pass.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
API to communicate dependencies between analyses during invalidation.
Legacy wrapper pass to provide the TypeBasedAAResult object.
TypeBasedAAResult & getResult()
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
A special type used by analysis passes to provide an address that identifies that particular analysis...
ModRefInfo
Flags indicating whether a memory access modifies or references memory.
ImmutablePass * createTypeBasedAAWrapperPass()
A Module instance is used to store all the information related to an LLVM module.
A CRTP mix-in that provides informational APIs needed for analysis passes.
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, AAQueryInfo &AAQI, const Instruction *CtxI)
const TypeBasedAAResult & getResult() const
bool invalidate(Function &, const PreservedAnalyses &, FunctionAnalysisManager::Invalidator &)
Handle invalidation events from the new pass manager.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
A container for analyses that lazily runs them and caches their results.
A base class to help implement the function alias analysis results concept.
Representation for a specific memory location.