class OMPCollapseClause
Declaration
class OMPCollapseClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'collapse' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp simd' has clause 'collapse' with single expression '3'. The parameter must be a constant positive integer expression, it specifies the number of nested loops that should be collapsed into a single iteration space.
Declared at: clang/include/clang/AST/OpenMPClause.h:1086
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* NumForLoops = nullptr
- Number of for-loops.
Method Overview
- public OMPCollapseClause(clang::Expr * Num, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPCollapseClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::SourceLocation getLParenLoc() const
- public clang::Expr * getNumForLoops() const
- public void setLParenLoc(clang::SourceLocation Loc)
- private void setNumForLoops(clang::Expr * Num)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPCollapseClause(clang::Expr* Num,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPCollapseClause(clang::Expr* Num,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'collapse' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1105
Parameters
- clang::Expr* Num
- Expression associated with this clause.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPCollapseClause()
OMPCollapseClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1111
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1124
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:1126
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:1137
Parameters
- const clang::OMPClause* T
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1119
¶clang::Expr* getNumForLoops() const
clang::Expr* getNumForLoops() const
Description
Return the number of associated for-loops.
Declared at: clang/include/clang/AST/OpenMPClause.h:1122
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1116
Parameters
¶void setNumForLoops(clang::Expr* Num)
void setNumForLoops(clang::Expr* Num)
Description
Set the number of associated for-loops.
Declared at: clang/include/clang/AST/OpenMPClause.h:1096
Parameters
- clang::Expr* Num
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1130
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:1133