OpenASIP
2.0
|
#include <MachineInstrDDG.hh>
Public Types | |
enum | DependenceType { DEP_UNKNOWN = 0, DEP_RAW = 1, DEP_WAR = 2, DEP_WAW = 3 } |
enum | EdgeReason { EDGE_REGISTER, EDGE_MEMORY } |
Public Member Functions | |
MIDDGEdge (unsigned reg) | |
MIDDGEdge (unsigned reg, DependenceType type) | |
virtual | ~MIDDGEdge () |
TCEString | dotString () const |
TCEString | toString () const |
Public Member Functions inherited from GraphEdge | |
GraphEdge () | |
GraphEdge (const GraphEdge &edge) | |
virtual GraphEdge * | clone () const |
virtual | ~GraphEdge () |
virtual int | edgeID () const |
virtual bool | isBackEdge () const |
int | weight () const |
void | setWeight (int w) |
Private Member Functions | |
std::string | typeAsString () const |
Private Attributes | |
unsigned | reg_ |
unsigned char | dependenceType_ |
Definition at line 86 of file MachineInstrDDG.hh.
Enumerator | |
---|---|
DEP_UNKNOWN | |
DEP_RAW | |
DEP_WAR | |
DEP_WAW |
Definition at line 87 of file MachineInstrDDG.hh.
Enumerator | |
---|---|
EDGE_REGISTER | |
EDGE_MEMORY |
Definition at line 93 of file MachineInstrDDG.hh.
|
inline |
Definition at line 97 of file MachineInstrDDG.hh.
|
inline |
Definition at line 100 of file MachineInstrDDG.hh.
|
inlinevirtual |
Definition at line 104 of file MachineInstrDDG.hh.
|
inlinevirtual |
Returns the string that should be placed in the edge'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 edges. The default implementation only sets the label property.
Reimplemented from GraphEdge.
Definition at line 106 of file MachineInstrDDG.hh.
References reg_, and typeAsString().
Referenced by MachineInstrDDG::dotString().
|
inlinevirtual |
Return the label of the edge as a string.
Used for printing graph in GraphViz .dot file.
Reimplemented from GraphEdge.
Definition at line 111 of file MachineInstrDDG.hh.
References reg_, and typeAsString().
Referenced by MachineInstrDDG::assignPhysReg().
|
inlineprivate |
Definition at line 117 of file MachineInstrDDG.hh.
References DEP_RAW, DEP_WAR, DEP_WAW, and dependenceType_.
Referenced by dotString(), and toString().
|
private |
Definition at line 129 of file MachineInstrDDG.hh.
Referenced by typeAsString().
|
private |
Definition at line 128 of file MachineInstrDDG.hh.
Referenced by dotString(), and toString().