OpenASIP
2.0
|
#include <CFGStatistics.hh>
Public Member Functions | |
CFGStatistics () | |
virtual | ~CFGStatistics () |
virtual int | normalBBCount () const |
virtual int | maxMoveCount () const |
virtual int | maxImmediateCount () const |
virtual int | maxInstructionCount () const |
virtual int | maxBypassedCount () const |
virtual void | setNormalBBCount (int) |
virtual void | setMaxMoveCount (int) |
virtual void | setMaxImmediateCount (int) |
virtual void | setMaxInstructionCount (int) |
virtual void | setMaxBypassedCount (int) |
Public Member Functions inherited from TTAProgram::BasicBlockStatistics | |
BasicBlockStatistics () | |
virtual | ~BasicBlockStatistics () |
virtual int | moveCount () const |
virtual int | immediateCount () const |
virtual int | instructionCount () const |
virtual int | bypassedCount () const |
virtual void | setMoveCount (int) |
virtual void | setImmediateCount (int) |
virtual void | setInstructionCount (int) |
virtual void | setBypassedCount (int) |
Private Attributes | |
int | normalBBCount_ |
int | maxMoveCount_ |
int | maxImmediateCount_ |
int | maxInstructionCount_ |
int | maxBypassCount_ |
Represents statistics about single control flow graph. Count of BB, sum of moves, immediates, instructions and bypasses as well as largest basic block and immediates, instructions and bypassed in it.
Definition at line 44 of file CFGStatistics.hh.
CFGStatistics::CFGStatistics | ( | ) |
Constructor, creates statistics structure with zero content.
Definition at line 38 of file CFGStatistics.cc.
|
virtual |
|
virtual |
Returns bypassed move count from statistics object for largest BB.
Definition at line 82 of file CFGStatistics.cc.
References maxBypassCount_.
Referenced by ControlFlowGraph::printStatistics().
|
virtual |
Returns immediate count from statistics object for largest BB.
Definition at line 66 of file CFGStatistics.cc.
References maxImmediateCount_.
Referenced by ControlFlowGraph::printStatistics().
|
virtual |
Returns instruction count from statistics object for largest BB.
Definition at line 74 of file CFGStatistics.cc.
References maxInstructionCount_.
Referenced by ControlFlowGraph::printStatistics().
|
virtual |
Returns maximum move count from statistics object.
Definition at line 58 of file CFGStatistics.cc.
References maxMoveCount_.
Referenced by ControlFlowGraph::printStatistics().
|
virtual |
Returns the number of basic blocks in procedure.
Definition at line 90 of file CFGStatistics.cc.
References normalBBCount_.
Referenced by ControlFlowGraph::printStatistics().
|
virtual |
Sets the bypassed move count in statistic object.
count | number of bypassed moves to store in object |
Definition at line 128 of file CFGStatistics.cc.
References maxBypassCount_.
Referenced by ControlFlowGraph::statistics().
|
virtual |
Sets the immediate count in statistic object.
count | number of immediates to store in object |
Definition at line 109 of file CFGStatistics.cc.
References maxImmediateCount_.
Referenced by ControlFlowGraph::statistics().
|
virtual |
Sets the instruction count in statistic object.
count | number of instructions to store in object |
Definition at line 119 of file CFGStatistics.cc.
References maxInstructionCount_.
Referenced by ControlFlowGraph::statistics().
|
virtual |
Sets the move count in statistic object.
count | number of moves to store in object |
Definition at line 99 of file CFGStatistics.cc.
References maxMoveCount_.
Referenced by ControlFlowGraph::statistics().
|
virtual |
Sets count of basic blocks in procedure into statistics object.
count | number of basic blocks in procedure. |
Definition at line 138 of file CFGStatistics.cc.
References normalBBCount_.
Referenced by ControlFlowGraph::statistics().
|
private |
Definition at line 64 of file CFGStatistics.hh.
Referenced by maxBypassedCount(), and setMaxBypassedCount().
|
private |
Definition at line 62 of file CFGStatistics.hh.
Referenced by maxImmediateCount(), and setMaxImmediateCount().
|
private |
Definition at line 63 of file CFGStatistics.hh.
Referenced by maxInstructionCount(), and setMaxInstructionCount().
|
private |
Definition at line 61 of file CFGStatistics.hh.
Referenced by maxMoveCount(), and setMaxMoveCount().
|
private |
Definition at line 60 of file CFGStatistics.hh.
Referenced by normalBBCount(), and setNormalBBCount().