LLVM  8.0.1
Macros | Functions | Variables
ConstantProp.cpp File Reference
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/Pass.h"
#include "llvm/Support/DebugCounter.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
Include dependency graph for ConstantProp.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "constprop"
 

Functions

 STATISTIC (NumInstKilled, "Number of instructions killed")
 
 DEBUG_COUNTER (CPCounter, "constprop-transform", "Controls which instructions are killed")
 
 INITIALIZE_PASS_BEGIN (ConstantPropagation, "constprop", "Simple constant propagation", false, false) INITIALIZE_PASS_END(ConstantPropagation
 

Variables

 constprop
 
Simple constant propagation
 
Simple constant false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "constprop"

Definition at line 35 of file ConstantProp.cpp.

Function Documentation

◆ DEBUG_COUNTER()

DEBUG_COUNTER ( CPCounter  ,
"constprop-transform"  ,
"Controls which instructions are killed"   
)

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( ConstantPropagation  ,
"constprop"  ,
"Simple constant propagation ,
false  ,
false   
)

◆ STATISTIC()

STATISTIC ( NumInstKilled  ,
"Number of instructions killed"   
)

Variable Documentation

◆ constprop

constprop

Definition at line 61 of file ConstantProp.cpp.

◆ false

Simple constant false

Definition at line 61 of file ConstantProp.cpp.

◆ propagation

Simple constant propagation

Definition at line 61 of file ConstantProp.cpp.