LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::PhyRegAlloc Class Reference

#include <PhyRegAlloc.h>

Inheritance diagram for llvm::PhyRegAlloc:

Inheritance graph
[legend]
Collaboration diagram for llvm::PhyRegAlloc:

Collaboration graph
[legend]
List of all members.

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 RegClassgetRegClassByID (unsigned id) const
RegClassgetRegClassByID (unsigned id)

Detailed Description

Definition at line 64 of file PhyRegAlloc.h.


Member Typedef Documentation

typedef std::map<const Function *, std::vector<AllocInfo> > llvm::PhyRegAlloc::SavedStateMapTy
 

Definition at line 93 of file PhyRegAlloc.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 1176 of file PhyRegAlloc.cpp.

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 84 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 1266 of file PhyRegAlloc.cpp.

References llvm::AddedInstrns::clear(), llvm::LiveRangeInfo::coalesceLRs(), llvm::LiveRangeInfo::constructLiveRanges(), llvm::MachineFunction::dump(), llvm::MachineFunction::get(), llvm::MachineFunction::getInfo(), llvm::SparcV9RegInfo::getMachineRegClass(), llvm::Value::getName(), llvm::TargetMachine::getRegInfo(), llvm::LiveRangeInfo::printLiveRanges(), and llvm::RA_DEBUG_LiveRanges.


The documentation for this class was generated from the following files: