[flang-commits] [flang] [flang][OpenMP] Parse strictly- and loosely-structured blocks (PR #150298)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jul 24 04:12:38 PDT 2025
================
@@ -1570,12 +1618,17 @@ TYPE_PARSER(
Parser<OpenMPInteropConstruct>{})) /
endOfLine)
+static constexpr auto StandaloneDirectiveLookahead{//
+ "TARGET ENTER DATA"_sptok || "TARGET_ENTER_DATA"_sptok || //
+ "TARGET EXIT DATA"_sptok || "TARGET_EXIT"_sptok || //
+ "TARGET UPDATE"_sptok || "TARGET_UPDATE"_sptok};
+
// Directives enclosing structured-block
TYPE_PARSER(
// In this context "TARGET UPDATE" can be parsed as a TARGET directive
// followed by an UPDATE clause. This is the only combination at the
// moment, exclude it explicitly.
----------------
tblah wrote:
nit: this comment needs updating. Maybe this also needs a lit test?
https://github.com/llvm/llvm-project/pull/150298
More information about the flang-commits
mailing list