LLVM
13.0.0git
|
An alias analysis result set for globals. More...
#include "llvm/Analysis/GlobalsModRef.h"
Classes | |
class | FunctionInfo |
The mod/ref information collected for a particular function. More... | |
Static Public Member Functions | |
static GlobalsAAResult | analyzeModule (Module &M, std::function< const TargetLibraryInfo &(Function &F)> GetTLI, CallGraph &CG) |
Additional Inherited Members | |
![]() | |
AAResultBase ()=default | |
AAResultBase (const AAResultBase &Arg) | |
AAResultBase (AAResultBase &&Arg) | |
AAResultsProxy | getBestAAResults () |
Get a proxy for the best AA result set to query at this time. More... | |
An alias analysis result set for globals.
This focuses on handling aliasing properties of globals and interprocedural function call mod/ref information.
Definition at line 31 of file GlobalsModRef.h.
GlobalsAAResult::GlobalsAAResult | ( | GlobalsAAResult && | Arg | ) |
Definition at line 968 of file GlobalsModRef.cpp.
GlobalsAAResult::~GlobalsAAResult | ( | ) |
Definition at line 982 of file GlobalsModRef.cpp.
AliasResult GlobalsAAResult::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 pointer, we know there cannot be an alias, because the address of the global isn't taken.
Definition at line 826 of file GlobalsModRef.cpp.
References llvm::AAResultBase< DerivedT >::alias(), EnableUnsafeGlobalsModRefAliasResults, llvm::getUnderlyingObject(), llvm::NoAlias, llvm::MemoryLocation::Ptr, and llvm::Value::stripPointerCastsForAliasAnalysis().
|
static |
Definition at line 984 of file GlobalsModRef.cpp.
References M.
Referenced by llvm::GlobalsAA::run(), and llvm::GlobalsAAWrapperPass::runOnModule().
FunctionModRefBehavior GlobalsAAResult::getModRefBehavior | ( | const CallBase * | Call | ) |
getModRefBehavior - Return the behavior of the specified function if called from the specified call site.
The call site may be null in which case the most generic behavior of this function should be returned.
Definition at line 260 of file GlobalsModRef.cpp.
References F, llvm::FMRB_DoesNotAccessMemory, llvm::FMRB_OnlyReadsMemory, llvm::FMRB_UnknownModRefBehavior, llvm::AAResultBase< DerivedT >::getModRefBehavior(), llvm::isModOrRefSet(), and llvm::isModSet().
FunctionModRefBehavior GlobalsAAResult::getModRefBehavior | ( | const Function * | F | ) |
getModRefBehavior - Return the behavior of the specified function if called from the specified call site.
The call site may be null in which case the most generic behavior of this function should be returned.
Definition at line 246 of file GlobalsModRef.cpp.
References F, llvm::FMRB_DoesNotAccessMemory, llvm::FMRB_OnlyReadsMemory, llvm::FMRB_UnknownModRefBehavior, llvm::AAResultBase< DerivedT >::getModRefBehavior(), llvm::isModOrRefSet(), and llvm::isModSet().
|
inline |
Definition at line 1147 of file AliasAnalysis.h.
ModRefInfo GlobalsAAResult::getModRefInfo | ( | const CallBase * | Call, |
const MemoryLocation & | Loc, | ||
AAQueryInfo & | AAQI | ||
) |
Definition at line 940 of file GlobalsModRef.cpp.
References F, llvm::AAResultBase< DerivedT >::getModRefInfo(), llvm::getUnderlyingObject(), llvm::GlobalValue::hasLocalLinkage(), llvm::intersectModRef(), llvm::isModOrRefSet(), llvm::ModRef, llvm::NoModRef, llvm::MemoryLocation::Ptr, and llvm::unionModRef().
|
inline |
Definition at line 1152 of file AliasAnalysis.h.
bool GlobalsAAResult::invalidate | ( | Module & | M, |
const PreservedAnalyses & | PA, | ||
ModuleAnalysisManager::Invalidator & | |||
) |
Definition at line 815 of file GlobalsModRef.cpp.
References llvm::PreservedAnalyses::getChecker().