LLVM: lib/Analysis/GlobalsModRef.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "globalsmodref-aa"
Functions
STATISTIC (NumNonAddrTakenGlobalVars, "Number of global vars without address taken")
STATISTIC (NumNonAddrTakenFunctions,"Number of functions without address taken")
STATISTIC (NumNoMemFunctions, "Number of functions that do not access memory")
STATISTIC (NumReadMemFunctions, "Number of functions that only read memory")
STATISTIC (NumIndirectGlobalVars, "Number of indirect global objects")
static bool isNonEscapingGlobalNoAliasWithLoad (const GlobalValue *GV, const Value *V, int &Depth, const DataLayout &DL)
INITIALIZE_PASS_BEGIN (GlobalsAAWrapperPass, "globals-aa", "Globals Alias Analysis", false, true) INITIALIZE_PASS_END(GlobalsAAWrapperPass

DEBUG_TYPE

#define DEBUG_TYPE "globalsmodref-aa"

INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( GlobalsAAWrapperPass ,
"globals-aa" ,
"Globals Alias Analysis" ,
false ,
true )

isNonEscapingGlobalNoAliasWithLoad()

Definition at line 633 of file GlobalsModRef.cpp.

References llvm::Depth, DL, llvm::dyn_cast(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::getUnderlyingObject(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::isa(), LHS, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and RHS.

STATISTIC() [1/5]

STATISTIC ( NumIndirectGlobalVars ,
"Number of indirect global objects" )

STATISTIC() [2/5]

STATISTIC ( NumNoMemFunctions ,
"Number of functions that do not access memory" )

STATISTIC() [3/5]

STATISTIC ( NumNonAddrTakenFunctions ,
"Number of functions without address taken" )

STATISTIC() [4/5]

STATISTIC ( NumNonAddrTakenGlobalVars ,
"Number of global vars without address taken" )

STATISTIC() [5/5]

STATISTIC ( NumReadMemFunctions ,
"Number of functions that only read memory" )

aa

EnableUnsafeGlobalsModRefAliasResults

cl::opt< bool > EnableUnsafeGlobalsModRefAliasResults("enable-unsafe-globalsmodref-alias-results", cl::init(false), cl::Hidden) ( "enable-unsafe-globalsmodref-alias-results" , cl::init(false) , cl::Hidden ) static

false