LLVM API Documentation

Defines | Functions | Variables
ConstantProp.cpp File Reference
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/Pass.h"
#include "llvm/Target/TargetLibraryInfo.h"
#include <set>
Include dependency graph for ConstantProp.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "constprop"

Functions

 STATISTIC (NumInstKilled,"Number of instructions killed")
 INITIALIZE_PASS_BEGIN (ConstantPropagation,"constprop","Simple constant propagation", false, false) INITIALIZE_PASS_END(ConstantPropagation

Variables

 constprop
Simple constant propagation
Simple constant false

Define Documentation

#define DEBUG_TYPE   "constprop"

Definition at line 33 of file ConstantProp.cpp.


Function Documentation

INITIALIZE_PASS_BEGIN ( ConstantPropagation  ,
"constprop"  ,
"Simple constant propagation ,
false  ,
false   
)
STATISTIC ( NumInstKilled  ,
"Number of instructions killed"   
)

Variable Documentation

Definition at line 57 of file ConstantProp.cpp.

Simple constant false

Definition at line 57 of file ConstantProp.cpp.

Simple constant propagation

Definition at line 57 of file ConstantProp.cpp.