LLVM  4.0.0
Macros | Functions | Variables
Mem2Reg.cpp File Reference
#include "llvm/Transforms/Utils/Mem2Reg.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/PromoteMemToReg.h"
#include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
Include dependency graph for Mem2Reg.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mem2reg"
 

Functions

 STATISTIC (NumPromoted,"Number of alloca's promoted")
 
static bool promoteMemoryToRegister (Function &F, DominatorTree &DT, AssumptionCache &AC)
 
 INITIALIZE_PASS_BEGIN (PromoteLegacyPass,"mem2reg","Promote Memory to ""Register", false, false) INITIALIZE_PASS_END(PromoteLegacyPass
 

Variables

 mem2reg
 
Promote Memory to Register
 
Promote Memory to false
 

Macro Definition Documentation

#define DEBUG_TYPE   "mem2reg"

Definition at line 26 of file Mem2Reg.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( PromoteLegacyPass  ,
"mem2reg"  ,
"Promote Memory to ""Register ,
false  ,
false   
)
static bool promoteMemoryToRegister ( Function F,
DominatorTree DT,
AssumptionCache AC 
)
static
STATISTIC ( NumPromoted  ,
"Number of alloca's promoted"   
)

Variable Documentation

Promote Memory to false

Definition at line 100 of file Mem2Reg.cpp.

mem2reg

Definition at line 100 of file Mem2Reg.cpp.

Promote Memory to Register