class CheckParallelLoop : private NstTreeTraversal

This class implements methods to check if loop nests are parallel in a code

Inheritance:


Public Methods

void check(NstTree& t, ofstream* rep = NULL)
Checks recursively in the AST t if the loop nests are parallel
CheckParallelLoop(NstTree& t, ofstream* rep = NULL)
Creates a new object CheckParallelLoop
CheckParallelLoop()
Creates a new object CheckParallelLoop.
inline int nb_parallel_loops()
Returns the number of parallel loops in the code.
inline int nb_sequential_loops()
Returns the number of sequential loops in the code.

Inherited from NstTreeTraversal:

Public Methods

virtual int in_action(NstTree* t, NstTree* st, int num)
virtual void post_action(NstTree* t)
virtual int pre_action(NstTree* t)
virtual void traversal(NstTree* t)

Documentation

This class implements methods to check if loop nests are parallel in a code. It adds an INDEPENDENT directive in the class NstStatementDo if the loop is parallel.
CheckParallelLoop(NstTree& t, ofstream* rep = NULL)
Creates a new object CheckParallelLoop. Checks recursively in the AST t if the loop nests are parallel. Modifies the flag independent in the loop info of the class NstStatementDo if so.
Parameters:
t - AST
rep - stream to report

CheckParallelLoop()
Creates a new object CheckParallelLoop.

void check(NstTree& t, ofstream* rep = NULL)
Checks recursively in the AST t if the loop nests are parallel. Modifies the flag independent in the class NstStatementDo if so.
Parameters:
t - AST
rep - stream to report

inline int nb_parallel_loops()
Returns the number of parallel loops in the code.

inline int nb_sequential_loops()
Returns the number of sequential loops in the code.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de