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

Inherited from OMPClause:

Methods

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()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:1111

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:1124

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:1126

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

Description

Returns the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:1119

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)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:1116

Parameters

clang::SourceLocation Loc

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()

Declared at: clang/include/clang/AST/OpenMPClause.h:1130

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:1133