LLVM API Documentation
#include <MachineFunction.h>
Inheritance diagram for llvm::MachineFunction:
Definition at line 75 of file MachineFunction.h.
|
Definition at line 200 of file MachineFunction.h. |
|
Definition at line 202 of file MachineFunction.h. |
|
Definition at line 203 of file MachineFunction.h. |
|
Definition at line 201 of file MachineFunction.h. |
|
Definition at line 204 of file MachineFunction.h. |
|
Definition at line 109 of file MachineFunction.cpp. Referenced by construct(). |
|
Definition at line 119 of file MachineFunction.cpp. |
|
getNextMBBNumber - Returns the next unique number to be assigned to a MachineBasicBlock in this MachineFunction. Definition at line 237 of file MachineFunction.h. |
|
Definition at line 228 of file MachineFunction.h. |
|
Definition at line 227 of file MachineFunction.h. |
|
Definition at line 214 of file MachineFunction.h. |
|
|
Definition at line 247 of file MachineFunction.cpp. |
|
construct - Allocate and initialize a MachineFunction for a given Function and Target Definition at line 226 of file MachineFunction.cpp. References llvm::Annotable::addAnnotation(), llvm::Annotable::getAnnotation(), MachineFunction(), and MF_AID(). |
|
destruct - Destroy the MachineFunction corresponding to a given Function Definition at line 235 of file MachineFunction.cpp. References llvm::Annotable::deleteAnnotation(), and MF_AID(). |
|
dump - Print the current MachineFunction to cerr, useful for debugger use. Definition at line 127 of file MachineFunction.cpp. References print(). Referenced by llvm::PhyRegAlloc::runOnFunction(). |
|
Definition at line 224 of file MachineFunction.h. |
|
Definition at line 216 of file MachineFunction.h. |
|
|
Definition at line 226 of file MachineFunction.h. |
|
|
get - Return a handle to a MachineFunction corresponding to the given Function. This should not be called before "construct()" for a given Function. Definition at line 240 of file MachineFunction.cpp. References llvm::Annotable::getAnnotation(), and MF_AID(). Referenced by llvm::LiveRangeInfo::coalesceLRs(), llvm::SparcV9RegInfo::colorMethodArgs(), llvm::LiveRangeInfo::constructLiveRanges(), llvm::MachineCodeForInstruction::destroy(), llvm::MachineCodeForInstruction::get(), llvm::PeepholeOpts::runOnBasicBlock(), llvm::PhyRegAlloc::runOnFunction(), llvm::ModuloSchedulingPass::runOnFunction(), and llvm::MachineFunctionPass::runOnFunction(). |
|
Definition at line 208 of file MachineFunction.h. |
|
Definition at line 207 of file MachineFunction.h. Referenced by llvm::SelectionDAG::SelectionDAG(). |
|
getBlockNumbered - MachineBasicBlocks are automatically numbered when they are inserted into the machine function. The block number for a machine basic block can be found by using the MBB::getBlockNumber method, this method provides the inverse mapping. Definition at line 146 of file MachineFunction.h. |
|
getConstantPool - Return the constant pool object for the current function. Definition at line 127 of file MachineFunction.h. Referenced by print(), and llvm::SparcV9CodeEmitter::runOnMachineFunction(). |
|
getFrameInfo - Return the frame info object for the current function. This object contains information about objects allocated on the stack frame of the current function in an abstract way. Definition at line 122 of file MachineFunction.h. Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPC64RegisterInfo::eliminateFrameIndex(), llvm::PPC32RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::emitEpilogue(), llvm::PPC64RegisterInfo::emitEpilogue(), llvm::PPC32RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitPrologue(), llvm::PPC64RegisterInfo::emitPrologue(), llvm::PPC32RegisterInfo::emitPrologue(), hasFP(), print(), and llvm::X86RegisterInfo::processFunctionBeforeFrameFinalized(). |
|
getFunction - Return the LLVM function that this machine code represents Definition at line 106 of file MachineFunction.h. Referenced by llvm::SparcV9FunctionInfo::CalculateArgSize(), llvm::DOTGraphTraits< const MachineFunction * >::getGraphName(), llvm::SparcV9CodeEmitter::runOnMachineFunction(), llvm::SelectionDAG::SelectionDAG(), llvm::AsmPrinter::setupMachineFunction(), and viewCFG(). |
|
MachineFunctionInfo - Keep track of various per-function pieces of information for the sparc backend. Definition at line 133 of file MachineFunction.h. Referenced by llvm::SparcV9RegInfo::colorMethodArgs(), llvm::MachineCodeForInstruction::destroy(), llvm::MachineCodeForInstruction::get(), llvm::SparcV9FrameInfo::getDynamicAreaOffset(), llvm::SparcV9FrameInfo::getRegSpillAreaOffset(), llvm::getStaticStackSize(), llvm::SparcV9FrameInfo::getTmpAreaOffset(), and llvm::PhyRegAlloc::runOnFunction(). |
|
Definition at line 156 of file MachineFunction.h. |
|
getLastBlock - Returns the MachineBasicBlock with the greatest number
Definition at line 153 of file MachineFunction.h. |
|
SSARegMap Interface... Keep track of information about each SSA virtual register, such as which register class it belongs to. Definition at line 115 of file MachineFunction.h. Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::VirtRegMap::assignVirt2StackSlot(), llvm::VirtRegMap::grow(), llvm::VirtRegMap::print(), and llvm::LiveIntervals::runOnMachineFunction(). |
|
|
print - Print out the MachineFunction in a format suitable for debugging to the specified stream. Definition at line 129 of file MachineFunction.cpp. References begin(), end(), getConstantPool(), getFrameInfo(), llvm::Value::getName(), llvm::MachineConstantPool::print(), and llvm::MachineFrameInfo::print(). Referenced by dump(). |
|
Definition at line 219 of file MachineFunction.h. |
|
Definition at line 218 of file MachineFunction.h. |
|
removeFromMBBNumbering - Remove the specific machine basic block from our tracker, this is only really to be used by the MachineBasicBlock implementation. Definition at line 245 of file MachineFunction.h. |
|
Definition at line 221 of file MachineFunction.h. |
|
Definition at line 220 of file MachineFunction.h. |
|
Definition at line 223 of file MachineFunction.h. |
|
viewCFG - This function is meant for use from the debugger. You can just say 'call F->viewCFG()' and a ghostview window should pop up from the program, displaying the CFG of the current function with the code for each basic block inside. This depends on there being a 'dot' and 'gv' program in your path. Definition at line 185 of file MachineFunction.cpp. References F, getFunction(), llvm::Value::getName(), and llvm::WriteGraph(). Referenced by viewCFGOnly(). |
|
viewCFGOnly - This function is meant for use from the debugger. It works just like viewCFG, but it does not include the contents of basic blocks into the nodes, just the label. If you are only interested in the CFG this can make the graph smaller. Definition at line 211 of file MachineFunction.cpp. References viewCFG(). |