LLVM API Documentation
#include <MachineRegionInfo.h>
Public Member Functions | |
MachineRegionInfoPass () | |
~MachineRegionInfoPass () | |
MachineRegionInfo & | getRegionInfo () |
const MachineRegionInfo & | getRegionInfo () const |
MachineFunctionPass interface | |
bool | runOnMachineFunction (MachineFunction &F) override |
void | releaseMemory () override |
void | verifyAnalysis () const override |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
void | print (raw_ostream &OS, const Module *) const override |
void | dump () const |
Static Public Attributes | |
static char | ID = 0 |
Definition at line 94 of file MachineRegionInfo.h.
MachineRegionInfoPass::MachineRegionInfoPass | ( | ) | [explicit] |
Definition at line 73 of file MachineRegionInfo.cpp.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeMachineRegionInfoPassPass().
Definition at line 77 of file MachineRegionInfo.cpp.
void MachineRegionInfoPass::dump | ( | ) | const |
Reimplemented from llvm::Pass.
Definition at line 116 of file MachineRegionInfo.cpp.
References llvm::RegionInfoBase< Tr >::dump().
void MachineRegionInfoPass::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [override, virtual] |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 104 of file MachineRegionInfo.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::AnalysisUsage::addRequiredTransitive(), and llvm::AnalysisUsage::setPreservesAll().
MachineRegionInfo& llvm::MachineRegionInfoPass::getRegionInfo | ( | ) | [inline] |
Definition at line 103 of file MachineRegionInfo.h.
Referenced by llvm::GraphTraits< MachineRegionInfoPass * >::getEntryNode(), llvm::GraphTraits< MachineRegionInfoPass * >::nodes_begin(), and llvm::GraphTraits< MachineRegionInfoPass * >::nodes_end().
const MachineRegionInfo& llvm::MachineRegionInfoPass::getRegionInfo | ( | ) | const [inline] |
Definition at line 107 of file MachineRegionInfo.h.
void MachineRegionInfoPass::print | ( | raw_ostream & | O, |
const Module * | M | ||
) | const [override, virtual] |
print - Print out the internal state of the pass. This is called by Analyze to print out the contents of an analysis. Otherwise it is not necessary to implement this method. Beware that the module pointer MAY be null. This automatically forwards to a virtual function that does not provide the Module* in case the analysis doesn't need it it can just be ignored.
Reimplemented from llvm::Pass.
Definition at line 111 of file MachineRegionInfo.cpp.
References llvm::RegionInfoBase< Tr >::print().
void MachineRegionInfoPass::releaseMemory | ( | ) | [override, virtual] |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused.
Optionally implement this function to release pass memory when it is no longer used.
Reimplemented from llvm::Pass.
Definition at line 92 of file MachineRegionInfo.cpp.
References llvm::RegionInfoBase< Tr >::releaseMemory().
Referenced by runOnMachineFunction().
bool MachineRegionInfoPass::runOnMachineFunction | ( | MachineFunction & | MF | ) | [override, virtual] |
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis.
Implements llvm::MachineFunctionPass.
Definition at line 81 of file MachineRegionInfo.cpp.
References llvm::MachineRegionInfo::recalculate(), and releaseMemory().
void MachineRegionInfoPass::verifyAnalysis | ( | ) | const [override, virtual] |
verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information.
Reimplemented from llvm::Pass.
Definition at line 96 of file MachineRegionInfo.cpp.
References llvm::RegionInfoBase< Tr >::verifyAnalysis(), and llvm::RegionInfoBase< RegionTraits< MachineFunction > >::VerifyRegionInfo.
char MachineRegionInfoPass::ID = 0 [static] |
Definition at line 98 of file MachineRegionInfo.h.