LLVM API Documentation

FunctionAttrs.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/CallGraphSCCPass.h"
#include "llvm/GlobalVariable.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CaptureTracking.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/InstIterator.h"

Include dependency graph for FunctionAttrs.cpp:

Go to the source code of this file.

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")
Pass * llvm::createFunctionAttrsPass ()

Variables

static RegisterPass
< FunctionAttrs > 
X ("functionattrs","Deduce function attributes")


Define Documentation

#define DEBUG_TYPE   "functionattrs"

Definition at line 21 of file FunctionAttrs.cpp.


Function Documentation

STATISTIC ( NumNoCapture  ,
"Number of arguments marked nocapture"   
)

STATISTIC ( NumReadOnly  ,
"Number of functions marked readonly"   
)

STATISTIC ( NumReadNone  ,
"Number of functions marked readnone"   
)


Variable Documentation

char ID [static]

Definition at line 40 of file FunctionAttrs.cpp.

RegisterPass<FunctionAttrs> X("functionattrs","Deduce function attributes") [static]