clang 24.0.0git
clang::OMPLoopRangeClause Class Referencefinal

This class represents the 'looprange' clause in the '#pragma omp fuse' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPLoopRangeClause:
[legend]

Public Member Functions

 OMPLoopRangeClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation FirstLoc, SourceLocation CountLoc, SourceLocation EndLoc, Expr *First, Expr *Count)
 Build a 'looprange' clause.
 OMPLoopRangeClause ()
 Build an empty clause for deserialization.
SourceLocation getLParenLoc () const
SourceLocation getFirstLoc () const
SourceLocation getCountLoc () const
void setLParenLoc (SourceLocation Loc)
void setFirstLoc (SourceLocation Loc)
void setCountLoc (SourceLocation Loc)
Expr * getFirst () const
 Get looprange 'first' expression.
Expr * getCount () const
 Get looprange 'count' expression.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const
Public Member Functions inherited from clang::OMPClause
SourceLocation getBeginLoc () const
 Returns the starting location of the clause.
SourceLocation getEndLoc () const
 Returns the ending location of the clause.
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause.
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause.
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.).
bool isImplicit () const
child_range children ()
const_child_range children () const
child_range used_children ()
 Get the iterator range for the expressions used in the clauses.
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)
Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)

Friends

class OMPClauseReader

Additional Inherited Members

Public Types inherited from clang::OMPClause
using child_iterator = StmtIterator
using const_child_iterator = ConstStmtIterator
using child_range = llvm::iterator_range<child_iterator>
using const_child_range = llvm::iterator_range<const_child_iterator>
Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)

Detailed Description

This class represents the 'looprange' clause in the '#pragma omp fuse' directive.

#pragma omp fuse looprange(1,2)
{
for(int i = 0; i < 64; ++i)
for(int j = 0; j < 256; j+=2)
for(int k = 127; k >= 0; --k)

Definition at line 1345 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPLoopRangeClause() [1/2]

clang::OMPLoopRangeClause::OMPLoopRangeClause ( SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation FirstLoc,
SourceLocation CountLoc,
SourceLocation EndLoc,
Expr * First,
Expr * Count )
inline

Build a 'looprange' clause.

Definition at line 1365 of file OpenMPClause.h.

References clang::First, and clang::OMPClause::OMPClause().

◆ OMPLoopRangeClause() [2/2]

clang::OMPLoopRangeClause::OMPLoopRangeClause ( )
inlineexplicit

Build an empty clause for deserialization.

Definition at line 1375 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPLoopRangeClause::children ( )
inline

Definition at line 1393 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPLoopRangeClause::children ( ) const
inline

Definition at line 1394 of file OpenMPClause.h.

◆ classof()

bool clang::OMPLoopRangeClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 1405 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), and clang::T.

◆ getCount()

Expr * clang::OMPLoopRangeClause::getCount ( ) const
inline

Get looprange 'count' expression.

Definition at line 1391 of file OpenMPClause.h.

◆ getCountLoc()

SourceLocation clang::OMPLoopRangeClause::getCountLoc ( ) const
inline

Definition at line 1381 of file OpenMPClause.h.

◆ getFirst()

Expr * clang::OMPLoopRangeClause::getFirst ( ) const
inline

Get looprange 'first' expression.

Definition at line 1388 of file OpenMPClause.h.

◆ getFirstLoc()

SourceLocation clang::OMPLoopRangeClause::getFirstLoc ( ) const
inline

Definition at line 1380 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPLoopRangeClause::getLParenLoc ( ) const
inline

Definition at line 1379 of file OpenMPClause.h.

◆ setCountLoc()

void clang::OMPLoopRangeClause::setCountLoc ( SourceLocation Loc)
inline

Definition at line 1385 of file OpenMPClause.h.

◆ setFirstLoc()

void clang::OMPLoopRangeClause::setFirstLoc ( SourceLocation Loc)
inline

Definition at line 1384 of file OpenMPClause.h.

◆ setLParenLoc()

void clang::OMPLoopRangeClause::setLParenLoc ( SourceLocation Loc)
inline

Definition at line 1383 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPLoopRangeClause::used_children ( )
inline

Definition at line 1398 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPLoopRangeClause::used_children ( ) const
inline

Definition at line 1401 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 1346 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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