class CheckParallelLoop: private NstTreeTraversal

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

Inheritance:


Public Methods

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


Inherited from NstTreeTraversal:

Public Methods

oint pre_action(NstTree* t)
oint in_action(NstTree* t, NstTree* st, int num)
ovoid post_action(NstTree* t)
ovoid 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.
o 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

o CheckParallelLoop()
Creates a new object CheckParallelLoop.

ovoid 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

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

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


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.