LLVM API Documentation
Public Member Functions | |
PeepholeOpts (const TargetMachine &TM) | |
bool | runOnBasicBlock (BasicBlock &BB) |
virtual const char * | getPassName () const |
void | getAnalysisUsage (AnalysisUsage &AU) const |
Definition at line 112 of file SparcV9PeepholeOpts.cpp.
llvm::PeepholeOpts::PeepholeOpts | ( | const TargetMachine & | TM | ) | [inline] |
Definition at line 117 of file SparcV9PeepholeOpts.cpp.
void llvm::PeepholeOpts::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [inline, 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 122 of file SparcV9PeepholeOpts.cpp.
References llvm::AnalysisUsage::setPreservesCFG().
virtual const char* llvm::PeepholeOpts::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 119 of file SparcV9PeepholeOpts.cpp.
bool llvm::PeepholeOpts::runOnBasicBlock | ( | BasicBlock & | BB | ) | [virtual] |
runOnBasicBlock - Virtual method overriden by subclasses to do the per-basicblock processing of the pass.
Implements llvm::BasicBlockPass.
Definition at line 138 of file SparcV9PeepholeOpts.cpp.
References BB, llvm::MachineBasicBlock::begin(), llvm::MachineFunction::begin(), E, llvm::MachineBasicBlock::end(), llvm::MachineFunction::end(), F, llvm::MachineFunction::get(), llvm::BasicBlock::getParent(), I, MBB, and MF.