LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GlobalsModRef.cpp File Reference

#include "llvm/Analysis/Passes.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Instructions.h"
#include "llvm/Constants.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Support/InstIterator.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/SCCIterator.h"
#include <set>

Include dependency graph for GlobalsModRef.cpp:

Go to the source code of this file.

Functions

Passllvm::createGlobalsModRefPass ()
static const GlobalValuegetUnderlyingObject (const Value *V)


Function Documentation

static const GlobalValue* getUnderlyingObject const Value V  )  [static]
 

getUnderlyingObject - This traverses the use chain to figure out what object the specified value points to. If the value points to, or is derived from, a global object, return it.

Definition at line 326 of file GlobalsModRef.cpp.

References llvm::Value::getType(), and getUnderlyingObject().


Variable Documentation

Statistic NumNoMemFunctions("globalsmodref-aa","Number of functions that do not access memory") [static]
 

Statistic NumNonAddrTakenFunctions("globalsmodref-aa","Number of functions without address taken") [static]
 

Statistic NumNonAddrTakenGlobalVars("globalsmodref-aa","Number of global vars without address taken") [static]
 

Statistic NumReadMemFunctions("globalsmodref-aa","Number of functions that only read memory") [static]
 

RegisterOpt<GlobalsModRef> X("globalsmodref-aa","Simple mod/ref analysis for globals") [static]
 

RegisterAnalysisGroup<AliasAnalysis, GlobalsModRef> Y [static]
 

Definition at line 138 of file GlobalsModRef.cpp.