LLVM  3.7.0
Macros | Functions | Variables
ShrinkWrap.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachinePostDominators.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetFrameLowering.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Include dependency graph for ShrinkWrap.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "shrink-wrap"
 

Functions

 STATISTIC (NumFunc,"Number of functions")
 
 STATISTIC (NumCandidates,"Number of shrink-wrapping candidates")
 
 STATISTIC (NumCandidatesDropped,"Number of shrink-wrapping candidates dropped because of frequency")
 
 INITIALIZE_PASS_BEGIN (ShrinkWrap,"shrink-wrap","Shrink Wrap Pass", false, false) bool ShrinkWrap
 
 for (const MachineOperand &MO:MI.operands())
 
template<typename ListOfBBs , typename DominanceAnalysis >
MachineBasicBlockFindIDom (MachineBasicBlock &Block, ListOfBBs BBs, DominanceAnalysis &Dom)
 Helper function to find the immediate (post) dominator. More...
 

Variables

return false
 

Macro Definition Documentation

#define DEBUG_TYPE   "shrink-wrap"

Definition at line 72 of file ShrinkWrap.cpp.

Function Documentation

template<typename ListOfBBs , typename DominanceAnalysis >
MachineBasicBlock* FindIDom ( MachineBasicBlock Block,
ListOfBBs  BBs,
DominanceAnalysis &  Dom 
)

Helper function to find the immediate (post) dominator.

Definition at line 217 of file ShrinkWrap.cpp.

for ( const MachineOperand &MO:MI.  operands())
INITIALIZE_PASS_BEGIN ( ShrinkWrap  ,
"shrink-wrap ,
"Shrink Wrap Pass ,
false  ,
false   
)

Definition at line 180 of file ShrinkWrap.cpp.

References llvm::dbgs(), and DEBUG.

STATISTIC ( NumFunc  ,
"Number of functions  
)
STATISTIC ( NumCandidates  ,
"Number of shrink-wrapping candidates"   
)
STATISTIC ( NumCandidatesDropped  ,
"Number of shrink-wrapping candidates dropped because of frequency"   
)

Variable Documentation

return false

Definition at line 212 of file ShrinkWrap.cpp.