clang 20.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) |
StmtResult | ActOnOpenMPInformationalDirective (OpenMPDirectiveKind Kind, const DeclarationNameInfo &DirName, ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Process an OpenMP informational directive. | |
StmtResult | ActOnOpenMPAssumeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Process an OpenMP assume directive. | |
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 | ActOnOpenMPReverseDirective (Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp reverse'. | |
StmtResult | ActOnOpenMPInterchangeDirective (ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) |
Called on well-formed '#pragma omp interchange' 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 * | ActOnOpenMPHoldsClause (Expr *E, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'holds' clause. | |
OMPClause * | ActOnOpenMPDirectivePresenceClause (OpenMPClauseKind CK, llvm::ArrayRef< OpenMPDirectiveKind > DKVec, SourceLocation Loc, SourceLocation LLoc, SourceLocation RLoc) |
Called on well-formed 'absent' or 'contains' clauses. | |
OMPClause * | ActOnOpenMPNullaryAssumptionClause (OpenMPClauseKind CK, SourceLocation Loc, SourceLocation RLoc) |
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 (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Called on well-formed 'num_teams' clause. | |
OMPClause * | ActOnOpenMPThreadLimitClause (ArrayRef< Expr * > VarList, 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) |
void | handleOMPAssumeAttr (Decl *D, const ParsedAttr &AL) |
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. | |
PartialDiagnostic | PDiag (unsigned DiagID=0) |
Build 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 48 of file SemaOpenMP.h.
using clang::SemaOpenMP::CapturedParamNameType = std::pair<StringRef, QualType> |
Definition at line 56 of file SemaOpenMP.h.
Definition at line 55 of file SemaOpenMP.h.
using clang::SemaOpenMP::VarsWithInheritedDSAType = llvm::SmallDenseMap<const ValueDecl *, const Expr *, 4> |
Definition at line 430 of file SemaOpenMP.h.
SemaOpenMP::SemaOpenMP | ( | Sema & | S | ) |
Definition at line 24199 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 6978 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), D, 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 7086 of file SemaOpenMP.cpp.
References clang::DeclRefExpr::Create(), D, 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 22422 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 23601 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 23787 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 23862 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, D, 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::Decl::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 16631 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 16636 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 23435 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 16141 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 19417 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPAlignedClause::Create(), D, 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::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 23085 of file SemaOpenMP.cpp.
References clang::Sema::AA_Initializing, buildCapture(), clang::OMPAllocateClause::Create(), clang::Sema::CurContext, D, 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(), D, 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(), Loc, 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 15675 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().
StmtResult SemaOpenMP::ActOnOpenMPAssumeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Process an OpenMP assume directive.
Clauses | Array of clauses for directive. |
AStmt | The associated statement. |
StartLoc | The start location. |
EndLoc | The end location. |
Definition at line 3559 of file SemaOpenMP.cpp.
References clang::OMPAssumeDirective::Create(), clang::SemaBase::getASTContext(), and clang::StmtError().
Referenced by ActOnOpenMPInformationalDirective().
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(), Loc, 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 15958 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 15943 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 12356 of file SemaOpenMP.cpp.
References clang::C, clang::OMPAtomicDirective::Create(), clang::Sema::CurContext, D, clang::SemaBase::Diag(), DSAStack, E, 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(), Loc, 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 11024 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 2689 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 23474 of file SemaOpenMP.cpp.
References clang::OMPBindClause::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), getListOfPossibleValues(), and clang::OMPC_BIND_unknown.
Referenced by ActOnOpenMPExecutableDirective(), 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 7113 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 13210 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 13195 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 5592 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 16597 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPClause | ( | OpenMPClauseKind | Kind, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Definition at line 16409 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 15697 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 16602 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 19492 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildVarDecl(), clang::OMPCopyinClause::Create(), D, 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 19588 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPCopyprivateClause::Create(), D, 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::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 10825 of file SemaOpenMP.cpp.
References clang::C, clang::OMPCriticalDirective::Create(), clang::SemaBase::Diag(), DSAStack, E, 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 21883 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::sema::FunctionScopeInfo::CompoundScopes, clang::OMPDeclareMapperDecl::Create(), D, 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 21972 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), clang::VarDecl::Create(), DSAStack, E, 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 21867 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 21852 of file SemaOpenMP.cpp.
References clang::Sema::CheckExtraCXXDefaultArguments(), clang::CPlusPlus, clang::Sema::CreateParsedType(), D, clang::SemaBase::getLangOpts(), clang::TypeSourceInfo::getType(), clang::Sema::GetTypeForDeclarator(), clang::SemaBase::SemaRef, and clang::T.
Finish current declare reduction construct initializer.
Definition at line 21754 of file SemaOpenMP.cpp.
References D, clang::Sema::DiscardCleanupsInEvaluationContext(), clang::Sema::PopDeclContext(), clang::Sema::PopExpressionEvaluationContext(), clang::Sema::PopFunctionScopeInfo(), and clang::SemaBase::SemaRef.
Initialize declare reduction construct initializer.
Definition at line 21707 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), buildVarDecl(), clang::Sema::CurContext, D, 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 21838 of file SemaOpenMP.cpp.
References D, clang::OpaquePtr< PtrTy >::get(), clang::Sema::PushOnScopeChains(), clang::SemaBase::SemaRef, and clang::Decl::setInvalidDecl().
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 21624 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::sema::FunctionScopeInfo::CompoundScopes, clang::DeclGroupRef::Create(), clang::OMPDeclareReductionDecl::Create(), D, 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 21817 of file SemaOpenMP.cpp.
References clang::Call, clang::Copy, D, 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 21769 of file SemaOpenMP.cpp.
References buildDeclRefExpr(), buildVarDecl(), clang::Sema::CurContext, D, 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 21591 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 6682 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::Sema::AllowFold, CheckOpenMPLinearDecl(), clang::Expr::containsUnexpandedParameterPack(), clang::SemaBase::Diag(), E, 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 22693 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 22472 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(), clang::Decl::isUsed(), and Loc.
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 7534 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), clang::SemaBase::Diag(), E, 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 15881 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 22305 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), clang::getOpenMPSimpleClauseTypeName(), clang::SourceLocation::isInvalid(), Loc, 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 19890 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 19730 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 11133 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 16863 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 22202 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 20083 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().
OMPClause * SemaOpenMP::ActOnOpenMPDirectivePresenceClause | ( | OpenMPClauseKind | CK, |
llvm::ArrayRef< OpenMPDirectiveKind > | DKVec, | ||
SourceLocation | Loc, | ||
SourceLocation | LLoc, | ||
SourceLocation | RLoc | ||
) |
Called on well-formed 'absent' or 'contains' clauses.
Definition at line 23573 of file SemaOpenMP.cpp.
References clang::OMPAbsentClause::Create(), clang::OMPContainsClause::Create(), clang::SemaBase::getASTContext(), and Loc.
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 10537 of file SemaOpenMP.cpp.
References clang::OMPDispatchDirective::Create(), clang::Sema::CurContext, clang::SemaBase::Diag(), E, 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 13648 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 13674 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPDistributeParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13701 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPDistributeParallelForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13730 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPDistributeSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 22251 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 23520 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 16688 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 22416 of file SemaOpenMP.cpp.
void SemaOpenMP::ActOnOpenMPEndDeclareVariant | ( | ) |
Handle a omp end declare variant
.
Definition at line 2694 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 11029 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 23241 of file SemaOpenMP.cpp.
References clang::OMPExclusiveClause::Create(), D, 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 | ||
) |
Definition at line 5967 of file SemaOpenMP.cpp.
References ActOnOpenMPAtomicDirective(), ActOnOpenMPBarrierDirective(), ActOnOpenMPBindClause(), ActOnOpenMPCancelDirective(), ActOnOpenMPCancellationPointDirective(), ActOnOpenMPCriticalDirective(), ActOnOpenMPDepobjDirective(), ActOnOpenMPDispatchDirective(), ActOnOpenMPDistributeDirective(), ActOnOpenMPDistributeParallelForDirective(), ActOnOpenMPDistributeParallelForSimdDirective(), ActOnOpenMPDistributeSimdDirective(), ActOnOpenMPErrorDirective(), ActOnOpenMPFirstprivateClause(), ActOnOpenMPFlushDirective(), ActOnOpenMPForDirective(), ActOnOpenMPForSimdDirective(), ActOnOpenMPGenericLoopDirective(), ActOnOpenMPInterchangeDirective(), ActOnOpenMPInteropDirective(), ActOnOpenMPMapClause(), ActOnOpenMPMaskedDirective(), ActOnOpenMPMaskedTaskLoopDirective(), ActOnOpenMPMaskedTaskLoopSimdDirective(), ActOnOpenMPMasterDirective(), ActOnOpenMPMasterTaskLoopDirective(), ActOnOpenMPMasterTaskLoopSimdDirective(), ActOnOpenMPOrderedDirective(), ActOnOpenMPParallelDirective(), ActOnOpenMPParallelForDirective(), ActOnOpenMPParallelForSimdDirective(), ActOnOpenMPParallelGenericLoopDirective(), ActOnOpenMPParallelMaskedDirective(), ActOnOpenMPParallelMaskedTaskLoopDirective(), ActOnOpenMPParallelMaskedTaskLoopSimdDirective(), ActOnOpenMPParallelMasterDirective(), ActOnOpenMPParallelMasterTaskLoopDirective(), ActOnOpenMPParallelMasterTaskLoopSimdDirective(), ActOnOpenMPParallelSectionsDirective(), ActOnOpenMPPrivateClause(), ActOnOpenMPReverseDirective(), 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, D, clang::SemaBase::Diag(), DSAStack, E, 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::isOpenMPCapturingDirective(), clang::isOpenMPExecutableDirective(), 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 16612 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 16607 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 16947 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 15395 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 17336 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, D, 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::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 19702 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 11094 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 10413 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), clang::OMPForDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), 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 10438 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 22736 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPFromClause::Create(), clang::SemaBase::Diag(), DSAStack, E, 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 16118 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 10611 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 22104 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 22998 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPHasDeviceAddrClause::Create(), clang::Sema::CurContext, D, 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 22171 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().
OMPClause * SemaOpenMP::ActOnOpenMPHoldsClause | ( | Expr * | E, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'holds' clause.
Definition at line 23567 of file SemaOpenMP.cpp.
References E, and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPSingleExprClause(), and clang::TreeTransform< Derived >::RebuildOMPHoldsClause().
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 3056 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::SemaBase::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 15362 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 23200 of file SemaOpenMP.cpp.
References clang::OMPInclusiveClause::Create(), D, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), getPrivateItem(), and clang::SemaBase::SemaRef.
Referenced by ActOnOpenMPVarListClause(), and clang::TreeTransform< Derived >::RebuildOMPInclusiveClause().
StmtResult SemaOpenMP::ActOnOpenMPInformationalDirective | ( | OpenMPDirectiveKind | Kind, |
const DeclarationNameInfo & | DirName, | ||
ArrayRef< OMPClause * > | Clauses, | ||
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Process an OpenMP informational directive.
Kind | The directive kind. |
DirName | Declaration name info. |
Clauses | Array of clauses for directive. |
AStmt | The associated statement. |
StartLoc | The start location. |
EndLoc | The end location. |
Definition at line 6935 of file SemaOpenMP.cpp.
References ActOnOpenMPAssumeDirective(), clang::isOpenMPInformationalDirective(), and clang::StmtError().
Referenced by clang::TreeTransform< Derived >::RebuildOMPInformationalDirective().
OMPClause * SemaOpenMP::ActOnOpenMPInitClause | ( | Expr * | InteropVar, |
OMPInteropInfo & | InteropInfo, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | VarLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'init' clause.
Definition at line 16825 of file SemaOpenMP.cpp.
References clang::Expr::containsUnexpandedParameterPack(), clang::OMPInitClause::Create(), clang::SemaBase::Diag(), E, 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 19097 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::ActOnOpenMPInterchangeDirective | ( | ArrayRef< OMPClause * > | Clauses, |
Stmt * | AStmt, | ||
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp interchange' after parsing of its clauses and the associated statement.
Definition at line 14951 of file SemaOpenMP.cpp.
References clang::Sema::ActOnIntegerConstant(), clang::Sema::AddInitializerToDecl(), addLoopPreInits(), clang::AssertSuccess(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), collectLoopStmts(), clang::OMPLoopBasedDirective::HelperExprs::Cond, clang::OMPLoopBasedDirective::HelperExprs::Counters, clang::CompoundStmt::Create(), clang::OMPInterchangeDirective::Create(), clang::Sema::CurContext, clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Sema::getCurScope(), clang::DeclRefExpr::getDecl(), clang::Stmt::getEndLoc(), clang::Expr::getExprLoc(), clang::Preprocessor::getIdentifierTable(), clang::Expr::getType(), clang::OMPLoopBasedDirective::HelperExprs::Inc, clang::OMPLoopBasedDirective::HelperExprs::Init, clang::DeclContext::isDependentContext(), clang::Type::isIntegerType(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::Sema::PP, clang::SemaBase::SemaRef, clang::StmtError(), and clang::OMPLoopBasedDirective::HelperExprs::Updates.
Referenced by ActOnOpenMPExecutableDirective().
StmtResult SemaOpenMP::ActOnOpenMPInteropDirective | ( | ArrayRef< OMPClause * > | Clauses, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp interop'.
Definition at line 16694 of file SemaOpenMP.cpp.
References clang::C, clang::OMPInteropDirective::Create(), clang::SemaBase::Diag(), E, 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 22914 of file SemaOpenMP.cpp.
References clang::OMPIsDevicePtrClause::Create(), D, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), getPrivateItem(), clang::Stmt::getSourceRange(), 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 21987 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 17625 of file SemaOpenMP.cpp.
References clang::Sema::ActOnFinishFullExpr(), clang::Sema::BuildBinOp(), buildCapture(), buildDeclRefExpr(), buildPostUpdate(), buildPreInits(), buildVarDecl(), clang::OMPLastprivateClause::Create(), clang::Sema::CurContext, D, 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::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 19171 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, D, 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(), getPrivateItem(), 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 9066 of file SemaOpenMP.cpp.
References buildCapture(), buildDeclRefExpr(), D, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), 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 5741 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 21542 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPMapClause::Create(), clang::SemaBase::Diag(), DSAStack, E, 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(), buildImplicitMap(), 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 10812 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 13370 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 13449 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPMaskedTaskLoopSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10801 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 13332 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 13408 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPMasterTaskLoopSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPMergeableClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'mergeable' clause.
Definition at line 16577 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 15990 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 16915 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 16666 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 23148 of file SemaOpenMP.cpp.
References clang::OMPNontemporalClause::Create(), D, 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 16883 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 16565 of file SemaOpenMP.cpp.
References DSAStack, and clang::SemaBase::getASTContext().
Referenced by ActOnOpenMPClause().
OMPClause * SemaOpenMP::ActOnOpenMPNullaryAssumptionClause | ( | OpenMPClauseKind | CK, |
SourceLocation | Loc, | ||
SourceLocation | RLoc | ||
) |
Definition at line 23586 of file SemaOpenMP.cpp.
References clang::SemaBase::getASTContext(), and Loc.
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 22138 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 | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'num_teams' clause.
Definition at line 22012 of file SemaOpenMP.cpp.
References buildPreInits(), clang::OMPNumTeamsClause::Create(), 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 ActOnOpenMPVarListClause(), 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 15514 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 16004 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 15714 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 11186 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(), Loc, 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 7629 of file SemaOpenMP.cpp.
References clang::OMPParallelDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10882 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), clang::OMPParallelForDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10908 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPParallelForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10705 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPParallelGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10950 of file SemaOpenMP.cpp.
References clang::OMPParallelMaskedDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13529 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPParallelMaskedTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13608 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPParallelMaskedTaskLoopSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10937 of file SemaOpenMP.cpp.
References clang::OMPParallelMasterDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13490 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), clang::OMPParallelMasterTaskLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13568 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPParallelMasterTaskLoopSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10963 of file SemaOpenMP.cpp.
References checkSectionsDirective(), clang::OMPParallelSectionsDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), 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 16123 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 22084 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 17188 of file SemaOpenMP.cpp.
References clang::Sema::ActOnUninitializedDecl(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPPrivateClause::Create(), clang::Sema::CurContext, D, clang::VarDecl::DeclarationOnly, clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), clang::SemaBase::getLangOpts(), clang::Decl::getLocation(), 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 15915 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 16582 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 19032 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 4579 of file SemaOpenMP.cpp.
References clang::Sema::ActOnCapturedRegionEnd(), clang::C, checkOrderedOrderSpecified(), clang::OMPOrderedClause::children(), D, clang::SemaBase::Diag(), DSAStack, E, 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::isOpenMPCapturingDirective(), 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 4381 of file SemaOpenMP.cpp.
References clang::Sema::CurContext, DSAStack, handleDeclareVariantConstructTrait(), processCapturedRegions(), and clang::SemaBase::SemaRef.
OMPClause * SemaOpenMP::ActOnOpenMPRelaxedClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'relaxed' clause.
Definition at line 16646 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 16641 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, D, clang::SemaBase::Diag(), DSAStack, clang::DeclContext::isFileContext(), Loc, clang::OpaquePtr< PtrTy >::make(), and clang::SemaBase::SemaRef.
StmtResult SemaOpenMP::ActOnOpenMPReverseDirective | ( | Stmt * | AStmt, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed '#pragma omp reverse'.
Definition at line 14764 of file SemaOpenMP.cpp.
References clang::Sema::AddInitializerToDecl(), addLoopPreInits(), clang::AssertSuccess(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), buildVarDecl(), collectLoopStmts(), clang::OMPLoopBasedDirective::HelperExprs::Cond, clang::OMPLoopBasedDirective::HelperExprs::Counters, clang::CompoundStmt::Create(), clang::IntegerLiteral::Create(), clang::OMPReverseDirective::Create(), clang::Sema::CurContext, clang::ActionResult< PtrTy, Compress >::get(), clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Sema::getCurScope(), clang::Stmt::getEndLoc(), clang::Expr::getExprLoc(), clang::Preprocessor::getIdentifierTable(), clang::ValueDecl::getType(), clang::ASTContext::getTypeSize(), clang::OMPLoopBasedDirective::HelperExprs::Inc, clang::OMPLoopBasedDirective::HelperExprs::Init, clang::Init, clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::Sema::PP, clang::SemaBase::SemaRef, clang::StmtError(), and clang::OMPLoopBasedDirective::HelperExprs::Updates.
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPReverseOffloadClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'reverse_offload' clause.
Definition at line 16682 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 15591 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 11155 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 16320 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 23187 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 10515 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 10502 of file SemaOpenMP.cpp.
References checkSectionsDirective(), clang::OMPSectionsDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), 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 16626 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 15974 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 17809 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPSharedClause::Create(), clang::Sema::CurContext, D, 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 16661 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 10384 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 15605 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 15740 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 10769 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 15103 of file SemaOpenMP.cpp.
References ActOnOpenMPAlignClause(), ActOnOpenMPAllocatorClause(), ActOnOpenMPCollapseClause(), ActOnOpenMPDepobjClause(), ActOnOpenMPDetachClause(), ActOnOpenMPFilterClause(), ActOnOpenMPFinalClause(), ActOnOpenMPHintClause(), ActOnOpenMPHoldsClause(), ActOnOpenMPMessageClause(), ActOnOpenMPNocontextClause(), ActOnOpenMPNovariantsClause(), ActOnOpenMPNumThreadsClause(), ActOnOpenMPOrderedClause(), ActOnOpenMPPartialClause(), ActOnOpenMPPriorityClause(), ActOnOpenMPSafelenClause(), ActOnOpenMPSimdlenClause(), 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 16152 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 16065 of file SemaOpenMP.cpp.
References clang::OMPSizesClause::Create(), clang::SemaBase::getASTContext(), clang::Type::isIntegerType(), isNonNegativeIntegerValue(), and clang::SemaBase::SemaRef.
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 13059 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 12933 of file SemaOpenMP.cpp.
References clang::OMPTargetDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Stmt::IgnoreContainers(), clang::isOpenMPTeamsDirective(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13089 of file SemaOpenMP.cpp.
References clang::OMPTargetEnterDataDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), hasClauses(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13109 of file SemaOpenMP.cpp.
References clang::OMPTargetExitDataDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), hasClauses(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 12985 of file SemaOpenMP.cpp.
References clang::OMPTargetParallelDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 12998 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), clang::OMPTargetParallelForDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13759 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetParallelForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10737 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTargetParallelGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13788 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), getOrderedNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13936 of file SemaOpenMP.cpp.
References clang::C, clang::OMPTargetTeamsDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), clang::OMPClause::getBeginLoc(), hasClauses(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13971 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTargetTeamsDistributeDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 14003 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), clang::OMPTargetTeamsDistributeParallelForDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 14036 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetTeamsDistributeParallelForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 14072 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTargetTeamsDistributeSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10672 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTargetTeamsGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13129 of file SemaOpenMP.cpp.
References clang::OMPTargetUpdateDirective::Create(), clang::SemaBase::Diag(), clang::SemaBase::getASTContext(), hasClauses(), isClauseMappable(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10999 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), clang::OMPTaskDirective::Create(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 11079 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 13253 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 13291 of file SemaOpenMP.cpp.
References checkMutuallyExclusiveClauses(), checkOpenMPLoop(), checkReductionClauseWithNogroup(), checkSimdlenSafelenSpecified(), clang::OMPTaskLoopSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 19077 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 11061 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 11019 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 13170 of file SemaOpenMP.cpp.
References clang::OMPTeamsDirective::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::SemaBase::getLangOpts(), clang::HIP, clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13816 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTeamsDistributeDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13906 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkOpenMPLoop(), clang::OMPTeamsDistributeParallelForDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13875 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTeamsDistributeParallelForSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 13844 of file SemaOpenMP.cpp.
References checkOpenMPLoop(), checkSimdlenSafelenSpecified(), clang::OMPTeamsDistributeSimdDirective::Create(), DSAStack, finishLinearClauses(), clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::SemaBase::SemaRef, setBranchProtectedScope(), 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 10640 of file SemaOpenMP.cpp.
References clang::OMPLoopBasedDirective::HelperExprs::builtAll(), checkGenericLoopLastprivate(), checkOpenMPLoop(), clang::OMPTeamsGenericLoopDirective::Create(), clang::Sema::CurContext, DSAStack, clang::SemaBase::getASTContext(), getCollapseNumberExpr(), clang::DeclContext::isDependentContext(), clang::SemaBase::SemaRef, setBranchProtectedScope(), and clang::StmtError().
Referenced by ActOnOpenMPExecutableDirective().
OMPClause * SemaOpenMP::ActOnOpenMPThreadLimitClause | ( | ArrayRef< Expr * > | VarList, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) |
Called on well-formed 'thread_limit' clause.
Definition at line 22048 of file SemaOpenMP.cpp.
References buildPreInits(), clang::OMPThreadLimitClause::Create(), 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 ActOnOpenMPVarListClause(), 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, D, Loc, clang::OpaquePtr< PtrTy >::make(), and clang::SemaBase::SemaRef.
OMPClause * SemaOpenMP::ActOnOpenMPThreadsClause | ( | SourceLocation | StartLoc, |
SourceLocation | EndLoc | ||
) |
Called on well-formed 'threads' clause.
Definition at line 16656 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 14212 of file SemaOpenMP.cpp.
References clang::Sema::ActOnConditionalOp(), clang::Sema::ActOnIntegerConstant(), clang::Sema::AddInitializerToDecl(), addLoopPreInits(), clang::AssertSuccess(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), buildVarDecl(), collectLoopStmts(), clang::OMPLoopBasedDirective::HelperExprs::Cond, clang::OMPLoopBasedDirective::HelperExprs::Counters, clang::DeclGroupRef::Create(), clang::CompoundStmt::Create(), clang::IntegerLiteral::Create(), clang::OMPTileDirective::Create(), clang::Sema::CurContext, clang::Sema::DefaultLvalueConversion(), E, 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::Expr::getType(), clang::ASTContext::getTypeSize(), clang::OMPLoopBasedDirective::HelperExprs::Inc, clang::OMPLoopBasedDirective::HelperExprs::Init, clang::DeclContext::isDependentContext(), clang::ActionResult< PtrTy, Compress >::isUsable(), clang::OMPLoopBasedDirective::HelperExprs::IterationVarRef, clang::OMPLoopBasedDirective::HelperExprs::NumIterations, clang::OK_Ordinary, clang::Sema::PP, clang::SemaBase::SemaRef, clang::StmtError(), clang::OMPLoopBasedDirective::HelperExprs::Updates, and clang::VK_PRValue.
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 22699 of file SemaOpenMP.cpp.
References checkMappableExpressionList(), clang::OMPToClause::Create(), clang::SemaBase::Diag(), DSAStack, E, 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 16671 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 16677 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 14484 of file SemaOpenMP.cpp.
References clang::Sema::ActOnIntegerConstant(), clang::Sema::AddInitializerToDecl(), addLoopPreInits(), clang::AssertSuccess(), clang::Sema::BuildBinOp(), buildDeclRefExpr(), buildPreInits(), clang::Sema::BuildUnaryOp(), buildVarDecl(), checkMutuallyExclusiveClauses(), collectLoopStmts(), 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, clang::Sema::PP, 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 16571 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 16043 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 16592 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 16850 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 22860 of file SemaOpenMP.cpp.
References buildCapture(), clang::OMPUseDeviceAddrClause::Create(), D, 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 22774 of file SemaOpenMP.cpp.
References clang::DeclContext::addDecl(), clang::Sema::AddInitializerToDecl(), buildCapture(), buildDeclRefExpr(), buildVarDecl(), clang::OMPUseDevicePtrClause::Create(), clang::Sema::CurContext, D, clang::Sema::DefaultLvalueConversion(), clang::SemaBase::Diag(), DSAStack, clang::ActionResult< PtrTy, Compress >::get(), clang::SemaBase::getASTContext(), clang::Decl::getAttrs(), 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 23300 of file SemaOpenMP.cpp.
References clang::OMPUsesAllocatorsClause::Data::Allocator, clang::OMPUsesAllocatorsClause::Data::AllocatorTraits, clang::OMPUsesAllocatorsClause::Create(), D, 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::Decl::getSourceRange(), clang::Expr::getType(), clang::ASTContext::hasSameUnqualifiedType(), clang::ASTContext::Idents, clang::QualType::isConstant(), clang::Expr::isLValue(), clang::QualType::isNull(), clang::Sema::LookupAnyName, clang::Sema::LookupSingleName(), clang::OMPUsesAllocatorsClause::Data::LParenLoc, clang::OMPUsesAllocatorsClause::Data::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 16969 of file SemaOpenMP.cpp.
References ActOnOpenMPAffinityClause(), ActOnOpenMPAlignedClause(), ActOnOpenMPAllocateClause(), ActOnOpenMPCopyinClause(), ActOnOpenMPCopyprivateClause(), ActOnOpenMPDependClause(), ActOnOpenMPDoacrossClause(), ActOnOpenMPExclusiveClause(), ActOnOpenMPFirstprivateClause(), ActOnOpenMPFlushClause(), ActOnOpenMPFromClause(), ActOnOpenMPHasDeviceAddrClause(), ActOnOpenMPInclusiveClause(), ActOnOpenMPInReductionClause(), ActOnOpenMPIsDevicePtrClause(), ActOnOpenMPLastprivateClause(), ActOnOpenMPLinearClause(), ActOnOpenMPMapClause(), ActOnOpenMPNontemporalClause(), ActOnOpenMPNumTeamsClause(), ActOnOpenMPPrivateClause(), ActOnOpenMPReductionClause(), ActOnOpenMPSharedClause(), ActOnOpenMPTaskReductionClause(), ActOnOpenMPThreadLimitClause(), 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 16651 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 16587 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 23554 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 23562 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 23491 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 7002 of file SemaOpenMP.cpp.
References clang::Consteval, clang::Constexpr, D, clang::Declaration, clang::IdentifierTable::get(), clang::SemaBase::getASTContext(), clang::Decl::getBeginLoc(), 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::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 22393 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 22580 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), checkDeclInTargetContext(), checkValueDeclInTarget(), D, clang::SemaBase::Diag(), DSAStack, clang::SemaOpenMP::DeclareTargetContextInfo::DT, E, 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 3571 of file SemaOpenMP.cpp.
References clang::OMPRequiresDecl::Create(), clang::SemaBase::Diag(), DSAStack, clang::SemaBase::getASTContext(), clang::Sema::getCurLexicalContext(), clang::SourceLocation::isInvalid(), Loc, 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(), D, 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(), Loc, 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 7229 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(), E, 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::SemaBase::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 19128 of file SemaOpenMP.cpp.
References D, 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 19117 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 2026 of file SemaOpenMP.cpp.
References clang::Sema::CUDADiscarded, clang::Sema::Emitted, clang::Sema::getEmissionStatus(), clang::SemaBase::getLangOpts(), isOpenMPDeviceDelayedContext(), Loc, 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 2064 of file SemaOpenMP.cpp.
References clang::Sema::CUDADiscarded, clang::Sema::Emitted, clang::Sema::getEmissionStatus(), clang::SemaBase::getLangOpts(), Loc, 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 22428 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 2771 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 2857 of file SemaOpenMP.cpp.
References clang::Sema::ActOnUninitializedDecl(), buildDeclRefExpr(), buildVarDecl(), clang::C, checkAllocateClauses(), checkReductionClauses(), clang::Sema::CurContext, D, clang::SemaBase::Diag(), DSAStack, E, clang::Decl::getAttrs(), clang::NamedDecl::getName(), clang::QualType::getNonReferenceType(), getPrivateItem(), clang::Decl::getSourceRange(), clang::ValueDecl::getType(), clang::Decl::hasAttrs(), 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 2701 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::SemaBase::getLangOpts(), clang::Redeclarable< decl_type >::getMostRecentDecl(), clang::getOpenMPSimpleClauseTypeName(), and Loc.
ExprResult SemaOpenMP::getOpenMPCapturedExpr | ( | VarDecl * | Capture, |
ExprValueKind | VK, | ||
ExprObjectKind | OK, | ||
SourceLocation | Loc | ||
) |
Definition at line 17168 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(), Loc, 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 4409 of file SemaOpenMP.cpp.
References clang::getOpenMPCaptureRegions().
Referenced by ActOnOpenMPExecutableDirective(), isOpenMPGlobalCapturedDecl(), and setBranchProtectedScope().
const ValueDecl * SemaOpenMP::getOpenMPDeclareMapperVarName | ( | ) | const |
Definition at line 22007 of file SemaOpenMP.cpp.
References DSAStack, and clang::SemaBase::getLangOpts().
Referenced by clang::Sema::DiagnoseUseOfDecl().
void SemaOpenMP::handleOMPAssumeAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 24187 of file SemaOpenMP.cpp.
References clang::Decl::addAttr(), checkOMPAssumeAttr(), clang::Sema::checkStringLiteralArgumentAttr(), D, clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.
Referenced by ProcessDeclAttribute().
|
inline |
Check if there is an active global omp assumes
directive.
Definition at line 246 of file SemaOpenMP.h.
|
inline |
Check if there is an active global omp begin assumes
directive.
Definition at line 243 of file SemaOpenMP.h.
Referenced by ActOnOpenMPEndAssumesDirective().
|
inline |
Return true inside OpenMP declare target region.
Definition at line 371 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 111 of file SemaOpenMP.h.
Referenced by ActOnOpenMPEndDeclareVariant().
bool SemaOpenMP::isInOpenMPTargetExecutionDirective | ( | ) | const |
Return true inside OpenMP target region.
Definition at line 2293 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 2288 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 2104 of file SemaOpenMP.cpp.
References clang::Type::castAs(), D, DSAStack, clang::ASTContext::getAlignOfGlobalVarInChars(), clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), clang::SemaBase::getLangOpts(), clang::QualType::getNonReferenceType(), getPointeeType(), 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 2327 of file SemaOpenMP.cpp.
References buildCaptureDecl(), clang::Sema::BuildCXXThisExpr(), buildDeclRefExpr(), clang::Sema::BuildMemberExpr(), clang::C, checkDeclIsAllowedInOpenMPTarget(), clang::CR_OpenMP, clang::Sema::CurContext, D, 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 21992 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 2657 of file SemaOpenMP.cpp.
References D, 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 2507 of file SemaOpenMP.cpp.
References clang::C, D, DSAStack, clang::SemaBase::getASTContext(), clang::Decl::getCanonicalDecl(), clang::SemaBase::getLangOpts(), clang::getOpenMPCaptureRegions(), clang::isOpenMPLoopDirective(), clang::isOpenMPLoopTransformationDirective(), clang::isOpenMPPrivate(), clang::isOpenMPSimdDirective(), clang::isOpenMPTargetExecutionDirective(), clang::isOpenMPTaskingDirective(), and clang::isOpenMPTaskLoopDirective().
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 2304 of file SemaOpenMP.cpp.
References clang::C, D, 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 2643 of file SemaOpenMP.cpp.
References D, 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 22436 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::SemaBase::PDiag(), clang::SemaBase::SemaRef, and clang::LookupResult::suppressDiagnostics().
ExprResult SemaOpenMP::PerformOpenMPImplicitIntegerConversion | ( | SourceLocation | OpLoc, |
Expr * | Op | ||
) |
Definition at line 15428 of file SemaOpenMP.cpp.
References clang::SemaBase::Diag(), clang::ExprError(), clang::Decl::getLocation(), clang::Type::isEnumeralType(), Loc, 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 2604 of file SemaOpenMP.cpp.
References D, 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 2499 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 2759 of file SemaOpenMP.cpp.
References DSAStack, Loc, 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 2493 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 4509 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 15542 of file SemaOpenMP.cpp.
References clang::Sema::AllowFold, clang::Expr::containsUnexpandedParameterPack(), clang::SemaBase::Diag(), DSAStack, E, clang::ExprError(), clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), clang::Expr::isInstantiationDependent(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::Expr::isTypeDependent(), clang::Expr::isValueDependent(), Loc, clang::Result, clang::SemaBase::SemaRef, and clang::Sema::VerifyIntegerConstantExpression().
Referenced by ActOnOpenMPAlignClause(), ActOnOpenMPAlignedClause(), ActOnOpenMPCollapseClause(), ActOnOpenMPDeclareSimdDirective(), ActOnOpenMPHintClause(), ActOnOpenMPOrderedClause(), ActOnOpenMPPartialClause(), ActOnOpenMPSafelenClause(), ActOnOpenMPSimdlenClause(), ActOnOpenMPUnrollDirective(), and ProcessOpenMPDoacrossClauseCommon().
|
friend |
Definition at line 52 of file SemaOpenMP.h.
|
friend |
Definition at line 53 of file SemaOpenMP.h.