@@ -682,8 +682,15 @@ def OMP_CancellationPoint : Directive<"cancellation point"> {
682
682
let association = AS_None;
683
683
let category = CA_Executable;
684
684
}
685
- def OMP_Coexecute : Directive<"coexecute"> {}
686
- def OMP_EndCoexecute : Directive<"end coexecute"> {}
685
+ def OMP_Coexecute : Directive<"coexecute"> {
686
+ let association = AS_Block;
687
+ let category = CA_Executable;
688
+ }
689
+ def OMP_EndCoexecute : Directive<"end coexecute"> {
690
+ let leafConstructs = OMP_Coexecute.leafConstructs;
691
+ let association = OMP_Coexecute.association;
692
+ let category = OMP_Coexecute.category;
693
+ }
687
694
def OMP_Critical : Directive<"critical"> {
688
695
let allowedOnceClauses = [
689
696
VersionedClause<OMPC_Hint>,
@@ -2224,8 +2231,10 @@ def OMP_TargetTeamsCoexecute : Directive<"target teams coexecute"> {
2224
2231
VersionedClause<OMPC_NumTeams>,
2225
2232
VersionedClause<OMPC_ThreadLimit>,
2226
2233
VersionedClause<OMPC_OMPX_DynCGroupMem>,
2227
- VersionedClause<OMPC_OMX_Bare >,
2234
+ VersionedClause<OMPC_OMPX_Bare >,
2228
2235
];
2236
+ let leafConstructs = [OMP_Target, OMP_Teams, OMP_Coexecute];
2237
+ let category = CA_Executable;
2229
2238
}
2230
2239
def OMP_TargetTeamsDistribute : Directive<"target teams distribute"> {
2231
2240
let allowedClauses = [
@@ -2528,6 +2537,8 @@ def OMP_TeamsCoexecute : Directive<"teams coexecute"> {
2528
2537
VersionedClause<OMPC_NumTeams>,
2529
2538
VersionedClause<OMPC_ThreadLimit>
2530
2539
];
2540
+ let leafConstructs = [OMP_Target, OMP_Teams];
2541
+ let category = CA_Executable;
2531
2542
}
2532
2543
def OMP_TeamsDistribute : Directive<"teams distribute"> {
2533
2544
let allowedClauses = [
0 commit comments