[PATCH] D99757: [flang][OpenMP] Add semantic check for occurrence of constructs nested inside a SIMD region

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 25 07:05:19 PDT 2021


kiranchandramohan requested changes to this revision.
kiranchandramohan added a comment.
This revision now requires changes to proceed.

Have a question here.



================
Comment at: flang/lib/Semantics/check-omp-structure.cpp:305
+void OmpStructureChecker::CheckSIMDNest(const parser::OpenMPConstruct &c) {
+  // Check the following:
+  //  The only OpenMP constructs that can be encountered during execution of
----------------
Nit: A TODO for the loop construct.


================
Comment at: flang/lib/Semantics/check-omp-structure.cpp:323
+                       std::get<parser::OmpBlockDirective>(beginBlockDir.t)};
+                   if (beginDir.v == llvm::omp::Directive::OMPD_ordered) {
+                     const auto &clauses{
----------------
Here ordered is a block-directive. But below it is a standalone directive. Is it parsed both ways?


================
Comment at: flang/lib/Semantics/check-omp-structure.cpp:337
+                       std::get<parser::OmpSimpleStandaloneDirective>(c.t)};
+                   if (dir.v == llvm::omp::Directive::OMPD_ordered) {
+                     const auto &clauses{std::get<parser::OmpClauseList>(c.t)};
----------------
Here ordered is a standalone directive. See above.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99757/new/

https://reviews.llvm.org/D99757



More information about the llvm-commits mailing list