FlopCounter Class Reference

Annotates the AST with information of FLOP operations. More...

#include <FlopCounter.h>

List of all members.

Protected Types

typedef StackFrameVector<
Flops
SynthesizedAttributesList

Protected Member Functions

Flops evaluateSynthesizedAttribute (SgNode *astNode, SynthesizedAttributesList attributeList)
Flops defaultSynthesizedAttribute ()


Detailed Description

Annotates the AST with information of FLOP operations.

Counts the occurances of FLOP operations like, assignments, additions, multiplies etc. and annotates them as MetricAttributes

Usage example for annotation:

   FlopCounterProcessor flops;
   flops.traverse( file );

Definition at line 24 of file FlopCounter.h.


Member Typedef Documentation

typedef StackFrameVector<Flops> FlopCounter::SynthesizedAttributesList [protected]

Definition at line 27 of file FlopCounter.h.


Member Function Documentation

Flops FlopCounter::defaultSynthesizedAttribute (  )  [inline, protected]

Definition at line 31 of file FlopCounter.h.

Flops FlopCounter::evaluateSynthesizedAttribute ( SgNode *  astNode,
SynthesizedAttributesList  attributeList 
) [protected]

Definition at line 7 of file FlopCounter.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7