[flang-commits] [flang] [llvm] [flang][OpenMP] Add parsing support for Task detach (PR #112312)

via flang-commits flang-commits at lists.llvm.org
Sat Oct 19 08:14:20 PDT 2024


================
@@ -3515,6 +3515,12 @@ struct OmpIfClause {
   std::tuple<std::optional<DirectiveNameModifier>, ScalarLogicalExpr> t;
 };
 
+// OpenMPv5.2 12.5.2 detach-clause -> DETACH (event-handle)
+struct OmpDetachClause {
+  WRAPPER_CLASS_BOILERPLATE(OmpDetachClause, OmpObject);
+  CharBlock source;
----------------
NimishMishra wrote:

My thought was to pre-emptively add it for the patch on semantic checks for detach clause. Yeah I missed the `sourced()`, thanks for that. I am removing this though; on second thoughts, we would have the source for the task construct itself. So that should be sufficient to report any errors. If at all needed, we can bring this back later. Does that work?

https://github.com/llvm/llvm-project/pull/112312


More information about the flang-commits mailing list