LLVM API Documentation

Classes | Namespaces | Defines | 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/InstIterator.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.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

namespace  llvm
 

List of target independent CodeGen pass IDs.


Defines

#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

Define 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

Definition at line 142 of file FunctionAttrs.cpp.

Referenced by LTOModule::getSymbolAttributes().

Deduce function false

Definition at line 142 of file FunctionAttrs.cpp.

Definition at line 142 of file FunctionAttrs.cpp.