[flang-commits] [flang] [Flang][OMP]Add support for DECLARE MAPPER parsing and semantics (PR #115160)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Nov 6 06:42:35 PST 2024


================
@@ -3872,6 +3872,19 @@ struct OpenMPDeclareTargetConstruct {
   std::tuple<Verbatim, OmpDeclareTargetSpecifier> t;
 };
 
+struct OmpDeclareMapperSpecifier {
+  TUPLE_CLASS_BOILERPLATE(OmpDeclareMapperSpecifier);
+  std::tuple<std::optional<Name>, TypeSpec, Name> t;
----------------
kparzysz wrote:

Parsing the type as `TypeSpec` would make it easier to print meaningful errors.  Otherwise, if the user provides an intrinsic type, the parser would just flag a syntax error, which may be confusing.

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


More information about the flang-commits mailing list