13#ifndef LLVM_ANALYSIS_GLOBALSMODREF_H
14#define LLVM_ANALYSIS_GLOBALSMODREF_H
41 bool UnknownFunctionsWithLocalLinkage =
false;
62 std::list<DeletionCallbackHandle>::iterator
I;
64 DeletionCallbackHandle(GlobalsAAResult &GAR,
Value *V)
67 void deleted()
override;
74 std::list<DeletionCallbackHandle> Handles;
76 explicit GlobalsAAResult(
83 LLVM_ABI GlobalsAAResult(GlobalsAAResult &&Arg);
87 ModuleAnalysisManager::Invalidator &);
115 void AnalyzeGlobals(
Module &M);
117 bool AnalyzeUsesOfPointer(
Value *V,
122 void CollectSCCMembership(
CallGraph &CG);
147 std::unique_ptr<GlobalsAAResult> Result;
157 bool runOnModule(
Module &M)
override;
158 bool doFinalization(
Module &M)
override;
This header defines various interfaces for pass management in LLVM.
The mod/ref information collected for a particular function.
This class stores info we want to provide to or retain within an alias query.
MemoryEffects getMemoryEffects(const CallBase *Call, AAQueryInfo &AAQI)
ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI)
The possible results of an alias query.
Represent the analysis usage information of a pass.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
The basic data container for the call graph of a Module of IR.
Value handle with callbacks on RAUW and destruction.
A parsed version of the target data layout string in and methods for querying it.
An alias analysis result set for globals.
LLVM_ABI ~GlobalsAAResult()
LLVM_ABI ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI)
LLVM_ABI bool invalidate(Module &M, const PreservedAnalyses &PA, ModuleAnalysisManager::Invalidator &)
static LLVM_ABI GlobalsAAResult analyzeModule(Module &M, std::function< const TargetLibraryInfo &(Function &F)> GetTLI, CallGraph &CG)
LLVM_ABI MemoryEffects getMemoryEffects(const Function *F)
getMemoryEffects - Return the behavior of the specified function if called from the specified call si...
LLVM_ABI AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, AAQueryInfo &AAQI, const Instruction *CtxI)
alias - If one of the pointers is to a global that we are tracking, and the other is some random poin...
friend struct RecomputeGlobalsAAPass
const GlobalsAAResult & getResult() const
GlobalsAAResult & getResult()
Analysis pass providing a never-invalidated alias analysis result.
LLVM_ABI GlobalsAAResult run(Module &M, ModuleAnalysisManager &AM)
Representation for a specific memory location.
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
Provides information about what library functions are available for the current target.
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.
MemoryEffectsBase< IRMemLocation > MemoryEffects
Summary of how a function affects memory in the program.
LLVM_ABI ModulePass * createGlobalsAAWrapperPass()
ModRefInfo
Flags indicating whether a memory access modifies or references memory.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
A CRTP mix-in that provides informational APIs needed for analysis passes.
A special type used by analysis passes to provide an address that identifies that particular analysis...
A CRTP mix-in to automatically provide informational APIs needed for passes.
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)