LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions | Variables
FunctionAttrs.cpp File Reference
#include "llvm/Transforms/IPO.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/CaptureTracking.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/InstIterator.h"
#include "llvm/Target/TargetLibraryInfo.h"
Include dependency graph for FunctionAttrs.cpp:

Go to the source code of this file.

Classes

struct  llvm::GraphTraits< ArgumentGraphNode * >
 
struct  llvm::GraphTraits< ArgumentGraph * >
 

Namespaces

 llvm
 List of target independent CodeGen pass IDs.
 

Macros

#define DEBUG_TYPE   "functionattrs"
 

Functions

 STATISTIC (NumReadNone,"Number of functions marked readnone")
 
 STATISTIC (NumReadOnly,"Number of functions marked readonly")
 
 STATISTIC (NumNoCapture,"Number of arguments marked nocapture")
 
 STATISTIC (NumReadNoneArg,"Number of arguments marked readnone")
 
 STATISTIC (NumReadOnlyArg,"Number of arguments marked readonly")
 
 STATISTIC (NumNoAlias,"Number of function returns marked noalias")
 
 STATISTIC (NumAnnotated,"Number of attributes added to library functions")
 
 INITIALIZE_PASS_BEGIN (FunctionAttrs,"functionattrs","Deduce function attributes", false, false) INITIALIZE_PASS_END(FunctionAttrs
 
static Attribute::AttrKind determinePointerReadAttrs (Argument *A, const SmallPtrSet< Argument *, 8 > &SCCNodes)
 

Variables

 functionattrs
 
Deduce function attributes
 
Deduce function false
 

Macro Definition Documentation

#define DEBUG_TYPE   "functionattrs"

Definition at line 21 of file FunctionAttrs.cpp.

Function Documentation

static Attribute::AttrKind determinePointerReadAttrs ( Argument A,
const SmallPtrSet< Argument *, 8 > &  SCCNodes 
)
static
INITIALIZE_PASS_BEGIN ( FunctionAttrs  ,
"functionattrs"  ,
"Deduce function attributes ,
false  ,
false   
)
STATISTIC ( NumReadNone  ,
"Number of functions marked readnone"   
)
STATISTIC ( NumReadOnly  ,
"Number of functions marked readonly"   
)
STATISTIC ( NumNoCapture  ,
"Number of arguments marked nocapture"   
)
STATISTIC ( NumReadNoneArg  ,
"Number of arguments marked readnone"   
)
STATISTIC ( NumReadOnlyArg  ,
"Number of arguments marked readonly"   
)
STATISTIC ( NumNoAlias  ,
"Number of function returns marked noalias"   
)
STATISTIC ( NumAnnotated  ,
"Number of attributes added to library functions  
)

Variable Documentation

Deduce function attributes

Definition at line 142 of file FunctionAttrs.cpp.

Referenced by LTOModule::getSymbolAttributes().

Deduce function false

Definition at line 142 of file FunctionAttrs.cpp.

functionattrs

Definition at line 142 of file FunctionAttrs.cpp.