clang 19.0.0git
|
#include "clang/Sema/SemaOpenMP.h"
Classes | |
struct | DeclareTargetContextInfo |
struct | OMPIteratorData |
Data structure for iterator expression. More... | |
struct | OpenMPVarListDataTy |
Data used for processing a list of variables in OpenMP clauses. More... | |
struct | UsesAllocatorsData |
Data for list of allocators. More... | |
Public Types | |
using | DeclGroupPtrTy = OpaquePtr< DeclGroupRef > |
using | CapturedParamNameType = std::pair< StringRef, QualType > |
using | VarsWithInheritedDSAType = llvm::SmallDenseMap< const ValueDecl *, const Expr *, 4 > |
Public Member Functions | |
SemaOpenMP (Sema &S) | |
SemaDiagnosticBuilder | diagIfOpenMPDeviceCode (SourceLocation Loc, unsigned DiagID, const FunctionDecl *FD) |
Creates a SemaDiagnosticBuilder that emits the diagnostic if the current context is "used as device code". | |
SemaDiagnosticBuilder | diagIfOpenMPHostCode (SourceLocation Loc, unsigned DiagID, const FunctionDecl *FD) |
Creates a SemaDiagnosticBuilder that emits the diagnostic if the current context is "used as host code". | |
void | ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope (Scope *S, Declarator &D, MultiTemplateParamsArg TemplateParameterLists, SmallVectorImpl< FunctionDecl * > &Bases) |
The declarator D defines a function in the scope S which is nested in an omp begin/end declare variant scope. | |
void | ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope (Decl *D, SmallVectorImpl< FunctionDecl * > &Bases) |
Register D as specialization of all base functions in Bases in the current omp begin/end declare variant scope. | |
void | ActOnFinishedFunctionDefinitionInOpenMPAssumeScope (Decl *D) |
Act on D , a function definition inside of an omp [begin/end] assumes . | |
bool | isInOpenMPDeclareVariantScope () const |
Can we exit an OpenMP declare variant scope at the moment. | |
ExprResult | VerifyPositiveIntegerConstantInClause (Expr *Op, OpenMPClauseKind CKind, bool StrictlyPositive=true, bool SuppressExprDiags=false) |
ExprResult | ActOnOpenMPCall (ExprResult Call, Scope *Scope, SourceLocation LParenLoc, MultiExprArg ArgExprs, SourceLocation RParenLoc, Expr *ExecConfig) |
Given the potential call expression Call , determine if there is a specialization via the OpenMP declare variant mechanism available. | |
void | ActOnOpenMPBeginDeclareVariant (SourceLocation Loc, OMPTraitInfo &TI) |
Handle a omp begin declare variant . | |
void | ActOnOpenMPEndDeclareVariant () |
Handle a omp end declare variant . | |
void | tryCaptureOpenMPLambdas (ValueDecl *V) |
Function tries to capture lambda's captured variables in the OpenMP region before the original lambda is captured. | |
bool | isOpenMPCapturedByRef (const ValueDecl *D, unsigned Level, unsigned OpenMPCaptureLevel) const |
Return true if the provided declaration VD should be captured by reference. | |
VarDecl * | isOpenMPCapturedDecl (ValueDecl *D, bool CheckScopeInfo=false, unsigned StopAt=0) |
Check if the specified variable is used in one of the private clauses (private, firstprivate, lastprivate, reduction etc.) in OpenMP constructs. | |
bool | isOpenMPRebuildMemberExpr (ValueDecl *D) |
The member expression(this->fd) needs to be rebuilt in the template instantiation to generate private copy for OpenMP when default clause is used. | |
ExprResult | getOpenMPCapturedExpr (VarDecl *Capture, ExprValueKind VK, ExprObjectKind OK, SourceLocation Loc) |
void | startOpenMPLoop () |
If the current region is a loop-based region, mark the start of the loop construct. | |
void | startOpenMPCXXRangeFor () |
If the current region is a range loop-based region, mark the start of the loop construct. | |
OpenMPClauseKind | isOpenMPPrivateDecl (ValueDecl *D, unsigned Level, unsigned CapLevel) const |
Check if the specified variable is used in 'private' clause. | |
void | setOpenMPCaptureKind (FieldDecl *FD, const ValueDecl *D, unsigned Level) |
Sets OpenMP capture kind (OMPC_private, OMPC_firstprivate, OMPC_map etc.) for FD based on DSA for the provided corresponding captured declaration D . | |
bool | isOpenMPTargetCapturedDecl (const ValueDecl *D, unsigned Level, unsigned CaptureLevel) const |
Check if the specified variable is captured by 'target' directive. | |
bool | isOpenMPGlobalCapturedDecl (ValueDecl *D, unsigned Level, unsigned CaptureLevel) const |
Check if the specified global variable must be captured by outer capture regions. | |
ExprResult | PerformOpenMPImplicitIntegerConversion (SourceLocation OpLoc, Expr *Op) |
void | StartOpenMPDSABlock (OpenMPDirectiveKind K, const DeclarationNameInfo &DirName, Scope *CurScope, SourceLocation Loc) |
Called on start of new data sharing attribute block. | |
void | StartOpenMPClause (OpenMPClauseKind K) |
Start analysis of clauses. | |
void | EndOpenMPClause () |
End analysis of clauses. | |
void | EndOpenMPDSABlock (Stmt *CurDirective) |
Called on end of data sharing attribute block. | |
void | ActOnOpenMPLoopInitialization (SourceLocation ForLoc, Stmt *Init) |
Check if the current region is an OpenMP loop region and if it is, mark loop control variable, used in Init for loop initialization, as private by default. | |
StmtResult | ActOnOpenMPMetaDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp metadirective' after parsing of the associated statement. | |
ExprResult | ActOnOpenMPIdExpression (Scope *CurScope, CXXScopeSpec &ScopeSpec, const DeclarationNameInfo &Id, OpenMPDirectiveKind Kind) |
Called on correct id-expression from the '#pragma omp threadprivate'. | |
DeclGroupPtrTy | ActOnOpenMPThreadprivateDirective (SourceLocation Loc, ArrayRef< Expr * > VarList) |
Called on well-formed '#pragma omp threadprivate'. | |
OMPThreadPrivateDecl * | CheckOMPThreadPrivateDecl (SourceLocation Loc, ArrayRef< Expr * > VarList) |
Builds a new OpenMPThreadPrivateDecl and checks its correctness. | |
DeclGroupPtrTy | ActOnOpenMPAllocateDirective (SourceLocation Loc, ArrayRef< Expr * > VarList, ArrayRef< OMPClause * > Clauses, DeclContext *Owner=nullptr) |
Called on well-formed '#pragma omp allocate'. | |
void | ActOnOpenMPAssumesDirective (SourceLocation Loc, OpenMPDirectiveKind DKind, ArrayRef< std::string > Assumptions, bool SkippedClauses) |
Called on well-formed '#pragma omp [begin] assume[s]'. | |
bool | isInOpenMPAssumeScope () const |
Check if there is an active global omp begin assumes directive. | |
bool | hasGlobalOpenMPAssumes () const |
Check if there is an active global omp assumes directive. | |
void | ActOnOpenMPEndAssumesDirective () |
Called on well-formed '#pragma omp end assumes'. | |
DeclGroupPtrTy | ActOnOpenMPRequiresDirective (SourceLocation Loc, ArrayRef< OMPClause * > ClauseList) |
Called on well-formed '#pragma omp requires'. | |
OMPRequiresDecl * | CheckOMPRequiresDecl (SourceLocation Loc, ArrayRef< OMPClause * > Clauses) |
Check restrictions on Requires directive. | |
QualType | ActOnOpenMPDeclareReductionType (SourceLocation TyLoc, TypeResult ParsedType) |
Check if the specified type is allowed to be used in 'omp declare reduction' construct. | |
DeclGroupPtrTy | ActOnOpenMPDeclareReductionDirectiveStart (Scope *S, DeclContext *DC, DeclarationName Name, ArrayRef< std::pair< QualType, SourceLocation > > ReductionTypes, AccessSpecifier AS, Decl *PrevDeclInScope=nullptr) |
Called on start of '#pragma omp declare reduction'. | |
void | ActOnOpenMPDeclareReductionCombinerStart (Scope *S, Decl *D) |
Initialize declare reduction construct initializer. | |
void | ActOnOpenMPDeclareReductionCombinerEnd (Decl *D, Expr *Combiner) |
Finish current declare reduction construct initializer. | |
VarDecl * | ActOnOpenMPDeclareReductionInitializerStart (Scope *S, Decl *D) |
Initialize declare reduction construct initializer. | |
void | ActOnOpenMPDeclareReductionInitializerEnd (Decl *D, Expr *Initializer, VarDecl *OmpPrivParm) |
Finish current declare reduction construct initializer. | |
DeclGroupPtrTy | ActOnOpenMPDeclareReductionDirectiveEnd (Scope *S, DeclGroupPtrTy DeclReductions, bool IsValid) |
Called at the end of '#pragma omp declare reduction'. | |
TypeResult | ActOnOpenMPDeclareMapperVarDecl (Scope *S, Declarator &D) |
Check variable declaration in 'omp declare mapper' construct. | |
QualType | ActOnOpenMPDeclareMapperType (SourceLocation TyLoc, TypeResult ParsedType) |
Check if the specified type is allowed to be used in 'omp declare mapper' construct. | |
DeclGroupPtrTy | ActOnOpenMPDeclareMapperDirective (Scope *S, DeclContext *DC, DeclarationName Name, QualType MapperType, SourceLocation StartLoc, DeclarationName VN, AccessSpecifier AS, Expr *MapperVarRef, ArrayRef< OMPClause * > Clauses, Decl *PrevDeclInScope=nullptr) |
Called on start of '#pragma omp declare mapper'. | |
ExprResult | ActOnOpenMPDeclareMapperDirectiveVarDecl (Scope *S, QualType MapperType, SourceLocation StartLoc, DeclarationName VN) |
Build the mapper variable of '#pragma omp declare mapper'. | |
void | ActOnOpenMPIteratorVarDecl (VarDecl *VD) |
bool | isOpenMPDeclareMapperVarDeclAllowed (const VarDecl *VD) const |
const ValueDecl * | getOpenMPDeclareMapperVarName () const |
bool | ActOnStartOpenMPDeclareTargetContext (DeclareTargetContextInfo &DTCI) |
Called on the start of target region i.e. '#pragma omp declare target'. | |
const DeclareTargetContextInfo | ActOnOpenMPEndDeclareTargetDirective () |
Called at the end of target region i.e. '#pragma omp end declare target'. | |
void | ActOnFinishedOpenMPDeclareTargetContext (DeclareTargetContextInfo &DTCI) |
Called once a target context is completed, that can be when a '#pragma omp end declare target' was encountered or when a '#pragma omp declare target' without declaration-definition-seq was encountered. | |
void | DiagnoseUnterminatedOpenMPDeclareTarget () |
Report unterminated 'omp declare target' or 'omp begin declare target' at the end of a compilation unit. | |
NamedDecl * | lookupOpenMPDeclareTargetName (Scope *CurScope, CXXScopeSpec &ScopeSpec, const DeclarationNameInfo &Id) |
Searches for the provided declaration name for OpenMP declare target directive. | |
void | ActOnOpenMPDeclareTargetName (NamedDecl *ND, SourceLocation Loc, OMPDeclareTargetDeclAttr::MapTypeTy MT, DeclareTargetContextInfo &DTCI) |
Called on correct id-expression from the '#pragma omp declare target'. | |
void | checkDeclIsAllowedInOpenMPTarget (Expr *E, Decl *D, SourceLocation IdLoc=SourceLocation()) |
Check declaration inside target region. | |
void | ActOnOpenMPDeclareTargetInitializer (Decl *D) |
Adds OMPDeclareTargetDeclAttr to referenced variables in declare target directive. | |
void | finalizeOpenMPDelayedAnalysis (const FunctionDecl *Caller, const FunctionDecl *Callee, SourceLocation Loc) |
Finishes analysis of the deferred functions calls that may be declared as host/nohost during device/host compilation. | |
bool | isInOpenMPTaskUntiedContext () const |
Return true if currently in OpenMP task with untied clause context. | |
bool | isInOpenMPDeclareTargetContext () const |
Return true inside OpenMP declare target region. | |
bool | isInOpenMPTargetExecutionDirective () const |
Return true inside OpenMP target region. | |
void | ActOnOpenMPRegionStart (OpenMPDirectiveKind DKind, Scope *CurScope) |
Initialization of captured region for OpenMP region. | |
StmtResult | ActOnOpenMPCanonicalLoop (Stmt *AStmt) |
Called for syntactical loops (ForStmt or CXXForRangeStmt) associated to an OpenMP loop directive. | |
StmtResult | ActOnOpenMPLoopnest (Stmt *AStmt) |
Process a canonical OpenMP loop nest that can either be a canonical literal loop (ForStmt or CXXForRangeStmt), or the generated loop of an OpenMP loop transformation construct. | |
StmtResult | ActOnOpenMPRegionEnd (StmtResult S, ArrayRef< OMPClause * > Clauses) |
End of OpenMP region. | |
StmtResult | ActOnOpenMPExecutableDirective (OpenMPDirectiveKind Kind, const DeclarationNameInfo &DirName, OpenMPDirectiveKind CancelRegion, ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, OpenMPDirectiveKind PrevMappedDirective=llvm::omp::OMPD_unknown) |
StmtResult | ActOnOpenMPParallelDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp parallel' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTileDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp tile' after parsing of its clauses and the associated statement. | |
StmtResult | ActOnOpenMPUnrollDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp unroll' after parsing of its clauses and the associated statement. | |
StmtResult | ActOnOpenMPForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPSectionsDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp sections' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPSectionDirective (Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp section' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPScopeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp scope' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPSingleDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp single' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPMasterDirective (Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp master' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPCriticalDirective (const DeclarationNameInfo &DirName, ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp critical' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMasterDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp parallel master' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMaskedDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp parallel masked' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelSectionsDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp parallel sections' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTaskDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp task' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTaskyieldDirective (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp taskyield'. | |
StmtResult | ActOnOpenMPErrorDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc, bool InExContext=true) |
Called on well-formed '#pragma omp error'. | |
StmtResult | ActOnOpenMPBarrierDirective (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp barrier'. | |
StmtResult | ActOnOpenMPTaskwaitDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp taskwait'. | |
StmtResult | ActOnOpenMPTaskgroupDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp taskgroup'. | |
StmtResult | ActOnOpenMPFlushDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp flush'. | |
StmtResult | ActOnOpenMPDepobjDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp depobj'. | |
StmtResult | ActOnOpenMPScanDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp scan'. | |
StmtResult | ActOnOpenMPOrderedDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp ordered' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPAtomicDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp atomic' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp target' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetDataDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp target data' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetEnterDataDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AStmt) |
Called on well-formed '#pragma omp target enter data' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetExitDataDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AStmt) |
Called on well-formed '#pragma omp target exit data' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetParallelDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp target parallel' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetParallelForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target parallel for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp teams' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsGenericLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp teams loop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsGenericLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target teams loop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelGenericLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel loop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetParallelGenericLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target parallel loop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPCancellationPointDirective (SourceLocation StartLoc, SourceLocation EndLoc, OpenMPDirectiveKind CancelRegion) |
Called on well-formed '#pragma omp cancellation point'. | |
StmtResult | ActOnOpenMPCancelDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc, OpenMPDirectiveKind CancelRegion) |
Called on well-formed '#pragma omp cancel'. | |
StmtResult | ActOnOpenMPTaskLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp taskloop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTaskLoopSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp taskloop simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPMasterTaskLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp master taskloop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPMasterTaskLoopSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp master taskloop simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMasterTaskLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel master taskloop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMasterTaskLoopSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel master taskloop simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPMaskedTaskLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp masked taskloop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPMaskedTaskLoopSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp masked taskloop simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMaskedTaskLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel masked taskloop' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPParallelMaskedTaskLoopSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp parallel masked taskloop simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPDistributeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp distribute' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetUpdateDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AStmt) |
Called on well-formed '#pragma omp target update'. | |
StmtResult | ActOnOpenMPDistributeParallelForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp distribute parallel for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPDistributeParallelForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp distribute parallel for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPDistributeSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp distribute simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetParallelForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target parallel for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsDistributeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp teams distribute' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsDistributeSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp teams distribute simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsDistributeParallelForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp teams distribute parallel for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTeamsDistributeParallelForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp teams distribute parallel for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp target teams' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsDistributeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target teams distribute' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsDistributeParallelForDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target teams distribute parallel for' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target teams distribute parallel for simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPTargetTeamsDistributeSimdDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp target teams distribute simd' after parsing of the associated statement. | |
StmtResult | ActOnOpenMPInteropDirective (ArrayRef< OMPClause * > Clauses, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp interop'. | |
StmtResult | ActOnOpenMPDispatchDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp dispatch' after parsing of the. | |
StmtResult | ActOnOpenMPMaskedDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp masked' after parsing of the. | |
StmtResult | ActOnOpenMPGenericLoopDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) |
Called on well-formed '#pragma omp loop' after parsing of the associated statement. | |
bool | CheckOpenMPLinearModifier (OpenMPLinearClauseKind LinKind, SourceLocation LinLoc) |
Checks correctness of linear modifiers. | |
bool | CheckOpenMPLinearDecl (const ValueDecl *D, SourceLocation ELoc, OpenMPLinearClauseKind LinKind, QualType Type, bool IsDeclareSimd=false) |
Checks that the specified declaration matches requirements for the linear decls. | |
DeclGroupPtrTy | ActOnOpenMPDeclareSimdDirective (DeclGroupPtrTy DG, OMPDeclareSimdDeclAttr::BranchStateTy BS, Expr *Simdlen, ArrayRef< Expr * > Uniforms, ArrayRef< Expr * > Aligneds, ArrayRef< Expr * > Alignments, ArrayRef< Expr * > Linears, ArrayRef< unsigned > LinModifiers, ArrayRef< Expr * > Steps, SourceRange SR) |
Called on well-formed '#pragma omp declare simd' after parsing of the associated method/function. | |
std::optional< std::pair< FunctionDecl *, Expr * > > | checkOpenMPDeclareVariantFunction (DeclGroupPtrTy DG, Expr *VariantRef, OMPTraitInfo &TI, unsigned NumAppendArgs, SourceRange SR) |
Checks '#pragma omp declare variant' variant function and original functions after parsing of the associated method/function. | |
void | ActOnOpenMPDeclareVariantDirective (FunctionDecl *FD, Expr *VariantRef, OMPTraitInfo &TI, ArrayRef< Expr * > AdjustArgsNothing, ArrayRef< Expr * > AdjustArgsNeedDevicePtr, ArrayRef< OMPInteropInfo > AppendArgs, SourceLocation AdjustArgsLoc, SourceLocation AppendArgsLoc, SourceRange SR) |
Called on well-formed '#pragma omp declare variant' after parsing of the associated method/function. | |
OMPClause * | ActOnOpenMPSingleExprClause (OpenMPClauseKind Kind, Expr *Expr, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
OMPClause * | ActOnOpenMPAllocatorClause (Expr *Allocator, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'allocator' clause. | |
OMPClause * | ActOnOpenMPIfClause (OpenMPDirectiveKind NameModifier, Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation NameModifierLoc, SourceLocation ColonLoc, SourceLocation EndLoc) |
Called on well-formed 'if' clause. | |
OMPClause * | ActOnOpenMPFinalClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'final' clause. | |
OMPClause * | ActOnOpenMPNumThreadsClause (Expr *NumThreads, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'num_threads' clause. | |
OMPClause * | ActOnOpenMPAlignClause (Expr *Alignment, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'align' clause. | |
OMPClause * | ActOnOpenMPSafelenClause (Expr *Length, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'safelen' clause. | |
OMPClause * | ActOnOpenMPSimdlenClause (Expr *Length, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'simdlen' clause. | |
OMPClause * | ActOnOpenMPSizesClause (ArrayRef< Expr * > SizeExprs, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-form 'sizes' clause. | |
OMPClause * | ActOnOpenMPFullClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-form 'full' clauses. | |
OMPClause * | ActOnOpenMPPartialClause (Expr *FactorExpr, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-form 'partial' clauses. | |
OMPClause * | ActOnOpenMPCollapseClause (Expr *NumForLoops, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'collapse' clause. | |
OMPClause * | ActOnOpenMPOrderedClause (SourceLocation StartLoc, SourceLocation EndLoc, SourceLocation LParenLoc=SourceLocation(), Expr *NumForLoops=nullptr) |
Called on well-formed 'ordered' clause. | |
OMPClause * | ActOnOpenMPGrainsizeClause (OpenMPGrainsizeClauseModifier Modifier, Expr *Size, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Called on well-formed 'grainsize' clause. | |
OMPClause * | ActOnOpenMPNumTasksClause (OpenMPNumTasksClauseModifier Modifier, Expr *NumTasks, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Called on well-formed 'num_tasks' clause. | |
OMPClause * | ActOnOpenMPHintClause (Expr *Hint, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'hint' clause. | |
OMPClause * | ActOnOpenMPDetachClause (Expr *Evt, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'detach' clause. | |
OMPClause * | ActOnOpenMPSimpleClause (OpenMPClauseKind Kind, unsigned Argument, SourceLocation ArgumentLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
OMPClause * | ActOnOpenMPWhenClause (OMPTraitInfo &TI, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'when' clause. | |
OMPClause * | ActOnOpenMPDefaultClause (llvm::omp::DefaultKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'default' clause. | |
OMPClause * | ActOnOpenMPProcBindClause (llvm::omp::ProcBindKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'proc_bind' clause. | |
OMPClause * | ActOnOpenMPOrderClause (OpenMPOrderClauseModifier Modifier, OpenMPOrderClauseKind Kind, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc, SourceLocation KindLoc, SourceLocation EndLoc) |
Called on well-formed 'order' clause. | |
OMPClause * | ActOnOpenMPUpdateClause (OpenMPDependClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'update' clause. | |
OMPClause * | ActOnOpenMPSingleExprWithArgClause (OpenMPClauseKind Kind, ArrayRef< unsigned > Arguments, Expr *Expr, SourceLocation StartLoc, SourceLocation LParenLoc, ArrayRef< SourceLocation > ArgumentsLoc, SourceLocation DelimLoc, SourceLocation EndLoc) |
OMPClause * | ActOnOpenMPScheduleClause (OpenMPScheduleClauseModifier M1, OpenMPScheduleClauseModifier M2, OpenMPScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc, SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) |
Called on well-formed 'schedule' clause. | |
OMPClause * | ActOnOpenMPClause (OpenMPClauseKind Kind, SourceLocation StartLoc, SourceLocation EndLoc) |
OMPClause * | ActOnOpenMPNowaitClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'nowait' clause. | |
OMPClause * | ActOnOpenMPUntiedClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'untied' clause. | |
OMPClause * | ActOnOpenMPMergeableClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'mergeable' clause. | |
OMPClause * | ActOnOpenMPReadClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'read' clause. | |
OMPClause * | ActOnOpenMPWriteClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'write' clause. | |
OMPClause * | ActOnOpenMPUpdateClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'update' clause. | |
OMPClause * | ActOnOpenMPCaptureClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'capture' clause. | |
OMPClause * | ActOnOpenMPCompareClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'compare' clause. | |
OMPClause * | ActOnOpenMPFailClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'fail' clause. | |
OMPClause * | ActOnOpenMPFailClause (OpenMPClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
OMPClause * | ActOnOpenMPSeqCstClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'seq_cst' clause. | |
OMPClause * | ActOnOpenMPAcqRelClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'acq_rel' clause. | |
OMPClause * | ActOnOpenMPAcquireClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'acquire' clause. | |
OMPClause * | ActOnOpenMPReleaseClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'release' clause. | |
OMPClause * | ActOnOpenMPRelaxedClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'relaxed' clause. | |
OMPClause * | ActOnOpenMPWeakClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'weak' clause. | |
OMPClause * | ActOnOpenMPInitClause (Expr *InteropVar, OMPInteropInfo &InteropInfo, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Called on well-formed 'init' clause. | |
OMPClause * | ActOnOpenMPUseClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Called on well-formed 'use' clause. | |
OMPClause * | ActOnOpenMPDestroyClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Called on well-formed 'destroy' clause. | |
OMPClause * | ActOnOpenMPNovariantsClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'novariants' clause. | |
OMPClause * | ActOnOpenMPNocontextClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'nocontext' clause. | |
OMPClause * | ActOnOpenMPFilterClause (Expr *ThreadID, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'filter' clause. | |
OMPClause * | ActOnOpenMPThreadsClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'threads' clause. | |
OMPClause * | ActOnOpenMPSIMDClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'simd' clause. | |
OMPClause * | ActOnOpenMPNogroupClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'nogroup' clause. | |
OMPClause * | ActOnOpenMPUnifiedAddressClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'unified_address' clause. | |
OMPClause * | ActOnOpenMPUnifiedSharedMemoryClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'unified_address' clause. | |
OMPClause * | ActOnOpenMPReverseOffloadClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'reverse_offload' clause. | |
OMPClause * | ActOnOpenMPDynamicAllocatorsClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed 'dynamic_allocators' clause. | |
OMPClause * | ActOnOpenMPAtomicDefaultMemOrderClause (OpenMPAtomicDefaultMemOrderClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'atomic_default_mem_order' clause. | |
OMPClause * | ActOnOpenMPAtClause (OpenMPAtClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'at' clause. | |
OMPClause * | ActOnOpenMPSeverityClause (OpenMPSeverityClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'severity' clause. | |
OMPClause * | ActOnOpenMPMessageClause (Expr *MS, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'message' clause. | |
OMPClause * | ActOnOpenMPVarListClause (OpenMPClauseKind Kind, ArrayRef< Expr * > Vars, const OMPVarListLocTy &Locs, OpenMPVarListDataTy &Data) |
OMPClause * | ActOnOpenMPInclusiveClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'inclusive' clause. | |
OMPClause * | ActOnOpenMPExclusiveClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'exclusive' clause. | |
OMPClause * | ActOnOpenMPAllocateClause (Expr *Allocator, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'allocate' clause. | |
OMPClause * | ActOnOpenMPPrivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'private' clause. | |
OMPClause * | ActOnOpenMPFirstprivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'firstprivate' clause. | |
OMPClause * | ActOnOpenMPLastprivateClause (ArrayRef< Expr * > VarList, OpenMPLastprivateModifier LPKind, SourceLocation LPKindLoc, SourceLocation ColonLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'lastprivate' clause. | |
OMPClause * | ActOnOpenMPSharedClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'shared' clause. | |
OMPClause * | ActOnOpenMPReductionClause (ArrayRef< Expr * > VarList, OpenMPReductionClauseModifier Modifier, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions=std::nullopt) |
Called on well-formed 'reduction' clause. | |
OMPClause * | ActOnOpenMPTaskReductionClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions=std::nullopt) |
Called on well-formed 'task_reduction' clause. | |
OMPClause * | ActOnOpenMPInReductionClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions=std::nullopt) |
Called on well-formed 'in_reduction' clause. | |
OMPClause * | ActOnOpenMPLinearClause (ArrayRef< Expr * > VarList, Expr *Step, SourceLocation StartLoc, SourceLocation LParenLoc, OpenMPLinearClauseKind LinKind, SourceLocation LinLoc, SourceLocation ColonLoc, SourceLocation StepModifierLoc, SourceLocation EndLoc) |
Called on well-formed 'linear' clause. | |
OMPClause * | ActOnOpenMPAlignedClause (ArrayRef< Expr * > VarList, Expr *Alignment, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) |
Called on well-formed 'aligned' clause. | |
OMPClause * | ActOnOpenMPCopyinClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'copyin' clause. | |
OMPClause * | ActOnOpenMPCopyprivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'copyprivate' clause. | |
OMPClause * | ActOnOpenMPFlushClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'flush' pseudo clause. | |
OMPClause * | ActOnOpenMPDepobjClause (Expr *Depobj, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'depobj' pseudo clause. | |
OMPClause * | ActOnOpenMPDependClause (const OMPDependClause::DependDataTy &Data, Expr *DepModifier, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'depend' clause. | |
OMPClause * | ActOnOpenMPDeviceClause (OpenMPDeviceClauseModifier Modifier, Expr *Device, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Called on well-formed 'device' clause. | |
OMPClause * | ActOnOpenMPMapClause (Expr *IteratorModifier, ArrayRef< OpenMPMapModifierKind > MapTypeModifiers, ArrayRef< SourceLocation > MapTypeModifiersLoc, CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo &MapperId, OpenMPMapClauseKind MapType, bool IsMapTypeImplicit, SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, bool NoDiagnose=false, ArrayRef< Expr * > UnresolvedMappers=std::nullopt) |
Called on well-formed 'map' clause. | |
OMPClause * | ActOnOpenMPNumTeamsClause (Expr *NumTeams, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'num_teams' clause. | |
OMPClause * | ActOnOpenMPThreadLimitClause (Expr *ThreadLimit, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'thread_limit' clause. | |
OMPClause * | ActOnOpenMPPriorityClause (Expr *Priority, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'priority' clause. | |
OMPClause * | ActOnOpenMPDistScheduleClause (OpenMPDistScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) |
Called on well-formed 'dist_schedule' clause. | |
OMPClause * | ActOnOpenMPDefaultmapClause (OpenMPDefaultmapClauseModifier M, OpenMPDefaultmapClauseKind Kind, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc, SourceLocation KindLoc, SourceLocation EndLoc) |
Called on well-formed 'defaultmap' clause. | |
OMPClause * | ActOnOpenMPToClause (ArrayRef< OpenMPMotionModifierKind > MotionModifiers, ArrayRef< SourceLocation > MotionModifiersLoc, CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo &MapperId, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, ArrayRef< Expr * > UnresolvedMappers=std::nullopt) |
Called on well-formed 'to' clause. | |
OMPClause * | ActOnOpenMPFromClause (ArrayRef< OpenMPMotionModifierKind > MotionModifiers, ArrayRef< SourceLocation > MotionModifiersLoc, CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo &MapperId, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, ArrayRef< Expr * > UnresolvedMappers=std::nullopt) |
Called on well-formed 'from' clause. | |
OMPClause * | ActOnOpenMPUseDevicePtrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Called on well-formed 'use_device_ptr' clause. | |
OMPClause * | ActOnOpenMPUseDeviceAddrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Called on well-formed 'use_device_addr' clause. | |
OMPClause * | ActOnOpenMPIsDevicePtrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Called on well-formed 'is_device_ptr' clause. | |
OMPClause * | ActOnOpenMPHasDeviceAddrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Called on well-formed 'has_device_addr' clause. | |
OMPClause * | ActOnOpenMPNontemporalClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'nontemporal' clause. | |
OMPClause * | ActOnOpenMPUsesAllocatorClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< UsesAllocatorsData > Data) |
Called on well-formed 'uses_allocators' clause. | |
OMPClause * | ActOnOpenMPAffinityClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, Expr *Modifier, ArrayRef< Expr * > Locators) |
Called on well-formed 'affinity' clause. | |
OMPClause * | ActOnOpenMPBindClause (OpenMPBindClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on a well-formed 'bind' clause. | |
OMPClause * | ActOnOpenMPXDynCGroupMemClause (Expr *Size, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on a well-formed 'ompx_dyn_cgroup_mem' clause. | |
OMPClause * | ActOnOpenMPDoacrossClause (OpenMPDoacrossClauseModifier DepType, SourceLocation DepLoc, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'doacross' clause. | |
OMPClause * | ActOnOpenMPXAttributeClause (ArrayRef< const Attr * > Attrs, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on a well-formed 'ompx_attribute' clause. | |
OMPClause * | ActOnOpenMPXBareClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Called on a well-formed 'ompx_bare' clause. | |
ExprResult | ActOnOMPArraySectionExpr (Expr *Base, SourceLocation LBLoc, Expr *LowerBound, SourceLocation ColonLocFirst, SourceLocation ColonLocSecond, Expr *Length, Expr *Stride, SourceLocation RBLoc) |
ExprResult | ActOnOMPArrayShapingExpr (Expr *Base, SourceLocation LParenLoc, SourceLocation RParenLoc, ArrayRef< Expr * > Dims, ArrayRef< SourceRange > Brackets) |
ExprResult | ActOnOMPIteratorExpr (Scope *S, SourceLocation IteratorKwLoc, SourceLocation LLoc, SourceLocation RLoc, ArrayRef< OMPIteratorData > Data) |
Public Member Functions inherited from clang::SemaBase | |
SemaBase (Sema &S) | |
ASTContext & | getASTContext () const |
DiagnosticsEngine & | getDiagnostics () const |
const LangOptions & | getLangOpts () const |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, unsigned DiagID, bool DeferHint=false) |
Emit a diagnostic. | |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, const PartialDiagnostic &PD, bool DeferHint=false) |
Emit a partial diagnostic. | |
Static Public Member Functions | |
static int | getOpenMPCaptureLevels (OpenMPDirectiveKind Kind) |
Return the number of captured regions created for an OpenMP directive. | |
Friends | |
class | Parser |
class | Sema |
Additional Inherited Members | |
Public Attributes inherited from clang::SemaBase | |
Sema & | SemaRef |
Definition at line 46 of file SemaOpenMP.h.
using clang::SemaOpenMP::CapturedParamNameType = std::pair<StringRef, QualType> |
Definition at line 54 of file SemaOpenMP.h.
Definition at line 53 of file SemaOpenMP.h.
using clang::SemaOpenMP::VarsWithInheritedDSAType = llvm::SmallDenseMap<const ValueDecl *, const Expr *, 4> |
Definition at line 407 of file SemaOpenMP.h.
SemaOpenMP::SemaOpenMP | ( | Sema & | S | ) |
Definition at line 25189 of file SemaOpenMP.cpp.
void SemaOpenMP::ActOnFinishedFunctionDefinitionInOpenMPAssumeScope | ( | Decl * | D | ) |
Act on D
, a function definition inside of an omp [begin/end] assumes
.
Definition at line 7368 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::Sema::inTemplateInstantiation(), clang::Decl::isInvalidDecl(), and clang::SemaBase::SemaRef.
Referenced by clang::Sema::ActOnStartOfLambdaDefinition(), and clang::Sema::CheckFunctionDeclaration().
void SemaOpenMP::ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope | ( | Decl * | D, |
SmallVectorImpl< FunctionDecl * > & | Bases | ||
) |
Register D
as specialization of all base functions in Bases
in the current omp begin/end declare variant
scope.
Definition at line 7475 of file SemaOpenMP.cpp.
References clang::DeclRefExpr::Create(), clang::SemaBase::getASTContext(), clang::Decl::getLocation(), clang::ValueDecl::getType(), clang::SemaBase::SemaRef, clang::Unevaluated, clang::Sema::Unevaluated, and clang::VK_PRValue.
Referenced by clang::Sema::ActOnDeclarator(), and clang::Sema::ActOnStartOfFunctionDef().
void SemaOpenMP::ActOnFinishedOpenMPDeclareTargetContext | ( | DeclareTargetContextInfo & | DTCI | ) |
Called once a target context is completed, that can be when a '#pragma omp end declare target' was encountered or when a '#pragma omp declare target' without declaration-definition-seq was encountered.
Definition at line 23483 of file SemaOpenMP.cpp.
References ActOnOpenMPDeclareTargetName(), and clang::SemaOpenMP::DeclareTargetContextInfo::ExplicitlyMapped.
ExprResult SemaOpenMP::ActOnOMPArraySectionExpr | ( | Expr * | Base, |
SourceLocation | LBLoc, | ||
Expr * | LowerBound, | ||
SourceLocation | ColonLocFirst, | ||
SourceLocation | ColonLocSecond, | ||
Expr * | Length, | ||
Expr * | Stride, | ||
SourceLocation | RBLoc | ||
) |
Definition at line 24628 of file SemaOpenMP.cpp.
References clang::ASTContext::ArraySectionTy, clang::Sema::CheckPlaceholderExpr(), clang::Sema::DefaultFunctionArrayLvalueConversion(), clang::Sema::DefaultLvalueConversion(), clang::ASTContext::DependentTy, clang::SemaBase::Diag(), clang::Expr::EvaluateAsInt(), clang::ExprError(), clang::ActionResult< PtrTy, Compress >::get(), clang::Type::getAsArrayTypeUnsafe(), clang::SemaBase::getASTContext(), clang::ArraySectionExpr::getBaseOriginalType(), clang::ArrayType::getElementType(), clang::Expr::getExprLoc(), clang::Type::getPointeeType(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::Type::isAnyPointerType(), clang::Type::isArrayType(), clang::Type::isConstantArrayType(), clang::Type::isFunctionType(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Type::isNonOverloadPlaceholderType(), clang::QualType::isNull(), clang::Type::isSpecificBuiltinType(), clang::Expr::isTypeDependent(), clang::SourceLocation::isValid(), clang::Expr::isValueDependent(), clang::Type::isVariableArrayType(), clang::OK_Ordinary, PerformOpenMPImplicitIntegerConversion(), clang::Sema::RequireCompleteType(), clang::Result, clang::SemaBase::SemaRef, toString(), and clang::VK_LValue.
Referenced by clang::Sema::ActOnArraySubscriptExpr(), and clang::TreeTransform< Derived >::RebuildArraySectionExpr().
ExprResult SemaOpenMP::ActOnOMPArrayShapingExpr | ( | Expr * | Base, |
SourceLocation | LParenLoc, | ||
SourceLocation | RParenLoc, | ||
ArrayRef< Expr * > | Dims, | ||
ArrayRef< SourceRange > | Brackets | ||
) |
Definition at line 24814 of file SemaOpenMP.cpp.
References clang::Sema::CheckPlaceholderExpr(), clang::OMPArrayShapingExpr::Create(), clang::Sema::DefaultLvalueConversion(), clang::ASTContext::DependentTy, clang::SemaBase::Diag(), clang::ExprError(), clang::SemaBase::getASTContext(), clang::APValue::getInt(), clang::Type::getPointeeType(), clang::Type::isIncompleteType(), clang::Type::isPointerType(), clang::ASTContext::OMPArrayShapingTy, PerformOpenMPImplicitIntegerConversion(), clang::Result, clang::SemaBase::SemaRef, toString(), and clang::Expr::EvalResult::Val.
Referenced by clang::TreeTransform< Derived >::RebuildOMPArrayShapingExpr().
ExprResult SemaOpenMP::ActOnOMPIteratorExpr | ( | Scope * | S, |
SourceLocation | IteratorKwLoc, | ||
SourceLocation | LLoc, | ||
SourceLocation | RLoc, | ||
ArrayRef< OMPIteratorData > | Data | ||
) |
Act on the iterator variable declaration.
Definition at line 24889 of file SemaOpenMP.cpp.
References clang::Sema::AA_Converting, clang::Sema::ActOnConditionalOp(), clang::Sema::ActOnFinishFullExpr(), clang::Sema::ActOnIntegerConstant(), ActOnOpenMPIteratorVarDecl(), clang::DeclContext::addDecl(), clang::OMPIteratorExpr::IteratorDefinition::AssignmentLoc, clang::OMPIteratorExpr::IteratorRange::Begin, Begin, clang::Sema::BuildDeclRefExpr(), clang::OMPIteratorExpr::IteratorDefinition::ColonLoc, clang::OMPIteratorHelperData::CounterUpdate, clang::OMPIteratorHelperData::CounterVD, clang::VarDecl::Create(), clang::OMPIteratorExpr::Create(), clang::Sema::CreateBuiltinBinOp(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::CurContext, clang::Data, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), clang::OMPIteratorExpr::IteratorRange::End, clang::ExprError(), clang::Sema::FilterLookupForScope(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::TypeLoc::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::NamedDecl::getDeclName(), clang::Expr::getExprLoc(), clang::Expr::getIntegerConstantExpr(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::Sema::GetTypeFromParser(), clang::TypeSourceInfo::getTypeLoc(), clang::ASTContext::IntTy, clang::DeclContext::isDependentContext(), clang::Type::isIntegralType(), clang::Expr::isTypeDependent(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPIteratorExpr::IteratorDefinition::IteratorDecl, clang::Sema::LookupName(), clang::Sema::LookupOrdinaryName, clang::ASTContext::OMPIteratorTy, clang::Sema::PerformImplicitConversion(), Previous, clang::Sema::PushOnScopeChains(), clang::OMPIteratorExpr::IteratorDefinition::Range, clang::Result, clang::SC_None, clang::OMPIteratorExpr::IteratorDefinition::SecondColonLoc, clang::SemaBase::SemaRef, clang::Decl::setImplicit(), clang::OMPIteratorExpr::IteratorRange::Step, clang::OMPIteratorHelperData::Update, clang::OMPIteratorHelperData::Upper, and clang::VK_LValue.
Referenced by clang::TreeTransform< Derived >::RebuildOMPIteratorExpr().
OMPClause * SemaOpenMP::ActOnOpenMPAcqRelClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'acq_rel' clause.
Definition at line 17932 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPAcquireClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'acquire' clause.
Definition at line 17937 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPAffinityClause | ( | SourceLocation | StartLoc, |
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
Expr * | Modifier, | ||
ArrayRef< Expr * > | Locators | ||
) |
Called on well-formed 'affinity' clause.
Definition at line 24495 of file SemaOpenMP.cpp.
References clang::OMPAffinityClause::Create(), clang::Sema::CreateBuiltinUnaryOp(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::Expr::IgnoreParenImpCasts(), clang::Expr::isLValue(), clang::ActionResult< PtrTy, Compress >::isUsable(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPAffinityClause().
OMPClause * SemaOpenMP::ActOnOpenMPAlignClause | ( | Expr * | Alignment, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'align' clause.
Definition at line 17442 of file SemaOpenMP.cpp.
References clang::OMPAlignClause::Create(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPAlignClause().
OMPClause * SemaOpenMP::ActOnOpenMPAlignedClause | ( | ArrayRef< Expr * > | VarList, |
Expr * | Alignment, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'aligned' clause.
Definition at line 20712 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPAlignedClause::Create(), clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::QualType::getCanonicalType(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::ValueDecl::getType(), clang::QualType::getTypePtrOrNull(), clang::QualType::getUnqualifiedType(), clang::Type::isArrayType(), clang::ActionResult< PtrTy, Compress >::isInvalid(), isOpenMPCapturedDecl(), clang::Type::isPointerType(), clang::SemaBase::SemaRef, and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPAlignedClause().
OMPClause * SemaOpenMP::ActOnOpenMPAllocateClause | ( | Expr * | Allocator, |
ArrayRef< Expr * > | VarList, | ||
SourceLocation | StartLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'allocate' clause.
Definition at line 24145 of file SemaOpenMP.cpp.
References clang::Sema::AA_Initializing, buildCapture(), clang::OMPAllocateClause::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), DSAStack, findOMPAllocatorHandleT(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getPrivateItem(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Sema::PerformImplicitConversion(), clang::SemaBase::SemaRef, and clang::Sema::targetDiag().
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPAllocateClause().
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPAllocateDirective | ( | SourceLocation | Loc, |
ArrayRef< Expr * > | VarList, | ||
ArrayRef< OMPClause * > | Clauses, | ||
DeclContext * | Owner = nullptr |
||
) |
Called on well-formed '#pragma omp allocate'.
Definition at line 3410 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), applyOMPAllocateAttribute(), clang::AS_public, clang::C, checkPreviousOMPAllocateAttribute(), clang::OMPAllocateDecl::Create(), clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, getAllocatorKind(), clang::SemaBase::getASTContext(), clang::Sema::getCurLexicalContext(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), clang::VarDecl::getStorageClass(), clang::VarDecl::getTLSKind(), clang::Decl::hasAttr(), clang::VarDecl::hasGlobalStorage(), clang::VarDecl::isLocalVarDecl(), clang::VarDecl::isThisDeclarationADefinition(), clang::OpaquePtr< PtrTy >::make(), clang::SC_Register, clang::SemaBase::SemaRef, clang::Decl::setAccess(), clang::Sema::targetDiag(), and clang::VarDecl::TLS_None.
OMPClause * SemaOpenMP::ActOnOpenMPAllocatorClause | ( | Expr * | Allocator, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'allocator' clause.
Definition at line 17012 of file SemaOpenMP.cpp.
References clang::Sema::AA_Initializing, clang::Sema::DefaultLvalueConversion(), DSAStack, findOMPAllocatorHandleT(), clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), clang::Sema::PerformImplicitConversion(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPAllocatorClause().
void SemaOpenMP::ActOnOpenMPAssumesDirective | ( | SourceLocation | Loc, |
OpenMPDirectiveKind | DKind, | ||
ArrayRef< std::string > | Assumptions, | ||
bool | SkippedClauses | ||
) |
Called on well-formed '#pragma omp [begin] assume[s]'.
Definition at line 3501 of file SemaOpenMP.cpp.
References clang::Sema::CurContext, clang::DeclContext::decls(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::DeclContext::getLexicalParent(), and clang::SemaBase::SemaRef.
OMPClause * SemaOpenMP::ActOnOpenMPAtClause | ( | OpenMPAtClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'at' clause.
Definition at line 17296 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), getListOfPossibleValues(), and clang::OMPC_AT_unknown.
Referenced by ActOnOpenMPSimpleClause(), and clang::TreeTransform< Derived >::RebuildOMPAtClause().
OMPClause * SemaOpenMP::ActOnOpenMPAtomicDefaultMemOrderClause | ( | OpenMPAtomicDefaultMemOrderClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'atomic_default_mem_order' clause.
Definition at line 17281 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), getListOfPossibleValues(), and clang::OMPC_ATOMIC_DEFAULT_MEM_ORDER_unknown.
Referenced by ActOnOpenMPSimpleClause().
StmtResult SemaOpenMP::ActOnOpenMPAtomicDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp atomic' after parsing of the associated statement.
Definition at line 12779 of file SemaOpenMP.cpp.
References clang::C, clang::OMPAtomicDirective::Create(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::First, clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::BinaryOperator::getExprLoc(), clang::Expr::getExprLoc(), clang::BinaryOperator::getLHS(), clang::BinaryOperator::getOpcode(), clang::BinaryOperator::getOperatorLoc(), clang::BinaryOperator::getRHS(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::Expr::IgnoreParenImpCasts(), clang::DeclContext::isDependentContext(), clang::Expr::isInstantiationDependent(), clang::Type::isScalarType(), clang::Stmt::Profile(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::StmtError(), V, and X.
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPBarrierDirective | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp barrier'.
Definition at line 11447 of file SemaOpenMP.cpp.
References clang::OMPBarrierDirective::Create(), and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPExecutableDirective().
void SemaOpenMP::ActOnOpenMPBeginDeclareVariant | ( | SourceLocation | Loc, |
OMPTraitInfo & | TI | ||
) |
Handle a omp begin declare variant
.
Definition at line 2714 of file SemaOpenMP.cpp.
OMPClause * SemaOpenMP::ActOnOpenMPBindClause | ( | OpenMPBindClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on a well-formed 'bind' clause.
Definition at line 24534 of file SemaOpenMP.cpp.
References clang::OMPBindClause::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), getListOfPossibleValues(), and clang::OMPC_BIND_unknown.
Referenced by ActOnOpenMPSimpleClause(), and clang::TreeTransform< Derived >::RebuildOMPBindClause().
ExprResult SemaOpenMP::ActOnOpenMPCall | ( | ExprResult | Call, |
Scope * | Scope, | ||
SourceLocation | LParenLoc, | ||
MultiExprArg | ArgExprs, | ||
SourceLocation | RParenLoc, | ||
Expr * | ExecConfig | ||
) |
Given the potential call expression Call
, determine if there is a specialization via the OpenMP declare variant mechanism available.
If there is, return the specialized call expression, otherwise return the original Call
.
Definition at line 7503 of file SemaOpenMP.cpp.
References clang::ASTContext::BoundMemberTy, clang::Sema::BuildCallExpr(), clang::Call, clang::PseudoObjectExpr::Create(), clang::MemberExpr::CreateImplicit(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::OMPTraitInfo::getAsVariantMatchInfo(), clang::CallExpr::getBeginLoc(), clang::Sema::getCurFunctionDecl(), clang::CallExpr::getDirectCallee(), clang::NamedDecl::getIdentifier(), clang::SemaBase::getLangOpts(), clang::NamedDecl::getName(), clang::Redeclarable< decl_type >::getPreviousDecl(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::QualType::isNull(), clang::Scope::isOpenMPOrderClauseScope(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::ASTContext::mergeFunctionTypes(), clang::SemaBase::SemaRef, and clang::Decl::specific_attrs().
Referenced by clang::Sema::ActOnCallExpr().
StmtResult SemaOpenMP::ActOnOpenMPCancelDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
OpenMPDirectiveKind | CancelRegion | ||
) |
Called on well-formed '#pragma omp cancel'.
Definition at line 13723 of file SemaOpenMP.cpp.
References clang::OMPCancelDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPCancellationPointDirective | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc, | ||
OpenMPDirectiveKind | CancelRegion | ||
) |
Called on well-formed '#pragma omp cancellation point'.
Definition at line 13708 of file SemaOpenMP.cpp.
References clang::OMPCancellationPointDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPCanonicalLoop | ( | Stmt * | AStmt | ) |
Called for syntactical loops (ForStmt or CXXForRangeStmt) associated to an OpenMP loop directive.
Definition at line 5865 of file SemaOpenMP.cpp.
References clang::AssertSuccess(), clang::Sema::BuildDeclRefExpr(), buildDistanceFunc(), buildLoopVarFunc(), clang::Sema::BuildUnaryOp(), clang::IntegerLiteral::Create(), clang::OMPCanonicalLoop::create(), clang::SemaBase::getASTContext(), clang::ASTContext::getIntTypeForBitwidth(), clang::ASTContext::getIntWidth(), clang::DeclStmt::getSingleDecl(), clang::ValueDecl::getType(), clang::ASTContext::getUnsignedPointerDiffType(), clang::Expr::IgnoreImplicit(), clang::Init, clang::Type::isIntegerType(), clang::BinaryOperator::reverseComparisonOp(), clang::SemaBase::SemaRef, and clang::VK_LValue.
Referenced by ActOnOpenMPLoopnest(), and clang::TreeTransform< Derived >::RebuildOMPCanonicalLoop().
OMPClause * SemaOpenMP::ActOnOpenMPCaptureClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'capture' clause.
Definition at line 17898 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPClause | ( | OpenMPClauseKind | Kind, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 17710 of file SemaOpenMP.cpp.
References ActOnOpenMPAcqRelClause(), ActOnOpenMPAcquireClause(), ActOnOpenMPCaptureClause(), ActOnOpenMPCompareClause(), ActOnOpenMPDestroyClause(), ActOnOpenMPDynamicAllocatorsClause(), ActOnOpenMPFailClause(), ActOnOpenMPFullClause(), ActOnOpenMPMergeableClause(), ActOnOpenMPNogroupClause(), ActOnOpenMPNowaitClause(), ActOnOpenMPOrderedClause(), ActOnOpenMPPartialClause(), ActOnOpenMPReadClause(), ActOnOpenMPRelaxedClause(), ActOnOpenMPReleaseClause(), ActOnOpenMPReverseOffloadClause(), ActOnOpenMPSeqCstClause(), ActOnOpenMPSIMDClause(), ActOnOpenMPThreadsClause(), ActOnOpenMPUnifiedAddressClause(), ActOnOpenMPUnifiedSharedMemoryClause(), ActOnOpenMPUntiedClause(), ActOnOpenMPUpdateClause(), ActOnOpenMPWeakClause(), ActOnOpenMPWriteClause(), and ActOnOpenMPXBareClause().
OMPClause * SemaOpenMP::ActOnOpenMPCollapseClause | ( | Expr * | NumForLoops, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'collapse' clause.
Definition at line 17034 of file SemaOpenMP.cpp.
References clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPCollapseClause().
OMPClause * SemaOpenMP::ActOnOpenMPCompareClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'compare' clause.
Definition at line 17903 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPCopyinClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'copyin' clause.
Definition at line 20787 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildVarDecl(), clang::OMPCopyinClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::ASTContext::getBaseElementType(), clang::Expr::getExprLoc(), clang::QualType::getNonReferenceType(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), clang::Decl::hasAttrs(), clang::Type::isDependentType(), clang::Type::isInstantiationDependentType(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPCopyinClause().
OMPClause * SemaOpenMP::ActOnOpenMPCopyprivateClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'copyprivate' clause.
Definition at line 20883 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPCopyprivateClause::Create(), clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::ASTContext::getBaseElementType(), clang::Decl::getLocation(), getPrivateItem(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), clang::Decl::hasAttrs(), clang::Type::isAnyPointerType(), clang::ActionResult< PtrTy, Compress >::isInvalid(), isOpenMPCapturedDecl(), clang::Type::isVariablyModifiedType(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPCopyprivateClause().
StmtResult SemaOpenMP::ActOnOpenMPCriticalDirective | ( | const DeclarationNameInfo & | DirName, |
ArrayRef< OMPClause * > | Clauses, | ||
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp critical' after parsing of the associated statement.
Definition at line 11164 of file SemaOpenMP.cpp.
References clang::C, clang::OMPCriticalDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::Expr::EvaluateKnownConstInt(), clang::SemaBase::getASTContext(), clang::DeclarationNameInfo::getName(), clang::Expr::isInstantiationDependent(), clang::Expr::isTypeDependent(), clang::SourceLocation::isValid(), clang::Expr::isValueDependent(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::StmtError(), and toString().
Referenced by ActOnOpenMPExecutableDirective().
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPDeclareMapperDirective | ( | Scope * | S, |
DeclContext * | DC, | ||
DeclarationName | Name, | ||
QualType | MapperType, | ||
SourceLocation | StartLoc, | ||
DeclarationName | VN, | ||
AccessSpecifier | AS, | ||
Expr * | MapperVarRef, | ||
ArrayRef< OMPClause * > | Clauses, | ||
Decl * | PrevDeclInScope = nullptr |
||
) |
Called on start of '#pragma omp declare mapper'.
Definition at line 22961 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::sema::FunctionScopeInfo::CompoundScopes, clang::OMPDeclareMapperDecl::Create(), clang::SemaBase::Diag(), DSAStack, clang::Sema::FilterLookupForScope(), clang::Sema::forRedeclarationInCurContext(), clang::SemaBase::getASTContext(), clang::QualType::getCanonicalType(), clang::Sema::getEnclosingFunction(), clang::SemaBase::getLangOpts(), clang::Invalid, clang::Sema::LookupName(), clang::Sema::LookupOMPMapperName, clang::OpaquePtr< PtrTy >::make(), clang::LookupResult::makeFilter(), processImplicitMapsWithDefaultMappers(), clang::Sema::PushOnScopeChains(), clang::SemaBase::SemaRef, clang::Decl::setDeclContext(), and clang::Decl::setLexicalDeclContext().
ExprResult SemaOpenMP::ActOnOpenMPDeclareMapperDirectiveVarDecl | ( | Scope * | S, |
QualType | MapperType, | ||
SourceLocation | StartLoc, | ||
DeclarationName | VN | ||
) |
Build the mapper variable of '#pragma omp declare mapper'.
Definition at line 23051 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), clang::VarDecl::Create(), DSAStack, clang::DeclarationName::getAsIdentifierInfo(), clang::SemaBase::getASTContext(), clang::ASTContext::getTrivialTypeSourceInfo(), clang::Sema::PushOnScopeChains(), clang::SC_None, and clang::SemaBase::SemaRef.
QualType SemaOpenMP::ActOnOpenMPDeclareMapperType | ( | SourceLocation | TyLoc, |
TypeResult | ParsedType | ||
) |
Check if the specified type is allowed to be used in 'omp declare mapper' construct.
Definition at line 22945 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::OpaquePtr< PtrTy >::get(), clang::Sema::GetTypeFromParser(), clang::QualType::isNull(), clang::Type::isStructureOrClassType(), clang::Type::isUnionType(), and clang::SemaBase::SemaRef.
TypeResult SemaOpenMP::ActOnOpenMPDeclareMapperVarDecl | ( | Scope * | S, |
Declarator & | D | ||
) |
Check variable declaration in 'omp declare mapper' construct.
Definition at line 22930 of file SemaOpenMP.cpp.
References clang::Sema::CheckExtraCXXDefaultArguments(), clang::CPlusPlus, clang::Sema::CreateParsedType(), clang::SemaBase::getLangOpts(), clang::TypeSourceInfo::getType(), clang::Sema::GetTypeForDeclarator(), clang::Declarator::isInvalidType(), clang::SemaBase::SemaRef, and clang::T.
Finish current declare reduction construct initializer.
Definition at line 22832 of file SemaOpenMP.cpp.
References clang::Sema::DiscardCleanupsInEvaluationContext(), clang::Sema::PopDeclContext(), clang::Sema::PopExpressionEvaluationContext(), clang::Sema::PopFunctionScopeInfo(), and clang::SemaBase::SemaRef.
Initialize declare reduction construct initializer.
Definition at line 22785 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), buildVarDecl(), clang::Sema::CurContext, clang::Sema::getCurFunction(), clang::Decl::getLocation(), clang::Sema::PotentiallyEvaluated, clang::Sema::PushDeclContext(), clang::Sema::PushExpressionEvaluationContext(), clang::Sema::PushFunctionScope(), clang::Sema::PushOnScopeChains(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::sema::FunctionScopeInfo::setHasOMPDeclareReductionCombiner().
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPDeclareReductionDirectiveEnd | ( | Scope * | S, |
DeclGroupPtrTy | DeclReductions, | ||
bool | IsValid | ||
) |
Called at the end of '#pragma omp declare reduction'.
Definition at line 22916 of file SemaOpenMP.cpp.
References clang::OpaquePtr< PtrTy >::get(), clang::Sema::PushOnScopeChains(), and clang::SemaBase::SemaRef.
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPDeclareReductionDirectiveStart | ( | Scope * | S, |
DeclContext * | DC, | ||
DeclarationName | Name, | ||
ArrayRef< std::pair< QualType, SourceLocation > > | ReductionTypes, | ||
AccessSpecifier | AS, | ||
Decl * | PrevDeclInScope = nullptr |
||
) |
Called on start of '#pragma omp declare reduction'.
Definition at line 22702 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::sema::FunctionScopeInfo::CompoundScopes, clang::DeclGroupRef::Create(), clang::OMPDeclareReductionDecl::Create(), clang::SemaBase::Diag(), clang::Sema::FilterLookupForScope(), clang::Sema::forRedeclarationInCurContext(), clang::SemaBase::getASTContext(), clang::Sema::getEnclosingFunction(), clang::Invalid, clang::Sema::LookupName(), clang::Sema::LookupOMPReductionName, clang::OpaquePtr< PtrTy >::make(), clang::LookupResult::makeFilter(), and clang::SemaBase::SemaRef.
void SemaOpenMP::ActOnOpenMPDeclareReductionInitializerEnd | ( | Decl * | D, |
Expr * | Initializer, | ||
VarDecl * | OmpPrivParm | ||
) |
Finish current declare reduction construct initializer.
Definition at line 22895 of file SemaOpenMP.cpp.
References clang::Call, clang::Copy, clang::Direct, clang::Sema::DiscardCleanupsInEvaluationContext(), clang::VarDecl::getInit(), clang::VarDecl::hasInit(), clang::Initializer, clang::VarDecl::isDirectInit(), clang::Sema::PopDeclContext(), clang::Sema::PopExpressionEvaluationContext(), clang::Sema::PopFunctionScopeInfo(), and clang::SemaBase::SemaRef.
Initialize declare reduction construct initializer.
Definition at line 22847 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), buildVarDecl(), clang::Sema::CurContext, clang::Decl::getLocation(), clang::Sema::PotentiallyEvaluated, clang::Sema::PushDeclContext(), clang::Sema::PushExpressionEvaluationContext(), clang::Sema::PushFunctionScope(), clang::Sema::PushOnScopeChains(), clang::SemaBase::SemaRef, and clang::Sema::setFunctionHasBranchProtectedScope().
QualType SemaOpenMP::ActOnOpenMPDeclareReductionType | ( | SourceLocation | TyLoc, |
TypeResult | ParsedType | ||
) |
Check if the specified type is allowed to be used in 'omp declare reduction' construct.
Definition at line 22669 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::OpaquePtr< PtrTy >::get(), clang::Sema::GetTypeFromParser(), clang::QualType::hasQualifiers(), clang::Type::isArrayType(), clang::Type::isFunctionType(), clang::QualType::isNull(), clang::Type::isReferenceType(), and clang::SemaBase::SemaRef.
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPDeclareSimdDirective | ( | DeclGroupPtrTy | DG, |
OMPDeclareSimdDeclAttr::BranchStateTy | BS, | ||
Expr * | Simdlen, | ||
ArrayRef< Expr * > | Uniforms, | ||
ArrayRef< Expr * > | Aligneds, | ||
ArrayRef< Expr * > | Alignments, | ||
ArrayRef< Expr * > | Linears, | ||
ArrayRef< unsigned > | LinModifiers, | ||
ArrayRef< Expr * > | Steps, | ||
SourceRange | SR | ||
) |
Called on well-formed '#pragma omp declare simd' after parsing of the associated method/function.
Definition at line 7092 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::Sema::AllowFold, CheckOpenMPLinearDecl(), clang::Expr::containsUnexpandedParameterPack(), clang::SemaBase::Diag(), clang::OpaquePtr< PtrTy >::get(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::SourceRange::getBegin(), clang::VarDecl::getCanonicalDecl(), clang::FieldDecl::getCanonicalDecl(), clang::NamedDecl::getDeclName(), clang::Expr::getExprLoc(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::Expr::getType(), clang::QualType::getTypePtrOrNull(), clang::Type::hasIntegerRepresentation(), clang::Expr::IgnoreParenImpCasts(), clang::Type::isArrayType(), clang::Expr::isInstantiationDependent(), clang::Type::isPointerType(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), PerformOpenMPImplicitIntegerConversion(), clang::SemaBase::SemaRef, clang::Sema::VerifyIntegerConstantExpression(), and VerifyPositiveIntegerConstantInClause().
Referenced by instantiateOMPDeclareSimdDeclAttr().
void SemaOpenMP::ActOnOpenMPDeclareTargetInitializer | ( | Decl * | D | ) |
Adds OMPDeclareTargetDeclAttr to referenced variables in declare target directive.
Adding OMPDeclareTargetDeclAttr to variables with static storage duration that are referenced in the initializer expression list of variables with static storage duration in declare target directive.
Definition at line 23753 of file SemaOpenMP.cpp.
References GlobalDeclRefChecker::declareTargetInitializer().
Referenced by ActOnOpenMPDeclareTargetName(), and clang::Sema::FinalizeDeclaratorGroup().
void SemaOpenMP::ActOnOpenMPDeclareTargetName | ( | NamedDecl * | ND, |
SourceLocation | Loc, | ||
OMPDeclareTargetDeclAttr::MapTypeTy | MT, | ||
DeclareTargetContextInfo & | DTCI | ||
) |
Called on correct id-expression from the '#pragma omp declare target'.
Definition at line 23531 of file SemaOpenMP.cpp.
References ActOnOpenMPDeclareTargetInitializer(), clang::Decl::addAttr(), checkDeclIsAllowedInOpenMPTarget(), clang::SemaBase::Diag(), clang::SemaOpenMP::DeclareTargetContextInfo::DT, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), clang::NamedDecl::getNameAsString(), clang::Decl::hasAttr(), clang::HIP, clang::SemaOpenMP::DeclareTargetContextInfo::Indirect, clang::Decl::isReferenced(), and clang::Decl::isUsed().
Referenced by ActOnFinishedOpenMPDeclareTargetContext().
void SemaOpenMP::ActOnOpenMPDeclareVariantDirective | ( | FunctionDecl * | FD, |
Expr * | VariantRef, | ||
OMPTraitInfo & | TI, | ||
ArrayRef< Expr * > | AdjustArgsNothing, | ||
ArrayRef< Expr * > | AdjustArgsNeedDevicePtr, | ||
ArrayRef< OMPInteropInfo > | AppendArgs, | ||
SourceLocation | AdjustArgsLoc, | ||
SourceLocation | AppendArgsLoc, | ||
SourceRange | SR | ||
) |
Called on well-formed '#pragma omp declare variant' after parsing of the associated method/function.
FD | Function declaration to which declare variant directive is applied to. |
VariantRef | Expression that references the variant function, which must be used instead of the original one, specified in DG . |
TI | The context traits associated with the function variant. |
AdjustArgsNothing | The list of 'nothing' arguments. |
AdjustArgsNeedDevicePtr | The list of 'need_device_ptr' arguments. |
AppendArgs | The list of 'append_args' arguments. |
AdjustArgsLoc | The Location of an 'adjust_args' clause. |
AppendArgsLoc | The Location of an 'append_args' clause. |
SR | The SourceRange of the 'declare variant' directive. |
Definition at line 7924 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPTraitInfo::getAsVariantMatchInfo(), clang::VarDecl::getCanonicalDecl(), clang::Expr::getExprLoc(), clang::FunctionDecl::getNumParams(), clang::FunctionDecl::getParamDecl(), and clang::Expr::IgnoreParenImpCasts().
Referenced by instantiateOMPDeclareVariantAttr().
OMPClause * SemaOpenMP::ActOnOpenMPDefaultClause | ( | llvm::omp::DefaultKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'default' clause.
Definition at line 17219 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), and getListOfPossibleValues().
Referenced by ActOnOpenMPSimpleClause(), and clang::TreeTransform< Derived >::RebuildOMPDefaultClause().
OMPClause * SemaOpenMP::ActOnOpenMPDefaultmapClause | ( | OpenMPDefaultmapClauseModifier | M, |
OpenMPDefaultmapClauseKind | Kind, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | MLoc, | ||
SourceLocation | KindLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'defaultmap' clause.
Definition at line 23368 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), clang::getOpenMPSimpleClauseTypeName(), clang::SourceLocation::isInvalid(), clang::OMPC_DEFAULTMAP_MODIFIER_unknown, and clang::OMPC_DEFAULTMAP_unknown.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPDefaultmapClause().
OMPClause * SemaOpenMP::ActOnOpenMPDependClause | ( | const OMPDependClause::DependDataTy & | Data, |
Expr * | DepModifier, | ||
ArrayRef< Expr * > | VarList, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'depend' clause.
Definition at line 21185 of file SemaOpenMP.cpp.
References clang::C, clang::OMPDependClause::Create(), clang::Sema::CreateBuiltinUnaryOp(), clang::Data, clang::SemaBase::Diag(), DSAStack, findOMPDependT(), clang::Type::getAsArrayTypeUnsafe(), clang::SemaBase::getASTContext(), clang::ArraySectionExpr::getBaseOriginalType(), clang::Expr::getExprLoc(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), clang::QualType::getNonReferenceType(), clang::Type::getPointeeType(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::QualType::getTypePtr(), clang::Expr::IgnoreParenCasts(), clang::QualType::isNull(), clang::Type::isSpecificBuiltinType(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPC_DEPEND_unknown, ProcessOpenMPDoacrossClauseCommon(), clang::Result, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPDependClause().
OMPClause * SemaOpenMP::ActOnOpenMPDepobjClause | ( | Expr * | Depobj, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'depobj' pseudo clause.
Definition at line 21025 of file SemaOpenMP.cpp.
References clang::Expr::containsUnexpandedParameterPack(), clang::OMPDepobjClause::Create(), clang::SemaBase::Diag(), DSAStack, findOMPDependT(), clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::Expr::isInstantiationDependent(), clang::Expr::isLValue(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPDepobjClause().
StmtResult SemaOpenMP::ActOnOpenMPDepobjDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp depobj'.
Definition at line 11556 of file SemaOpenMP.cpp.
References clang::OMPDepobjDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPDestroyClause | ( | Expr * | InteropVar, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | VarLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'destroy' clause.
Definition at line 18164 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), isValidInteropVariable(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPClause(), and clang::TreeTransform< Derived >::RebuildOMPDestroyClause().
OMPClause * SemaOpenMP::ActOnOpenMPDetachClause | ( | Expr * | Evt, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'detach' clause.
Definition at line 23265 of file SemaOpenMP.cpp.
References clang::Expr::containsUnexpandedParameterPack(), clang::SemaBase::Diag(), DSAStack, findOMPEventHandleT(), clang::SemaBase::getASTContext(), clang::DeclRefExpr::getDecl(), clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::Expr::IgnoreParenImpCasts(), clang::QualType::isConstant(), clang::Expr::isInstantiationDependent(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPDetachClause().
OMPClause * SemaOpenMP::ActOnOpenMPDeviceClause | ( | OpenMPDeviceClauseModifier | Modifier, |
Expr * | Device, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ModifierLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'device' clause.
Definition at line 21378 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, clang::Device, clang::SemaBase::Diag(), DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::SourceLocation::isInvalid(), isNonNegativeIntegerValue(), clang::SourceLocation::isValid(), clang::Sema::MakeFullExpr(), clang::OMPC_DEVICE_unknown, clang::SemaBase::SemaRef, and clang::Sema::targetDiag().
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPDeviceClause().
StmtResult SemaOpenMP::ActOnOpenMPDispatchDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp dispatch' after parsing of the.
Definition at line 10801 of file SemaOpenMP.cpp.
References clang::OMPDispatchDirective::Create(), clang::Sema::CurContext, clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), getDirectCallExpr(), clang::Expr::getExprLoc(), clang::Expr::IgnoreImplicit(), clang::Expr::IgnoreParenCasts(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPDistributeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp distribute' after parsing of the associated statement.
Definition at line 14282 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPDistributeDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPDistributeParallelForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp distribute parallel for' after parsing of the associated statement.
Definition at line 14312 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPDistributeParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPDistributeParallelForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp distribute parallel for simd' after parsing of the associated statement.
Definition at line 14356 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPDistributeParallelForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPDistributeSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp distribute simd' after parsing of the associated statement.
Definition at line 14413 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPDistributeSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPDistScheduleClause | ( | OpenMPDistScheduleClauseKind | Kind, |
Expr * | ChunkSize, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | KindLoc, | ||
SourceLocation | CommaLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'dist_schedule' clause.
Definition at line 23314 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Expr::containsUnexpandedParameterPack(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Expr::getIntegerConstantExpr(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::getOpenMPSimpleClauseTypeName(), clang::Stmt::getSourceRange(), clang::DeclContext::isDependentContext(), clang::Expr::isInstantiationDependent(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), clang::Sema::MakeFullExpr(), clang::OMPC_DIST_SCHEDULE_unknown, PerformOpenMPImplicitIntegerConversion(), clang::Result, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPDistScheduleClause().
OMPClause * SemaOpenMP::ActOnOpenMPDoacrossClause | ( | OpenMPDoacrossClauseModifier | DepType, |
SourceLocation | DepLoc, | ||
SourceLocation | ColonLoc, | ||
ArrayRef< Expr * > | VarList, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'doacross' clause.
Definition at line 24580 of file SemaOpenMP.cpp.
References clang::C, clang::OMPDoacrossClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), ProcessOpenMPDoacrossClauseCommon(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPDoacrossClause().
OMPClause * SemaOpenMP::ActOnOpenMPDynamicAllocatorsClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'dynamic_allocators' clause.
Definition at line 17989 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
void SemaOpenMP::ActOnOpenMPEndAssumesDirective | ( | ) |
Called on well-formed '#pragma omp end assumes'.
Definition at line 3554 of file SemaOpenMP.cpp.
References isInOpenMPAssumeScope().
const SemaOpenMP::DeclareTargetContextInfo SemaOpenMP::ActOnOpenMPEndDeclareTargetDirective | ( | ) |
Called at the end of target region i.e. '#pragma omp end declare target'.
Definition at line 23477 of file SemaOpenMP.cpp.
void SemaOpenMP::ActOnOpenMPEndDeclareVariant | ( | ) |
Handle a omp end declare variant
.
Definition at line 2719 of file SemaOpenMP.cpp.
References isInOpenMPDeclareVariantScope().
StmtResult SemaOpenMP::ActOnOpenMPErrorDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
bool | InExContext = true |
||
) |
Called on well-formed '#pragma omp error'.
Error direcitive is allowed in both declared and excutable contexts. Adding InExContext to identify which context is called from.
Definition at line 11452 of file SemaOpenMP.cpp.
References clang::OMPErrorDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPAtClause::getAtKind(), clang::OMPAtClause::getAtKindKwLoc(), clang::OMPMessageClause::getMessageString(), clang::OMPSeverityClause::getSeverityKind(), clang::OMPSeverityClause::getSeverityKindKwLoc(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPExclusiveClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'exclusive' clause.
Definition at line 24301 of file SemaOpenMP.cpp.
References clang::OMPExclusiveClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getPrivateItem(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPExclusiveClause().
StmtResult SemaOpenMP::ActOnOpenMPExecutableDirective | ( | OpenMPDirectiveKind | Kind, |
const DeclarationNameInfo & | DirName, | ||
OpenMPDirectiveKind | CancelRegion, | ||
ArrayRef< OMPClause * > | Clauses, | ||
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
OpenMPDirectiveKind | PrevMappedDirective = llvm::omp::OMPD_unknown |
||
) |
Definition at line 6328 of file SemaOpenMP.cpp.
References ActOnOpenMPAtomicDirective(), ActOnOpenMPBarrierDirective(), ActOnOpenMPCancelDirective(), ActOnOpenMPCancellationPointDirective(), ActOnOpenMPCriticalDirective(), ActOnOpenMPDepobjDirective(), ActOnOpenMPDispatchDirective(), ActOnOpenMPDistributeDirective(), ActOnOpenMPDistributeParallelForDirective(), ActOnOpenMPDistributeParallelForSimdDirective(), ActOnOpenMPDistributeSimdDirective(), ActOnOpenMPErrorDirective(), ActOnOpenMPFirstprivateClause(), ActOnOpenMPFlushDirective(), ActOnOpenMPForDirective(), ActOnOpenMPForSimdDirective(), ActOnOpenMPGenericLoopDirective(), ActOnOpenMPInteropDirective(), ActOnOpenMPMapClause(), ActOnOpenMPMaskedDirective(), ActOnOpenMPMaskedTaskLoopDirective(), ActOnOpenMPMaskedTaskLoopSimdDirective(), ActOnOpenMPMasterDirective(), ActOnOpenMPMasterTaskLoopDirective(), ActOnOpenMPMasterTaskLoopSimdDirective(), ActOnOpenMPOrderedDirective(), ActOnOpenMPParallelDirective(), ActOnOpenMPParallelForDirective(), ActOnOpenMPParallelForSimdDirective(), ActOnOpenMPParallelGenericLoopDirective(), ActOnOpenMPParallelMaskedDirective(), ActOnOpenMPParallelMaskedTaskLoopDirective(), ActOnOpenMPParallelMaskedTaskLoopSimdDirective(), ActOnOpenMPParallelMasterDirective(), ActOnOpenMPParallelMasterTaskLoopDirective(), ActOnOpenMPParallelMasterTaskLoopSimdDirective(), ActOnOpenMPParallelSectionsDirective(), ActOnOpenMPPrivateClause(), ActOnOpenMPScanDirective(), ActOnOpenMPScopeDirective(), ActOnOpenMPSectionDirective(), ActOnOpenMPSectionsDirective(), ActOnOpenMPSimdDirective(), ActOnOpenMPSingleDirective(), ActOnOpenMPTargetDataDirective(), ActOnOpenMPTargetDirective(), ActOnOpenMPTargetEnterDataDirective(), ActOnOpenMPTargetExitDataDirective(), ActOnOpenMPTargetParallelDirective(), ActOnOpenMPTargetParallelForDirective(), ActOnOpenMPTargetParallelForSimdDirective(), ActOnOpenMPTargetParallelGenericLoopDirective(), ActOnOpenMPTargetSimdDirective(), ActOnOpenMPTargetTeamsDirective(), ActOnOpenMPTargetTeamsDistributeDirective(), ActOnOpenMPTargetTeamsDistributeParallelForDirective(), ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective(), ActOnOpenMPTargetTeamsDistributeSimdDirective(), ActOnOpenMPTargetTeamsGenericLoopDirective(), ActOnOpenMPTargetUpdateDirective(), ActOnOpenMPTaskDirective(), ActOnOpenMPTaskgroupDirective(), ActOnOpenMPTaskLoopDirective(), ActOnOpenMPTaskLoopSimdDirective(), ActOnOpenMPTaskwaitDirective(), ActOnOpenMPTaskyieldDirective(), ActOnOpenMPTeamsDirective(), ActOnOpenMPTeamsDistributeDirective(), ActOnOpenMPTeamsDistributeParallelForDirective(), ActOnOpenMPTeamsDistributeParallelForSimdDirective(), ActOnOpenMPTeamsDistributeSimdDirective(), ActOnOpenMPTeamsGenericLoopDirective(), ActOnOpenMPTileDirective(), ActOnOpenMPUnrollDirective(), clang::C, checkCancelRegion(), checkIfClauses(), checkNestingOfRegions(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::CapturedStmt::getCapturedStmt(), clang::SemaBase::getLangOpts(), getOpenMPCaptureLevels(), clang::getOpenMPCaptureRegions(), clang::HIP, clang::Expr::IgnoreParenImpCasts(), clang::Implicit, clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::isOpenMPLoopTransformationDirective(), clang::isOpenMPParallelDirective(), clang::isOpenMPTargetDataManagementDirective(), clang::isOpenMPTargetExecutionDirective(), clang::isOpenMPTaskingDirective(), clang::isOpenMPTaskLoopDirective(), clang::isOpenMPTeamsDirective(), clang::OMPC_BIND_unknown, clang::OMPC_DEFAULTMAP_unknown, clang::OMPC_MAP_MODIFIER_unknown, P, processImplicitMapsWithDefaultMappers(), clang::SemaBase::SemaRef, and clang::StmtError().
Referenced by clang::TreeTransform< Derived >::RebuildOMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPFailClause | ( | OpenMPClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 17913 of file SemaOpenMP.cpp.
References clang::checkFailClauseParameter(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), and clang::Parameter.
OMPClause * SemaOpenMP::ActOnOpenMPFailClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'fail' clause.
Definition at line 17908 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause(), and ActOnOpenMPSimpleClause().
OMPClause * SemaOpenMP::ActOnOpenMPFilterClause | ( | Expr * | ThreadID, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'filter' clause.
Definition at line 18248 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPFilterClause().
OMPClause * SemaOpenMP::ActOnOpenMPFinalClause | ( | Expr * | Condition, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'final' clause.
Definition at line 16732 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CheckBooleanCondition(), clang::Condition, clang::Sema::CurContext, DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPFinalClause().
OMPClause * SemaOpenMP::ActOnOpenMPFirstprivateClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'firstprivate' clause.
Definition at line 18633 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::Sema::AddInitializerToDecl(), buildCapture(), buildDeclRefExpr(), buildPreInits(), buildVarDecl(), clang::C, clang::OMPFirstprivateClause::Create(), clang::InitializationKind::CreateCopy(), clang::Sema::CurContext, clang::ASTContext::Deallocate(), clang::VarDecl::DeclarationOnly, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::ASTContext::getBaseElementType(), clang::DeclRefExpr::getDecl(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::NamedDecl::getName(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), clang::Decl::hasAttrs(), clang::Init, clang::InitializedEntity::InitializeVariable(), clang::Type::isAnyPointerType(), clang::Type::isArrayType(), clang::QualType::isConstant(), clang::DeclContext::isDependentContext(), clang::SourceLocation::isInvalid(), clang::Decl::isInvalidDecl(), isOpenMPCapturedDecl(), clang::isOpenMPDistributeDirective(), clang::isOpenMPParallelDirective(), clang::isOpenMPTargetExecutionDirective(), clang::isOpenMPTaskingDirective(), clang::isOpenMPTeamsDirective(), clang::isOpenMPWorksharingDirective(), clang::Type::isVariablyModifiedType(), clang::InitializationSequence::Perform(), reportOriginalDsa(), clang::Sema::RequireCompleteType(), clang::Result, clang::SemaBase::SemaRef, clang::VarDecl::setInit(), and clang::Decl::setInvalidDecl().
Referenced by ActOnOpenMPExecutableDirective(), ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPFirstprivateClause().
OMPClause * SemaOpenMP::ActOnOpenMPFlushClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'flush' pseudo clause.
Definition at line 20997 of file SemaOpenMP.cpp.
References clang::OMPFlushClause::Create(), and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPFlushClause().
StmtResult SemaOpenMP::ActOnOpenMPFlushDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp flush'.
Definition at line 11517 of file SemaOpenMP.cpp.
References clang::C, clang::OMPFlushDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::OMPClause::getClauseKind(), clang::OMPVarListClause< T >::getLParenLoc(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp for' after parsing of the associated statement.
Definition at line 10661 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), clang::OMPForDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp for simd' after parsing of the associated statement.
Definition at line 10701 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPFromClause | ( | ArrayRef< OpenMPMotionModifierKind > | MotionModifiers, |
ArrayRef< SourceLocation > | MotionModifiersLoc, | ||
CXXScopeSpec & | MapperIdScopeSpec, | ||
DeclarationNameInfo & | MapperId, | ||
SourceLocation | ColonLoc, | ||
ArrayRef< Expr * > | VarList, | ||
const OMPVarListLocTy & | Locs, | ||
ArrayRef< Expr * > | UnresolvedMappers = std::nullopt |
||
) |
Called on well-formed 'from' clause.
Definition at line 23796 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPFromClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::CXXScopeSpec::getWithLocInContext(), clang::NumberOfOMPMotionModifiers, clang::OMPC_MOTION_MODIFIER_unknown, clang::SemaBase::SemaRef, and clang::OMPVarListLocTy::StartLoc.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPFromClause().
OMPClause * SemaOpenMP::ActOnOpenMPFullClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-form 'full' clauses.
Definition at line 17419 of file SemaOpenMP.cpp.
References clang::OMPFullClause::Create(), and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause(), and clang::TreeTransform< Derived >::RebuildOMPFullClause().
StmtResult SemaOpenMP::ActOnOpenMPGenericLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp loop' after parsing of the associated statement.
Definition at line 10875 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPGrainsizeClause | ( | OpenMPGrainsizeClauseModifier | Modifier, |
Expr * | Size, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ModifierLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'grainsize' clause.
Definition at line 23167 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), clang::SourceLocation::isInvalid(), isNonNegativeIntegerValue(), clang::SourceLocation::isValid(), clang::OMPC_GRAINSIZE_unknown, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPGrainsizeClause().
OMPClause * SemaOpenMP::ActOnOpenMPHasDeviceAddrClause | ( | ArrayRef< Expr * > | VarList, |
const OMPVarListLocTy & | Locs | ||
) |
Called on well-formed 'has_device_addr' clause.
Definition at line 24058 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPHasDeviceAddrClause::Create(), clang::Sema::CurContext, clang::Sema::DefaultFunctionArrayLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), getPrivateItem(), clang::Stmt::getSourceRange(), clang::DeclContext::isDependentContext(), clang::isOpenMPPrivate(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPHasDeviceAddrClause().
OMPClause * SemaOpenMP::ActOnOpenMPHintClause | ( | Expr * | Hint, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'hint' clause.
Definition at line 23234 of file SemaOpenMP.cpp.
References clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPHintClause().
ExprResult SemaOpenMP::ActOnOpenMPIdExpression | ( | Scope * | CurScope, |
CXXScopeSpec & | ScopeSpec, | ||
const DeclarationNameInfo & | Id, | ||
OpenMPDirectiveKind | Kind | ||
) |
Called on correct id-expression from the '#pragma omp threadprivate'.
Definition at line 3058 of file SemaOpenMP.cpp.
References clang::Sema::CorrectTypo(), clang::DeclRefExpr::Create(), clang::Sema::CTK_ErrorRecovery, clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), clang::Sema::diagnoseTypo(), DSAStack, clang::LookupResult::empty(), clang::DeclContext::Encloses(), clang::DeclContext::Equals(), clang::ExprError(), clang::LookupResult::getAsSingle(), clang::SemaBase::getASTContext(), clang::VarDecl::getCanonicalDecl(), clang::Sema::getCurLexicalContext(), clang::Decl::getDeclContext(), clang::LookupResult::getFoundDecl(), clang::Decl::getLocation(), clang::QualType::getNonReferenceType(), clang::ValueDecl::getType(), clang::VarDecl::hasGlobalStorage(), Id, clang::LookupResult::isAmbiguous(), clang::Sema::isDeclInScope(), clang::DeclContext::isFileContext(), clang::VarDecl::isLocalVarDecl(), clang::DeclContext::isNamespace(), clang::LookupResult::isSingleResult(), clang::VarDecl::isStaticDataMember(), clang::VarDecl::isStaticLocal(), clang::VarDecl::isThisDeclarationADefinition(), clang::DeclContext::isTranslationUnit(), clang::Decl::isUsed(), clang::Sema::LookupOrdinaryName, clang::Sema::LookupParsedName(), clang::Sema::PDiag(), clang::SemaBase::SemaRef, clang::LookupResult::suppressDiagnostics(), and clang::VK_LValue.
OMPClause * SemaOpenMP::ActOnOpenMPIfClause | ( | OpenMPDirectiveKind | NameModifier, |
Expr * | Condition, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | NameModifierLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'if' clause.
Definition at line 16699 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CheckBooleanCondition(), clang::Condition, clang::Sema::CurContext, DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPIfClause().
OMPClause * SemaOpenMP::ActOnOpenMPInclusiveClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'inclusive' clause.
Definition at line 24260 of file SemaOpenMP.cpp.
References clang::OMPInclusiveClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getPrivateItem(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPInclusiveClause().
OMPClause * SemaOpenMP::ActOnOpenMPInitClause | ( | Expr * | InteropVar, |
OMPInteropInfo & | InteropInfo, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | VarLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'init' clause.
Definition at line 18126 of file SemaOpenMP.cpp.
References clang::Expr::containsUnexpandedParameterPack(), clang::OMPInitClause::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), clang::Expr::isInstantiationDependent(), clang::Expr::isIntegerConstantExpr(), clang::Expr::isTypeDependent(), isValidInteropVariable(), clang::Expr::isValueDependent(), clang::OMPInteropInfo::PreferTypes, and clang::SemaBase::SemaRef.
Referenced by clang::TreeTransform< Derived >::RebuildOMPInitClause().
OMPClause * SemaOpenMP::ActOnOpenMPInReductionClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
CXXScopeSpec & | ReductionIdScopeSpec, | ||
const DeclarationNameInfo & | ReductionId, | ||
ArrayRef< Expr * > | UnresolvedReductions = std::nullopt |
||
) |
Called on well-formed 'in_reduction' clause.
Definition at line 20392 of file SemaOpenMP.cpp.
References actOnOMPReductionKindClause(), buildPostUpdate(), buildPreInits(), clang::OMPInReductionClause::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CXXScopeSpec::getWithLocInContext(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPInReductionClause().
StmtResult SemaOpenMP::ActOnOpenMPInteropDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp interop'.
Definition at line 17995 of file SemaOpenMP.cpp.
References clang::C, clang::OMPInteropDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), getPrivateItem(), hasClauses(), clang::SemaBase::SemaRef, and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPIsDevicePtrClause | ( | ArrayRef< Expr * > | VarList, |
const OMPVarListLocTy & | Locs | ||
) |
Called on well-formed 'is_device_ptr' clause.
Definition at line 23974 of file SemaOpenMP.cpp.
References clang::OMPIsDevicePtrClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), getPrivateItem(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::Type::isArrayType(), clang::isOpenMPPrivate(), clang::Type::isPointerType(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPIsDevicePtrClause().
void SemaOpenMP::ActOnOpenMPIteratorVarDecl | ( | VarDecl * | VD | ) |
Definition at line 23066 of file SemaOpenMP.cpp.
References DSAStack.
Referenced by ActOnOMPIteratorExpr().
OMPClause * SemaOpenMP::ActOnOpenMPLastprivateClause | ( | ArrayRef< Expr * > | VarList, |
OpenMPLastprivateModifier | LPKind, | ||
SourceLocation | LPKindLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'lastprivate' clause.
Definition at line 18922 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildCapture(), buildDeclRefExpr(), buildPostUpdate(), buildPreInits(), buildVarDecl(), clang::OMPLastprivateClause::Create(), clang::Sema::CurContext, clang::VarDecl::DeclarationOnly, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::ASTContext::getBaseElementType(), clang::SourceRange::getBegin(), clang::DeclRefExpr::getDecl(), getListOfPossibleValues(), clang::Decl::getLocation(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::Decl::hasAttrs(), clang::Sema::IgnoredValueConversions(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), isOpenMPCapturedDecl(), clang::isOpenMPDistributeDirective(), clang::isOpenMPParallelDirective(), clang::isOpenMPTeamsDirective(), clang::isOpenMPWorksharingDirective(), clang::Type::isScalarType(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::SourceLocation::isValid(), clang::OMPC_LASTPRIVATE_unknown, rejectConstNotMutableType(), reportOriginalDsa(), clang::Sema::RequireCompleteType(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPLastprivateClause().
OMPClause * SemaOpenMP::ActOnOpenMPLinearClause | ( | ArrayRef< Expr * > | VarList, |
Expr * | Step, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
OpenMPLinearClauseKind | LinKind, | ||
SourceLocation | LinLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | StepModifierLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'linear' clause.
Definition at line 20466 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::AddInitializerToDecl(), clang::Sema::BuildBinOp(), buildCapture(), buildDeclRefExpr(), buildPostUpdate(), buildPreInits(), buildVarDecl(), CheckOpenMPLinearDecl(), CheckOpenMPLinearModifier(), clang::Expr::containsUnexpandedParameterPack(), clang::OMPLinearClause::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::Stmt::getBeginLoc(), clang::Sema::getCurScope(), clang::DeclRefExpr::getDecl(), clang::Expr::getIntegerConstantExpr(), clang::SemaBase::getLangOpts(), clang::NamedDecl::getName(), getPrivateItem(), clang::ValueDecl::getType(), clang::Expr::getType(), clang::Decl::hasAttr(), clang::Decl::hasAttrs(), clang::Sema::IgnoredValueConversions(), clang::Init, clang::DeclContext::isDependentContext(), clang::Expr::isInstantiationDependent(), clang::SourceLocation::isInvalid(), clang::ActionResult< PtrTy, Compress >::isInvalid(), isOpenMPCapturedDecl(), clang::Expr::isTypeDependent(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::SourceLocation::isValid(), clang::Expr::isValueDependent(), PerformOpenMPImplicitIntegerConversion(), clang::Private, reportOriginalDsa(), clang::Result, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPLinearClause().
void SemaOpenMP::ActOnOpenMPLoopInitialization | ( | SourceLocation | ForLoc, |
Stmt * | Init | ||
) |
Check if the current region is an OpenMP loop region and if it is, mark loop control variable, used in Init
for loop initialization, as private by default.
Init | First part of the for loop. |
Definition at line 9357 of file SemaOpenMP.cpp.
References buildCapture(), buildDeclRefExpr(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::DeclRefExpr::getDecl(), clang::SemaBase::getLangOpts(), clang::QualType::getNonLValueExprType(), clang::ValueDecl::getType(), clang::Init, isOpenMPCapturedDecl(), clang::isOpenMPDistributeDirective(), clang::isOpenMPLoopDirective(), clang::isOpenMPSimdDirective(), clang::isOpenMPWorksharingDirective(), clang::Sema::MarkDeclarationsReferencedInExpr(), clang::Private, reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by clang::Sema::BuildCXXForRangeStmt().
StmtResult SemaOpenMP::ActOnOpenMPLoopnest | ( | Stmt * | AStmt | ) |
Process a canonical OpenMP loop nest that can either be a canonical literal loop (ForStmt or CXXForRangeStmt), or the generated loop of an OpenMP loop transformation construct.
Definition at line 6014 of file SemaOpenMP.cpp.
References ActOnOpenMPCanonicalLoop(), clang::OMPExecutableDirective::getDirectiveKind(), and clang::isOpenMPLoopTransformationDirective().
OMPClause * SemaOpenMP::ActOnOpenMPMapClause | ( | Expr * | IteratorModifier, |
ArrayRef< OpenMPMapModifierKind > | MapTypeModifiers, | ||
ArrayRef< SourceLocation > | MapTypeModifiersLoc, | ||
CXXScopeSpec & | MapperIdScopeSpec, | ||
DeclarationNameInfo & | MapperId, | ||
OpenMPMapClauseKind | MapType, | ||
bool | IsMapTypeImplicit, | ||
SourceLocation | MapLoc, | ||
SourceLocation | ColonLoc, | ||
ArrayRef< Expr * > | VarList, | ||
const OMPVarListLocTy & | Locs, | ||
bool | NoDiagnose = false , |
||
ArrayRef< Expr * > | UnresolvedMappers = std::nullopt |
||
) |
Called on well-formed 'map' clause.
Definition at line 22620 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPMapClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), clang::Expr::getType(), clang::CXXScopeSpec::getWithLocInContext(), clang::Type::isSpecificBuiltinType(), clang::NumberOfOMPMapClauseModifiers, clang::OMPC_MAP_MODIFIER_unknown, clang::SemaBase::SemaRef, and clang::OMPVarListLocTy::StartLoc.
Referenced by ActOnOpenMPExecutableDirective(), ActOnOpenMPVarListClause(), processImplicitMapsWithDefaultMappers(), and clang::TreeTransform< Derived >::RebuildOMPMapClause().
StmtResult SemaOpenMP::ActOnOpenMPMaskedDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp masked' after parsing of the.
Definition at line 11151 of file SemaOpenMP.cpp.
References clang::OMPMaskedDirective::Create(), clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPMaskedTaskLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp masked taskloop' after parsing of the associated statement.
Definition at line 13892 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPMaskedTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPMaskedTaskLoopSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp masked taskloop simd' after parsing of the associated statement.
Definition at line 13980 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPMaskedTaskLoopSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPMasterDirective | ( | Stmt * | AStmt, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp master' after parsing of the associated statement.
Definition at line 11140 of file SemaOpenMP.cpp.
References clang::OMPMasterDirective::Create(), clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPMasterTaskLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp master taskloop' after parsing of the associated statement.
Definition at line 13854 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPMasterTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPMasterTaskLoopSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp master taskloop simd' after parsing of the associated statement.
Definition at line 13930 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPMasterTaskLoopSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPMergeableClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'mergeable' clause.
Definition at line 17878 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPMessageClause | ( | Expr * | MS, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'message' clause.
passing string for message.
Definition at line 17328 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), and clang::Stmt::getBeginLoc().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPMessageClause().
StmtResult clang::SemaOpenMP::ActOnOpenMPMetaDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp metadirective' after parsing of the associated statement.
OMPClause * SemaOpenMP::ActOnOpenMPNocontextClause | ( | Expr * | Condition, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'nocontext' clause.
Definition at line 18216 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CheckBooleanCondition(), clang::Condition, clang::Sema::CurContext, DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPNocontextClause().
OMPClause * SemaOpenMP::ActOnOpenMPNogroupClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'nogroup' clause.
Definition at line 17967 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPNontemporalClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'nontemporal' clause.
Definition at line 24208 of file SemaOpenMP.cpp.
References clang::OMPNontemporalClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getPrivateItem(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPNontemporalClause().
OMPClause * SemaOpenMP::ActOnOpenMPNovariantsClause | ( | Expr * | Condition, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'novariants' clause.
Definition at line 18184 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CheckBooleanCondition(), clang::Condition, clang::Sema::CurContext, DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPNovariantsClause().
OMPClause * SemaOpenMP::ActOnOpenMPNowaitClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'nowait' clause.
Definition at line 17866 of file SemaOpenMP.cpp.
References DSAStack, and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPNumTasksClause | ( | OpenMPNumTasksClauseModifier | Modifier, |
Expr * | NumTasks, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ModifierLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'num_tasks' clause.
Definition at line 23201 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), clang::SourceLocation::isInvalid(), isNonNegativeIntegerValue(), clang::SourceLocation::isValid(), clang::OMPC_NUMTASKS_unknown, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPNumTasksClause().
OMPClause * SemaOpenMP::ActOnOpenMPNumTeamsClause | ( | Expr * | NumTeams, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'num_teams' clause.
Definition at line 23091 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), isNonNegativeIntegerValue(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPNumTeamsClause().
OMPClause * SemaOpenMP::ActOnOpenMPNumThreadsClause | ( | Expr * | NumThreads, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'num_threads' clause.
Definition at line 16851 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), isNonNegativeIntegerValue(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPNumThreadsClause().
OMPClause * SemaOpenMP::ActOnOpenMPOrderClause | ( | OpenMPOrderClauseModifier | Modifier, |
OpenMPOrderClauseKind | Kind, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | MLoc, | ||
SourceLocation | KindLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'order' clause.
Definition at line 17342 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), clang::SourceLocation::isValid(), clang::OMPC_ORDER_MODIFIER_last, clang::OMPC_ORDER_MODIFIER_unknown, clang::OMPC_ORDER_unknown, and clang::Scope::OpenMPOrderClauseScope.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPOrderClause().
OMPClause * SemaOpenMP::ActOnOpenMPOrderedClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc, | ||
SourceLocation | LParenLoc = SourceLocation() , |
||
Expr * | NumForLoops = nullptr |
||
) |
Called on well-formed 'ordered' clause.
Definition at line 17051 of file SemaOpenMP.cpp.
References clang::OMPOrderedClause::Create(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::SourceLocation::isValid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPClause(), ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPOrderedClause().
StmtResult SemaOpenMP::ActOnOpenMPOrderedDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp ordered' after parsing of the associated statement.
Definition at line 11609 of file SemaOpenMP.cpp.
References clang::C, clang::OMPOrderedDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::OMPClause::getClauseKind(), clang::SemaBase::getLangOpts(), clang::isOpenMPSimdDirective(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp parallel' after parsing of the associated statement.
Definition at line 7994 of file SemaOpenMP.cpp.
References clang::OMPParallelDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel for' after parsing of the associated statement.
Definition at line 11221 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), clang::OMPParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel for simd' after parsing of the associated statement.
Definition at line 11265 of file SemaOpenMP.cpp.
References clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPParallelForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelGenericLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel loop' after parsing of the associated statement.
Definition at line 11010 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPParallelGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMaskedDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp parallel masked' after parsing of the associated statement.
Definition at line 11330 of file SemaOpenMP.cpp.
References clang::OMPParallelMaskedDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMaskedTaskLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel masked taskloop' after parsing of the associated statement.
Definition at line 14087 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPParallelMaskedTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMaskedTaskLoopSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel masked taskloop simd' after parsing of the associated statement.
Definition at line 14213 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPParallelMaskedTaskLoopSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMasterDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp parallel master' after parsing of the associated statement.
Definition at line 11308 of file SemaOpenMP.cpp.
References clang::OMPParallelMasterDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMasterTaskLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel master taskloop' after parsing of the associated statement.
Definition at line 14030 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPParallelMasterTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelMasterTaskLoopSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp parallel master taskloop simd' after parsing of the associated statement.
Definition at line 14144 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPParallelMasterTaskLoopSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPParallelSectionsDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp parallel sections' after parsing of the associated statement.
Definition at line 11352 of file SemaOpenMP.cpp.
References clang::C, clang::OMPParallelSectionsDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::CapturedStmt::getCapturedStmt(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPPartialClause | ( | Expr * | FactorExpr, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-form 'partial' clauses.
Definition at line 17424 of file SemaOpenMP.cpp.
References clang::OMPPartialClause::Create(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPClause(), ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPPartialClause().
OMPClause * SemaOpenMP::ActOnOpenMPPriorityClause | ( | Expr * | Priority, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'priority' clause.
Definition at line 23147 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getASTContext(), isNonNegativeIntegerValue(), Priority, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPPriorityClause().
OMPClause * SemaOpenMP::ActOnOpenMPPrivateClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'private' clause.
Definition at line 18485 of file SemaOpenMP.cpp.
References clang::Sema::ActOnUninitializedDecl(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPPrivateClause::Create(), clang::Sema::CurContext, clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::NamedDecl::getName(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), clang::Decl::hasAttrs(), clang::Type::isAnyPointerType(), clang::DeclContext::isDependentContext(), clang::SourceLocation::isInvalid(), clang::Decl::isInvalidDecl(), clang::isOpenMPTargetExecutionDirective(), clang::isOpenMPTaskingDirective(), clang::Type::isVariablyModifiedType(), rejectConstNotMutableType(), reportOriginalDsa(), clang::Sema::RequireCompleteType(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPExecutableDirective(), ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPPrivateClause().
OMPClause * SemaOpenMP::ActOnOpenMPProcBindClause | ( | llvm::omp::ProcBindKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'proc_bind' clause.
Definition at line 17253 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), and getListOfPossibleValues().
Referenced by ActOnOpenMPSimpleClause(), and clang::TreeTransform< Derived >::RebuildOMPProcBindClause().
OMPClause * SemaOpenMP::ActOnOpenMPReadClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'read' clause.
Definition at line 17883 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPReductionClause | ( | ArrayRef< Expr * > | VarList, |
OpenMPReductionClauseModifier | Modifier, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ModifierLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
CXXScopeSpec & | ReductionIdScopeSpec, | ||
const DeclarationNameInfo & | ReductionId, | ||
ArrayRef< Expr * > | UnresolvedReductions = std::nullopt |
||
) |
Called on well-formed 'reduction' clause.
Definition at line 20327 of file SemaOpenMP.cpp.
References actOnOMPReductionKindClause(), buildPostUpdate(), buildPreInits(), clang::OMPReductionClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getListOfPossibleValues(), clang::CXXScopeSpec::getWithLocInContext(), clang::SourceLocation::isValid(), clang::OMPC_REDUCTION_unknown, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPReductionClause().
StmtResult SemaOpenMP::ActOnOpenMPRegionEnd | ( | StmtResult | S, |
ArrayRef< OMPClause * > | Clauses | ||
) |
End of OpenMP region.
S | Statement associated with the current OpenMP region. |
Clauses | List of clauses for the current OpenMP region. |
Definition at line 4833 of file SemaOpenMP.cpp.
References clang::Sema::ActOnCapturedRegionEnd(), clang::OMPUsesAllocatorsClause::Data::AllocatorTraits, clang::C, checkOrderedOrderSpecified(), clang::OMPOrderedClause::children(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::OMPClauseWithPreInit::get(), clang::OMPClauseWithPostUpdate::get(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::OMPClause::getClauseKind(), clang::OMPClause::getEndLoc(), clang::OMPScheduleClause::getFirstScheduleModifier(), clang::OMPScheduleClause::getFirstScheduleModifierLoc(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::OMPOrderedClause::getNumForLoops(), clang::getOpenMPCaptureRegions(), clang::getOpenMPSimpleClauseTypeName(), clang::OMPScheduleClause::getSecondScheduleModifier(), clang::OMPScheduleClause::getSecondScheduleModifierLoc(), handleDeclareVariantConstructTrait(), clang::isOpenMPLoopTransformationDirective(), clang::isOpenMPPrivate(), clang::isOpenMPSimdDirective(), clang::isOpenMPTaskingDirective(), clang::isOpenMPWorksharingDirective(), clang::Sema::MarkDeclarationsReferencedInExpr(), clang::Sema::MarkVariableReferenced(), clang::SemaBase::SemaRef, and clang::StmtError().
void SemaOpenMP::ActOnOpenMPRegionStart | ( | OpenMPDirectiveKind | DKind, |
Scope * | CurScope | ||
) |
Initialization of captured region for OpenMP region.
Definition at line 4209 of file SemaOpenMP.cpp.
References clang::Sema::ActOnCapturedRegionStart(), clang::Decl::addAttr(), clang::CR_OpenMP, clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::Sema::getCurCapturedRegion(), clang::ASTContext::getFunctionType(), clang::ASTContext::getIntTypeForBitwidth(), clang::SemaBase::getLangOpts(), clang::ASTContext::getPointerType(), clang::ASTContext::getSizeType(), handleDeclareVariantConstructTrait(), clang::SemaBase::SemaRef, clang::sema::CapturedRegionScopeInfo::TheCapturedDecl, clang::FunctionProtoType::ExtProtoInfo::Variadic, clang::ASTContext::VoidPtrTy, clang::ASTContext::VoidTy, clang::CanQual< T >::withConst(), clang::QualType::withConst(), and clang::QualType::withRestrict().
OMPClause * SemaOpenMP::ActOnOpenMPRelaxedClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'relaxed' clause.
Definition at line 17947 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPReleaseClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'release' clause.
Definition at line 17942 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPRequiresDirective | ( | SourceLocation | Loc, |
ArrayRef< OMPClause * > | ClauseList | ||
) |
Called on well-formed '#pragma omp requires'.
Definition at line 3486 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), CheckOMPRequiresDecl(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::DeclContext::isFileContext(), clang::OpaquePtr< PtrTy >::make(), and clang::SemaBase::SemaRef.
OMPClause * SemaOpenMP::ActOnOpenMPReverseOffloadClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'reverse_offload' clause.
Definition at line 17983 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPSafelenClause | ( | Expr * | Length, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'safelen' clause.
Definition at line 16928 of file SemaOpenMP.cpp.
References clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPSafelenClause().
StmtResult SemaOpenMP::ActOnOpenMPScanDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp scan'.
Definition at line 11578 of file SemaOpenMP.cpp.
References clang::OMPScanDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Scope::getBreakParent(), clang::Scope::getParent(), clang::Scope::isOpenMPLoopScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPScheduleClause | ( | OpenMPScheduleClauseModifier | M1, |
OpenMPScheduleClauseModifier | M2, | ||
OpenMPScheduleClauseKind | Kind, | ||
Expr * | ChunkSize, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | M1Loc, | ||
SourceLocation | M2Loc, | ||
SourceLocation | KindLoc, | ||
SourceLocation | CommaLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'schedule' clause.
Definition at line 17621 of file SemaOpenMP.cpp.
References buildPreInits(), checkScheduleModifiers(), clang::Expr::containsUnexpandedParameterPack(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Expr::getIntegerConstantExpr(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), getOpenMPCaptureRegionForClause(), clang::getOpenMPSimpleClauseTypeName(), clang::Stmt::getSourceRange(), clang::DeclContext::isDependentContext(), clang::Expr::isInstantiationDependent(), clang::SourceLocation::isInvalid(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), clang::Sema::MakeFullExpr(), clang::OMPC_SCHEDULE_MODIFIER_last, clang::OMPC_SCHEDULE_MODIFIER_unknown, clang::OMPC_SCHEDULE_unknown, PerformOpenMPImplicitIntegerConversion(), clang::Result, and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprWithArgClause(), and clang::TreeTransform< Derived >::RebuildOMPScheduleClause().
StmtResult SemaOpenMP::ActOnOpenMPScopeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp scope' after parsing of the associated statement.
Definition at line 24247 of file SemaOpenMP.cpp.
References clang::OMPScopeDirective::Create(), clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPSectionDirective | ( | Stmt * | AStmt, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp section' after parsing of the associated statement.
Definition at line 10779 of file SemaOpenMP.cpp.
References clang::OMPSectionDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPSectionsDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp sections' after parsing of the associated statement.
Definition at line 10741 of file SemaOpenMP.cpp.
References clang::C, clang::OMPSectionsDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::CapturedStmt::getCapturedStmt(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPSeqCstClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'seq_cst' clause.
Definition at line 17927 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPSeverityClause | ( | OpenMPSeverityClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'severity' clause.
Definition at line 17312 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), getListOfPossibleValues(), and clang::OMPC_SEVERITY_unknown.
Referenced by ActOnOpenMPSimpleClause(), and clang::TreeTransform< Derived >::RebuildOMPSeverityClause().
OMPClause * SemaOpenMP::ActOnOpenMPSharedClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'shared' clause.
Definition at line 19106 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPSharedClause::Create(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getPrivateItem(), clang::DeclContext::isDependentContext(), isOpenMPCapturedDecl(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPSharedClause().
OMPClause * SemaOpenMP::ActOnOpenMPSIMDClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'simd' clause.
Definition at line 17962 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
StmtResult SemaOpenMP::ActOnOpenMPSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp simd' after parsing of the associated statement.
Definition at line 10618 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPSimdlenClause | ( | Expr * | Length, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'simdlen' clause.
Definition at line 16942 of file SemaOpenMP.cpp.
References clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPSimdlenClause().
OMPClause * SemaOpenMP::ActOnOpenMPSimpleClause | ( | OpenMPClauseKind | Kind, |
unsigned | Argument, | ||
SourceLocation | ArgumentLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 17077 of file SemaOpenMP.cpp.
References ActOnOpenMPAtClause(), ActOnOpenMPAtomicDefaultMemOrderClause(), ActOnOpenMPBindClause(), ActOnOpenMPDefaultClause(), ActOnOpenMPFailClause(), ActOnOpenMPProcBindClause(), ActOnOpenMPSeverityClause(), and ActOnOpenMPUpdateClause().
StmtResult SemaOpenMP::ActOnOpenMPSingleDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp single' after parsing of the associated statement.
Definition at line 11108 of file SemaOpenMP.cpp.
References clang::OMPSingleDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::OMPClause::getClauseKind(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPSingleExprClause | ( | OpenMPClauseKind | Kind, |
Expr * | Expr, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 15607 of file SemaOpenMP.cpp.
References ActOnOpenMPAlignClause(), ActOnOpenMPAllocatorClause(), ActOnOpenMPCollapseClause(), ActOnOpenMPDepobjClause(), ActOnOpenMPDetachClause(), ActOnOpenMPFilterClause(), ActOnOpenMPFinalClause(), ActOnOpenMPHintClause(), ActOnOpenMPMessageClause(), ActOnOpenMPNocontextClause(), ActOnOpenMPNovariantsClause(), ActOnOpenMPNumTeamsClause(), ActOnOpenMPNumThreadsClause(), ActOnOpenMPOrderedClause(), ActOnOpenMPPartialClause(), ActOnOpenMPPriorityClause(), ActOnOpenMPSafelenClause(), ActOnOpenMPSimdlenClause(), ActOnOpenMPThreadLimitClause(), and ActOnOpenMPXDynCGroupMemClause().
OMPClause * SemaOpenMP::ActOnOpenMPSingleExprWithArgClause | ( | OpenMPClauseKind | Kind, |
ArrayRef< unsigned > | Arguments, | ||
Expr * | Expr, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
ArrayRef< SourceLocation > | ArgumentsLoc, | ||
SourceLocation | DelimLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 17453 of file SemaOpenMP.cpp.
References ActOnOpenMPDefaultmapClause(), ActOnOpenMPDeviceClause(), ActOnOpenMPDistScheduleClause(), ActOnOpenMPGrainsizeClause(), ActOnOpenMPIfClause(), ActOnOpenMPNumTasksClause(), ActOnOpenMPOrderClause(), and ActOnOpenMPScheduleClause().
OMPClause * SemaOpenMP::ActOnOpenMPSizesClause | ( | ArrayRef< Expr * > | SizeExprs, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-form 'sizes' clause.
Definition at line 17403 of file SemaOpenMP.cpp.
References clang::OMPSizesClause::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::ActionResult< PtrTy, Compress >::isUsable(), and VerifyPositiveIntegerConstantInClause().
Referenced by clang::TreeTransform< Derived >::RebuildOMPSizesClause().
StmtResult SemaOpenMP::ActOnOpenMPTargetDataDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp target data' after parsing of the associated statement.
Definition at line 13541 of file SemaOpenMP.cpp.
References clang::OMPTargetDataDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), hasClauses(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp target' after parsing of the associated statement.
Definition at line 13356 of file SemaOpenMP.cpp.
References clang::OMPTargetDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), clang::Stmt::IgnoreContainers(), clang::isOpenMPTeamsDirective(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetEnterDataDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
Stmt * | AStmt | ||
) |
Called on well-formed '#pragma omp target enter data' after parsing of the associated statement.
Definition at line 13571 of file SemaOpenMP.cpp.
References clang::OMPTargetEnterDataDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), hasClauses(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetExitDataDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
Stmt * | AStmt | ||
) |
Called on well-formed '#pragma omp target exit data' after parsing of the associated statement.
Definition at line 13607 of file SemaOpenMP.cpp.
References clang::OMPTargetExitDataDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), hasClauses(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetParallelDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp target parallel' after parsing of the associated statement.
Definition at line 13422 of file SemaOpenMP.cpp.
References clang::OMPTargetParallelDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetParallelForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target parallel for' after parsing of the associated statement.
Definition at line 13453 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), clang::OMPTargetParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetParallelForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target parallel for simd' after parsing of the associated statement.
Definition at line 14469 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetParallelForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetParallelGenericLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target parallel loop' after parsing of the associated statement.
Definition at line 11059 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTargetParallelGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target simd' after parsing of the associated statement.
Definition at line 14525 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp target teams' after parsing of the associated statement.
Definition at line 14798 of file SemaOpenMP.cpp.
References clang::C, clang::OMPTargetTeamsDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), hasClauses(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsDistributeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target teams distribute' after parsing of the associated statement.
Definition at line 14841 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTargetTeamsDistributeDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsDistributeParallelForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target teams distribute parallel for' after parsing of the associated statement.
Definition at line 14884 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), clang::OMPTargetTeamsDistributeParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target teams distribute parallel for simd' after parsing of the associated statement.
Definition at line 14939 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetTeamsDistributeParallelForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsDistributeSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target teams distribute simd' after parsing of the associated statement.
Definition at line 14998 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetTeamsDistributeSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetTeamsGenericLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp target teams loop' after parsing of the associated statement.
Definition at line 10960 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTargetTeamsGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), clang::StmtError(), and teamsLoopCanBeParallelFor().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTargetUpdateDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
Stmt * | AStmt | ||
) |
Called on well-formed '#pragma omp target update'.
Definition at line 13643 of file SemaOpenMP.cpp.
References clang::OMPTargetUpdateDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getOpenMPCaptureLevels(), hasClauses(), isClauseMappable(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTaskDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp task' after parsing of the associated statement.
Definition at line 11414 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), clang::OMPTaskDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTaskgroupDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp taskgroup'.
Definition at line 11502 of file SemaOpenMP.cpp.
References clang::OMPTaskgroupDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTaskLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp taskloop' after parsing of the associated statement.
Definition at line 13766 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTaskLoopSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp taskloop simd' after parsing of the associated statement.
Definition at line 13804 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPTaskLoopSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::Sema::getCurScope(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPTaskReductionClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | ColonLoc, | ||
SourceLocation | EndLoc, | ||
CXXScopeSpec & | ReductionIdScopeSpec, | ||
const DeclarationNameInfo & | ReductionId, | ||
ArrayRef< Expr * > | UnresolvedReductions = std::nullopt |
||
) |
Called on well-formed 'task_reduction' clause.
Definition at line 20372 of file SemaOpenMP.cpp.
References actOnOMPReductionKindClause(), buildPostUpdate(), buildPreInits(), clang::OMPTaskReductionClause::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::CXXScopeSpec::getWithLocInContext(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPTaskReductionClause().
StmtResult SemaOpenMP::ActOnOpenMPTaskwaitDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp taskwait'.
Definition at line 11484 of file SemaOpenMP.cpp.
References clang::OMPTaskwaitDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTaskyieldDirective | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp taskyield'.
Definition at line 11442 of file SemaOpenMP.cpp.
References clang::OMPTaskyieldDirective::Create(), and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp teams' after parsing of the associated statement.
Definition at line 13681 of file SemaOpenMP.cpp.
References clang::OMPTeamsDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::SemaBase::getLangOpts(), clang::HIP, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsDistributeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp teams distribute' after parsing of the associated statement.
Definition at line 14581 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTeamsDistributeDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsDistributeParallelForDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp teams distribute parallel for' after parsing of the associated statement.
Definition at line 14749 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTeamsDistributeParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsDistributeParallelForSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp teams distribute parallel for simd' after parsing of the associated statement.
Definition at line 14687 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTeamsDistributeParallelForSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsDistributeSimdDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp teams distribute simd' after parsing of the associated statement.
Definition at line 14626 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), clang::C, checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTeamsDistributeSimdDirective::Create(), clang::Sema::CurContext, DSAStack, FinishOpenMPLinearClause(), clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), clang::Sema::getCurScope(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPTeamsGenericLoopDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
VarsWithInheritedDSAType & | VarsWithImplicitDSA | ||
) |
Called on well-formed '#pragma omp teams loop' after parsing of the associated statement.
Definition at line 10911 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTeamsGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedStmt(), getCollapseNumberExpr(), getOpenMPCaptureLevels(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, clang::Sema::setFunctionHasBranchProtectedScope(), clang::CapturedDecl::setNothrow(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPThreadLimitClause | ( | Expr * | ThreadLimit, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'thread_limit' clause.
Definition at line 23119 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), isNonNegativeIntegerValue(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPThreadLimitClause().
SemaOpenMP::DeclGroupPtrTy SemaOpenMP::ActOnOpenMPThreadprivateDirective | ( | SourceLocation | Loc, |
ArrayRef< Expr * > | VarList | ||
) |
Called on well-formed '#pragma omp threadprivate'.
Definition at line 3188 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), CheckOMPThreadPrivateDecl(), clang::Sema::CurContext, clang::OpaquePtr< PtrTy >::make(), and clang::SemaBase::SemaRef.
OMPClause * SemaOpenMP::ActOnOpenMPThreadsClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'threads' clause.
Definition at line 17957 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
StmtResult SemaOpenMP::ActOnOpenMPTileDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp tile' after parsing of its clauses and the associated statement.
Definition at line 15104 of file SemaOpenMP.cpp.
References clang::Sema::ActOnConditionalOp(), clang::Sema::ActOnIntegerConstant(), clang::Sema::AddInitializerToDecl(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), buildVarDecl(), clang::OMPLoopBasedDirective::HelperExprs::Cond, clang::OMPLoopBasedDirective::HelperExprs::Counters, clang::DeclGroupRef::Create(), clang::CompoundStmt::Create(), clang::OMPTileDirective::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::DeclRefExpr::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::Sema::getCurScope(), clang::DeclRefExpr::getDecl(), clang::DeclRefExpr::getEndLoc(), clang::Stmt::getEndLoc(), clang::Expr::getExprLoc(), clang::Preprocessor::getIdentifierTable(), clang::OMPSizesClause::getNumSizes(), clang::OMPSizesClause::getSizesRefs(), clang::Expr::getType(), clang::OMPLoopBasedDirective::HelperExprs::Inc, clang::OMPLoopBasedDirective::HelperExprs::Init, clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, P, clang::Sema::PP, clang::OMPLoopBasedDirective::HelperExprs::PreInits, clang::SemaBase::SemaRef, clang::StmtError(), and clang::OMPLoopBasedDirective::HelperExprs::Updates.
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPToClause | ( | ArrayRef< OpenMPMotionModifierKind > | MotionModifiers, |
ArrayRef< SourceLocation > | MotionModifiersLoc, | ||
CXXScopeSpec & | MapperIdScopeSpec, | ||
DeclarationNameInfo & | MapperId, | ||
SourceLocation | ColonLoc, | ||
ArrayRef< Expr * > | VarList, | ||
const OMPVarListLocTy & | Locs, | ||
ArrayRef< Expr * > | UnresolvedMappers = std::nullopt |
||
) |
Called on well-formed 'to' clause.
Definition at line 23759 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPToClause::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::CXXScopeSpec::getWithLocInContext(), clang::NumberOfOMPMotionModifiers, clang::OMPC_MOTION_MODIFIER_unknown, clang::SemaBase::SemaRef, and clang::OMPVarListLocTy::StartLoc.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPToClause().
OMPClause * SemaOpenMP::ActOnOpenMPUnifiedAddressClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'unified_address' clause.
Definition at line 17972 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPUnifiedSharedMemoryClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'unified_address' clause.
Definition at line 17978 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
StmtResult SemaOpenMP::ActOnOpenMPUnrollDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp unroll' after parsing of its clauses and the associated statement.
Definition at line 15321 of file SemaOpenMP.cpp.
References clang::Sema::ActOnIntegerConstant(), clang::Sema::AddInitializerToDecl(), clang::AssertSuccess(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), buildVarDecl(), checkMutuallyExclusiveClauses(), clang::OMPLoopBasedDirective::HelperExprs::Cond, clang::OMPLoopBasedDirective::HelperExprs::Counters, clang::CompoundStmt::Create(), clang::IntegerLiteral::Create(), clang::AttributedStmt::Create(), clang::OMPUnrollDirective::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::Sema::getCurScope(), clang::Stmt::getEndLoc(), clang::Expr::getExprLoc(), clang::OMPPartialClause::getFactor(), clang::Preprocessor::getIdentifierTable(), clang::OMPLoopBasedDirective::HelperExprs::Inc, clang::OMPLoopBasedDirective::HelperExprs::Init, clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, P, clang::Sema::PP, clang::OMPLoopBasedDirective::HelperExprs::PreInits, clang::SemaBase::SemaRef, clang::StmtError(), clang::OMPLoopBasedDirective::HelperExprs::Updates, and VerifyPositiveIntegerConstantInClause().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPUntiedClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'untied' clause.
Definition at line 17872 of file SemaOpenMP.cpp.
References DSAStack, and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPUpdateClause | ( | OpenMPDependClauseKind | Kind, |
SourceLocation | KindLoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'update' clause.
Definition at line 17381 of file SemaOpenMP.cpp.
References clang::OMPUpdateClause::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getListOfPossibleValues(), and clang::OMPC_DEPEND_unknown.
Referenced by ActOnOpenMPClause(), and ActOnOpenMPSimpleClause().
OMPClause * SemaOpenMP::ActOnOpenMPUpdateClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'update' clause.
Definition at line 17893 of file SemaOpenMP.cpp.
References clang::OMPUpdateClause::Create(), and clang::SemaBase::getASTContext().
OMPClause * SemaOpenMP::ActOnOpenMPUseClause | ( | Expr * | InteropVar, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | VarLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'use' clause.
Definition at line 18151 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext(), isValidInteropVariable(), and clang::SemaBase::SemaRef.
Referenced by clang::TreeTransform< Derived >::RebuildOMPUseClause().
OMPClause * SemaOpenMP::ActOnOpenMPUseDeviceAddrClause | ( | ArrayRef< Expr * > | VarList, |
const OMPVarListLocTy & | Locs | ||
) |
Called on well-formed 'use_device_addr' clause.
Definition at line 23920 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPUseDeviceAddrClause::Create(), clang::Sema::DefaultFunctionArrayLvalueConversion(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), getPrivateItem(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPUseDeviceAddrClause().
OMPClause * SemaOpenMP::ActOnOpenMPUseDevicePtrClause | ( | ArrayRef< Expr * > | VarList, |
const OMPVarListLocTy & | Locs | ||
) |
Called on well-formed 'use_device_ptr' clause.
Definition at line 23834 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::Sema::AddInitializerToDecl(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPUseDevicePtrClause::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::NamedDecl::getName(), getPrivateItem(), clang::ValueDecl::getType(), clang::Decl::hasAttrs(), clang::Type::isPointerType(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPUseDevicePtrClause().
OMPClause * SemaOpenMP::ActOnOpenMPUsesAllocatorClause | ( | SourceLocation | StartLoc, |
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< UsesAllocatorsData > | Data | ||
) |
Called on well-formed 'uses_allocators' clause.
Definition at line 24360 of file SemaOpenMP.cpp.
References clang::OMPUsesAllocatorsClause::Data::Allocator, clang::SemaOpenMP::UsesAllocatorsData::Allocator, clang::OMPUsesAllocatorsClause::Data::AllocatorTraits, clang::SemaOpenMP::UsesAllocatorsData::AllocatorTraits, clang::OMPUsesAllocatorsClause::Create(), clang::Data, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, findOMPAllocatorHandleT(), findOMPAlloctraitT(), clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), getAllocatorKind(), clang::Type::getAsArrayTypeUnsafe(), clang::SemaBase::getASTContext(), clang::DeclRefExpr::getDecl(), clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::ASTContext::hasSameUnqualifiedType(), clang::ASTContext::Idents, clang::Expr::IgnoreParenImpCasts(), clang::QualType::isConstant(), clang::Expr::isLValue(), clang::QualType::isNull(), clang::Expr::isTypeDependent(), clang::Sema::LookupAnyName, clang::Sema::LookupSingleName(), clang::OMPUsesAllocatorsClause::Data::LParenLoc, clang::SemaOpenMP::UsesAllocatorsData::LParenLoc, clang::OMPUsesAllocatorsClause::Data::RParenLoc, clang::SemaOpenMP::UsesAllocatorsData::RParenLoc, clang::SemaBase::SemaRef, clang::Sema::TUScope, and clang::ASTContext::typesAreCompatible().
Referenced by clang::TreeTransform< Derived >::RebuildOMPUsesAllocatorsClause().
OMPClause * SemaOpenMP::ActOnOpenMPVarListClause | ( | OpenMPClauseKind | Kind, |
ArrayRef< Expr * > | Vars, | ||
const OMPVarListLocTy & | Locs, | ||
OpenMPVarListDataTy & | Data | ||
) |
Definition at line 18270 of file SemaOpenMP.cpp.
References ActOnOpenMPAffinityClause(), ActOnOpenMPAlignedClause(), ActOnOpenMPAllocateClause(), ActOnOpenMPCopyinClause(), ActOnOpenMPCopyprivateClause(), ActOnOpenMPDependClause(), ActOnOpenMPDoacrossClause(), ActOnOpenMPExclusiveClause(), ActOnOpenMPFirstprivateClause(), ActOnOpenMPFlushClause(), ActOnOpenMPFromClause(), ActOnOpenMPHasDeviceAddrClause(), ActOnOpenMPInclusiveClause(), ActOnOpenMPInReductionClause(), ActOnOpenMPIsDevicePtrClause(), ActOnOpenMPLastprivateClause(), ActOnOpenMPLinearClause(), ActOnOpenMPMapClause(), ActOnOpenMPNontemporalClause(), ActOnOpenMPPrivateClause(), ActOnOpenMPReductionClause(), ActOnOpenMPSharedClause(), ActOnOpenMPTaskReductionClause(), ActOnOpenMPToClause(), ActOnOpenMPUseDeviceAddrClause(), ActOnOpenMPUseDevicePtrClause(), clang::Data, clang::OMPVarListLocTy::EndLoc, clang::OMPVarListLocTy::LParenLoc, clang::OMPC_DEPEND_unknown, clang::OMPC_LASTPRIVATE_unknown, clang::OMPC_LINEAR_unknown, clang::OMPC_MAP_unknown, clang::OMPC_REDUCTION_unknown, and clang::OMPVarListLocTy::StartLoc.
OMPClause * SemaOpenMP::ActOnOpenMPWeakClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'weak' clause.
Definition at line 17952 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * clang::SemaOpenMP::ActOnOpenMPWhenClause | ( | OMPTraitInfo & | TI, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'when' clause.
OMPClause * SemaOpenMP::ActOnOpenMPWriteClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'write' clause.
Definition at line 17888 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPXAttributeClause | ( | ArrayRef< const Attr * > | Attrs, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on a well-formed 'ompx_attribute' clause.
Definition at line 24615 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by clang::TreeTransform< Derived >::RebuildOMPXAttributeClause().
OMPClause * SemaOpenMP::ActOnOpenMPXBareClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on a well-formed 'ompx_bare' clause.
Definition at line 24623 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause(), and clang::TreeTransform< Derived >::RebuildOMPXBareClause().
OMPClause * SemaOpenMP::ActOnOpenMPXDynCGroupMemClause | ( | Expr * | Size, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on a well-formed 'ompx_dyn_cgroup_mem' clause.
Definition at line 24551 of file SemaOpenMP.cpp.
References buildPreInits(), clang::Sema::CurContext, DSAStack, clang::Sema::FullExprArg::get(), clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), getOpenMPCaptureRegionForClause(), clang::DeclContext::isDependentContext(), isNonNegativeIntegerValue(), clang::Sema::MakeFullExpr(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPXDynCGroupMemClause().
void SemaOpenMP::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope | ( | Scope * | S, |
Declarator & | D, | ||
MultiTemplateParamsArg | TemplateParameterLists, | ||
SmallVectorImpl< FunctionDecl * > & | Bases | ||
) |
The declarator D
defines a function in the scope S
which is nested in an omp begin/end declare variant
scope.
In this method we create a declaration for D
and rename D
according to the OpenMP context selector of the surrounding scope. Return all base functions in Bases
.
Definition at line 7392 of file SemaOpenMP.cpp.
References clang::Consteval, clang::Constexpr, clang::Declaration, clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::Declarator::getBeginLoc(), clang::DeclSpec::getConstexprSpecifier(), clang::Declarator::getCXXScopeSpec(), clang::Declarator::getDeclSpec(), clang::Declarator::getIdentifier(), clang::Declarator::getIdentifierLoc(), clang::IdentifierInfo::getName(), clang::getOpenMPVariantManglingSeparatorStr(), clang::ValueDecl::getType(), clang::TypeSourceInfo::getType(), clang::Sema::GetTypeForDeclarator(), clang::Sema::HandleDeclarator(), clang::ASTContext::Idents, clang::FunctionDecl::isConsteval(), clang::FunctionDecl::isConstexpr(), clang::Type::isDependentType(), clang::QualType::isNull(), clang::Sema::LookupOrdinaryName, clang::Sema::LookupParsedName(), clang::ASTContext::mergeFunctionTypes(), clang::SemaBase::SemaRef, clang::Declarator::setFunctionDefinitionKind(), clang::Declarator::SetIdentifier(), clang::Decl::setImplicit(), and clang::IdentifierInfo::setMangledOpenMPVariantName().
Referenced by clang::Sema::ActOnDeclarator(), and clang::Sema::ActOnStartOfFunctionDef().
bool SemaOpenMP::ActOnStartOpenMPDeclareTargetContext | ( | DeclareTargetContextInfo & | DTCI | ) |
Called on the start of target region i.e. '#pragma omp declare target'.
Definition at line 23454 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::Sema::getCurLexicalContext(), clang::SemaBase::getLangOpts(), clang::HIP, clang::DeclContext::isExternCContext(), clang::DeclContext::isExternCXXContext(), clang::DeclContext::isFileContext(), clang::SemaOpenMP::DeclareTargetContextInfo::Loc, and clang::SemaBase::SemaRef.
void SemaOpenMP::checkDeclIsAllowedInOpenMPTarget | ( | Expr * | E, |
Decl * | D, | ||
SourceLocation | IdLoc = SourceLocation() |
||
) |
Check declaration inside target region.
Definition at line 23639 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), checkDeclInTargetContext(), checkValueDeclInTarget(), clang::SemaBase::Diag(), DSAStack, clang::SemaOpenMP::DeclareTargetContextInfo::DT, clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Expr::getExprLoc(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::Decl::getSourceRange(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::SemaOpenMP::DeclareTargetContextInfo::Indirect, clang::Type::isIncompleteType(), isInOpenMPDeclareTargetContext(), clang::Decl::isInvalidDecl(), clang::SourceLocation::isValid(), clang::SemaOpenMP::DeclareTargetContextInfo::Loc, reportOriginalDsa(), and clang::SemaBase::SemaRef.
Referenced by clang::Sema::ActOnDecompositionDeclarator(), ActOnOpenMPDeclareTargetName(), clang::Sema::HandleDeclarator(), isOpenMPCapturedDecl(), lookupOpenMPDeclareTargetName(), and MarkExprReferenced().
OMPRequiresDecl * SemaOpenMP::CheckOMPRequiresDecl | ( | SourceLocation | Loc, |
ArrayRef< OMPClause * > | Clauses | ||
) |
Check restrictions on Requires directive.
For target specific clauses, the requires directive cannot be specified after the handling of any of the target regions in the current compilation unit.
Definition at line 3560 of file SemaOpenMP.cpp.
References clang::OMPRequiresDecl::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Sema::getCurLexicalContext(), clang::SourceLocation::isInvalid(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPRequiresDirective().
OMPThreadPrivateDecl * SemaOpenMP::CheckOMPThreadPrivateDecl | ( | SourceLocation | Loc, |
ArrayRef< Expr * > | VarList | ||
) |
Builds a new OpenMPThreadPrivateDecl and checks its correctness.
Definition at line 3228 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::AS_public, clang::OMPThreadPrivateDecl::Create(), clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, clang::VarDecl::getAnyInitializer(), clang::SemaBase::getASTContext(), clang::ASTContext::getASTMutationListener(), clang::Sema::getCurLexicalContext(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::VarDecl::getStorageClass(), clang::VarDecl::getTLSKind(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::Init, clang::Type::isDependentType(), clang::Type::isInstantiationDependentType(), clang::VarDecl::isLocalVarDecl(), clang::Type::isReferenceType(), clang::VarDecl::isThisDeclarationADefinition(), clang::Decl::markUsed(), clang::Sema::RequireCompleteType(), clang::SC_Register, clang::SemaBase::SemaRef, clang::Decl::setAccess(), clang::Decl::setReferenced(), and clang::VarDecl::TLS_None.
Referenced by ActOnOpenMPThreadprivateDirective().
std::optional< std::pair< FunctionDecl *, Expr * > > SemaOpenMP::checkOpenMPDeclareVariantFunction | ( | SemaOpenMP::DeclGroupPtrTy | DG, |
Expr * | VariantRef, | ||
OMPTraitInfo & | TI, | ||
unsigned | NumAppendArgs, | ||
SourceRange | SR | ||
) |
Checks '#pragma omp declare variant' variant function and original functions after parsing of the associated method/function.
DG | Function declaration to which declare variant directive is applied to. |
VariantRef | Expression that references the variant function, which must be used instead of the original one, specified in DG . |
TI | The trait info object representing the match clause. |
NumAppendArgs | The number of omp_interop_t arguments to account for in checking. |
Definition at line 7619 of file SemaOpenMP.cpp.
References clang::Sema::AA_Converting, clang::OMPTraitInfo::anyScoreOrCondition(), clang::Sema::areMultiversionVariantFunctionsCompatible(), bool, clang::Sema::CheckPlaceholderExpr(), clang::Expr::containsUnexpandedParameterPack(), clang::CPlusPlus, clang::Sema::CreateBuiltinUnaryOp(), clang::ASTContext::DeclMustBeEmitted(), clang::Definition, clang::SemaBase::Diag(), clang::OpaquePtr< PtrTy >::get(), clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), clang::Type::getAsAdjusted(), clang::SemaBase::getASTContext(), clang::SourceRange::getBegin(), clang::Stmt::getBeginLoc(), clang::FieldDecl::getCanonicalDecl(), clang::Sema::getCurScope(), clang::Expr::getExprLoc(), clang::ASTContext::getFunctionType(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), clang::ASTContext::getMemberPointerType(), clang::ASTContext::getPointerType(), getRange(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::Expr::getType(), clang::ASTContext::getTypeDeclType(), clang::QualType::getTypePtr(), clang::QualType::getUnqualifiedType(), clang::Decl::hasAttr(), clang::ASTContext::Idents, clang::Expr::IgnoreImplicit(), clang::Expr::IgnoreParenImpCasts(), clang::ImplicitConversionSequence::isFailure(), clang::Type::isFunctionNoProtoType(), clang::Type::isFunctionProtoType(), clang::Type::isFunctionType(), clang::Expr::isInstantiationDependent(), clang::Expr::isIntegerConstantExpr(), clang::QualType::isNull(), clang::Expr::isTypeDependent(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::Decl::isUsed(), clang::Expr::isValueDependent(), clang::Sema::LookupName(), clang::Sema::LookupOrdinaryName, clang::ASTContext::mergeFunctionTypes(), clang::Sema::PDiag(), clang::Sema::PerformImplicitConversion(), clang::Result, clang::SemaBase::SemaRef, setPrototype(), and clang::Sema::TryImplicitConversion().
Referenced by instantiateOMPDeclareVariantAttr().
bool SemaOpenMP::CheckOpenMPLinearDecl | ( | const ValueDecl * | D, |
SourceLocation | ELoc, | ||
OpenMPLinearClauseKind | LinKind, | ||
QualType | Type, | ||
bool | IsDeclareSimd = false |
||
) |
Checks that the specified declaration matches requirements for the linear decls.
Definition at line 20423 of file SemaOpenMP.cpp.
References clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::Decl::getLocation(), clang::getOpenMPSimpleClauseTypeName(), clang::Type::isReferenceType(), rejectConstNotMutableType(), clang::Sema::RequireCompleteType(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPDeclareSimdDirective(), and ActOnOpenMPLinearClause().
bool SemaOpenMP::CheckOpenMPLinearModifier | ( | OpenMPLinearClauseKind | LinKind, |
SourceLocation | LinLoc | ||
) |
Checks correctness of linear modifiers.
Definition at line 20412 of file SemaOpenMP.cpp.
References clang::CPlusPlus, clang::SemaBase::Diag(), clang::SemaBase::getLangOpts(), and clang::OMPC_LINEAR_unknown.
Referenced by ActOnOpenMPLinearClause().
SemaBase::SemaDiagnosticBuilder SemaOpenMP::diagIfOpenMPDeviceCode | ( | SourceLocation | Loc, |
unsigned | DiagID, | ||
const FunctionDecl * | FD | ||
) |
Creates a SemaDiagnosticBuilder that emits the diagnostic if the current context is "used as device code".
declare target
function or it is known that the function is emitted for the device, emits the diagnostics immediately.declare target
function and we are compiling for the device, creates a diagnostic which is emitted if and when we realize that the function will be codegen'ed.Example usage:
// Variable-length arrays are not allowed in NVPTX device code. if (diagIfOpenMPDeviceCode(Loc, diag::err_vla_unsupported)) return ExprError(); // Otherwise, continue parsing as normal.
Definition at line 2051 of file SemaOpenMP.cpp.
References clang::Sema::CUDADiscarded, clang::Sema::Emitted, clang::Sema::getEmissionStatus(), clang::SemaBase::getLangOpts(), isOpenMPDeviceDelayedContext(), clang::Sema::OMPDiscarded, clang::SemaBase::SemaRef, clang::Sema::TemplateDiscarded, and clang::Sema::Unknown.
SemaBase::SemaDiagnosticBuilder SemaOpenMP::diagIfOpenMPHostCode | ( | SourceLocation | Loc, |
unsigned | DiagID, | ||
const FunctionDecl * | FD | ||
) |
Creates a SemaDiagnosticBuilder that emits the diagnostic if the current context is "used as host code".
declare target
function or it is known that the function is emitted for the host, emits the diagnostics immediately.Example usage:
// Variable-length arrays are not allowed in NVPTX device code. if (diagIfOpenMPHostode(Loc, diag::err_vla_unsupported)) return ExprError(); // Otherwise, continue parsing as normal.
Definition at line 2089 of file SemaOpenMP.cpp.
References clang::Sema::CUDADiscarded, clang::Sema::Emitted, clang::Sema::getEmissionStatus(), clang::SemaBase::getLangOpts(), clang::Sema::OMPDiscarded, clang::SemaBase::SemaRef, clang::Sema::TemplateDiscarded, and clang::Sema::Unknown.
void SemaOpenMP::DiagnoseUnterminatedOpenMPDeclareTarget | ( | ) |
Report unterminated 'omp declare target' or 'omp begin declare target' at the end of a compilation unit.
Definition at line 23489 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaOpenMP::DeclareTargetContextInfo::Kind, and clang::SemaOpenMP::DeclareTargetContextInfo::Loc.
Referenced by clang::Sema::ActOnEndOfTranslationUnit().
void SemaOpenMP::EndOpenMPClause | ( | ) |
End analysis of clauses.
Definition at line 2796 of file SemaOpenMP.cpp.
References clang::Sema::CleanupVarDeclMarking(), DSAStack, and clang::SemaBase::SemaRef.
void SemaOpenMP::EndOpenMPDSABlock | ( | Stmt * | CurDirective | ) |
Called on end of data sharing attribute block.
Definition at line 2882 of file SemaOpenMP.cpp.
References clang::Sema::ActOnUninitializedDecl(), clang::OMPUsesAllocatorsClause::Data::Allocator, buildDeclRefExpr(), buildVarDecl(), clang::C, checkAllocateClauses(), checkReductionClauses(), clang::Sema::CurContext, clang::SemaBase::Diag(), DSAStack, clang::Decl::getAttrs(), clang::NamedDecl::getName(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::Decl::getSourceRange(), clang::ValueDecl::getType(), clang::Decl::hasAttrs(), clang::Expr::IgnoreParenImpCasts(), clang::DeclContext::isDependentContext(), clang::Decl::isInvalidDecl(), reportOriginalDsa(), and clang::SemaBase::SemaRef.
void SemaOpenMP::finalizeOpenMPDelayedAnalysis | ( | const FunctionDecl * | Caller, |
const FunctionDecl * | Callee, | ||
SourceLocation | Loc | ||
) |
Finishes analysis of the deferred functions calls that may be declared as host/nohost during device/host compilation.
Definition at line 2726 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getLangOpts(), clang::Redeclarable< decl_type >::getMostRecentDecl(), and clang::getOpenMPSimpleClauseTypeName().
ExprResult SemaOpenMP::getOpenMPCapturedExpr | ( | VarDecl * | Capture, |
ExprValueKind | VK, | ||
ExprObjectKind | OK, | ||
SourceLocation | Loc | ||
) |
Definition at line 18465 of file SemaOpenMP.cpp.
References clang::Sema::BuildDeclRefExpr(), clang::CPlusPlus, clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::DefaultLvalueConversion(), clang::ExprError(), clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getLangOpts(), clang::Expr::isGLValue(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OK_Ordinary, clang::SemaBase::SemaRef, and clang::VK_LValue.
Referenced by clang::Sema::BuildFieldReferenceExpr().
|
static |
Return the number of captured regions created for an OpenMP directive.
Definition at line 4663 of file SemaOpenMP.cpp.
References clang::getOpenMPCaptureRegions().
Referenced by ActOnOpenMPDistributeParallelForDirective(), ActOnOpenMPDistributeParallelForSimdDirective(), ActOnOpenMPDistributeSimdDirective(), ActOnOpenMPExecutableDirective(), ActOnOpenMPParallelGenericLoopDirective(), ActOnOpenMPParallelMaskedTaskLoopDirective(), ActOnOpenMPParallelMaskedTaskLoopSimdDirective(), ActOnOpenMPParallelMasterTaskLoopDirective(), ActOnOpenMPParallelMasterTaskLoopSimdDirective(), ActOnOpenMPTargetDirective(), ActOnOpenMPTargetEnterDataDirective(), ActOnOpenMPTargetExitDataDirective(), ActOnOpenMPTargetParallelDirective(), ActOnOpenMPTargetParallelForDirective(), ActOnOpenMPTargetParallelForSimdDirective(), ActOnOpenMPTargetParallelGenericLoopDirective(), ActOnOpenMPTargetSimdDirective(), ActOnOpenMPTargetTeamsDirective(), ActOnOpenMPTargetTeamsDistributeDirective(), ActOnOpenMPTargetTeamsDistributeParallelForDirective(), ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective(), ActOnOpenMPTargetTeamsDistributeSimdDirective(), ActOnOpenMPTargetTeamsGenericLoopDirective(), ActOnOpenMPTargetUpdateDirective(), ActOnOpenMPTeamsDistributeDirective(), ActOnOpenMPTeamsDistributeParallelForDirective(), ActOnOpenMPTeamsDistributeParallelForSimdDirective(), ActOnOpenMPTeamsDistributeSimdDirective(), ActOnOpenMPTeamsGenericLoopDirective(), and isOpenMPGlobalCapturedDecl().
const ValueDecl * SemaOpenMP::getOpenMPDeclareMapperVarName | ( | ) | const |
Definition at line 23086 of file SemaOpenMP.cpp.
References DSAStack, and clang::SemaBase::getLangOpts().
Referenced by clang::Sema::DiagnoseUseOfDecl().
|
inline |
Check if there is an active global omp assumes
directive.
Definition at line 244 of file SemaOpenMP.h.
|
inline |
Check if there is an active global omp begin assumes
directive.
Definition at line 241 of file SemaOpenMP.h.
Referenced by ActOnOpenMPEndAssumesDirective().
|
inline |
Return true inside OpenMP declare target region.
Definition at line 369 of file SemaOpenMP.h.
Referenced by checkDeclIsAllowedInOpenMPTarget(), isOpenMPCapturedDecl(), and MarkExprReferenced().
|
inline |
Can we exit an OpenMP declare variant scope at the moment.
Definition at line 109 of file SemaOpenMP.h.
Referenced by ActOnOpenMPEndDeclareVariant().
bool SemaOpenMP::isInOpenMPTargetExecutionDirective | ( | ) | const |
Return true inside OpenMP target region.
Definition at line 2318 of file SemaOpenMP.cpp.
References DSAStack, and clang::isOpenMPTargetExecutionDirective().
Referenced by isOpenMPCapturedDecl(), isOpenMPDeviceDelayedContext(), and isOpenMPGlobalCapturedDecl().
bool SemaOpenMP::isInOpenMPTaskUntiedContext | ( | ) | const |
Return true if currently in OpenMP task with untied clause context.
Definition at line 2313 of file SemaOpenMP.cpp.
References DSAStack, and clang::isOpenMPTaskingDirective().
Referenced by clang::Sema::BuildArrayType().
bool SemaOpenMP::isOpenMPCapturedByRef | ( | const ValueDecl * | D, |
unsigned | Level, | ||
unsigned | OpenMPCaptureLevel | ||
) | const |
Return true if the provided declaration VD should be captured by reference.
Level | Relative level of nested OpenMP construct for that the check is performed. |
OpenMPCaptureLevel | Capture level within an OpenMP construct. |
Definition at line 2129 of file SemaOpenMP.cpp.
References clang::Type::castAs(), DSAStack, clang::ASTContext::getAlignOfGlobalVarInChars(), clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), clang::SemaBase::getLangOpts(), clang::QualType::getNonReferenceType(), clang::ValueDecl::getType(), clang::ASTContext::getTypeAlignInChars(), clang::ASTContext::getTypeSizeInChars(), clang::ASTContext::getUIntPtrType(), getVariableCategoryFromDecl(), clang::Decl::hasAttr(), clang::Type::isAnyPointerType(), clang::isOpenMPTargetExecutionDirective(), clang::Type::isPointerType(), clang::Type::isReferenceType(), clang::Type::isScalarType(), and clang::Last.
Referenced by captureInCapturedRegion().
VarDecl * SemaOpenMP::isOpenMPCapturedDecl | ( | ValueDecl * | D, |
bool | CheckScopeInfo = false , |
||
unsigned | StopAt = 0 |
||
) |
Check if the specified variable is used in one of the private clauses (private, firstprivate, lastprivate, reduction etc.) in OpenMP constructs.
Definition at line 2352 of file SemaOpenMP.cpp.
References buildCaptureDecl(), clang::Sema::BuildCXXThisExpr(), buildDeclRefExpr(), clang::Sema::BuildMemberExpr(), clang::C, checkDeclIsAllowedInOpenMPTarget(), clang::CR_OpenMP, clang::Sema::CurContext, DSAStack, clang::Sema::FunctionScopes, clang::Decl::getAccess(), getCanonicalDecl(), clang::Sema::getCurBlock(), clang::Sema::getCurCapturedRegion(), clang::Sema::getCurLambda(), clang::Sema::getCurrentThisType(), clang::DeclRefExpr::getDecl(), clang::NamedDecl::getIdentifier(), clang::SemaBase::getLangOpts(), clang::QualType::getNonReferenceType(), clang::getOpenMPCaptureRegions(), clang::DeclContext::getParent(), clang::ValueDecl::getType(), clang::VarDecl::hasLocalStorage(), clang::VarDecl::isConstexpr(), isInOpenMPDeclareTargetContext(), isInOpenMPTargetExecutionDirective(), clang::QualType::isNull(), clang::isOpenMPPrivate(), clang::isOpenMPThreadPrivate(), clang::DeclAccessPair::make(), clang::OK_Ordinary, clang::sema::CapturedRegionScopeInfo::OpenMPCaptureLevel, clang::sema::CapturedRegionScopeInfo::OpenMPLevel, clang::SemaBase::SemaRef, and clang::VK_LValue.
Referenced by actOnOMPReductionKindClause(), ActOnOpenMPAlignedClause(), ActOnOpenMPCopyprivateClause(), ActOnOpenMPFirstprivateClause(), ActOnOpenMPLastprivateClause(), ActOnOpenMPLinearClause(), ActOnOpenMPLoopInitialization(), ActOnOpenMPSharedClause(), buildCapture(), captureInBlock(), and captureInCapturedRegion().
Definition at line 23071 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), clang::VarDecl::getCanonicalDecl(), clang::DeclRefExpr::getDecl(), clang::SemaBase::getLangOpts(), and clang::VarDecl::isUsableInConstantExpressions().
bool SemaOpenMP::isOpenMPGlobalCapturedDecl | ( | ValueDecl * | D, |
unsigned | Level, | ||
unsigned | CaptureLevel | ||
) | const |
Check if the specified global variable must be captured by outer capture regions.
Level | Relative level of nested OpenMP construct for that the check is performed. |
Definition at line 2682 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getLangOpts(), getOpenMPCaptureLevels(), clang::VarDecl::hasLocalStorage(), and isInOpenMPTargetExecutionDirective().
Referenced by clang::Sema::tryCaptureVariable().
OpenMPClauseKind SemaOpenMP::isOpenMPPrivateDecl | ( | ValueDecl * | D, |
unsigned | Level, | ||
unsigned | CapLevel | ||
) | const |
Check if the specified variable is used in 'private' clause.
Level | Relative level of nested OpenMP construct for that the check is performed. |
Definition at line 2532 of file SemaOpenMP.cpp.
References clang::C, DSAStack, clang::Type::getAsCXXRecordDecl(), clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), clang::QualType::getCanonicalType(), clang::SemaBase::getLangOpts(), clang::QualType::getNonReferenceType(), clang::getOpenMPCaptureRegions(), clang::ValueDecl::getType(), clang::isOpenMPLoopDirective(), clang::isOpenMPLoopTransformationDirective(), clang::isOpenMPPrivate(), clang::isOpenMPSimdDirective(), clang::isOpenMPTargetExecutionDirective(), clang::isOpenMPTaskingDirective(), clang::isOpenMPTaskLoopDirective(), and clang::QualType::isTriviallyCopyableType().
Referenced by captureInCapturedRegion(), and clang::Sema::tryCaptureVariable().
The member expression(this->fd) needs to be rebuilt in the template instantiation to generate private copy for OpenMP when default clause is used.
The function will return true if default cluse is used.
Definition at line 2329 of file SemaOpenMP.cpp.
References clang::C, DSAStack, and clang::isOpenMPPrivate().
bool SemaOpenMP::isOpenMPTargetCapturedDecl | ( | const ValueDecl * | D, |
unsigned | Level, | ||
unsigned | CaptureLevel | ||
) | const |
Check if the specified variable is captured by 'target' directive.
Level | Relative level of nested OpenMP construct for that the check is performed. |
Definition at line 2668 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getLangOpts(), clang::getOpenMPCaptureRegions(), clang::VarDecl::hasLocalStorage(), and clang::isOpenMPTargetExecutionDirective().
Referenced by clang::Sema::tryCaptureVariable().
NamedDecl * SemaOpenMP::lookupOpenMPDeclareTargetName | ( | Scope * | CurScope, |
CXXScopeSpec & | ScopeSpec, | ||
const DeclarationNameInfo & | Id | ||
) |
Searches for the provided declaration name for OpenMP declare target directive.
Definition at line 23497 of file SemaOpenMP.cpp.
References checkDeclIsAllowedInOpenMPTarget(), clang::Sema::CorrectTypo(), clang::Sema::CTK_ErrorRecovery, clang::SemaBase::Diag(), clang::Sema::diagnoseTypo(), clang::LookupResult::getAsSingle(), Id, clang::LookupResult::isAmbiguous(), clang::LookupResult::isSingleResult(), clang::Sema::LookupOrdinaryName, clang::Sema::LookupParsedName(), clang::Sema::PDiag(), clang::SemaBase::SemaRef, and clang::LookupResult::suppressDiagnostics().
ExprResult SemaOpenMP::PerformOpenMPImplicitIntegerConversion | ( | SourceLocation | OpLoc, |
Expr * | Op | ||
) |
Definition at line 16765 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::ExprError(), clang::Decl::getLocation(), clang::Type::isEnumeralType(), clang::Sema::PerformContextualImplicitConversion(), clang::SemaBase::SemaRef, and clang::T.
Referenced by ActOnOMPArraySectionExpr(), ActOnOMPArrayShapingExpr(), ActOnOpenMPDeclareSimdDirective(), ActOnOpenMPDistScheduleClause(), ActOnOpenMPLinearClause(), ActOnOpenMPScheduleClause(), and isNonNegativeIntegerValue().
Sets OpenMP capture kind (OMPC_private, OMPC_firstprivate, OMPC_map etc.) for FD
based on DSA for the provided corresponding captured declaration D
.
Definition at line 2629 of file SemaOpenMP.cpp.
References DSAStack, getCanonicalDecl(), clang::SemaBase::getLangOpts(), getVariableCategoryFromDecl(), and clang::isOpenMPTargetExecutionDirective().
Referenced by buildCapturedStmtCaptureList().
void SemaOpenMP::StartOpenMPClause | ( | OpenMPClauseKind | K | ) |
void SemaOpenMP::startOpenMPCXXRangeFor | ( | ) |
If the current region is a range loop-based region, mark the start of the loop construct.
Definition at line 2524 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getLangOpts(), and clang::isOpenMPLoopDirective().
void SemaOpenMP::StartOpenMPDSABlock | ( | OpenMPDirectiveKind | K, |
const DeclarationNameInfo & | DirName, | ||
Scope * | CurScope, | ||
SourceLocation | Loc | ||
) |
Called on start of new data sharing attribute block.
Definition at line 2784 of file SemaOpenMP.cpp.
References DSAStack, clang::Sema::PotentiallyEvaluated, clang::Sema::PushExpressionEvaluationContext(), and clang::SemaBase::SemaRef.
void SemaOpenMP::startOpenMPLoop | ( | ) |
If the current region is a loop-based region, mark the start of the loop construct.
Definition at line 2518 of file SemaOpenMP.cpp.
References DSAStack, clang::SemaBase::getLangOpts(), and clang::isOpenMPLoopDirective().
void SemaOpenMP::tryCaptureOpenMPLambdas | ( | ValueDecl * | V | ) |
Function tries to capture lambda's captured variables in the OpenMP region before the original lambda is captured.
Definition at line 4763 of file SemaOpenMP.cpp.
References clang::Sema::CheckCXXThisCapture(), clang::Sema::CurContext, DSAStack, clang::DeclContext::Encloses(), clang::Type::getAsCXXRecordDecl(), clang::SemaBase::getASTContext(), clang::Sema::getCurrentThisType(), clang::Decl::getDeclContext(), clang::ValueDecl::getType(), clang::DeclContext::isDependentContext(), clang::QualType::isNull(), clang::isOpenMPTargetDataManagementDirective(), clang::isOpenMPTargetExecutionDirective(), clang::LCK_ByRef, clang::LCK_This, clang::Sema::MarkVariableReferenced(), clang::SemaBase::SemaRef, and V.
Referenced by MarkVarDeclODRUsed().
ExprResult SemaOpenMP::VerifyPositiveIntegerConstantInClause | ( | Expr * | Op, |
OpenMPClauseKind | CKind, | ||
bool | StrictlyPositive = true , |
||
bool | SuppressExprDiags = false |
||
) |
Definition at line 16879 of file SemaOpenMP.cpp.
References clang::Sema::AllowFold, clang::Expr::containsUnexpandedParameterPack(), clang::SemaBase::Diag(), DSAStack, clang::ExprError(), clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), clang::Expr::isInstantiationDependent(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), clang::Result, clang::SemaBase::SemaRef, and clang::Sema::VerifyIntegerConstantExpression().
Referenced by ActOnOpenMPAlignClause(), ActOnOpenMPAlignedClause(), ActOnOpenMPCollapseClause(), ActOnOpenMPDeclareSimdDirective(), ActOnOpenMPHintClause(), ActOnOpenMPOrderedClause(), ActOnOpenMPPartialClause(), ActOnOpenMPSafelenClause(), ActOnOpenMPSimdlenClause(), ActOnOpenMPSizesClause(), ActOnOpenMPUnrollDirective(), and ProcessOpenMPDoacrossClauseCommon().
|
friend |
Definition at line 50 of file SemaOpenMP.h.
|
friend |
Definition at line 51 of file SemaOpenMP.h.