13 #ifndef LLVM_ANALYSIS_GLOBALSMODREF_H 14 #define LLVM_ANALYSIS_GLOBALSMODREF_H 37 std::function<const TargetLibraryInfo &(Function &F)> GetTLI;
43 bool UnknownFunctionsWithLocalLinkage =
false;
62 struct DeletionCallbackHandle final :
CallbackVH {
64 std::list<DeletionCallbackHandle>::iterator
I;
69 void deleted()
override;
76 std::list<DeletionCallbackHandle> Handles;
114 void AnalyzeGlobals(
Module &M);
116 bool AnalyzeUsesOfPointer(
Value *V,
121 void CollectSCCMembership(
CallGraph &CG);
141 std::unique_ptr<GlobalsAAResult> Result;
151 bool runOnModule(
Module &M)
override;
152 bool doFinalization(
Module &M)
override;
Legacy wrapper pass to provide the GlobalsAAResult object.
A parsed version of the target data layout string in and methods for querying it. ...
const GlobalsAAResult & getResult() const
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
This class stores info we want to provide to or retain within an alias query.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
The mod/ref information collected for a particular function.
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
A CRTP-driven "mixin" base class to help implement the function alias analysis results concept...
ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI)
This file provides interfaces used to build and manipulate a call graph, which is a very useful tool ...
FunctionModRefBehavior
Summary of how a function affects memory in the program.
AliasResult
The possible results of an alias query.
An alias analysis result set for globals.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
FunctionModRefBehavior getModRefBehavior(const Function *F)
getModRefBehavior - Return the behavior of the specified function if called from the specified call s...
A CRTP mix-in that provides informational APIs needed for analysis passes.
Represent the analysis usage information of a pass.
Analysis pass providing a never-invalidated alias analysis result.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
Representation for a specific memory location.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
GlobalsAAResult & getResult()
Module.h This file contains the declarations for the Module class.
Provides information about what library functions are available for the current target.
static GlobalsAAResult analyzeModule(Module &M, std::function< const TargetLibraryInfo &(Function &F)> GetTLI, CallGraph &CG)
The basic data container for the call graph of a Module of IR.
ModulePass * createGlobalsAAWrapperPass()
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
LLVM Value Representation.
ModRefInfo
Flags indicating whether a memory access modifies or references memory.
print Print MemDeps of function
Value handle with callbacks on RAUW and destruction.
A container for analyses that lazily runs them and caches their results.
ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI)
A special type used by analysis passes to provide an address that identifies that particular analysis...
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, AAQueryInfo &AAQI)
alias - If one of the pointers is to a global that we are tracking, and the other is some random poin...