OpenASIP
2.0
|
#include <MachineInstrDDG.hh>
Public Member Functions | |
MIDDGNode () | |
MIDDGNode (const llvm::MachineInstr &mi, int sequentialAddress) | |
virtual | ~MIDDGNode () |
bool | operator< (const MIDDGNode &other) const |
bool | operator== (const MIDDGNode &other) const |
const llvm::MachineInstr * | machineInstr () const |
int | sequentialAddress () const |
std::string | dotString () const |
TCEString | osalOperationName () const |
void | setOptimalCycle (int cycle) |
int | optimalCycle () const |
Public Member Functions inherited from GraphNode | |
GraphNode (int nodeID) | |
GraphNode () | |
virtual | ~GraphNode () |
virtual GraphNode * | clone () const |
int | nodeID () const |
virtual std::string | toString () const |
Private Attributes | |
const llvm::MachineInstr * | mi_ |
int | address_ |
int | optimalCycle_ |
Definition at line 58 of file MachineInstrDDG.hh.
|
inline |
Definition at line 59 of file MachineInstrDDG.hh.
|
inline |
Definition at line 60 of file MachineInstrDDG.hh.
|
inlinevirtual |
Definition at line 63 of file MachineInstrDDG.hh.
|
virtual |
Returns the string that should be placed in the node's properties section in the GraphViz Dot string.
This can be overridden in the derived class to add different properties (e.g., colors, etc.) to different type of nodes. The default implementation only sets the label property.
Reimplemented from GraphNode.
Definition at line 606 of file MachineInstrDDG.cc.
References osalOperationName().
Referenced by MachineInstrDDG::dotString().
|
inline |
Definition at line 72 of file MachineInstrDDG.hh.
References mi_.
Referenced by osalOperationName(), and MachineInstrDDG::preceedingNodeUsesOrDefinesReg().
|
inline |
Definition at line 65 of file MachineInstrDDG.hh.
References sequentialAddress().
|
inline |
Definition at line 68 of file MachineInstrDDG.hh.
References mi_.
|
inline |
Definition at line 79 of file MachineInstrDDG.hh.
References optimalCycle_.
Referenced by MachineInstrDDG::dotString().
TCEString MIDDGNode::osalOperationName | ( | ) | const |
Try to figure out the name of the instruction opcode in OSAL, if available.
If the operation with the produced name is not found in OSAL, llvm: is prepended to the name string.
Definition at line 566 of file MachineInstrDDG.cc.
References Operation::isNull(), machineInstr(), mi_, OperationPool::operation(), and TCEString::upper().
Referenced by dotString(), and MachineInstrDDG::dotString().
|
inline |
Definition at line 73 of file MachineInstrDDG.hh.
References address_.
Referenced by MachineInstrDDG::assignPhysReg(), MachineInstrDDG::createFalseDepEdge(), MachineInstrDDG::lastVregUser(), and operator<().
|
inline |
Definition at line 78 of file MachineInstrDDG.hh.
References optimalCycle_.
Referenced by MachineInstrDDG::computeOptimalSchedule().
|
private |
Definition at line 82 of file MachineInstrDDG.hh.
Referenced by sequentialAddress().
|
private |
Definition at line 81 of file MachineInstrDDG.hh.
Referenced by machineInstr(), operator==(), and osalOperationName().
|
private |
Definition at line 83 of file MachineInstrDDG.hh.
Referenced by optimalCycle(), and setOptimalCycle().