Skip to content

Commit a5adfcc

Browse files
committed
[OMP] Update OMP_Workdistribute directive definition.
1 parent 7ab0ba7 commit a5adfcc

File tree

1 file changed

+8
-17
lines changed
  • llvm/include/llvm/Frontend/OpenMP

1 file changed

+8
-17
lines changed

llvm/include/llvm/Frontend/OpenMP/OMP.td

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -685,16 +685,7 @@ def OMP_CancellationPoint : Directive<[Spelling<"cancellation point">]> {
685685
let association = AS_None;
686686
let category = CA_Executable;
687687
}
688-
def OMP_Coexecute : Directive<"coexecute"> {
689-
let association = AS_Block;
690-
let category = CA_Executable;
691-
}
692-
def OMP_EndCoexecute : Directive<"end coexecute"> {
693-
let leafConstructs = OMP_Coexecute.leafConstructs;
694-
let association = OMP_Coexecute.association;
695-
let category = OMP_Coexecute.category;
696-
}
697-
def OMP_Critical : Directive<"critical"> {
688+
def OMP_Critical : Directive<[Spelling<"critical">]> {
698689
let allowedOnceClauses = [
699690
VersionedClause<OMPC_Hint>,
700691
];
@@ -1295,11 +1286,11 @@ def OMP_EndWorkshare : Directive<[Spelling<"end workshare">]> {
12951286
let category = OMP_Workshare.category;
12961287
let languages = [L_Fortran];
12971288
}
1298-
def OMP_Workdistribute : Directive<"workdistribute"> {
1289+
def OMP_Workdistribute : Directive<[Spelling<"workdistribute">]> {
12991290
let association = AS_Block;
13001291
let category = CA_Executable;
13011292
}
1302-
def OMP_EndWorkdistribute : Directive<"end workdistribute"> {
1293+
def OMP_EndWorkdistribute : Directive<[Spelling<"end workdistribute">]> {
13031294
let leafConstructs = OMP_Workdistribute.leafConstructs;
13041295
let association = OMP_Workdistribute.association;
13051296
let category = OMP_Workdistribute.category;
@@ -2224,7 +2215,7 @@ def OMP_TargetTeams : Directive<[Spelling<"target teams">]> {
22242215
let leafConstructs = [OMP_Target, OMP_Teams];
22252216
let category = CA_Executable;
22262217
}
2227-
def OMP_TargetTeamsDistribute : Directive<"target teams distribute"> {
2218+
def OMP_TargetTeamsDistribute : Directive<[Spelling<"target teams distribute">]> {
22282219
let allowedClauses = [
22292220
VersionedClause<OMPC_Allocate>,
22302221
VersionedClause<OMPC_Depend>,
@@ -2446,7 +2437,7 @@ def OMP_TargetTeamsDistributeSimd
24462437
let leafConstructs = [OMP_Target, OMP_Teams, OMP_Distribute, OMP_Simd];
24472438
let category = CA_Executable;
24482439
}
2449-
def OMP_TargetTeamsWorkdistribute : Directive<"target teams workdistribute"> {
2440+
def OMP_TargetTeamsWorkdistribute : Directive<[Spelling<"target teams workdistribute">]> {
24502441
let allowedClauses = [
24512442
VersionedClause<OMPC_Allocate>,
24522443
VersionedClause<OMPC_Depend>,
@@ -2474,7 +2465,7 @@ def OMP_TargetTeamsWorkdistribute : Directive<"target teams workdistribute"> {
24742465
let leafConstructs = [OMP_Target, OMP_Teams, OMP_Workdistribute];
24752466
let category = CA_Executable;
24762467
}
2477-
def OMP_target_teams_loop : Directive<"target teams loop"> {
2468+
def OMP_target_teams_loop : Directive<[Spelling<"target teams loop">]> {
24782469
let allowedClauses = [
24792470
VersionedClause<OMPC_Allocate>,
24802471
VersionedClause<OMPC_DefaultMap>,
@@ -2538,7 +2529,7 @@ def OMP_TaskLoopSimd : Directive<[Spelling<"taskloop simd">]> {
25382529
let leafConstructs = [OMP_TaskLoop, OMP_Simd];
25392530
let category = CA_Executable;
25402531
}
2541-
def OMP_TeamsDistribute : Directive<"teams distribute"> {
2532+
def OMP_TeamsDistribute : Directive<[Spelling<"teams distribute">]> {
25422533
let allowedClauses = [
25432534
VersionedClause<OMPC_Allocate>,
25442535
VersionedClause<OMPC_Collapse>,
@@ -2725,7 +2716,7 @@ def OMP_teams_loop : Directive<[Spelling<"teams loop">]> {
27252716
let leafConstructs = [OMP_Teams, OMP_loop];
27262717
let category = CA_Executable;
27272718
}
2728-
def OMP_TeamsWorkdistribute : Directive<"teams workdistribute"> {
2719+
def OMP_TeamsWorkdistribute : Directive<[Spelling<"teams workdistribute">]> {
27292720
let allowedClauses = [
27302721
VersionedClause<OMPC_Allocate>,
27312722
VersionedClause<OMPC_FirstPrivate>,

0 commit comments

Comments
 (0)