clang 19.0.0git
Classes | Public Member Functions | List of all members
clang::SemaOpenACC::OpenACCParsedClause Class Reference

A type to represent all the data for an OpenACC Clause that has been parsed, but not yet created/semantically analyzed. More...

#include "clang/Sema/SemaOpenACC.h"

Public Member Functions

 OpenACCParsedClause (OpenACCDirectiveKind DirKind, OpenACCClauseKind ClauseKind, SourceLocation BeginLoc)
 
OpenACCDirectiveKind getDirectiveKind () const
 
OpenACCClauseKind getClauseKind () const
 
SourceLocation getBeginLoc () const
 
SourceLocation getLParenLoc () const
 
SourceLocation getEndLoc () const
 
OpenACCDefaultClauseKind getDefaultClauseKind () const
 
const ExprgetConditionExpr () const
 
ExprgetConditionExpr ()
 
unsigned getNumIntExprs () const
 
SourceLocation getQueuesLoc () const
 
ExprgetDevNumExpr () const
 
ArrayRef< Expr * > getQueueIdExprs () const
 
ArrayRef< Expr * > getIntExprs ()
 
ArrayRef< Expr * > getIntExprs () const
 
OpenACCReductionOperator getReductionOp () const
 
ArrayRef< Expr * > getVarList ()
 
ArrayRef< Expr * > getVarList () const
 
bool isReadOnly () const
 
bool isZero () const
 
ArrayRef< DeviceTypeArgumentgetDeviceTypeArchitectures () const
 
void setLParenLoc (SourceLocation EndLoc)
 
void setEndLoc (SourceLocation EndLoc)
 
void setDefaultDetails (OpenACCDefaultClauseKind DefKind)
 
void setConditionDetails (Expr *ConditionExpr)
 
void setIntExprDetails (ArrayRef< Expr * > IntExprs)
 
void setIntExprDetails (llvm::SmallVector< Expr * > &&IntExprs)
 
void setVarListDetails (ArrayRef< Expr * > VarList, bool IsReadOnly, bool IsZero)
 
void setVarListDetails (llvm::SmallVector< Expr * > &&VarList, bool IsReadOnly, bool IsZero)
 
void setReductionDetails (OpenACCReductionOperator Op, llvm::SmallVector< Expr * > &&VarList)
 
void setWaitDetails (Expr *DevNum, SourceLocation QueuesLoc, llvm::SmallVector< Expr * > &&IntExprs)
 
void setDeviceTypeDetails (llvm::SmallVector< DeviceTypeArgument > &&Archs)
 

Detailed Description

A type to represent all the data for an OpenACC Clause that has been parsed, but not yet created/semantically analyzed.

This is effectively a discriminated union on the 'Clause Kind', with all of the individual clause details stored in a std::variant.

Definition at line 36 of file SemaOpenACC.h.

Constructor & Destructor Documentation

◆ OpenACCParsedClause()

clang::SemaOpenACC::OpenACCParsedClause::OpenACCParsedClause ( OpenACCDirectiveKind  DirKind,
OpenACCClauseKind  ClauseKind,
SourceLocation  BeginLoc 
)
inline

Definition at line 80 of file SemaOpenACC.h.

Member Function Documentation

◆ getBeginLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getBeginLoc ( ) const
inline

Definition at line 88 of file SemaOpenACC.h.

References clang::SourceRange::getBegin().

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getClauseKind()

OpenACCClauseKind clang::SemaOpenACC::OpenACCParsedClause::getClauseKind ( ) const
inline

Definition at line 86 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getConditionExpr() [1/2]

Expr * clang::SemaOpenACC::OpenACCParsedClause::getConditionExpr ( )
inline

Definition at line 104 of file SemaOpenACC.h.

References clang::If, clang::Self, and clang::Update.

◆ getConditionExpr() [2/2]

const Expr * clang::SemaOpenACC::OpenACCParsedClause::getConditionExpr ( ) const
inline

Definition at line 100 of file SemaOpenACC.h.

References getConditionExpr().

Referenced by clang::SemaOpenACC::ActOnClause(), and getConditionExpr().

◆ getDefaultClauseKind()

OpenACCDefaultClauseKind clang::SemaOpenACC::OpenACCParsedClause::getDefaultClauseKind ( ) const
inline

Definition at line 94 of file SemaOpenACC.h.

References clang::Default.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getDeviceTypeArchitectures()

ArrayRef< DeviceTypeArgument > clang::SemaOpenACC::OpenACCParsedClause::getDeviceTypeArchitectures ( ) const
inline

Definition at line 233 of file SemaOpenACC.h.

References clang::DeviceType, and clang::DType.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getDevNumExpr()

Expr * clang::SemaOpenACC::OpenACCParsedClause::getDevNumExpr ( ) const
inline

Definition at line 144 of file SemaOpenACC.h.

References clang::Wait.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getDirectiveKind()

OpenACCDirectiveKind clang::SemaOpenACC::OpenACCParsedClause::getDirectiveKind ( ) const
inline

Definition at line 84 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getEndLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getEndLoc ( ) const
inline

Definition at line 92 of file SemaOpenACC.h.

References clang::SourceRange::getEnd().

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getIntExprs() [1/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getIntExprs ( )
inline

◆ getIntExprs() [2/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getIntExprs ( ) const
inline

Definition at line 174 of file SemaOpenACC.h.

References getIntExprs().

◆ getLParenLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getLParenLoc ( ) const
inline

Definition at line 90 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getNumIntExprs()

unsigned clang::SemaOpenACC::OpenACCParsedClause::getNumIntExprs ( ) const
inline

◆ getQueueIdExprs()

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getQueueIdExprs ( ) const
inline

Definition at line 154 of file SemaOpenACC.h.

References clang::Wait.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getQueuesLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getQueuesLoc ( ) const
inline

Definition at line 134 of file SemaOpenACC.h.

References clang::Wait.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getReductionOp()

OpenACCReductionOperator clang::SemaOpenACC::OpenACCParsedClause::getReductionOp ( ) const
inline

Definition at line 178 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getVarList() [1/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getVarList ( )
inline

◆ getVarList() [2/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getVarList ( ) const
inline

Definition at line 210 of file SemaOpenACC.h.

References getVarList().

◆ isReadOnly()

bool clang::SemaOpenACC::OpenACCParsedClause::isReadOnly ( ) const
inline

Definition at line 214 of file SemaOpenACC.h.

References clang::CopyIn, clang::PCopyIn, and clang::PresentOrCopyIn.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ isZero()

bool clang::SemaOpenACC::OpenACCParsedClause::isZero ( ) const
inline

◆ setConditionDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setConditionDetails ( Expr ConditionExpr)
inline

◆ setDefaultDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setDefaultDetails ( OpenACCDefaultClauseKind  DefKind)
inline

Definition at line 243 of file SemaOpenACC.h.

References clang::Default.

◆ setDeviceTypeDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setDeviceTypeDetails ( llvm::SmallVector< DeviceTypeArgument > &&  Archs)
inline

Definition at line 365 of file SemaOpenACC.h.

References clang::DeviceType, and clang::DType.

◆ setEndLoc()

void clang::SemaOpenACC::OpenACCParsedClause::setEndLoc ( SourceLocation  EndLoc)
inline

Definition at line 241 of file SemaOpenACC.h.

References clang::SourceRange::setEnd().

◆ setIntExprDetails() [1/2]

void clang::SemaOpenACC::OpenACCParsedClause::setIntExprDetails ( ArrayRef< Expr * >  IntExprs)
inline

Definition at line 263 of file SemaOpenACC.h.

References clang::Async, clang::NumGangs, clang::NumWorkers, and clang::VectorLength.

◆ setIntExprDetails() [2/2]

void clang::SemaOpenACC::OpenACCParsedClause::setIntExprDetails ( llvm::SmallVector< Expr * > &&  IntExprs)
inline

Definition at line 271 of file SemaOpenACC.h.

References clang::Async, clang::NumGangs, clang::NumWorkers, and clang::VectorLength.

◆ setLParenLoc()

void clang::SemaOpenACC::OpenACCParsedClause::setLParenLoc ( SourceLocation  EndLoc)
inline

Definition at line 240 of file SemaOpenACC.h.

◆ setReductionDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setReductionDetails ( OpenACCReductionOperator  Op,
llvm::SmallVector< Expr * > &&  VarList 
)
inline

Definition at line 351 of file SemaOpenACC.h.

References clang::Reduction.

◆ setVarListDetails() [1/2]

void clang::SemaOpenACC::OpenACCParsedClause::setVarListDetails ( ArrayRef< Expr * >  VarList,
bool  IsReadOnly,
bool  IsZero 
)
inline

◆ setVarListDetails() [2/2]

void clang::SemaOpenACC::OpenACCParsedClause::setVarListDetails ( llvm::SmallVector< Expr * > &&  VarList,
bool  IsReadOnly,
bool  IsZero 
)
inline

◆ setWaitDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setWaitDetails ( Expr DevNum,
SourceLocation  QueuesLoc,
llvm::SmallVector< Expr * > &&  IntExprs 
)
inline

Definition at line 358 of file SemaOpenACC.h.

References clang::Wait.


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