Lines Matching refs:DKind

62     OpenMPClauseKind CKind, OpenMPDirectiveKind DKind, bool NoDiagnose);
79 OpenMPDirectiveKind DKind = OMPD_unknown; member
87 DSAVarData(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, in DSAVarData()
91 : DKind(DKind), CKind(CKind), Modifier(Modifier), RefExpr(RefExpr), in DSAVarData()
229 SharingMapTy(OpenMPDirectiveKind DKind, DeclarationNameInfo Name, in SharingMapTy()
231 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
402 void push(OpenMPDirectiveKind DKind, const DeclarationNameInfo &DirName, in push() argument
409 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
1245 bool isImplicitTaskingRegion(OpenMPDirectiveKind DKind) { in isImplicitTaskingRegion() argument
1246 return isOpenMPParallelDirective(DKind) || isOpenMPTeamsDirective(DKind); in isImplicitTaskingRegion()
1249 bool isImplicitOrExplicitTaskingRegion(OpenMPDirectiveKind DKind) { in isImplicitOrExplicitTaskingRegion() argument
1250 return isImplicitTaskingRegion(DKind) || isOpenMPTaskingDirective(DKind) || in isImplicitOrExplicitTaskingRegion()
1251 DKind == OMPD_unknown; in isImplicitOrExplicitTaskingRegion()
1336 DVar.DKind = Iter->Directive; in getDSA()
1388 if ((isOpenMPParallelDirective(DVar.DKind) && in getDSA()
1389 !isOpenMPTaskLoopDirective(DVar.DKind)) || in getDSA()
1390 isOpenMPTeamsDirective(DVar.DKind)) { in getDSA()
1400 if (isOpenMPTaskingDirective(DVar.DKind)) { in getDSA()
1854 DVar.DKind = I->Directive; in getTopDSA()
1905 DVar.DKind = I->Directive; in getTopDSA()
2563 OpenMPDirectiveKind DKind = DSAStack->getDirective(Level); in isOpenMPPrivateDecl() local
2565 getOpenMPCaptureRegions(CaptureRegions, DKind); in isOpenMPPrivateDecl()
2787 void SemaOpenMP::StartOpenMPDSABlock(OpenMPDirectiveKind DKind, in StartOpenMPDSABlock() argument
2790 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
3530 OpenMPDirectiveKind DKind, in ActOnOpenMPAssumesDirective() argument
3536 << llvm::omp::getOpenMPDirectiveName(DKind); in ActOnOpenMPAssumesDirective()
3540 if (DKind == llvm::omp::Directive::OMPD_begin_assumes) { in ActOnOpenMPAssumesDirective()
3549 assert(DKind == llvm::omp::Directive::OMPD_assumes && in ActOnOpenMPAssumesDirective()
3656 } else if (isOpenMPTaskingDirective(DVar.DKind) && in reportOriginalDsa()
3830 OpenMPDirectiveKind DKind = Stack->getCurrentDirective(); in VisitDeclRefExpr() local
3839 isImplicitOrExplicitTaskingRegion(DKind) && in VisitDeclRefExpr()
3898 if (isOpenMPTargetExecutionDirective(DKind) && in VisitDeclRefExpr()
3958 if (isOpenMPTaskingDirective(DKind) && DVar.CKind == OMPC_reduction) { in VisitDeclRefExpr()
3967 if (((isOpenMPTaskingDirective(DKind) && DVar.CKind != OMPC_shared) || in VisitDeclRefExpr()
3983 if (!isOpenMPTargetExecutionDirective(DKind) && Res && in VisitDeclRefExpr()
3995 OpenMPDirectiveKind DKind = Stack->getCurrentDirective(); in VisitMemberExpr() local
4005 if (isOpenMPTargetExecutionDirective(DKind) && in VisitMemberExpr()
4054 if (isOpenMPTaskingDirective(DKind) && DVar.CKind == OMPC_reduction) { in VisitMemberExpr()
4063 if (isOpenMPTaskingDirective(DKind) && DVar.CKind != OMPC_shared && in VisitMemberExpr()
4074 if (isOpenMPTargetExecutionDirective(DKind)) { in VisitMemberExpr()
4222 OpenMPDirectiveKind DKind, in handleDeclareVariantConstructTrait() argument
4225 if (isOpenMPTargetExecutionDirective(DKind)) in handleDeclareVariantConstructTrait()
4227 if (isOpenMPTeamsDirective(DKind)) in handleDeclareVariantConstructTrait()
4229 if (isOpenMPParallelDirective(DKind)) in handleDeclareVariantConstructTrait()
4231 if (isOpenMPWorksharingDirective(DKind)) in handleDeclareVariantConstructTrait()
4233 if (isOpenMPSimdDirective(DKind)) in handleDeclareVariantConstructTrait()
4344 static void processCapturedRegions(Sema &SemaRef, OpenMPDirectiveKind DKind, in processCapturedRegions() argument
4347 getOpenMPCaptureRegions(Regions, DKind); in processCapturedRegions()
4349 bool LoopBoundSharing = isOpenMPLoopBoundSharingDirective(DKind); in processCapturedRegions()
4399 void SemaOpenMP::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, in ActOnOpenMPRegionStart() argument
4401 switch (DKind) { in ActOnOpenMPRegionStart()
4413 processCapturedRegions(SemaRef, DKind, CurScope, in ActOnOpenMPRegionStart()
4419 handleDeclareVariantConstructTrait(DSAStack, DKind, /*ScopeEntry=*/true); in ActOnOpenMPRegionStart()
4426 int SemaOpenMP::getOpenMPCaptureLevels(OpenMPDirectiveKind DKind) { in getOpenMPCaptureLevels() argument
4428 getOpenMPCaptureRegions(CaptureRegions, DKind); in getOpenMPCaptureLevels()
4510 OpenMPDirectiveKind DKind = OMPD_unknown; member in __anon1dd12e442e11::CaptureRegionUnwinderRAII
4514 OpenMPDirectiveKind DKind) in CaptureRegionUnwinderRAII() argument
4515 : S(S), ErrorFound(ErrorFound), DKind(DKind) {} in CaptureRegionUnwinderRAII()
4518 int ThisCaptureLevel = S.OpenMP().getOpenMPCaptureLevels(DKind); in ~CaptureRegionUnwinderRAII()
7674 setBranchProtectedScope(Sema &SemaRef, OpenMPDirectiveKind DKind, Stmt *AStmt) { in setBranchProtectedScope() argument
7684 for (int ThisCaptureLevel = SemaRef.OpenMP().getOpenMPCaptureLevels(DKind); in setBranchProtectedScope()
9059 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPLoopInitialization() local
9060 if (AssociatedLoops == 0 || !isOpenMPLoopDirective(DKind)) in ActOnOpenMPLoopInitialization()
9102 isOpenMPSimdDirective(DKind) in ActOnOpenMPLoopInitialization()
9108 if (((isOpenMPSimdDirective(DKind) && DVar.CKind != OMPC_unknown && in ActOnOpenMPLoopInitialization()
9112 ((isOpenMPWorksharingDirective(DKind) || in ActOnOpenMPLoopInitialization()
9113 IsOpenMPTaskloopDirective(DKind) || in ActOnOpenMPLoopInitialization()
9114 isOpenMPDistributeDirective(DKind)) && in ActOnOpenMPLoopInitialization()
9115 !isOpenMPSimdDirective(DKind) && DVar.CKind != OMPC_unknown && in ActOnOpenMPLoopInitialization()
9119 << getOpenMPClauseName(DVar.CKind) << getOpenMPDirectiveName(DKind) in ActOnOpenMPLoopInitialization()
9156 OpenMPDirectiveKind DKind, Stmt *S, Sema &SemaRef, DSAStackTy &DSA, in checkOpenMPIterationSpace() argument
9163 bool SupportsNonRectangular = !isOpenMPLoopTransformationDirective(DKind); in checkOpenMPIterationSpace()
9175 ? DKind in checkOpenMPIterationSpace()
9241 assert(isOpenMPLoopDirective(DKind) && "DSA for non-loop vars"); in checkOpenMPIterationSpace()
9258 (isOpenMPWorksharingDirective(DKind) || in checkOpenMPIterationSpace()
9259 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPIterationSpace()
9260 isOpenMPTaskLoopDirective(DKind) || in checkOpenMPIterationSpace()
9261 isOpenMPDistributeDirective(DKind) || in checkOpenMPIterationSpace()
9262 isOpenMPLoopTransformationDirective(DKind)), in checkOpenMPIterationSpace()
9576 checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr, in checkOpenMPLoop() argument
9583 !isOpenMPLoopTransformationDirective(DKind); in checkOpenMPLoop()
9624 AStmt->IgnoreContainers(!isOpenMPLoopTransformationDirective(DKind)), in checkOpenMPLoop()
9626 [DKind, &SemaRef, &DSA, NumLoops, NestedLoopCount, in checkOpenMPLoop()
9630 DKind, CurStmt, SemaRef, DSA, Cnt, NestedLoopCount, in checkOpenMPLoop()
9770 if (isOpenMPTaskLoopDirective(DKind)) { in checkOpenMPLoop()
9812 if (isOpenMPWorksharingDirective(DKind) || isOpenMPTaskLoopDirective(DKind) || in checkOpenMPLoop()
9813 isOpenMPDistributeDirective(DKind) || in checkOpenMPLoop()
9814 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPLoop()
9815 isOpenMPLoopTransformationDirective(DKind)) { in checkOpenMPLoop()
9861 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
9913 Expr *RHS = (isOpenMPWorksharingDirective(DKind) || in checkOpenMPLoop()
9914 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPLoop()
9915 isOpenMPTaskLoopDirective(DKind) || in checkOpenMPLoop()
9916 isOpenMPDistributeDirective(DKind) || in checkOpenMPLoop()
9917 isOpenMPLoopTransformationDirective(DKind)) in checkOpenMPLoop()
9923 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
9925 (isOpenMPWorksharingDirective(DKind) || in checkOpenMPLoop()
9926 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPLoop()
9927 isOpenMPTaskLoopDirective(DKind) || in checkOpenMPLoop()
9928 isOpenMPDistributeDirective(DKind)) in checkOpenMPLoop()
9957 (isOpenMPWorksharingDirective(DKind) || in checkOpenMPLoop()
9958 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPLoop()
9959 isOpenMPTaskLoopDirective(DKind) || isOpenMPDistributeDirective(DKind) || in checkOpenMPLoop()
9960 isOpenMPLoopTransformationDirective(DKind)) in checkOpenMPLoop()
9967 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
9973 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
10007 if (isOpenMPWorksharingDirective(DKind) || isOpenMPTaskLoopDirective(DKind) || in checkOpenMPLoop()
10008 isOpenMPGenericLoopDirective(DKind) || in checkOpenMPLoop()
10009 isOpenMPDistributeDirective(DKind) || in checkOpenMPLoop()
10010 isOpenMPLoopTransformationDirective(DKind)) { in checkOpenMPLoop()
10033 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
10066 if (isOpenMPLoopBoundSharingDirective(DKind)) { in checkOpenMPLoop()
10442 static bool checkSectionsDirective(Sema &SemaRef, OpenMPDirectiveKind DKind, in checkSectionsDirective() argument
10462 << getOpenMPDirectiveName(DKind); in checkSectionsDirective()
10470 << getOpenMPDirectiveName(DKind); in checkSectionsDirective()
15162 OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, unsigned OpenMPVersion, in getOpenMPCaptureRegionForClause() argument
15164 assert(isAllowedClauseForDirective(DKind, CKind, OpenMPVersion) && in getOpenMPCaptureRegionForClause()
15172 ArrayRef<OpenMPDirectiveKind> Leafs = getLeafConstructsOrSelf(DKind); in getOpenMPCaptureRegionForClause()
15188 switch (DKind) { in getOpenMPCaptureRegionForClause()
15212 DKind)) in getOpenMPCaptureRegionForClause()
15217 if (DKind == OMPD_dispatch) in getOpenMPCaptureRegionForClause()
15221 if (DKind == OMPD_metadirective) in getOpenMPCaptureRegionForClause()
15259 if (isOpenMPCapturingDirective(DKind)) { in getOpenMPCaptureRegionForClause()
15292 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPIfClause() local
15294 DKind, OMPC_if, getLangOpts().OpenMP, NameModifier); in ActOnOpenMPIfClause()
15325 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPFinalClause() local
15326 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_final, in ActOnOpenMPFinalClause()
15389 OpenMPDirectiveKind DKind = OMPD_unknown, in isNonNegativeIntegerValue() argument
15416 getOpenMPCaptureRegionForClause(DKind, CKind, SemaRef.LangOpts.OpenMP); in isNonNegativeIntegerValue()
15441 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPNumThreadsClause() local
15443 DKind, OMPC_num_threads, getLangOpts().OpenMP); in ActOnOpenMPNumThreadsClause()
16813 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPNovariantsClause() local
16814 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_novariants, in ActOnOpenMPNovariantsClause()
16845 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPNocontextClause() local
16846 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_nocontext, in ActOnOpenMPNocontextClause()
16868 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPFilterClause() local
16870 getOpenMPCaptureRegionForClause(DKind, OMPC_filter, getLangOpts().OpenMP); in ActOnOpenMPFilterClause()
17360 (isOpenMPParallelDirective(DVar.DKind) || in ActOnOpenMPFirstprivateClause()
17361 isOpenMPTeamsDirective(DVar.DKind) || in ActOnOpenMPFirstprivateClause()
17362 DVar.DKind == OMPD_unknown)) { in ActOnOpenMPFirstprivateClause()
17394 (isOpenMPParallelDirective(DVar.DKind) || in ActOnOpenMPFirstprivateClause()
17395 isOpenMPWorksharingDirective(DVar.DKind) || in ActOnOpenMPFirstprivateClause()
17396 isOpenMPTeamsDirective(DVar.DKind))) { in ActOnOpenMPFirstprivateClause()
17398 << getOpenMPDirectiveName(DVar.DKind); in ActOnOpenMPFirstprivateClause()
18852 bool IsParentBOK = ParentBOKDSA.DKind != OMPD_unknown; in actOnOMPReductionKindClause()
18853 bool IsParentReductionOp = ParentReductionOpDSA.DKind != OMPD_unknown; in actOnOMPReductionKindClause()
20032 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPDeviceClause() local
20034 getOpenMPCaptureRegionForClause(DKind, OMPC_device, getLangOpts().OpenMP); in ActOnOpenMPDeviceClause()
20192 OpenMPDirectiveKind DKind = OMPD_unknown; member in __anon1dd12e447211::MapBaseChecker
20375 } else if (DKind == OMPD_target_update && in VisitArraySectionExpr()
20490 Sema &SemaRef, OpenMPClauseKind CKind, OpenMPDirectiveKind DKind, in MapBaseChecker() argument
20493 : SemaRef(SemaRef), CKind(CKind), DKind(DKind), Components(Components), in MapBaseChecker()
20505 OpenMPClauseKind CKind, OpenMPDirectiveKind DKind, bool NoDiagnose) { in checkMapClauseExpressionBase() argument
20508 MapBaseChecker Checker(SemaRef, CKind, DKind, CurComponents, NoDiagnose, ELoc, in checkMapClauseExpressionBase()
21131 OpenMPDirectiveKind DKind = DSAS->getCurrentDirective(); in checkMappableExpressionList() local
21132 if (DKind == OMPD_target_enter_data && in checkMappableExpressionList()
21138 << getOpenMPDirectiveName(DKind); in checkMappableExpressionList()
21147 if (DKind == OMPD_target_exit_data && in checkMappableExpressionList()
21153 << getOpenMPDirectiveName(DKind); in checkMappableExpressionList()
21162 if ((DKind == OMPD_target_enter_data || DKind == OMPD_target_exit_data) && in checkMappableExpressionList()
21168 << getOpenMPDirectiveName(DKind); in checkMappableExpressionList()
21176 if ((DKind == OMPD_target_data || in checkMappableExpressionList()
21177 isOpenMPTargetExecutionDirective(DKind)) && in checkMappableExpressionList()
21183 << getOpenMPDirectiveName(DKind); in checkMappableExpressionList()
21196 isOpenMPTargetExecutionDirective(DKind)) || in checkMappableExpressionList()
21197 DKind == OMPD_target)) { in checkMappableExpressionList()
21721 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPNumTeamsClause() local
21723 DKind, OMPC_num_teams, getLangOpts().OpenMP); in ActOnOpenMPNumTeamsClause()
21749 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPThreadLimitClause() local
21751 DKind, OMPC_thread_limit, getLangOpts().OpenMP); in ActOnOpenMPThreadLimitClause()
23183 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective(); in ActOnOpenMPXDynCGroupMemClause() local
23185 DKind, OMPC_ompx_dyn_cgroup_mem, getLangOpts().OpenMP); in ActOnOpenMPXDynCGroupMemClause()