clang  11.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPGrainsizeClause Class Reference

This represents 'grainsize' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPGrainsizeClause:
Inheritance graph
Collaboration diagram for OMPGrainsizeClause:
Collaboration graph

Public Member Functions

 OMPGrainsizeClause (Expr *Size, Stmt *HelperSize, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'grainsize' clause. More...
 OMPGrainsizeClause ()
 Build an empty clause. More...
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
Expr * getGrainsize () const
 Return safe iteration space distance. More...
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)


class OMPClauseReader

Detailed Description

This represents 'grainsize' clause in the '#pragma omp ...' directive.

#pragma omp taskloop grainsize(4)

In this example directive '#pragma omp taskloop' has clause 'grainsize' with single expression '4'.

Definition at line 5809 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPGrainsizeClause() [1/2]

OMPGrainsizeClause::OMPGrainsizeClause ( Expr *  Size,
Stmt *  HelperSize,
OpenMPDirectiveKind  CaptureRegion,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 

Build 'grainsize' clause.

SizeExpression associated with this clause.
HelperSizeHelper grainsize for the construct.
CaptureRegionInnermost OpenMP region where expressions in this clause must be captured.
StartLocStarting location of the clause.
EndLocEnding location of the clause.

Definition at line 5830 of file OpenMPClause.h.

◆ OMPGrainsizeClause() [2/2]

OMPGrainsizeClause::OMPGrainsizeClause ( )

Build an empty clause.

Definition at line 5839 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPGrainsizeClause::children ( )

Definition at line 5853 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPGrainsizeClause::children ( ) const

Definition at line 5855 of file OpenMPClause.h.

References clang::OMPClause::used_children().

◆ classof()

static bool OMPGrainsizeClause::classof ( const OMPClause T)

Definition at line 5865 of file OpenMPClause.h.

◆ getGrainsize()

Expr* OMPGrainsizeClause::getGrainsize ( ) const

Return safe iteration space distance.

Definition at line 5851 of file OpenMPClause.h.

Referenced by OMPAffinityClause::CreateEmpty(), and clang::ASTRecordWriter::writeOMPClause().

◆ getLParenLoc()

SourceLocation OMPGrainsizeClause::getLParenLoc ( ) const

Returns the location of '('.

Definition at line 5848 of file OpenMPClause.h.

Referenced by clang::ASTRecordWriter::writeOMPClause().

◆ setLParenLoc()

void OMPGrainsizeClause::setLParenLoc ( SourceLocation  Loc)

Sets the location of '('.

Definition at line 5845 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPGrainsizeClause::used_children ( )

Definition at line 279 of file OpenMPClause.cpp.

References clang::C, and getAddrOfExprAsWritten().

◆ used_children() [2/2]

const_child_range OMPGrainsizeClause::used_children ( ) const

Definition at line 5860 of file OpenMPClause.h.

References clang::OMPClause::used_children().

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 5810 of file OpenMPClause.h.

The documentation for this class was generated from the following files: