Skip to content

OmpSupport::transOmpVariables

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). withinAcceleratorModel means if we only translate private() variables, used to support accelerator model

Synopsis

Declared in <src/midend/programTransformation/ompLowering/omp_lowering.h>

[[visibility("default")]]
void
transOmpVariables(
    SgStatement* ompStmt,
    SgBasicBlock* bb1,
    SgExpression* orig_loop_upper = NULL,
    bool withinAcceleratorModel = false);

Parameters

Name Description
ompStmt This class represents the notion of a statement.
bb1 This class represents the concept of a block (not a basic block from control flow analysis).
orig_loop_upper This class represents the notion of an expression. Expressions

Created with MrDocs