Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CFor2ForPass Class Reference

A pass to convert C for's to SUIF for's. More...

#include <region_passes.h>

Inheritance diagram for CFor2ForPass:

PipelinablePass Pass Module List of all members.

Public Methods

 CFor2ForPass (SuifEnv *the_env)
void initialize ()
 Initialize the pass.

Moduleclone () const
 May return "this" if the pass has no state.

void do_procedure_definition (ProcedureDefinition *proc_def)
 Override this if computation is to be applied to a procedure_definition. More...

virtual void finalize ()
 Override this if computation is to be executed after all processing is done. More...


Static Public Methods

bool convert_cfor2for (CForStatement* cfor, bool verbose)
 Test if cfor is a legal SUIF for statement. More...


Protected Attributes

OptionLiteral_verbose

Static Protected Attributes

unsigned int conversion_count = 0


Detailed Description

A pass to convert C for's to SUIF for's.


Constructor & Destructor Documentation

CFor2ForPass::CFor2ForPass ( SuifEnv * the_env)


Member Function Documentation

Module * CFor2ForPass::clone ( void) const [inline, virtual]

May return "this" if the pass has no state.

Reimplemented from PipelinablePass.

bool CFor2ForPass::convert_cfor2for ( CForStatement * cfor,
bool verbose) [static]

Test if cfor is a legal SUIF for statement.

At this point, only look at loops of form for(int i=10; i<20; i=+2)

void CFor2ForPass::do_procedure_definition ( ProcedureDefinition * proc_def) [virtual]

Override this if computation is to be applied to a procedure_definition.

The default is empty.

Reimplemented from PipelinablePass.

void CFor2ForPass::finalize () [virtual]

Override this if computation is to be executed after all processing is done.

The default is empty.

Reimplemented from PipelinablePass.

void CFor2ForPass::initialize ( void) [virtual]

Initialize the pass.

Reimplemented from PipelinablePass.


Member Data Documentation

OptionLiteral * CFor2ForPass::_verbose [protected]

unsigned int CFor2ForPass::conversion_count = 0 [static, protected]


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:42:54 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000