LLVM API Documentation

ConstantProp.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Constant.h"
#include "llvm/Instruction.h"
#include "llvm/Pass.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/InstIterator.h"
#include "llvm/ADT/Statistic.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")
FunctionPass * llvm::createConstantPropagationPass ()

Variables

static RegisterPass
< ConstantPropagation > 
X ("constprop","Simple constant propagation")


Define Documentation

#define DEBUG_TYPE   "constprop"

Definition at line 21 of file ConstantProp.cpp.


Function Documentation

STATISTIC ( NumInstKilled  ,
"Number of instructions killed"   
)


Variable Documentation

char ID [static]

Definition at line 37 of file ConstantProp.cpp.

RegisterPass<ConstantPropagation> X("constprop","Simple constant propagation") [static]