LLVM  6.0.0svn
Namespaces | Macros | Functions | Variables
PPCMIPeephole.cpp File Reference
#include "PPC.h"
#include "PPCInstrBuilder.h"
#include "PPCInstrInfo.h"
#include "PPCTargetMachine.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/Debug.h"
#include "MCTargetDesc/PPCPredicates.h"
Include dependency graph for PPCMIPeephole.cpp:

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define DEBUG_TYPE   "ppc-mi-peepholes"
 

Functions

 STATISTIC (NumEliminatedSExt, "Number of eliminated sign-extensions")
 
 STATISTIC (NumEliminatedZExt, "Number of eliminated zero-extensions")
 
 STATISTIC (NumOptADDLIs, "Number of optimized ADD instruction fed by LI")
 
void llvm::initializePPCMIPeepholePass (PassRegistry &)
 
 INITIALIZE_PASS_BEGIN (PPCMIPeephole, DEBUG_TYPE, "PowerPC MI Peephole Optimization", false, false) INITIALIZE_PASS_END(PPCMIPeephole
 

Variables

static cl::opt< boolEnableSExtElimination ("ppc-eliminate-signext", cl::desc("enable elimination of sign-extensions"), cl::init(false), cl::Hidden)
 
static cl::opt< boolEnableZExtElimination ("ppc-eliminate-zeroext", cl::desc("enable elimination of zero-extensions"), cl::init(false), cl::Hidden)
 
 DEBUG_TYPE
 
PowerPC MI Peephole Optimization
 
PowerPC MI Peephole false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-mi-peepholes"

Definition at line 37 of file PPCMIPeephole.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( PPCMIPeephole  ,
DEBUG_TYPE  ,
"PowerPC MI Peephole Optimization ,
false  ,
false   
)

◆ STATISTIC() [1/3]

STATISTIC ( NumEliminatedSExt  ,
"Number of eliminated sign-extensions"   
)

◆ STATISTIC() [2/3]

STATISTIC ( NumEliminatedZExt  ,
"Number of eliminated zero-extensions"   
)

◆ STATISTIC() [3/3]

STATISTIC ( NumOptADDLIs  ,
"Number of optimized ADD instruction fed by LI"   
)

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 1184 of file PPCMIPeephole.cpp.

◆ EnableSExtElimination

cl::opt<bool> EnableSExtElimination("ppc-eliminate-signext", cl::desc("enable elimination of sign-extensions"), cl::init(false), cl::Hidden)
static

◆ EnableZExtElimination

cl::opt<bool> EnableZExtElimination("ppc-eliminate-zeroext", cl::desc("enable elimination of zero-extensions"), cl::init(false), cl::Hidden)
static

◆ false

PowerPC MI Peephole false

Definition at line 1184 of file PPCMIPeephole.cpp.

◆ Optimization

PowerPC MI Peephole Optimization

Definition at line 1184 of file PPCMIPeephole.cpp.