LLVM API Documentation

Mem2Reg.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/PromoteMemToReg.h"
#include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Instructions.h"
#include "llvm/Function.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"

Include dependency graph for Mem2Reg.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "mem2reg"

Functions

 STATISTIC (NumPromoted,"Number of alloca's promoted")
FunctionPass * llvm::createPromoteMemoryToRegisterPass ()

Variables

static RegisterPass< PromotePass > X ("mem2reg","Promote Memory to Register")


Define Documentation

#define DEBUG_TYPE   "mem2reg"

Definition at line 15 of file Mem2Reg.cpp.


Function Documentation

STATISTIC ( NumPromoted  ,
"Number of alloca's promoted"   
)


Variable Documentation

char ID [static]

Definition at line 30 of file Mem2Reg.cpp.

RegisterPass<PromotePass> X("mem2reg","Promote Memory to Register") [static]