clang  3.7.0
Public Member Functions | Public Attributes | List of all members
clang::OMPLoopDirective::HelperExprs Struct Reference

The expressions built for the OpenMP loop CodeGen for the whole collapsed loop nest. More...

#include <StmtOpenMP.h>

Collaboration diagram for clang::OMPLoopDirective::HelperExprs:
[legend]

Public Member Functions

bool builtAll ()
 Check if all the expressions are built (does not check the worksharing ones). More...
 
void clear (unsigned Size)
 Initialize all the fields to null. More...
 

Public Attributes

ExprIterationVarRef
 Loop iteration variable. More...
 
ExprLastIteration
 Loop last iteration number. More...
 
ExprNumIterations
 Loop number of iterations. More...
 
ExprCalcLastIteration
 Calculation of last iteration. More...
 
ExprPreCond
 Loop pre-condition. More...
 
ExprCond
 Loop condition. More...
 
ExprInit
 Loop iteration variable init. More...
 
ExprInc
 Loop increment. More...
 
ExprIL
 IsLastIteration - local flag variable passed to runtime. More...
 
ExprLB
 LowerBound - local variable passed to runtime. More...
 
ExprUB
 UpperBound - local variable passed to runtime. More...
 
ExprST
 Stride - local variable passed to runtime. More...
 
ExprEUB
 EnsureUpperBound – expression LB = min(LB, NumIterations). More...
 
ExprNLB
 Update of LowerBound for statically sheduled 'omp for' loops. More...
 
ExprNUB
 Update of UpperBound for statically sheduled 'omp for' loops. More...
 
SmallVector< Expr *, 4 > Counters
 Counters Loop counters. More...
 
SmallVector< Expr *, 4 > Inits
 Expressions for loop counters inits for CodeGen. More...
 
SmallVector< Expr *, 4 > Updates
 Expressions for loop counters update for CodeGen. More...
 
SmallVector< Expr *, 4 > Finals
 Final loop counter values for GodeGen. More...
 

Detailed Description

The expressions built for the OpenMP loop CodeGen for the whole collapsed loop nest.

Definition at line 432 of file StmtOpenMP.h.

Member Function Documentation

bool clang::OMPLoopDirective::HelperExprs::builtAll ( )
inline

Check if all the expressions are built (does not check the worksharing ones).

Definition at line 474 of file StmtOpenMP.h.

References Cond, Inc, Init, IterationVarRef, LastIteration, NumIterations, and PreCond.

Referenced by clang::Sema::ActOnOpenMPForDirective(), clang::Sema::ActOnOpenMPForSimdDirective(), clang::Sema::ActOnOpenMPParallelForDirective(), and clang::Sema::ActOnOpenMPSimdDirective().

void clang::OMPLoopDirective::HelperExprs::clear ( unsigned  Size)
inline

Initialize all the fields to null.

Parameters
SizeNumber of elements in the counters/finals/updates arrays.

Definition at line 482 of file StmtOpenMP.h.

References CalcLastIteration, Cond, Counters, EUB, Finals, IL, Inc, Init, Inits, IterationVarRef, LastIteration, LB, NLB, NUB, PreCond, ST, UB, and Updates.

Referenced by CheckOpenMPLoop().

Member Data Documentation

Expr* clang::OMPLoopDirective::HelperExprs::CalcLastIteration
Expr* clang::OMPLoopDirective::HelperExprs::Cond
SmallVector<Expr *, 4> clang::OMPLoopDirective::HelperExprs::Counters
Expr* clang::OMPLoopDirective::HelperExprs::EUB
SmallVector<Expr *, 4> clang::OMPLoopDirective::HelperExprs::Finals
Expr* clang::OMPLoopDirective::HelperExprs::IL
Expr* clang::OMPLoopDirective::HelperExprs::Inc
Expr* clang::OMPLoopDirective::HelperExprs::Init
SmallVector<Expr *, 4> clang::OMPLoopDirective::HelperExprs::Inits
Expr* clang::OMPLoopDirective::HelperExprs::IterationVarRef
Expr* clang::OMPLoopDirective::HelperExprs::LastIteration
Expr* clang::OMPLoopDirective::HelperExprs::LB
Expr* clang::OMPLoopDirective::HelperExprs::NLB
Expr* clang::OMPLoopDirective::HelperExprs::NUB
Expr* clang::OMPLoopDirective::HelperExprs::NumIterations
Expr* clang::OMPLoopDirective::HelperExprs::PreCond
Expr* clang::OMPLoopDirective::HelperExprs::ST
Expr* clang::OMPLoopDirective::HelperExprs::UB
SmallVector<Expr *, 4> clang::OMPLoopDirective::HelperExprs::Updates

The documentation for this struct was generated from the following file: