clang 19.0.0git
Public Member Functions | Friends | List of all members
clang::OMPXAttributeClause Class Reference

This represents 'ompx_attribute' clause in a directive that might generate an outlined function. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPXAttributeClause:
Inheritance graph
[legend]

Public Member Functions

 OMPXAttributeClause (ArrayRef< const Attr * > Attrs, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'ompx_attribute' clause.
 
 OMPXAttributeClause ()
 Build an empty clause.
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
 
SourceLocation getLParenLoc () const
 Returns the location of '('.
 
ArrayRef< const Attr * > getAttrs () const
 Returned the attributes parsed from this clause.
 
- Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >
 OMPNoChildClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'ClauseKind' clause.
 
 OMPNoChildClause ()
 Build an empty clause.
 
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
 

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 >
 
- Static Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >
static bool classof (const OMPClause *T)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

This represents 'ompx_attribute' clause in a directive that might generate an outlined function.

An example is given below.

#pragma omp target [...] ompx_attribute(flatten)

Definition at line 9317 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPXAttributeClause() [1/2]

clang::OMPXAttributeClause::OMPXAttributeClause ( ArrayRef< const Attr * >  Attrs,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Build 'ompx_attribute' clause.

Parameters
AttrsThe parsed attributes (clause arguments)
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 9334 of file OpenMPClause.h.

◆ OMPXAttributeClause() [2/2]

clang::OMPXAttributeClause::OMPXAttributeClause ( )
inline

Build an empty clause.

Definition at line 9340 of file OpenMPClause.h.

Member Function Documentation

◆ getAttrs()

ArrayRef< const Attr * > clang::OMPXAttributeClause::getAttrs ( ) const
inline

Returned the attributes parsed from this clause.

Definition at line 9349 of file OpenMPClause.h.

◆ getLParenLoc()

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

Returns the location of '('.

Definition at line 9346 of file OpenMPClause.h.

◆ setLParenLoc()

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

Sets the location of '('.

Definition at line 9343 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9319 of file OpenMPClause.h.


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