[PATCH] D98558: [OPENMP51]Initial support for the interop directive

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 15 09:37:38 PDT 2021


ABataev added inline comments.


================
Comment at: clang/include/clang/AST/OpenMPClause.h:7491
+/// \endcode
+class OMPUseClause final : public OMPClause {
+  friend class OMPClauseReader;
----------------
mikerice wrote:
> ABataev wrote:
> > I suggest splitting this patch anŠ² keep just one clause. Other clauses should be added in follow-up patches.
> Sorry I should have done that.  Unfortunately the logic is somewhat shared among these three and breaking it up at this point would mean rewriting it without those interactions.  I can do it if you really want me to.
Better to split, if possible.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:14632-14633
+      IsTargetSync = InitClause->getIsTargetSync();
+    else if (const auto *DC = dyn_cast<OMPDependClause>(C))
+      DependClause = DC;
+  }
----------------
mikerice wrote:
> ABataev wrote:
> > ```
> > else {
> > assert(isa<OMPDependClause>(C) && "...");
> > ...
> > }
> > ```
> Sorry, I'm not following this comment.  This is just doing something on 'init' and 'depend' clauses.  Other clauses can exist on the directive and need to be skipped in the loop.
Ok, I see


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

https://reviews.llvm.org/D98558



More information about the llvm-commits mailing list