LLVM  8.0.1
Macros | Functions
IPConstantPropagation.cpp File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/IPO.h"
Include dependency graph for IPConstantPropagation.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ipconstprop"
 

Functions

 STATISTIC (NumArgumentsProped, "Number of args turned into constants")
 
 STATISTIC (NumReturnValProped, "Number of return values turned into constants")
 
static bool PropagateConstantsIntoArguments (Function &F)
 PropagateConstantsIntoArguments - Look at all uses of the specified function. More...
 
static bool PropagateConstantReturn (Function &F)
 
 INITIALIZE_PASS (IPCP, "ipconstprop", "Interprocedural constant propagation", false, false) ModulePass *llvm
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ipconstprop"

Definition at line 29 of file IPConstantPropagation.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( IPCP  ,
"ipconstprop"  ,
"Interprocedural constant propagation ,
false  ,
false   
)

◆ PropagateConstantReturn()

static bool PropagateConstantReturn ( Function F)
static

◆ PropagateConstantsIntoArguments()

static bool PropagateConstantsIntoArguments ( Function F)
static

◆ STATISTIC() [1/2]

STATISTIC ( NumArgumentsProped  ,
"Number of args turned into constants"   
)

◆ STATISTIC() [2/2]

STATISTIC ( NumReturnValProped  ,
"Number of return values turned into constants"   
)