Lines Matching defs:DKind

61     OpenMPClauseKind CKind, OpenMPDirectiveKind DKind, bool NoDiagnose);
78 OpenMPDirectiveKind DKind = OMPD_unknown;
86 DSAVarData(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind,
90 : DKind(DKind), CKind(CKind), Modifier(Modifier), RefExpr(RefExpr),
224 SharingMapTy(OpenMPDirectiveKind DKind, DeclarationNameInfo Name,
226 : Directive(DKind), DirectiveName(Name), CurScope(CurScope),
397 void push(OpenMPDirectiveKind DKind, const DeclarationNameInfo &DirName,
404 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc);
1223 bool isImplicitTaskingRegion(OpenMPDirectiveKind DKind) {
1224 return isOpenMPParallelDirective(DKind) || isOpenMPTeamsDirective(DKind);
1227 bool isImplicitOrExplicitTaskingRegion(OpenMPDirectiveKind DKind) {
1228 return isImplicitTaskingRegion(DKind) || isOpenMPTaskingDirective(DKind) ||
1229 DKind == OMPD_unknown;
1306 DVar.DKind = Iter->Directive;
1358 if ((isOpenMPParallelDirective(DVar.DKind) &&
1359 !isOpenMPTaskLoopDirective(DVar.DKind)) ||
1360 isOpenMPTeamsDirective(DVar.DKind)) {
1370 if (isOpenMPTaskingDirective(DVar.DKind)) {
1822 DVar.DKind = I->Directive;
1873 DVar.DKind = I->Directive;
2531 OpenMPDirectiveKind DKind = DSAStack->getDirective(Level);
2533 getOpenMPCaptureRegions(CaptureRegions, DKind);
2755 void SemaOpenMP::StartOpenMPDSABlock(OpenMPDirectiveKind DKind,
2758 DSAStack->push(DKind, DirName, CurScope, Loc);
3505 OpenMPDirectiveKind DKind,
3511 << llvm::omp::getOpenMPDirectiveName(DKind);
3515 if (DKind == llvm::omp::Directive::OMPD_begin_assumes) {
3524 assert(DKind == llvm::omp::Directive::OMPD_assumes &&
3642 } else if (isOpenMPTaskingDirective(DVar.DKind) &&
3727 OpenMPDirectiveKind DKind = OMPD_unknown;
3755 (isOpenMPTargetExecutionDirective(DKind) &&
3833 isImplicitOrExplicitTaskingRegion(DKind) &&
3892 if (isOpenMPTargetExecutionDirective(DKind) &&
3952 if (isOpenMPTaskingDirective(DKind) && DVar.CKind == OMPC_reduction) {
3961 if (((isOpenMPTaskingDirective(DKind) && DVar.CKind != OMPC_shared) ||
3977 if (!isOpenMPTargetExecutionDirective(DKind) && Res &&
3998 if (isOpenMPTargetExecutionDirective(DKind) &&
4047 if (isOpenMPTaskingDirective(DKind) && DVar.CKind == OMPC_reduction) {
4056 if (isOpenMPTaskingDirective(DKind) && DVar.CKind != OMPC_shared &&
4067 if (isOpenMPTargetExecutionDirective(DKind)) {
4070 DKind, /*NoDiagnose=*/true))
4123 C->isImplicit() && !isOpenMPTaskingDirective(DKind))) {
4172 if (isOpenMPTargetExecutionDirective(DKind) &&
4192 DKind = S->getCurrentDirective();
4194 if (isOpenMPTargetExecutionDirective(DKind)) {
4203 OpenMPDirectiveKind DKind,
4206 if (isOpenMPTargetExecutionDirective(DKind))
4208 if (isOpenMPTeamsDirective(DKind))
4210 if (isOpenMPParallelDirective(DKind))
4212 if (isOpenMPWorksharingDirective(DKind))
4214 if (isOpenMPSimdDirective(DKind))
4325 static void processCapturedRegions(Sema &SemaRef, OpenMPDirectiveKind DKind,
4328 getOpenMPCaptureRegions(Regions, DKind);
4330 bool LoopBoundSharing = isOpenMPLoopBoundSharingDirective(DKind);
4380 void SemaOpenMP::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind,
4382 switch (DKind) {
4395 processCapturedRegions(SemaRef, DKind, CurScope,
4401 handleDeclareVariantConstructTrait(DSAStack, DKind, /*ScopeEntry=*/true);
4408 int SemaOpenMP::getOpenMPCaptureLevels(OpenMPDirectiveKind DKind) {
4410 getOpenMPCaptureRegions(CaptureRegions, DKind);
4492 OpenMPDirectiveKind DKind = OMPD_unknown;
4496 OpenMPDirectiveKind DKind)
4497 : S(S), ErrorFound(ErrorFound), DKind(DKind) {}
4500 int ThisCaptureLevel = S.OpenMP().getOpenMPCaptureLevels(DKind);
7594 setBranchProtectedScope(Sema &SemaRef, OpenMPDirectiveKind DKind, Stmt *AStmt) {
7604 for (int ThisCaptureLevel = SemaRef.OpenMP().getOpenMPCaptureLevels(DKind);
9065 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
9066 if (AssociatedLoops == 0 || !isOpenMPLoopDirective(DKind))
9109 isOpenMPSimdDirective(DKind)
9115 if (((isOpenMPSimdDirective(DKind) && DVar.CKind != OMPC_unknown &&
9119 ((isOpenMPWorksharingDirective(DKind) ||
9120 IsOpenMPTaskloopDirective(DKind) ||
9121 isOpenMPDistributeDirective(DKind)) &&
9122 !isOpenMPSimdDirective(DKind) && DVar.CKind != OMPC_unknown &&
9126 << getOpenMPClauseName(DVar.CKind) << getOpenMPDirectiveName(DKind)
9163 OpenMPDirectiveKind DKind, Stmt *S, Sema &SemaRef, DSAStackTy &DSA,
9171 bool SupportsNonRectangular = !isOpenMPLoopTransformationDirective(DKind);
9183 << getOpenMPDirectiveName(DKind) << TotalNestedLoopCount
9246 assert(isOpenMPLoopDirective(DKind) && "DSA for non-loop vars");
9263 (isOpenMPWorksharingDirective(DKind) ||
9264 isOpenMPGenericLoopDirective(DKind) ||
9265 isOpenMPTaskLoopDirective(DKind) ||
9266 isOpenMPDistributeDirective(DKind) ||
9267 isOpenMPLoopTransformationDirective(DKind)),
9615 checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
9622 !isOpenMPLoopTransformationDirective(DKind);
9667 AStmt->IgnoreContainers(!isOpenMPLoopTransformationDirective(DKind)),
9669 [DKind, &SemaRef, &DSA, NumLoops, NestedLoopCount,
9674 DKind, CurStmt, SemaRef, DSA, Cnt, NestedLoopCount,
9815 if (isOpenMPTaskLoopDirective(DKind)) {
9857 if (isOpenMPWorksharingDirective(DKind) || isOpenMPTaskLoopDirective(DKind) ||
9858 isOpenMPDistributeDirective(DKind) ||
9859 isOpenMPGenericLoopDirective(DKind) ||
9860 isOpenMPLoopTransformationDirective(DKind)) {
9906 if (isOpenMPLoopBoundSharingDirective(DKind)) {
9958 Expr *RHS = (isOpenMPWorksharingDirective(DKind) ||
9959 isOpenMPGenericLoopDirective(DKind) ||
9960 isOpenMPTaskLoopDirective(DKind) ||
9961 isOpenMPDistributeDirective(DKind) ||
9962 isOpenMPLoopTransformationDirective(DKind))
9968 if (isOpenMPLoopBoundSharingDirective(DKind)) {
9970 (isOpenMPWorksharingDirective(DKind) ||
9971 isOpenMPGenericLoopDirective(DKind) ||
9972 isOpenMPTaskLoopDirective(DKind) ||
9973 isOpenMPDistributeDirective(DKind))
10002 (isOpenMPWorksharingDirective(DKind) ||
10003 isOpenMPGenericLoopDirective(DKind) ||
10004 isOpenMPTaskLoopDirective(DKind) || isOpenMPDistributeDirective(DKind) ||
10005 isOpenMPLoopTransformationDirective(DKind))
10012 if (isOpenMPLoopBoundSharingDirective(DKind)) {
10018 if (isOpenMPLoopBoundSharingDirective(DKind)) {
10052 if (isOpenMPWorksharingDirective(DKind) || isOpenMPTaskLoopDirective(DKind) ||
10053 isOpenMPGenericLoopDirective(DKind) ||
10054 isOpenMPDistributeDirective(DKind) ||
10055 isOpenMPLoopTransformationDirective(DKind)) {
10078 if (isOpenMPLoopBoundSharingDirective(DKind)) {
10111 if (isOpenMPLoopBoundSharingDirective(DKind)) {
10462 static bool checkSectionsDirective(Sema &SemaRef, OpenMPDirectiveKind DKind,
10482 << getOpenMPDirectiveName(DKind);
10490 << getOpenMPDirectiveName(DKind);
15289 OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, unsigned OpenMPVersion,
15291 assert(isAllowedClauseForDirective(DKind, CKind, OpenMPVersion) &&
15299 ArrayRef<OpenMPDirectiveKind> Leafs = getLeafConstructsOrSelf(DKind);
15315 switch (DKind) {
15339 DKind))
15344 if (DKind == OMPD_dispatch)
15348 if (DKind == OMPD_metadirective)
15357 // If none of the special cases above applied, and DKind is a capturing
15386 if (isOpenMPCapturingDirective(DKind)) {
15419 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
15421 DKind, OMPC_if, getLangOpts().OpenMP, NameModifier);
15452 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
15453 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_final,
15516 OpenMPDirectiveKind DKind = OMPD_unknown,
15543 getOpenMPCaptureRegionForClause(DKind, CKind, SemaRef.LangOpts.OpenMP);
15568 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
15570 DKind, OMPC_num_threads, getLangOpts().OpenMP);
16980 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
16981 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_novariants,
17012 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
17013 CaptureRegion = getOpenMPCaptureRegionForClause(DKind, OMPC_nocontext,
17035 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
17037 getOpenMPCaptureRegionForClause(DKind, OMPC_filter, getLangOpts().OpenMP);
17547 (isOpenMPParallelDirective(DVar.DKind) ||
17548 isOpenMPTeamsDirective(DVar.DKind) ||
17549 DVar.DKind == OMPD_unknown)) {
17581 (isOpenMPParallelDirective(DVar.DKind) ||
17582 isOpenMPWorksharingDirective(DVar.DKind) ||
17583 isOpenMPTeamsDirective(DVar.DKind))) {
17585 << getOpenMPDirectiveName(DVar.DKind);
19042 bool IsParentBOK = ParentBOKDSA.DKind != OMPD_unknown;
19043 bool IsParentReductionOp = ParentReductionOpDSA.DKind != OMPD_unknown;
20222 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
20224 getOpenMPCaptureRegionForClause(DKind, OMPC_device, getLangOpts().OpenMP);
20382 OpenMPDirectiveKind DKind = OMPD_unknown;
20565 } else if (DKind == OMPD_target_update &&
20680 Sema &SemaRef, OpenMPClauseKind CKind, OpenMPDirectiveKind DKind,
20683 : SemaRef(SemaRef), CKind(CKind), DKind(DKind), Components(Components),
20695 OpenMPClauseKind CKind, OpenMPDirectiveKind DKind, bool NoDiagnose) {
20698 MapBaseChecker Checker(SemaRef, CKind, DKind, CurComponents, NoDiagnose, ELoc,
21134 OpenMPDirectiveKind DKind = Stack->getCurrentDirective();
21138 MapperId, DKind == OMPD_target_enter_data ? OMPC_MAP_to : OMPC_MAP_tofrom,
21519 OpenMPDirectiveKind DKind = DSAS->getCurrentDirective();
21520 if (DKind == OMPD_target_enter_data &&
21526 << getOpenMPDirectiveName(DKind);
21535 if (DKind == OMPD_target_exit_data &&
21541 << getOpenMPDirectiveName(DKind);
21550 if ((DKind == OMPD_target_enter_data || DKind == OMPD_target_exit_data) &&
21556 << getOpenMPDirectiveName(DKind);
21564 if ((DKind == OMPD_target_data ||
21565 isOpenMPTargetExecutionDirective(DKind)) &&
21571 << getOpenMPDirectiveName(DKind);
21584 isOpenMPTargetExecutionDirective(DKind)) ||
21585 DKind == OMPD_target)) {
22124 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
22126 DKind, OMPC_num_teams, getLangOpts().OpenMP);
22160 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
22162 DKind, OMPC_thread_limit, getLangOpts().OpenMP);
23629 OpenMPDirectiveKind DKind = DSAStack->getCurrentDirective();
23631 DKind, OMPC_ompx_dyn_cgroup_mem, getLangOpts().OpenMP);