OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
TTAProgram::BasicBlockStatistics Class Reference

#include <BasicBlock.hh>

Inheritance diagram for TTAProgram::BasicBlockStatistics:
Inheritance graph
Collaboration diagram for TTAProgram::BasicBlockStatistics:
Collaboration graph

Public Member Functions

 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 moveCount_
 
int immediateCount_
 
int instructionCount_
 
int bypassedCount_
 

Detailed Description

Represents statistics about single basic block.

Definition at line 55 of file BasicBlock.hh.

Constructor & Destructor Documentation

◆ BasicBlockStatistics()

BasicBlockStatistics::BasicBlockStatistics ( )

Constructor, creates statistics structure with zero content.

Definition at line 159 of file BasicBlock.cc.

159  :
160  moveCount_(0),
161  immediateCount_(0),
162  instructionCount_(0),
163  bypassedCount_(0) {
164 }

◆ ~BasicBlockStatistics()

BasicBlockStatistics::~BasicBlockStatistics ( )
virtual

To prevent compiler warning of virtual destructor.

Definition at line 169 of file BasicBlock.cc.

169  {
170 }

Member Function Documentation

◆ bypassedCount()

int BasicBlockStatistics::bypassedCount ( ) const
virtual

Returns bypassed move count from statistics object.

Returns
count of bypassed moves stored in object

Definition at line 201 of file BasicBlock.cc.

201  {
202  return bypassedCount_;
203 }

References bypassedCount_.

Referenced by ControlFlowGraph::printStatistics(), TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ immediateCount()

int BasicBlockStatistics::immediateCount ( ) const
virtual

Returns immediate count from statistics object.

Returns
count of immediates stored in object

Definition at line 185 of file BasicBlock.cc.

185  {
186  return immediateCount_;
187 }

References immediateCount_.

Referenced by ControlFlowGraph::printStatistics(), TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ instructionCount()

int BasicBlockStatistics::instructionCount ( ) const
virtual

Returns instruction count from statistics object.

Returns
count of instructions stored in object

Definition at line 193 of file BasicBlock.cc.

193  {
194  return instructionCount_;
195 }

References instructionCount_.

Referenced by ControlFlowGraph::printStatistics(), and ControlFlowGraph::statistics().

◆ moveCount()

int BasicBlockStatistics::moveCount ( ) const
virtual

Returns move count from statistics object.

Returns
count of moves stored in object

Definition at line 177 of file BasicBlock.cc.

177  {
178  return moveCount_;
179 }

References moveCount_.

Referenced by ControlFlowGraph::printStatistics(), TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ setBypassedCount()

void BasicBlockStatistics::setBypassedCount ( int  count)
virtual

Sets the bypassed move count in statistic object.

Parameters
countnumber of bypassed moves to store in object

Definition at line 239 of file BasicBlock.cc.

239  {
240  bypassedCount_ = count;
241 }

References bypassedCount_.

Referenced by TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ setImmediateCount()

void BasicBlockStatistics::setImmediateCount ( int  count)
virtual

Sets the immediate count in statistic object.

Parameters
countnumber of immediates to store in object

Definition at line 220 of file BasicBlock.cc.

220  {
221  immediateCount_ = count;
222 }

References immediateCount_.

Referenced by TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ setInstructionCount()

void BasicBlockStatistics::setInstructionCount ( int  count)
virtual

Sets the instruction count in statistic object.

Parameters
countnumber of instructions to store in object

Definition at line 230 of file BasicBlock.cc.

230  {
231  instructionCount_ = count;
232 }

References instructionCount_.

Referenced by TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

◆ setMoveCount()

void BasicBlockStatistics::setMoveCount ( int  count)
virtual

Sets the move count in statistic object.

Parameters
countnumber of moves to store in object

Definition at line 210 of file BasicBlock.cc.

210  {
211  moveCount_ = count;
212 }

References moveCount_.

Referenced by TTAProgram::BasicBlock::statistics(), and ControlFlowGraph::statistics().

Member Data Documentation

◆ bypassedCount_

int TTAProgram::BasicBlockStatistics::bypassedCount_
private

Definition at line 71 of file BasicBlock.hh.

Referenced by bypassedCount(), and setBypassedCount().

◆ immediateCount_

int TTAProgram::BasicBlockStatistics::immediateCount_
private

Definition at line 69 of file BasicBlock.hh.

Referenced by immediateCount(), and setImmediateCount().

◆ instructionCount_

int TTAProgram::BasicBlockStatistics::instructionCount_
private

Definition at line 70 of file BasicBlock.hh.

Referenced by instructionCount(), and setInstructionCount().

◆ moveCount_

int TTAProgram::BasicBlockStatistics::moveCount_
private

Definition at line 68 of file BasicBlock.hh.

Referenced by moveCount(), and setMoveCount().


The documentation for this class was generated from the following files:
TTAProgram::BasicBlockStatistics::bypassedCount_
int bypassedCount_
Definition: BasicBlock.hh:71
TTAProgram::BasicBlockStatistics::moveCount_
int moveCount_
Definition: BasicBlock.hh:68
TTAProgram::BasicBlockStatistics::instructionCount_
int instructionCount_
Definition: BasicBlock.hh:70
TTAProgram::BasicBlockStatistics::immediateCount_
int immediateCount_
Definition: BasicBlock.hh:69