omp_lowering.h File Reference

#include "astQuery.h"

Include dependency graph for omp_lowering.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OmpSupport

Classes

class  OmpSupport::translationDriver
 A driver to traverse AST trees and invoke individual translators for OpenMP constructs, (not in use) Postorder is preferred. More...

Typedefs

typedef std::map< const SgVariableSymbol *,
SgVariableSymbol * > 
OmpSupport::VariableSymbolMap_t

Enumerations

enum  OmpSupport::omp_rtl_enum {
  OmpSupport::e_gomp,
  OmpSupport::e_omni,
  OmpSupport::e_last_rtl
}
 The type of target runtime libraries (not yet in use). More...

Functions

void OmpSupport::commandLineProcessing (std::vector< std::string > &argvList)
void OmpSupport::lower_omp (SgSourceFile *)
 The top level interface to translate OpenMP directives.
void OmpSupport::insertRTLHeaders (SgSourceFile *)
 Insert include "xxx.h", the interface of a runtime library to the compiler.
void OmpSupport::insertRTLinitAndCleanCode (SgSourceFile *)
 Insert runtime init and terminate routines to main() entry.
void OmpSupport::transOmpParallel (SgNode *node)
 Translate omp parallel.
void OmpSupport::transOmpSections (SgNode *node)
 Translate omp sections.
void OmpSupport::transOmpTask (SgNode *node)
 Translate omp task.
void OmpSupport::transOmpLoop (SgNode *node)
 Translate omp for or omp do loops.
void OmpSupport::transOmpBarrier (SgNode *node)
 Translate omp barrier.
void OmpSupport::transOmpFlush (SgNode *node)
 Translate omp flush.
void OmpSupport::transOmpTaskwait (SgNode *node)
 Translate omp taskwait.
void OmpSupport::transOmpThreadprivate (SgNode *node)
 Translate omp threadprivate.
void OmpSupport::transOmpOrdered (SgNode *node)
 Translate the ordered directive (not the ordered clause).
void OmpSupport::transOmpAtomic (SgNode *node)
 Translate omp atomic.
void OmpSupport::transOmpCritical (SgNode *node)
 Translate omp critical.
void OmpSupport::transOmpMaster (SgNode *node)
 Translate omp master.
void OmpSupport::transOmpSingle (SgNode *node)
 Translate omp single.
SgFunctionDeclarationOmpSupport::generateOutlinedTask (SgNode *node, std::string &wrapper_name, std::set< SgVariableSymbol * > &syms, std::set< SgInitializedName * > &readOnlyVars)
 A helper function to generate implicit or explicit task for either omp parallel or omp task.
void OmpSupport::transOmpVariables (SgStatement *ompStmt, SgBasicBlock *bb1, SgExpression *orig_loop_upper=NULL)
 Translate OpenMP variables associated with an OpenMP pragma, such as private, firstprivate, lastprivate, reduction, etc. bb1 is the translation generated code block in which the variable handling statements will be inserted. Original loop upper bound is needed for implementing lastprivate (check if it is the last iteration).
SgInitializedNamePtrList OmpSupport::collectAllClauseVariables (SgOmpClauseBodyStatement *clause_stmt)
 Collect all variables from OpenMP clauses associated with an omp statement: private, reduction, etc.
SgInitializedNamePtrList OmpSupport::collectClauseVariables (SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Collect variables from a particular type of OpenMP clauses associated with an omp statement: private, reduction, etc.
SgInitializedNamePtrList OmpSupport::collectClauseVariables (SgOmpClauseBodyStatement *clause_stmt, const VariantVector &vvt)
 Collect variables from given types of OpenMP clauses associated with an omp statement: private, reduction, etc.
bool OmpSupport::isInClauseVariableList (SgInitializedName *var, SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Check if a variable is in a variable list of a given clause type.
bool OmpSupport::isInClauseVariableList (SgInitializedName *var, SgOmpClauseBodyStatement *clause_stmt, const VariantVector &vvt)
 Check if a variable is in variable lists of given clause types.
int OmpSupport::replaceVariableReferences (SgNode *root, SgVariableSymbol *oldVar, SgVariableSymbol *newVar)
 Replace references to oldVar within root with references to newVar, return the number of references replaced.
int OmpSupport::replaceVariableReferences (SgNode *root, VariableSymbolMap_t varRemap)
 Replace variable references within root based on a map from old symbols to new symbols.
void OmpSupport::addClauseVariable (SgInitializedName *var, SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Add a variable into a non-reduction clause of an OpenMP statement, create the clause transparently if it does not exist.
SgOmpVariablesClauseOmpSupport::buildOmpVariableClause (SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Build a non-reduction variable clause for a given OpenMP directive. It directly returns the clause if the clause already exists.
bool OmpSupport::hasClause (SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Check if an OpenMP statement has a clause of type vt.
Rose_STL_Container< SgOmpClause * > OmpSupport::getClause (SgOmpClauseBodyStatement *clause_stmt, const VariantT &vt)
 Get OpenMP clauses from an eligible OpenMP statement.
bool OmpSupport::useStaticSchedule (SgOmpClauseBodyStatement *omp_loop)
 Check if an omp for/do loop use static schedule or not, including: default schedule, or schedule(static[,chunk_size]).
SgOmpClause::omp_reduction_operator_enum OmpSupport::getReductionOperationType (SgInitializedName *init_name, SgOmpClauseBodyStatement *clause_stmt)
 Return a reduction variable's reduction operation type.
SgExpressionOmpSupport::createInitialValueExp (SgOmpClause::omp_reduction_operator_enum r_operator)
 Create an initial value according to reduction operator type.
std::string OmpSupport::generateGOMPLoopStartFuncName (bool isOrdered, SgOmpClause::omp_schedule_kind_enum s_kind)
 Generate GOMP loop schedule start function's name.
std::string OmpSupport::generateGOMPLoopNextFuncName (bool isOrdered, SgOmpClause::omp_schedule_kind_enum s_kind)
 Generate GOMP loop schedule next function's name.
std::string OmpSupport::toString (SgOmpClause::omp_schedule_kind_enum s_kind)
 Convert a schedule kind enum value to a small case string.
int OmpSupport::patchUpPrivateVariables (SgFile *)
 Patch up private variables for omp for. The reason is that loop indices should be private by default and this function will make this explicit.
int OmpSupport::patchUpFirstprivateVariables (SgFile *)
 Patch up firstprivate variables for omp task. The reason is that the specification 3.0 defines rules for implicitly determined data-sharing attributes and this function will make the firstprivate variable of omp task explicit.
std::set< SgInitializedName * > OmpSupport::collectThreadprivateVariables ()
 Collect threadprivate variables within the current project, return a set to avoid duplicated elements. No input parameters are needed since it finds match from memory pools.
SgVariableDeclarationOmpSupport::buildAndInsertDeclarationForOmp (const std::string &name, SgType *type, SgInitializer *varInit, SgBasicBlock *orig_scope)
 Special handling when trying to build and insert a variable declaration into a BB within Fortran OpenMP code.
SgBasicBlockOmpSupport::getEnclosingRegionOrFuncDefinition (SgNode *)
 Find an enclosing parallel region or function definition's body.

Variables

unsigned int OmpSupport::nCounter
omp_rtl_enum OmpSupport::rtl_type


Generated on Sat May 19 00:53:57 2012 for ROSE by  doxygen 1.4.7