LLVM API Documentation

Defines | Functions | Variables
GlobalsModRef.cpp File Reference
#include "llvm/Analysis/Passes.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include <set>
Include dependency graph for GlobalsModRef.cpp:

Go to the source code of this file.

Defines

#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")
 INITIALIZE_AG_PASS_BEGIN (GlobalsModRef, AliasAnalysis,"globalsmodref-aa","Simple mod/ref analysis for globals", false, true, false) INITIALIZE_AG_PASS_END(GlobalsModRef

Variables

 AliasAnalysis
globalsmodref aa
globalsmodref Simple mod ref
analysis for 
globals
globalsmodref Simple mod ref
analysis for 
false
globalsmodref Simple mod ref
analysis for 
true

Define Documentation

#define DEBUG_TYPE   "globalsmodref-aa"

Definition at line 17 of file GlobalsModRef.cpp.


Function Documentation

INITIALIZE_AG_PASS_BEGIN ( GlobalsModRef  ,
AliasAnalysis  ,
"globalsmodref-aa ,
"Simple mod/ref analysis for globals ,
false  ,
true  ,
false   
)
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"   
)

Variable Documentation

globalsmodref aa

Definition at line 197 of file GlobalsModRef.cpp.

globalsmodref Simple mod ref analysis for false

Definition at line 197 of file GlobalsModRef.cpp.

globalsmodref Simple mod ref analysis for globals

Definition at line 197 of file GlobalsModRef.cpp.

globalsmodref Simple mod ref analysis for true

Definition at line 197 of file GlobalsModRef.cpp.