LLVM API Documentation

PreAllocSplitting.cpp File Reference

#include "VirtRegMap.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/LiveStackAnalysis.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/RegisterCoalescer.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"

Include dependency graph for PreAllocSplitting.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "pre-alloc-split"

Functions

 STATISTIC (NumSplits,"Number of intervals split")
 STATISTIC (NumRemats,"Number of intervals split by rematerialization")
 STATISTIC (NumFolds,"Number of intervals split with spill folding")
 STATISTIC (NumRestoreFolds,"Number of intervals split with restore folding")
 STATISTIC (NumRenumbers,"Number of intervals renumbered into new registers")
 STATISTIC (NumDeadSpills,"Number of dead spills removed")

Variables

static cl::opt< int > PreSplitLimit ("pre-split-limit", cl::init(-1), cl::Hidden)
static cl::opt< int > DeadSplitLimit ("dead-split-limit", cl::init(-1), cl::Hidden)
static cl::opt< int > RestoreFoldLimit ("restore-fold-limit", cl::init(-1), cl::Hidden)
static RegisterPass
< PreAllocSplitting > 
X ("pre-alloc-splitting","Pre-Register Allocation Live Interval Splitting")


Define Documentation

#define DEBUG_TYPE   "pre-alloc-split"

Definition at line 17 of file PreAllocSplitting.cpp.


Function Documentation

STATISTIC ( NumDeadSpills  ,
"Number of dead spills removed"   
)

STATISTIC ( NumRenumbers  ,
"Number of intervals renumbered into new registers"   
)

STATISTIC ( NumRestoreFolds  ,
"Number of intervals split with restore folding"   
)

STATISTIC ( NumFolds  ,
"Number of intervals split with spill folding"   
)

STATISTIC ( NumRemats  ,
"Number of intervals split by rematerialization"   
)

STATISTIC ( NumSplits  ,
"Number of intervals split"   
)


Variable Documentation

Definition at line 65 of file PreAllocSplitting.cpp.

Definition at line 71 of file PreAllocSplitting.cpp.

Definition at line 68 of file PreAllocSplitting.cpp.

Definition at line 74 of file PreAllocSplitting.cpp.

Definition at line 54 of file PreAllocSplitting.cpp.

Definition at line 77 of file PreAllocSplitting.cpp.

Definition at line 80 of file PreAllocSplitting.cpp.

cl::opt<int> DeadSplitLimit("dead-split-limit", cl::init(-1), cl::Hidden) [static]

Definition at line 86 of file PreAllocSplitting.cpp.

char ID [static]

Definition at line 89 of file PreAllocSplitting.cpp.

Definition at line 83 of file PreAllocSplitting.cpp.

Definition at line 60 of file PreAllocSplitting.cpp.

Definition at line 61 of file PreAllocSplitting.cpp.

Definition at line 58 of file PreAllocSplitting.cpp.

Referenced by llvm::addFrameReference(), llvm::MipsRegisterInfo::adjustMipsStackFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::SPURegisterInfo::determineFrameLayout(), llvm::PPCRegisterInfo::determineFrameLayout(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::emitCalleeSavedFrameMoves(), llvm::XCoreRegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::SPURegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::MipsRegisterInfo::emitEpilogue(), llvm::BlackfinRegisterInfo::emitEpilogue(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::AlphaRegisterInfo::emitEpilogue(), llvm::XCoreRegisterInfo::emitPrologue(), llvm::X86RegisterInfo::emitPrologue(), llvm::Thumb1RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::SPURegisterInfo::emitPrologue(), llvm::SparcRegisterInfo::emitPrologue(), llvm::PPCRegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), llvm::MipsRegisterInfo::emitPrologue(), llvm::BlackfinRegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86RegisterInfo::getCalleeSavedRegClasses(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getFrameIndexOffset(), llvm::TargetRegisterInfo::getFrameIndexOffset(), llvm::SystemZRegisterInfo::getFrameIndexOffset(), llvm::BlackfinRegisterInfo::getFrameIndexOffset(), llvm::X86RegisterInfo::hasFP(), llvm::SystemZRegisterInfo::hasFP(), llvm::SPURegisterInfo::hasFP(), llvm::PPCRegisterInfo::hasFP(), llvm::MipsRegisterInfo::hasFP(), llvm::BlackfinRegisterInfo::hasFP(), llvm::ARMBaseRegisterInfo::hasFP(), llvm::AlphaRegisterInfo::hasFP(), llvm::XCoreInstrInfo::isInvariantLoad(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::SPUTargetLowering::LowerFormalArguments(), MeetsMaxMemopRequirement(), MustSaveLR(), needsFP(), llvm::XCoreRegisterInfo::needsFrameMoves(), llvm::X86RegisterInfo::needsStackRealignment(), llvm::XCoreRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::X86RegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::BlackfinRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::MipsRegisterInfo::processFunctionBeforeFrameFinalized(), llvm::SystemZInstrInfo::restoreCalleeSavedRegisters(), llvm::XCoreInstrInfo::spillCalleeSavedRegisters(), llvm::SystemZInstrInfo::spillCalleeSavedRegisters(), and llvm::MSP430InstrInfo::spillCalleeSavedRegisters().

Definition at line 59 of file PreAllocSplitting.cpp.

cl::opt<int> PreSplitLimit("pre-split-limit", cl::init(-1), cl::Hidden) [static]

cl::opt<int> RestoreFoldLimit("restore-fold-limit", cl::init(-1), cl::Hidden) [static]

Definition at line 56 of file PreAllocSplitting.cpp.

const TargetMachine* TM

Definition at line 55 of file PreAllocSplitting.cpp.

Definition at line 57 of file PreAllocSplitting.cpp.

Definition at line 62 of file PreAllocSplitting.cpp.

RegisterPass<PreAllocSplitting> X("pre-alloc-splitting","Pre-Register Allocation Live Interval Splitting") [static]