[flang-commits] [flang] [llvm] [FLANG][OpenMP]Add frontend support for ASSUME and ASSUMES (PR #120770)
Mats Petersson via flang-commits
flang-commits at lists.llvm.org
Tue Dec 24 03:55:27 PST 2024
================
@@ -4174,6 +4219,44 @@ struct OmpClauseList {
// --- Directives and constructs
+// Ref: [5.2: 213-216]
+//
+// assume-construct ->
+// ASSUME absent-clause | contains-clause | holds-clause | no-openmp-clause |
+// no-openmp-routines-clause | no-parallelism-clause
+struct OpenMPAssumeConstruct {
+ TUPLE_CLASS_BOILERPLATE(OpenMPAssumeConstruct);
+ std::tuple<Verbatim, OmpClauseList> t;
+ CharBlock source;
+};
+
+struct OmpAssumesDirective {
+ TUPLE_CLASS_BOILERPLATE(OmpAssumesDirective);
+ std::tuple<Verbatim, OmpClauseList> t;
+ CharBlock source;
+};
+
+struct OmpEndAssumesDirective {
+ TUPLE_CLASS_BOILERPLATE(OmpEndAssumesDirective);
+ std::tuple<Verbatim> t;
----------------
Leporacanthicus wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/120770
More information about the flang-commits
mailing list