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