LLVM API Documentation
#include <PhyRegAlloc.h>
Inheritance diagram for llvm::PhyRegAlloc:


Public Types | |
| typedef std::map< const Function *, std::vector< AllocInfo > > | SavedStateMapTy |
Public Member Functions | |
| PhyRegAlloc (const TargetMachine &TM_) | |
| virtual | ~PhyRegAlloc () |
| virtual bool | runOnFunction (Function &F) |
| virtual bool | doFinalization (Module &M) |
| virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
| const char * | getPassName () const |
| const RegClass * | getRegClassByID (unsigned id) const |
| RegClass * | getRegClassByID (unsigned id) |
Definition at line 64 of file PhyRegAlloc.h.
| typedef std::map<const Function *, std::vector<AllocInfo> > llvm::PhyRegAlloc::SavedStateMapTy |
Definition at line 93 of file PhyRegAlloc.h.
| llvm::PhyRegAlloc::PhyRegAlloc | ( | const TargetMachine & | TM_ | ) | [inline] |
Definition at line 95 of file PhyRegAlloc.h.
| virtual llvm::PhyRegAlloc::~PhyRegAlloc | ( | ) | [inline, virtual] |
Definition at line 98 of file PhyRegAlloc.h.
| bool llvm::PhyRegAlloc::doFinalization | ( | Module & | M | ) | [virtual] |
doFinalization - Virtual method overriden by subclasses to do any post processing needed after all passes have run.
Reimplemented from llvm::FunctionPass.
Definition at line 1179 of file PhyRegAlloc.cpp.
References M.
| void llvm::PhyRegAlloc::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [virtual] |
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.
Reimplemented from llvm::Pass.
Definition at line 86 of file PhyRegAlloc.cpp.
References llvm::AnalysisUsage::addRequired().
| const char* llvm::PhyRegAlloc::getPassName | ( | ) | const [inline, virtual] |
getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly, and if nothing else is available, C++ RTTI will be consulted to get a SOMEWHAT intelligible name for the pass.
Reimplemented from llvm::Pass.
Definition at line 108 of file PhyRegAlloc.h.
| RegClass* llvm::PhyRegAlloc::getRegClassByID | ( | unsigned | id | ) | [inline] |
Definition at line 115 of file PhyRegAlloc.h.
| const RegClass* llvm::PhyRegAlloc::getRegClassByID | ( | unsigned | id | ) | const [inline] |
Definition at line 112 of file PhyRegAlloc.h.
| bool llvm::PhyRegAlloc::runOnFunction | ( | Function & | F | ) | [virtual] |
runOnFunction - Main method called for allocating registers.
Implements llvm::FunctionPass.
Definition at line 1269 of file PhyRegAlloc.cpp.
References llvm::AddedInstrns::clear(), llvm::MachineFunction::dump(), F, llvm::MachineFunction::get(), llvm::MachineFunction::getInfo(), llvm::SparcV9RegInfo::getMachineRegClass(), llvm::TargetMachine::getRegInfo(), and llvm::RA_DEBUG_LiveRanges.