LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
SCCP.cpp File Reference
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/InstVisitor.h"
#include "llvm/Pass.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetLibraryInfo.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils/Local.h"
#include <algorithm>
Include dependency graph for SCCP.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "sccp"
 

Functions

 STATISTIC (NumInstRemoved,"Number of instructions removed")
 
 STATISTIC (NumDeadBlocks,"Number of basic blocks unreachable")
 
 STATISTIC (IPNumInstRemoved,"Number of instructions removed by IPSCCP")
 
 STATISTIC (IPNumArgsElimed,"Number of arguments constant propagated by IPSCCP")
 
 STATISTIC (IPNumGlobalConst,"Number of globals found to be constant by IPSCCP")
 
 INITIALIZE_PASS (SCCP,"sccp","Sparse Conditional Constant Propagation", false, false) FunctionPass *llvm
 
static void DeleteInstructionInBlock (BasicBlock *BB)
 
 INITIALIZE_PASS_BEGIN (IPSCCP,"ipsccp","Interprocedural Sparse Conditional Constant Propagation", false, false) INITIALIZE_PASS_END(IPSCCP
 
static bool AddressIsTaken (const GlobalValue *GV)
 

Variables

 ipsccp
 
Interprocedural Sparse
Conditional Constant 
Propagation
 
Interprocedural Sparse
Conditional Constant 
false
 

Macro Definition Documentation

#define DEBUG_TYPE   "sccp"

Definition at line 20 of file SCCP.cpp.

Function Documentation

static bool AddressIsTaken ( const GlobalValue GV)
static
static void DeleteInstructionInBlock ( BasicBlock BB)
static
INITIALIZE_PASS ( SCCP  ,
"sccp"  ,
"Sparse Conditional Constant Propagation ,
false  ,
false   
)

Definition at line 1518 of file SCCP.cpp.

INITIALIZE_PASS_BEGIN ( IPSCCP  ,
"ipsccp"  ,
"Interprocedural Sparse Conditional Constant Propagation ,
false  ,
false   
)
STATISTIC ( NumInstRemoved  ,
"Number of instructions removed"   
)
STATISTIC ( NumDeadBlocks  ,
"Number of basic blocks unreachable"   
)
STATISTIC ( IPNumInstRemoved  ,
"Number of instructions removed by IPSCCP"   
)
STATISTIC ( IPNumArgsElimed  ,
"Number of arguments constant propagated by IPSCCP"   
)
STATISTIC ( IPNumGlobalConst  ,
"Number of globals found to be constant by IPSCCP"   
)

Variable Documentation

Interprocedural Sparse Conditional Constant false

Definition at line 1647 of file SCCP.cpp.

ipsccp

Definition at line 1647 of file SCCP.cpp.

Interprocedural Sparse Conditional Constant Propagation

Definition at line 1647 of file SCCP.cpp.