forked from OSchip/llvm-project
[flang] OpenMP 4.5 grammar related minor fixes
1. typo and trailing spaces within OpenMP-4.5-grammar.txt 2. parse (openmp-grammar.h) and unparse(unparse.cc) for: SCHEDULE ([modifier [, modifier]:]kind[, chunk_size]) Modifier -> MONITONIC | NONMONOTONIC | SIMD where ":" is optional except at least one modifier is present. Original-commit: flang-compiler/f18@5cebae5039 Reviewed-on: https://github.com/flang-compiler/f18/pull/453
This commit is contained in:
parent
65c5f5fd3a
commit
d25c942594
|
@ -38,14 +38,14 @@
|
|||
2.11.8 target-simd -> TARGET SIMD
|
||||
2.11.9 target-teams -> TARGET TEAMS
|
||||
2.11.10 teams-distribute -> TEAMS DISTRIBUTE
|
||||
2.11.11 teams distribute-simd -> TEAMS DISTRIBUTE SIME
|
||||
2.11.11 teams distribute-simd -> TEAMS DISTRIBUTE SIMD
|
||||
2.11.12 target-teams-distribute -> TARGET TEAMS DISTRIBUTE
|
||||
2.11.13 target-teams-distribute-simd -> TARGET TEAMS DISTRIBUTE SIMD
|
||||
2.11.14 teams-distribute-parallel-do -> TEAMS DISTRIBUTE PARALLEL DO
|
||||
2.11.15 target-teams-distribute-parallel-do ->
|
||||
TARGET TEAMS DISTRIBUTE PARALLEL DO
|
||||
2.11.16 teams-distribute-parallel-do-simd ->
|
||||
TEAMS DISTRIBUTE PARALLEL DO
|
||||
TEAMS DISTRIBUTE PARALLEL DO SIMD
|
||||
2.11.17 target-teams-distribute-parallel-do-simd ->
|
||||
TARGET TEAMS DISTRIBUTE PARALLEL DO SIMD
|
||||
2.13.1 master -> MASTER
|
||||
|
@ -89,7 +89,7 @@
|
|||
2.9.2 priority -> PRIORITY (scalar-int-expr)
|
||||
2.9.2 mergeable -> MERGEABLE
|
||||
2.9.2 final -> FINAL (scalar-int-expr)
|
||||
2.10.1 use_deice_ptr -> USE_DEVICE_PTR (variable-name-list)
|
||||
2.10.1 use_device_ptr -> USE_DEVICE_PTR (variable-name-list)
|
||||
2.10.1 device -> DEVICE (scalar-integer-expr)
|
||||
2.10.5 to -> TO (variable-name-list)
|
||||
2.10.5 from -> FROM (variable-name-list)
|
||||
|
|
|
@ -80,7 +80,7 @@ TYPE_PARSER(construct<OmpScheduleModifierType>(
|
|||
"SIMD" >> pure(OmpScheduleModifierType::ModType::Simd)))
|
||||
|
||||
TYPE_PARSER(construct<OmpScheduleModifier>(Parser<OmpScheduleModifierType>{},
|
||||
maybe(","_tok >> Parser<OmpScheduleModifierType>{})))
|
||||
maybe(","_tok >> Parser<OmpScheduleModifierType>{}) / ":"_tok))
|
||||
|
||||
TYPE_PARSER(construct<OmpScheduleClause>(maybe(Parser<OmpScheduleModifier>{}),
|
||||
"STATIC" >> pure(OmpScheduleClause::ScheduleType::Static) ||
|
||||
|
|
|
@ -1790,7 +1790,7 @@ public:
|
|||
}
|
||||
void Unparse(const OmpScheduleClause &x) {
|
||||
Word("SCHEDULE(");
|
||||
Walk(std::get<std::optional<OmpScheduleModifier>>(x.t));
|
||||
Walk(std::get<std::optional<OmpScheduleModifier>>(x.t), ":");
|
||||
Walk(std::get<OmpScheduleClause::ScheduleType>(x.t));
|
||||
Walk(",", std::get<std::optional<ScalarIntExpr>>(x.t));
|
||||
Put(")");
|
||||
|
@ -1968,7 +1968,7 @@ public:
|
|||
Put(")");
|
||||
}
|
||||
void Unparse(const OmpClause::ThreadLimit &x) {
|
||||
Word("THREADLIMIT(");
|
||||
Word("THREAD_LIMIT(");
|
||||
Walk(x.v);
|
||||
Put(")");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue