LLVM API Documentation

Namespaces | Defines | Functions | Variables
PPCCTRLoops.cpp File Reference
#include "llvm/Transforms/Scalar.h"
#include "PPC.h"
#include "PPCTargetMachine.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ScalarEvolutionExpander.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ValueHandle.h"
#include "llvm/PassSupport.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetLibraryInfo.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Transforms/Utils/LoopUtils.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include <algorithm>
#include <vector>
Include dependency graph for PPCCTRLoops.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Defines

#define DEBUG_TYPE   "ctrloops"

Functions

 STATISTIC (NumCTRLoops,"Number of loops converted to CTR loops")
void llvm::initializePPCCTRLoopsPass (PassRegistry &)
void llvm::initializePPCCTRLoopsVerifyPass (PassRegistry &)
 INITIALIZE_PASS_BEGIN (PPCCTRLoops,"ppc-ctr-loops","PowerPC CTR Loops", false, false) INITIALIZE_PASS_END(PPCCTRLoops
 INITIALIZE_PASS_BEGIN (PPCCTRLoopsVerify,"ppc-ctr-loops-verify","PowerPC CTR Loops Verify", false, false) INITIALIZE_PASS_END(PPCCTRLoopsVerify
static bool isLargeIntegerTy (bool Is32Bit, Type *Ty)
static bool clobbersCTR (const MachineInstr *MI)
static bool verifyCTRBranch (MachineBasicBlock *MBB, MachineBasicBlock::iterator I)

Variables

static cl::opt< intCTRLoopLimit ("ppc-max-ctrloop", cl::Hidden, cl::init(-1))
ppc ctr loops
ppc ctr PowerPC CTR Loops
ppc ctr PowerPC CTR false
ppc ctr loops verify
ppc ctr loops PowerPC CTR Loops Verify

Define Documentation

#define DEBUG_TYPE   "ctrloops"

Definition at line 62 of file PPCCTRLoops.cpp.


Function Documentation

static bool clobbersCTR ( const MachineInstr MI) [static]
INITIALIZE_PASS_BEGIN ( PPCCTRLoops  ,
"ppc-ctr-loops ,
"PowerPC CTR Loops ,
false  ,
false   
)
INITIALIZE_PASS_BEGIN ( PPCCTRLoopsVerify  ,
"ppc-ctr-loops-verify ,
"PowerPC CTR Loops Verify ,
false  ,
false   
)
static bool isLargeIntegerTy ( bool  Is32Bit,
Type Ty 
) [static]

Definition at line 190 of file PPCCTRLoops.cpp.

STATISTIC ( NumCTRLoops  ,
"Number of loops converted to CTR loops  
)

Variable Documentation

cl::opt<int> CTRLoopLimit("ppc-max-ctrloop", cl::Hidden, cl::init(-1)) [static]
ppc ctr loops PowerPC CTR Loops false

Definition at line 151 of file PPCCTRLoops.cpp.

ppc ctr loops

Definition at line 151 of file PPCCTRLoops.cpp.

ppc ctr PowerPC CTR Loops

Definition at line 151 of file PPCCTRLoops.cpp.

ppc ctr loops verify

Definition at line 162 of file PPCCTRLoops.cpp.

ppc ctr loops PowerPC CTR Loops Verify