@@ -4446,44 +4446,36 @@ struct OpenMPUtilityConstruct {
44464446
44474447// Ref: [5.2: 213-216]
44484448//
4449- // assume -construct ->
4450- // ASSUME absent-clause | contains-clause | holds-clause | no-openmp-clause |
4449+ // assumes -construct ->
4450+ // ASSUMES absent-clause | contains-clause | holds-clause | no-openmp-clause |
44514451// no-openmp-routines-clause | no-parallelism-clause
4452- struct OpenMPAssumeConstruct {
4453- TUPLE_CLASS_BOILERPLATE (OpenMPAssumeConstruct);
4454- std::tuple<Verbatim, OmpClauseList> t;
4455- CharBlock source;
4456- };
4457-
44584452struct OpenMPDeclarativeAssumes {
44594453 TUPLE_CLASS_BOILERPLATE (OpenMPDeclarativeAssumes);
44604454 std::tuple<Verbatim, OmpClauseList> t;
44614455 CharBlock source;
44624456};
44634457
4464- struct OmpAssumesDirective {
4465- TUPLE_CLASS_BOILERPLATE (OmpAssumesDirective );
4458+ struct OmpAssumeDirective {
4459+ TUPLE_CLASS_BOILERPLATE (OmpAssumeDirective );
44664460 std::tuple<Verbatim, OmpClauseList> t;
44674461 CharBlock source;
44684462};
44694463
4470- struct OmpEndAssumesDirective {
4471- WRAPPER_CLASS_BOILERPLATE (OmpEndAssumesDirective , Verbatim);
4464+ struct OmpEndAssumeDirective {
4465+ WRAPPER_CLASS_BOILERPLATE (OmpEndAssumeDirective , Verbatim);
44724466 CharBlock source;
44734467};
44744468
4475- // structured-block
4476- // ...
4477- struct OmpAssumesPartConstruct {
4478- WRAPPER_CLASS_BOILERPLATE (OmpAssumesPartConstruct, Block);
4479- CharBlock source;
4480- };
4481-
4482- struct OpenMPAssumesConstruct {
4483- TUPLE_CLASS_BOILERPLATE (OpenMPAssumesConstruct);
4484- std::tuple<OmpAssumesDirective, OmpAssumesPartConstruct,
4485- OmpEndAssumesDirective>
4486- t;
4469+ // Ref: [5.2: 213-216]
4470+ //
4471+ // assume-construct ->
4472+ // ASSUME absent-clause | contains-clause | holds_clause | no-openmp-clause
4473+ // no-openmp-routines-clause | no-parallelism-clause
4474+ // block
4475+ // [END ASSUME]
4476+ struct OpenMPAssumeConstruct {
4477+ TUPLE_CLASS_BOILERPLATE (OpenMPAssumeConstruct);
4478+ std::tuple<OmpAssumeDirective, Block, std::optional<OmpEndAssumeDirective>> t;
44874479 CharBlock source;
44884480};
44894481
@@ -4620,7 +4612,7 @@ struct OpenMPDeclarativeAllocate {
46204612struct OpenMPDeclarativeConstruct {
46214613 UNION_CLASS_BOILERPLATE (OpenMPDeclarativeConstruct);
46224614 CharBlock source;
4623- std::variant<OpenMPDeclarativeAllocate, OpenMPAssumesConstruct, OpenMPDeclarativeAssume ,
4615+ std::variant<OpenMPDeclarativeAllocate, OpenMPAssumeConstruct, OpenMPDeclarativeAssumes ,
46244616 OpenMPDeclareMapperConstruct,
46254617 OpenMPDeclareReductionConstruct, OpenMPDeclareSimdConstruct,
46264618 OpenMPDeclareTargetConstruct, OpenMPThreadprivate,
0 commit comments