9#ifndef FORTRAN_PARSER_PARSE_TREE_H_
10#define FORTRAN_PARSER_PARSE_TREE_H_
20#include "char-block.h"
21#include "characters.h"
22#include "format-specification.h"
24#include "provenance.h"
25#include "flang/Common/enum-set.h"
26#include "flang/Common/idioms.h"
27#include "flang/Common/indirection.h"
28#include "flang/Common/reference.h"
29#include "flang/Support/Fortran.h"
30#include "llvm/ADT/ArrayRef.h"
31#include "llvm/Frontend/OpenACC/ACC.h.inc"
32#include "llvm/Frontend/OpenMP/OMP.h"
33#include "llvm/Frontend/OpenMP/OMPConstants.h"
54CLASS_TRAIT(EmptyTrait)
55CLASS_TRAIT(WrapperTrait)
56CLASS_TRAIT(UnionTrait)
57CLASS_TRAIT(TupleTrait)
58CLASS_TRAIT(ConstraintTrait)
63namespace Fortran::semantics {
80#define COPY_AND_ASSIGN_BOILERPLATE(classname) \
81 classname(classname &&) = default; \
82 classname &operator=(classname &&) = default; \
83 classname(const classname &) = delete; \
84 classname &operator=(const classname &) = delete
87#define BOILERPLATE(classname) \
88 COPY_AND_ASSIGN_BOILERPLATE(classname); \
93#define EMPTY_CLASS(classname) \
96 classname(const classname &) {} \
97 classname(classname &&) {} \
98 classname &operator=(const classname &) { return *this; }; \
99 classname &operator=(classname &&) { return *this; }; \
100 using EmptyTrait = std::true_type; \
105#define UNION_CLASS_BOILERPLATE(classname) \
106 template <typename A, typename = common::NoLvalue<A>> \
107 classname(A &&x) : u(std::move(x)) {} \
108 using UnionTrait = std::true_type; \
109 BOILERPLATE(classname)
113#define TUPLE_CLASS_BOILERPLATE(classname) \
114 template <typename... Ts, typename = common::NoLvalue<Ts...>> \
115 classname(Ts &&...args) : t(std::move(args)...) {} \
116 using TupleTrait = std::true_type; \
117 BOILERPLATE(classname)
121#define WRAPPER_CLASS_BOILERPLATE(classname, type) \
122 BOILERPLATE(classname); \
123 classname(type &&x) : v(std::move(x)) {} \
124 using WrapperTrait = std::true_type; \
127#define WRAPPER_CLASS(classname, type) \
129 WRAPPER_CLASS_BOILERPLATE(classname, type); \
161struct AllocatableStmt;
162struct AsynchronousStmt;
164struct CodimensionStmt;
165struct ContiguousStmt;
172struct OldParameterStmt;
182struct EquivalenceStmt;
219struct SyncMemoryStmt;
261struct BasedPointerStmt;
279using Location =
const char *;
284 constexpr Verbatim() {}
285 COPY_AND_ASSIGN_BOILERPLATE(Verbatim);
286 using EmptyTrait = std::true_type;
295template <
typename A>
struct Scalar {
296 using ConstraintTrait = std::true_type;
297 Scalar(Scalar &&that) =
default;
298 Scalar(A &&that) : thing(std::move(that)) {}
299 Scalar &operator=(Scalar &&) =
default;
303template <
typename A>
struct Constant {
304 using ConstraintTrait = std::true_type;
305 Constant(Constant &&that) =
default;
306 Constant(A &&that) : thing(std::move(that)) {}
307 Constant &operator=(Constant &&) =
default;
311template <
typename A>
struct Integer {
312 using ConstraintTrait = std::true_type;
313 Integer(Integer &&that) =
default;
314 Integer(A &&that) : thing(std::move(that)) {}
315 Integer &operator=(Integer &&) =
default;
319template <
typename A>
struct Logical {
320 using ConstraintTrait = std::true_type;
321 Logical(Logical &&that) =
default;
322 Logical(A &&that) : thing(std::move(that)) {}
323 Logical &operator=(Logical &&) =
default;
327template <
typename A>
struct DefaultChar {
328 using ConstraintTrait = std::true_type;
329 DefaultChar(DefaultChar &&that) =
default;
330 DefaultChar(A &&that) : thing(std::move(that)) {}
331 DefaultChar &operator=(DefaultChar &&) =
default;
350using Label = common::Label;
354template <
typename A>
struct UnlabeledStatement {
355 explicit UnlabeledStatement(A &&s) : statement(std::move(s)) {}
359template <
typename A>
struct Statement :
public UnlabeledStatement<A> {
360 Statement(std::optional<long> &&lab, A &&s)
361 : UnlabeledStatement<A>{std::move(s)}, label(std::move(lab)) {}
362 std::optional<Label> label;
366EMPTY_CLASS(ErrorRecovery);
378 std::variant<common::Indirection<AccessStmt>,
400 std::variant<common::Indirection<DerivedTypeDef>,
421 std::variant<Statement<common::Indirection<ImplicitStmt>>,
432WRAPPER_CLASS(ImplicitPart, std::list<ImplicitPartStmt>);
439 std::variant<SpecificationConstruct, Statement<common::Indirection<DataStmt>>,
453 std::tuple<std::list<OpenACCDeclarativeConstruct>,
454 std::list<OpenMPDeclarativeConstruct>,
455 std::list<common::Indirection<CompilerDirective>>,
456 std::list<Statement<common::Indirection<UseStmt>>>,
457 std::list<Statement<common::Indirection<ImportStmt>>>, ImplicitPart,
458 std::list<DeclarationConstruct>>
465 std::variant<common::Indirection<FunctionSubprogram>,
472EMPTY_CLASS(ContainsStmt);
477 std::tuple<Statement<ContainsStmt>, std::list<InternalSubprogram>> t;
481EMPTY_CLASS(ContinueStmt);
484EMPTY_CLASS(FailImageStmt);
498 std::variant<common::Indirection<AllocateStmt>,
556 std::variant<ExecutableConstruct, Statement<common::Indirection<FormatStmt>>,
565using Block = std::list<ExecutionPartConstruct>;
566WRAPPER_CLASS(ExecutionPart, Block);
573 std::variant<common::Indirection<MainProgram>,
584WRAPPER_CLASS(Program, std::list<ProgramUnit>);
588 std::string ToString()
const {
return source.ToString(); }
594WRAPPER_CLASS(Keyword,
Name);
597WRAPPER_CLASS(NamedConstant,
Name);
604WRAPPER_CLASS(DefinedOpName,
Name);
614 ENUM_CLASS(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat,
615 LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV)
616 std::variant<DefinedOpName, IntrinsicOperator> u;
620using ObjectName =
Name;
626 BOILERPLATE(ImportStmt);
627 ImportStmt(common::ImportKind &&k) : kind{k} {}
628 ImportStmt(std::list<Name> &&n) : names(std::move(n)) {}
629 ImportStmt(common::ImportKind &&, std::list<Name> &&);
630 common::ImportKind kind{common::ImportKind::Default};
631 std::list<Name> names;
640 TUPLE_CLASS_BOILERPLATE(
Group);
641 std::tuple<Name, std::list<Name>> t;
643 WRAPPER_CLASS_BOILERPLATE(
NamelistStmt, std::list<Group>);
651 EMPTY_CLASS(Deferred);
652 std::variant<ScalarIntExpr, Star, Deferred> u;
660 WRAPPER_CLASS(StarSize, std::uint64_t);
661 std::variant<ScalarIntConstantExpr, StarSize> u;
665WRAPPER_CLASS(IntegerTypeSpec, std::optional<KindSelector>);
667WRAPPER_CLASS(UnsignedTypeSpec, std::optional<KindSelector>);
672 std::variant<TypeParamValue, std::uint64_t> u;
678 std::variant<TypeParamValue, CharLength> u;
687 UNION_CLASS_BOILERPLATE(CharSelector);
688 struct LengthAndKind {
689 BOILERPLATE(LengthAndKind);
690 LengthAndKind(std::optional<TypeParamValue> &&l, ScalarIntConstantExpr &&k)
691 : length(std::move(l)), kind(std::move(k)) {}
692 std::optional<TypeParamValue> length;
693 ScalarIntConstantExpr kind;
696 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
697 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
698 : u{LengthAndKind{std::move(l), std::move(k)}} {}
699 std::variant<LengthSelector, LengthAndKind> u;
711 Real(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
712 std::optional<KindSelector> kind;
714 EMPTY_CLASS(DoublePrecision);
716 BOILERPLATE(Complex);
717 Complex(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
718 std::optional<KindSelector> kind;
721 BOILERPLATE(Character);
722 Character(std::optional<CharSelector> &&s) : selector{std::move(s)} {}
723 std::optional<CharSelector> selector;
726 BOILERPLATE(Logical);
727 Logical(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
728 std::optional<KindSelector> kind;
730 EMPTY_CLASS(DoubleComplex);
731 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
739 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
744 EMPTY_CLASS(PairVectorTypeSpec);
745 EMPTY_CLASS(QuadVectorTypeSpec);
746 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
760 std::tuple<Name, std::list<TypeParamSpec>> t;
767 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
787 EMPTY_CLASS(ClassStar);
788 EMPTY_CLASS(TypeStar);
789 WRAPPER_CLASS(Record,
Name);
798 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
805 std::tuple<CharBlock, std::optional<KindParam>> t;
811 std::tuple<CharBlock, std::optional<KindParam>> t;
817 std::tuple<CharBlock, std::optional<KindParam>> t;
821enum class Sign { Positive, Negative };
828struct RealLiteralConstant {
829 BOILERPLATE(RealLiteralConstant);
831 COPY_AND_ASSIGN_BOILERPLATE(Real);
835 RealLiteralConstant(
Real &&r, std::optional<KindParam> &&k)
836 : real{std::move(r)}, kind{std::move(k)} {}
838 std::optional<KindParam> kind;
863 std::tuple<ComplexPart, ComplexPart> t;
869 std::tuple<Sign, ComplexLiteralConstant> t;
877 std::tuple<std::optional<KindParam>, std::string> t;
878 std::string GetString()
const {
return std::get<std::string>(t); }
884 std::string GetString()
const {
return v; }
891 std::tuple<bool, std::optional<KindParam>> t;
901WRAPPER_CLASS(BOZLiteralConstant, std::string);
917 ENUM_CLASS(Kind, Public, Private)
923EMPTY_CLASS(Abstract);
927 WRAPPER_CLASS(Extends,
Name);
928 std::variant<Abstract, AccessSpec, BindC, Extends> u;
935 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
939EMPTY_CLASS(SequenceStmt);
943EMPTY_CLASS(PrivateStmt);
948 std::variant<PrivateStmt, SequenceStmt> u;
954 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
962 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
967WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
974 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
979WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
987 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
993 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
998WRAPPER_CLASS(DeferredShapeSpecList,
int);
1004 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
1012EMPTY_CLASS(Allocatable);
1013EMPTY_CLASS(Pointer);
1014EMPTY_CLASS(Contiguous);
1035 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1036 std::list<common::Indirection<DataStmtValue>>>
1046struct ComponentDecl {
1047 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1049 std::optional<ComponentArraySpec> &&aSpec,
1050 std::optional<CoarraySpec> &&coaSpec,
1051 std::optional<Initialization> &&init)
1052 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1053 std::move(length), std::move(init)} {}
1054 std::tuple<Name, std::optional<ComponentArraySpec>,
1055 std::optional<CoarraySpec>, std::optional<CharLength>,
1056 std::optional<Initialization>>
1064 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1070 std::variant<ComponentDecl, FillDecl> u;
1078 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1079 std::list<ComponentOrFill>>
1086WRAPPER_CLASS(Pass, std::optional<Name>);
1089 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1096 std::variant<NullInit, Name> u;
1103 std::variant<Name, DeclarationTypeSpec> u;
1109 std::tuple<Name, std::optional<ProcPointerInit>> t;
1117 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1118 std::list<ProcDecl>>
1136 EMPTY_CLASS(Deferred);
1137 EMPTY_CLASS(Non_Overridable);
1138 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1144 std::tuple<Name, std::optional<Name>> t;
1154 struct WithoutInterface {
1155 BOILERPLATE(WithoutInterface);
1157 std::list<BindAttr> &&as, std::list<TypeBoundProcDecl> &&ds)
1158 : attributes(std::move(as)), declarations(std::move(ds)) {}
1159 std::list<BindAttr> attributes;
1160 std::list<TypeBoundProcDecl> declarations;
1162 struct WithInterface {
1163 BOILERPLATE(WithInterface);
1164 WithInterface(
Name &&n, std::list<BindAttr> &&as, std::list<Name> &&bs)
1165 : interfaceName(std::move(n)), attributes(std::move(as)),
1166 bindingNames(std::move(bs)) {}
1168 std::list<BindAttr> attributes;
1169 std::list<Name> bindingNames;
1171 std::variant<WithoutInterface, WithInterface> u;
1184WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1200 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1201 std::list<Statement<TypeBoundProcBinding>>>
1206WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1214 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1215 std::list<Statement<PrivateOrSequence>>,
1216 std::list<Statement<ComponentDefStmt>>,
1229 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1235 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1239EMPTY_CLASS(EnumDefStmt);
1244 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1248WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1251EMPTY_CLASS(EndEnumStmt);
1257 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1258 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1266 TUPLE_CLASS_BOILERPLATE(
Triplet);
1267 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1269 UNION_CLASS_BOILERPLATE(
AcValue);
1270 std::variant<Triplet, common::Indirection<Expr>,
1277 BOILERPLATE(AcSpec);
1278 AcSpec(std::optional<TypeSpec> &&ts, std::list<AcValue> &&xs)
1279 : type(std::move(ts)), values(std::move(xs)) {}
1280 explicit AcSpec(
TypeSpec &&ts) : type{std::move(ts)} {}
1281 std::optional<TypeSpec> type;
1282 std::list<AcValue> values;
1286WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1291template <
typename VAR,
typename BOUND>
struct LoopBounds {
1292 LoopBounds(LoopBounds &&that) =
default;
1294 VAR &&name, BOUND &&lower, BOUND &&upper, std::optional<BOUND> &&step)
1295 : name{std::move(name)}, lower{std::move(lower)}, upper{std::move(upper)},
1296 step{std::move(step)} {}
1297 LoopBounds &operator=(LoopBounds &&) =
default;
1300 std::optional<BOUND> step;
1313 std::tuple<std::optional<IntegerTypeSpec>, Bounds> t;
1328 std::tuple<std::optional<ScalarDefaultCharConstantExpr>,
bool> t;
1334 std::tuple<NamedConstant, ConstantExpr> t;
1338WRAPPER_CLASS(ParameterStmt, std::list<NamedConstantDef>);
1341WRAPPER_CLASS(AssumedShapeSpec, std::optional<SpecificationExpr>);
1344WRAPPER_CLASS(AssumedImpliedSpec, std::optional<SpecificationExpr>);
1349 std::tuple<std::list<ExplicitShapeSpec>, AssumedImpliedSpec> t;
1356WRAPPER_CLASS(ImpliedShapeSpec, std::list<AssumedImpliedSpec>);
1359EMPTY_CLASS(AssumedRankSpec);
1367 std::variant<std::list<ExplicitShapeSpec>, std::list<AssumedShapeSpec>,
1368 DeferredShapeSpecList,
AssumedSizeSpec, ImpliedShapeSpec, AssumedRankSpec>
1374 ENUM_CLASS(Intent, In, Out, InOut)
1375 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1385EMPTY_CLASS(Asynchronous);
1386EMPTY_CLASS(External);
1387EMPTY_CLASS(Intrinsic);
1388EMPTY_CLASS(Optional);
1389EMPTY_CLASS(Parameter);
1390EMPTY_CLASS(Protected);
1394EMPTY_CLASS(Volatile);
1399 Parameter, Pointer, Protected, Save, Target, Value, Volatile,
1400 common::CUDADataAttr>
1411 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1412 EntityDecl(ObjectName &&name,
CharLength &&length,
1413 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1414 std::optional<Initialization> &&init)
1415 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1416 std::move(length), std::move(init)} {}
1417 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1418 std::optional<CharLength>, std::optional<Initialization>>
1426 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1436 std::tuple<AccessSpec, std::list<AccessId>> t;
1445 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1450WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1453WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1458 ENUM_CLASS(Kind, Object, Common)
1459 std::tuple<Kind, Name> t;
1465 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1471 std::tuple<Name, CoarraySpec> t;
1475WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1478WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1497 mutable TypedExpr typedExpr;
1498 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1511 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1517 mutable std::int64_t repetitions{1};
1525 std::variant<Scalar<common::Indirection<Designator>>,
1538 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1545 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1551 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1555WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1563 std::tuple<Name, ArraySpec> t;
1565 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1571 std::tuple<IntentSpec, std::list<Name>> t;
1575WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1581 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1585WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1588WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1594 ENUM_CLASS(Kind, Entity, Common)
1595 std::tuple<Kind, Name> t;
1599WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1602WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1605WRAPPER_CLASS(ValueStmt, std::list<Name>);
1608WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1613 std::tuple<Location, std::optional<Location>> t;
1619 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1628 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1629 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1635 std::tuple<Name, std::optional<ArraySpec>> t;
1643 TUPLE_CLASS_BOILERPLATE(
Block);
1644 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1646 BOILERPLATE(CommonStmt);
1647 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1648 std::list<Block> &&);
1650 std::list<Block> blocks;
1658WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1663 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1667using Subscript = ScalarIntExpr;
1672 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1673 std::optional<Subscript>>
1681 std::variant<IntExpr, SubscriptTriplet> u;
1685using Cosubscript = ScalarIntExpr;
1696 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1699 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1706 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1711 UNION_CLASS_BOILERPLATE(Expr);
1715 using IntrinsicUnary::IntrinsicUnary;
1718 using IntrinsicUnary::IntrinsicUnary;
1721 using IntrinsicUnary::IntrinsicUnary;
1723 struct NOT :
public IntrinsicUnary {
1724 using IntrinsicUnary::IntrinsicUnary;
1731 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1739 using IntrinsicBinary::IntrinsicBinary;
1742 using IntrinsicBinary::IntrinsicBinary;
1745 using IntrinsicBinary::IntrinsicBinary;
1748 using IntrinsicBinary::IntrinsicBinary;
1751 using IntrinsicBinary::IntrinsicBinary;
1754 using IntrinsicBinary::IntrinsicBinary;
1757 using IntrinsicBinary::IntrinsicBinary;
1760 using IntrinsicBinary::IntrinsicBinary;
1763 using IntrinsicBinary::IntrinsicBinary;
1766 using IntrinsicBinary::IntrinsicBinary;
1769 using IntrinsicBinary::IntrinsicBinary;
1772 using IntrinsicBinary::IntrinsicBinary;
1775 using IntrinsicBinary::IntrinsicBinary;
1778 using IntrinsicBinary::IntrinsicBinary;
1781 using IntrinsicBinary::IntrinsicBinary;
1784 using IntrinsicBinary::IntrinsicBinary;
1789 using IntrinsicBinary::IntrinsicBinary;
1794 std::tuple<DefinedOpName, common::Indirection<Expr>,
1802 mutable TypedExpr typedExpr;
1806 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1810 Add,
Subtract,
Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
1817 BOILERPLATE(PartRef);
1818 PartRef(
Name &&n, std::list<SectionSubscript> &&ss,
1819 std::optional<ImageSelector> &&is)
1820 : name{std::move(n)}, subscripts(std::move(ss)),
1821 imageSelector{std::move(is)} {}
1823 std::list<SectionSubscript> subscripts;
1824 std::optional<ImageSelector> imageSelector;
1829 UNION_CLASS_BOILERPLATE(DataRef);
1830 explicit DataRef(std::list<PartRef> &&);
1831 std::variant<Name, common::Indirection<StructureComponent>,
1847 std::tuple<DataRef, SubstringRange> t;
1852 std::tuple<CharLiteralConstant, SubstringRange> t;
1869 bool EndsInBareName()
const;
1871 std::variant<DataRef, Substring> u;
1877 mutable TypedExpr typedExpr;
1879 std::variant<common::Indirection<Designator>,
1897struct StructureComponent {
1898 BOILERPLATE(StructureComponent);
1900 : base{std::move(dr)}, component(std::move(n)) {}
1912struct CoindexedNamedObject {
1913 BOILERPLATE(CoindexedNamedObject);
1915 : base{std::move(dr)}, imageSelector{std::move(is)} {}
1921struct ArrayElement {
1922 BOILERPLATE(ArrayElement);
1923 ArrayElement(
DataRef &&dr, std::list<SectionSubscript> &&ss)
1924 : base{std::move(dr)}, subscripts(std::move(ss)) {}
1929 std::list<SectionSubscript> subscripts;
1935 mutable TypedExpr typedExpr;
1936 std::variant<Name, StructureComponent> u;
1941using BoundExpr = ScalarIntExpr;
1947 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1956 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1964 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1965 std::optional<AllocateCoarraySpec>>
1970WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1974WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
1980 std::variant<StatVariable, MsgVariable> u;
1995 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
2002 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
2003 std::list<AllocOpt>>
2011 mutable TypedExpr typedExpr;
2012 std::variant<Name, StructureComponent> u;
2016WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
2022 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
2028 using TypedAssignment =
2030 mutable TypedAssignment typedAssignment;
2031 std::tuple<Variable, Expr> t;
2035WRAPPER_CLASS(BoundsSpec, BoundExpr);
2040 std::tuple<BoundExpr, BoundExpr> t;
2052 UNION_CLASS_BOILERPLATE(
Bounds);
2053 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2056 mutable AssignmentStmt::TypedAssignment typedAssignment;
2057 std::tuple<DataRef, Bounds, Expr> t;
2065 std::tuple<LogicalExpr, AssignmentStmt> t;
2071 std::tuple<std::optional<Name>, LogicalExpr> t;
2087 std::tuple<LogicalExpr, std::optional<Name>> t;
2091WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2094WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2103 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2107 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2110 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2111 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2126 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2132 std::tuple<common::Indirection<ConcurrentHeader>,
2149WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2155 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2163 std::variant<Expr, Variable> u;
2169 std::tuple<Name, Selector> t;
2176 std::tuple<std::optional<Name>, std::list<Association>> t;
2180WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2189WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2192WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2207 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2215 std::tuple<CodimensionDecl, Selector> t;
2223 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2224 std::list<StatOrErrmsg>>
2232 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2245 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2249WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2263 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2272 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2273 std::optional<ScalarLogicalExpr>>
2284 Operator, Plus, Multiply, Max, Min, Iand, Ior, Ieor, And, Or, Eqv, Neqv)
2295 WRAPPER_CLASS(Local, std::list<Name>);
2296 WRAPPER_CLASS(LocalInit, std::list<Name>);
2298 TUPLE_CLASS_BOILERPLATE(
Reduce);
2300 std::tuple<Operator, std::list<Name>> t;
2302 WRAPPER_CLASS(Shared, std::list<Name>);
2303 EMPTY_CLASS(DefaultNone);
2304 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2317 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2320 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2327 std::tuple<Label, std::optional<LoopControl>> t;
2333 std::tuple<std::optional<Name>, std::optional<Label>,
2334 std::optional<LoopControl>>
2339WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2350 const std::optional<LoopControl> &GetLoopControl()
const;
2351 bool IsDoNormal()
const;
2352 bool IsDoWhile()
const;
2353 bool IsDoConcurrent()
const;
2358WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2363 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2370 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2374WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2377WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2385 std::tuple<Statement<ElseIfStmt>, Block> t;
2389 std::tuple<Statement<ElseStmt>, Block> t;
2392 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2399 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2400 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2419 Range(std::optional<CaseValue> &&l, std::optional<CaseValue> &&u)
2420 : lower{std::move(l)}, upper{std::move(u)} {}
2421 std::optional<CaseValue> lower, upper;
2423 std::variant<CaseValue, Range> u;
2427EMPTY_CLASS(Default);
2431 std::variant<std::list<CaseValueRange>, Default> u;
2437 std::tuple<CaseSelector, std::optional<Name>> t;
2443WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2449 TUPLE_CLASS_BOILERPLATE(
Case);
2450 std::tuple<Statement<CaseStmt>, Block> t;
2453 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2463 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2472 UNION_CLASS_BOILERPLATE(
Rank);
2473 std::variant<ScalarIntConstantExpr, Star, Default> u;
2476 std::tuple<Rank, std::optional<Name>> t;
2486 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2488 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2498 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2507 UNION_CLASS_BOILERPLATE(
Guard);
2508 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2511 std::tuple<Guard, std::optional<Name>> t;
2520 std::tuple<Statement<TypeGuardStmt>, Block> t;
2522 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2528WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2531WRAPPER_CLASS(GotoStmt, Label);
2536 std::tuple<std::list<Label>, ScalarIntExpr> t;
2549 ENUM_CLASS(Kind, Stop, ErrorStop)
2551 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2558 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2562WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2569 std::variant<IntExpr, Star> u;
2572 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2576WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2581 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2590 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2596 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2604 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2617 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2620 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2631 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2634 std::tuple<LockVariable, std::list<LockStat>> t;
2640 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2644WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2654 UNION_CLASS_BOILERPLATE(
IoUnit);
2655 std::variant<Variable, common::Indirection<Expr>, Star> u;
2659using FileNameExpr = ScalarDefaultCharExpr;
2678WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2679WRAPPER_CLASS(ErrLabel, Label);
2684 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2685 Encoding, Form, Pad, Position, Round, Sign,
2686 Carriagecontrol, Convert, Dispose)
2688 std::tuple<Kind, ScalarDefaultCharExpr> t;
2690 WRAPPER_CLASS(Recl, ScalarIntExpr);
2691 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2692 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2693 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2698WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2708 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2712 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2718 UNION_CLASS_BOILERPLATE(
Format);
2719 std::variant<Expr, Label, Star> u;
2723WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2737WRAPPER_CLASS(EndLabel, Label);
2738WRAPPER_CLASS(EorLabel, Label);
2742 ENUM_CLASS(Kind, Advance, Blank, Decimal, Delim, Pad, Round, Sign)
2744 std::tuple<Kind, ScalarDefaultCharExpr> t;
2746 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2747 WRAPPER_CLASS(Pos, ScalarIntExpr);
2748 WRAPPER_CLASS(Rec, ScalarIntExpr);
2749 WRAPPER_CLASS(Size, ScalarIntVariable);
2751 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size>
2758 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2765 BOILERPLATE(ReadStmt);
2766 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2767 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2768 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2769 items(std::move(its)) {}
2770 std::optional<IoUnit> iounit;
2772 std::optional<Format> format;
2775 std::list<IoControlSpec> controls;
2776 std::list<InputItem> items;
2782 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2787 BOILERPLATE(WriteStmt);
2788 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2789 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2790 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2791 items(std::move(its)) {}
2792 std::optional<IoUnit> iounit;
2794 std::optional<Format> format;
2796 std::list<IoControlSpec> controls;
2797 std::list<OutputItem> items;
2803 std::tuple<Format, std::list<OutputItem>> t;
2814 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2819 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2826WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2829 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2830 MsgVariable, StatVariable>
2835WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2845 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2850WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2854WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2857WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2860WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2900 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2901 Direct, Encoding, Form, Formatted, Iomsg,
Name, Pad, Position, Read,
2902 Readwrite, Round, Sequential, Sign, Stream, Status, Unformatted, Write,
2903 Carriagecontrol, Convert, Dispose)
2904 TUPLE_CLASS_BOILERPLATE(
CharVar);
2905 std::tuple<Kind, ScalarDefaultCharVariable> t;
2908 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2909 TUPLE_CLASS_BOILERPLATE(
IntVar);
2910 std::tuple<Kind, ScalarIntVariable> t;
2913 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2914 TUPLE_CLASS_BOILERPLATE(
LogVar);
2915 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2929 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2931 std::variant<std::list<InquireSpec>,
Iolength> u;
2938WRAPPER_CLASS(ProgramStmt,
Name);
2941WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2949 ExecutionPart, std::optional<InternalSubprogramPart>,
2955WRAPPER_CLASS(ModuleStmt,
Name);
2962 std::variant<common::Indirection<FunctionSubprogram>,
2972 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2976WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2982 TUPLE_CLASS_BOILERPLATE(
Module);
2993 UNION_CLASS_BOILERPLATE(
Rename);
2995 TUPLE_CLASS_BOILERPLATE(
Names);
2996 std::tuple<Name, Name> t;
3000 std::tuple<DefinedOpName, DefinedOpName> t;
3002 std::variant<Names, Operators> u;
3008 std::tuple<Name, std::optional<Name>> t;
3014 std::tuple<ParentIdentifier, Name> t;
3018WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3031WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3034WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3052 EMPTY_CLASS(Assignment);
3053 EMPTY_CLASS(ReadFormatted);
3054 EMPTY_CLASS(ReadUnformatted);
3055 EMPTY_CLASS(WriteFormatted);
3056 EMPTY_CLASS(WriteUnformatted);
3059 ReadUnformatted, WriteFormatted, WriteUnformatted>
3067 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3071struct InterfaceStmt {
3072 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3074 InterfaceStmt(Abstract x) : u{x} {}
3076 std::variant<std::optional<GenericSpec>, Abstract> u;
3082 UNION_CLASS_BOILERPLATE(
Only);
3083 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3091 BOILERPLATE(UseStmt);
3092 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3093 template <
typename A>
3094 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3095 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3096 std::optional<ModuleNature> nature;
3098 std::variant<std::list<Rename>, std::list<Only>> u;
3116 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3117 std::list<ProcDecl>>
3128 EMPTY_CLASS(Elemental);
3129 EMPTY_CLASS(Impure);
3131 EMPTY_CLASS(Non_Recursive);
3133 EMPTY_CLASS(Recursive);
3134 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3135 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3136 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3138 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3146 BOILERPLATE(Suffix);
3148 : binding(std::move(lbs)), resultName(std::move(rn)) {}
3149 Suffix(
Name &&rn, std::optional<LanguageBindingSpec> &&lbs)
3150 : binding(std::move(lbs)), resultName(std::move(rn)) {}
3151 std::optional<LanguageBindingSpec> binding;
3152 std::optional<Name> resultName;
3161 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3162 std::optional<Suffix>>
3167WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3172 std::variant<Name, Star> u;
3180 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3181 std::optional<LanguageBindingSpec>>
3186WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3201 std::tuple<Statement<SubroutineStmt>,
3205 std::variant<Function, Subroutine> u;
3210 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3212 std::tuple<Kind, std::list<Name>> t;
3218 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3222WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3228 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3234WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3237WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3243 std::variant<Name, ProcComponentRef> u;
3247WRAPPER_CLASS(AltReturnSpec, Label);
3253 WRAPPER_CLASS(PercentRef,
Expr);
3254 WRAPPER_CLASS(PercentVal,
Expr);
3255 UNION_CLASS_BOILERPLATE(ActualArg);
3257 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal>
3264 std::tuple<std::optional<Keyword>,
ActualArg> t;
3270 TUPLE_CLASS_BOILERPLATE(
Call);
3271 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3287 BOILERPLATE(CallStmt);
3288 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3291 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3292 std::optional<ScalarIntExpr>>
3296 std::list<ActualArgSpec> &&args)
3297 : call{std::move(pd), std::move(args)}, chevrons{std::move(ch)} {}
3299 std::optional<Chevrons> chevrons;
3326WRAPPER_CLASS(MpSubprogramStmt,
Name);
3329WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3344 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3348WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3377 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3380 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3384 std::tuple<common::Indirection<Designator>, uint64_t> t;
3386 EMPTY_CLASS(VectorAlways);
3389 std::tuple<Name, std::optional<std::uint64_t>> t;
3392 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3395 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3398 WRAPPER_CLASS_BOILERPLATE(
3401 EMPTY_CLASS(NoVector);
3402 EMPTY_CLASS(NoUnroll);
3403 EMPTY_CLASS(NoUnrollAndJam);
3404 EMPTY_CLASS(ForceInline);
3405 EMPTY_CLASS(Inline);
3406 EMPTY_CLASS(NoInline);
3408 EMPTY_CLASS(Unrecognized);
3410 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3412 NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline, NoInline,
3420 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3426 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3428WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3435 std::variant<Statement<DataComponentDefStmt>,
3441 EMPTY_CLASS(MapStmt);
3442 EMPTY_CLASS(EndMapStmt);
3443 TUPLE_CLASS_BOILERPLATE(
Map);
3444 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3450 EMPTY_CLASS(UnionStmt);
3451 EMPTY_CLASS(EndUnionStmt);
3452 TUPLE_CLASS_BOILERPLATE(
Union);
3458 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3462 EMPTY_CLASS(EndStructureStmt);
3464 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3471WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3476 std::tuple<Expr, Label, Label, Label> t;
3481 std::tuple<Label, Name> t;
3486 std::tuple<Name, std::list<Label>> t;
3489WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3495#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3496 using basename::basename; \
3497 classname(basename &&b) : basename(std::move(b)) {} \
3498 using TupleTrait = std::true_type; \
3499 BOILERPLATE(classname)
3501#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3502 BOILERPLATE(classname); \
3503 using basename::basename; \
3504 classname(basename &&base) : basename(std::move(base)) {} \
3505 using WrapperTrait = std::true_type
3510struct OmpDirectiveName {
3512 constexpr OmpDirectiveName() =
default;
3513 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3514 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3518 OmpDirectiveName(
const Verbatim &name);
3519 using WrapperTrait = std::true_type;
3521 bool IsExecutionPart()
const;
3524 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3532 std::variant<TypeSpec, DeclarationTypeSpec> u;
3547 ENUM_CLASS(Kind, BlankCommonBlock);
3548 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3556 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3563 using EmptyTrait = std::true_type;
3571 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3574 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3588 WRAPPER_CLASS_BOILERPLATE(
3601 std::variant<DefinedOperator, ProcedureDesignator> u;
3610 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3622 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3627inline namespace arguments {
3630 std::variant<OmpObject, FunctionReference> u;
3634 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3646 std::tuple<OmpObject, OmpObject> t;
3657 std::tuple<std::string, TypeSpec, Name> t;
3670 std::optional<OmpCombinerExpression>>
3689inline namespace traits {
3726 TUPLE_CLASS_BOILERPLATE(
Complex);
3728 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3732 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3748 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3773 std::string ToString()
const;
3776 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3777 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3778 std::variant<Value, llvm::omp::Directive, std::string> u;
3789 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3791 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3798 std::string ToString()
const;
3800 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3809 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3816 WRAPPER_CLASS_BOILERPLATE(
3821#define MODIFIER_BOILERPLATE(...) \
3823 using Variant = std::variant<__VA_ARGS__>; \
3824 UNION_CLASS_BOILERPLATE(Modifier); \
3829#define MODIFIERS() std::optional<std::list<Modifier>>
3831inline namespace modifier {
3839 ENUM_CLASS(Value, Cgroup);
3848 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3884 ENUM_CLASS(Value, Always)
3896 ENUM_CLASS(Value, Always, Never, Auto)
3906 ENUM_CLASS(Value, Automap);
3917 ENUM_CLASS(Value, Simd)
3930 ENUM_CLASS(Value, Close)
3942 ENUM_CLASS(Value, Delete)
3963 ENUM_CLASS(Value, Sink, Source);
3972 ENUM_CLASS(Value, Ancestor, Device_Num)
3990 INHERITED_WRAPPER_CLASS_BOILERPLATE(
4005 ENUM_CLASS(Value, Present);
4016 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4026 std::variant<CharLiteralConstant, ScalarIntConstantExpr> u;
4034 WRAPPER_CLASS_BOILERPLATE(
4043 ENUM_CLASS(Value, Target, TargetSync)
4057 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4065 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4073 ENUM_CLASS(Value, Conditional)
4082 ENUM_CLASS(Value, Ref, Uval, Val);
4104 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4105 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4117 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4132 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4141 ENUM_CLASS(Value, Reproducible, Unconstrained)
4150 ENUM_CLASS(Value, Strict)
4163 ENUM_CLASS(Value, Present)
4172 ENUM_CLASS(Value, Default, Inscan, Task);
4182 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4192 ENUM_CLASS(Value, Self)
4219 ENUM_CLASS(Value, In, Out, Inout, Inoutset, Mutexinoutset, Depobj)
4230 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4243 ENUM_CLASS(Value, Ompx_Hold)
4253using OmpDirectiveList = std::list<llvm::omp::Directive>;
4266 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4269 std::tuple<OmpAdjustOp, OmpObjectList> t;
4286 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4317 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4325 ENUM_CLASS(ActionTime, Compilation, Execution);
4326 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4337 using MemoryOrder = common::OmpMemoryOrderType;
4348 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4355 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4380 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4382 std::variant<DataSharingAttribute,
4399 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4402 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4411 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4420 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4437 OmpDependenceType::Value GetDepType()
const;
4440 EMPTY_CLASS(Source);
4442 std::variant<Sink, Source> u;
4457 OmpTaskDependenceType::Value GetTaskDepType()
const;
4458 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4462 std::variant<TaskDep, OmpDoacross> u;
4499 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4515 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4525 WRAPPER_CLASS_BOILERPLATE(
4532 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4549 using MemoryOrder = common::OmpMemoryOrderType;
4575 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4596 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4609 WRAPPER_CLASS_BOILERPLATE(
4622 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4662 MODIFIER_BOILERPLATE(
4673 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4710 WRAPPER_CLASS_BOILERPLATE(
4724EMPTY_CLASS(OmpNoOpenMPClause);
4729EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4734EMPTY_CLASS(OmpNoParallelismClause);
4744 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4754 ENUM_CLASS(Ordering, Concurrent)
4756 std::tuple<MODIFIERS(), Ordering> t;
4778 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4821 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4823 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4838 ENUM_CLASS(Severity, Fatal, Warning);
4856 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
4899 WRAPPER_CLASS_BOILERPLATE(
4917 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
4927 MODIFIER_BOILERPLATE(OmpContextSelector);
4928 std::tuple<MODIFIERS(),
4929 std::optional<common::Indirection<OmpDirectiveSpecification>>>
4957 llvm::omp::Clause Id()
const;
4959#define GEN_FLANG_CLAUSE_PARSER_CLASSES
4960#include "llvm/Frontend/OpenMP/OMP.inc"
4965#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
4966#include "llvm/Frontend/OpenMP/OMP.inc"
4972 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
4979 ENUM_CLASS(Flag, DeprecatedSyntax)
4984 return std::get<OmpDirectiveName>(t);
4986 llvm::omp::Directive DirId()
const {
4993 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
4994 std::optional<OmpClauseList>, Flags>
5003 INHERITED_TUPLE_CLASS_BOILERPLATE(
5015 return std::get<OmpBeginDirective>(t);
5017 const std::optional<OmpEndDirective> &EndDir()
const {
5018 return std::get<std::optional<OmpEndDirective>>(t);
5022 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5026 WRAPPER_CLASS_BOILERPLATE(
5047 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5056 WRAPPER_CLASS_BOILERPLATE(
5074 INHERITED_TUPLE_CLASS_BOILERPLATE(
5089 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5097 return std::get<OmpBeginSectionsDirective>(t);
5099 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5100 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5107 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5108 std::optional<OmpEndSectionsDirective>>
5117 WRAPPER_CLASS_BOILERPLATE(
5129 WRAPPER_CLASS_BOILERPLATE(
5137 WRAPPER_CLASS_BOILERPLATE(
5146 WRAPPER_CLASS_BOILERPLATE(
5154 WRAPPER_CLASS_BOILERPLATE(
5235 INHERITED_TUPLE_CLASS_BOILERPLATE(
5240 llvm::omp::Clause GetKind()
const;
5241 bool IsCapture()
const;
5242 bool IsCompare()
const;
5248 static constexpr int None = 0;
5249 static constexpr int Read = 1;
5250 static constexpr int Write = 2;
5251 static constexpr int Update = Read | Write;
5252 static constexpr int Action = 3;
5253 static constexpr int IfTrue = 4;
5254 static constexpr int IfFalse = 8;
5255 static constexpr int Condition = 12;
5259 AssignmentStmt::TypedAssignment assign;
5261 TypedExpr atom, cond;
5270 WRAPPER_CLASS_BOILERPLATE(
5331 WRAPPER_CLASS_BOILERPLATE(
5354struct OpenMPLoopConstruct {
5355 TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
5357 : t({std::move(a), Block{}, std::nullopt}) {}
5360 return std::get<OmpBeginLoopDirective>(t);
5362 const std::optional<OmpEndLoopDirective> &EndDir()
const {
5363 return std::get<std::optional<OmpEndLoopDirective>>(t);
5366 const OpenMPLoopConstruct *GetNestedConstruct()
const;
5369 std::tuple<OmpBeginLoopDirective, Block, std::optional<OmpEndLoopDirective>>
5393 INHERITED_TUPLE_CLASS_BOILERPLATE(
5399 using EmptyTrait = std::true_type;
5410WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5442 std::variant<Name, ScalarDefaultCharExpr> u;
5452 ENUM_CLASS(Modifier, ReadOnly, Zero)
5459 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5464 std::tuple<ReductionOperator, AccObjectList> t;
5469 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5473 WRAPPER_CLASS_BOILERPLATE(
5479 WRAPPER_CLASS_BOILERPLATE(
5486 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5494 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5503 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5510 WRAPPER_CLASS(Num, ScalarIntExpr);
5511 WRAPPER_CLASS(Dim, ScalarIntExpr);
5513 std::variant<Num, Dim, Static> u;
5518 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5523 std::tuple<bool, ScalarIntConstantExpr> t;
5529#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5530#include "llvm/Frontend/OpenACC/ACC.inc"
5535#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5536#include "llvm/Frontend/OpenACC/ACC.inc"
5542 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5555 std::tuple<Verbatim, AccObjectListWithModifier> t;
5561 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5566 std::tuple<AccLoopDirective, AccClauseList> t;
5573 std::tuple<AccBlockDirective, AccClauseList> t;
5582EMPTY_CLASS(AccEndAtomic);
5587 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5588 std::optional<AccEndAtomic>>
5595 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5596 std::optional<AccEndAtomic>>
5604 std::optional<AccEndAtomic>>
5613 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5618 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5625 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5631 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5637 std::tuple<AccCombinedDirective, AccClauseList> t;
5645struct OpenACCCombinedConstruct {
5646 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5649 : t({std::move(a), std::nullopt, std::nullopt}) {}
5650 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5651 std::optional<AccEndCombinedDirective>>
5658 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5663EMPTY_CLASS(AccEndLoop);
5664struct OpenACCLoopConstruct {
5665 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5667 : t({std::move(a), std::nullopt, std::nullopt}) {}
5668 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5669 std::optional<AccEndLoop>>
5681 std::tuple<AccStandaloneDirective, AccClauseList> t;
5707 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5712 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5715 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5716 std::optional<ScalarIntExpr>>
5722 std::tuple<std::optional<ScalarIntConstantExpr>,
5723 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5726 std::tuple<Directive, std::optional<DoConstruct>> t;
Definition indirection.h:127
Definition indirection.h:31
Definition reference.h:18
Definition char-block.h:28
Definition parse-state.h:35
Definition check-expression.h:19
Definition expression.h:906
Definition expression.h:896
Definition parse-tree.h:1310
Definition parse-tree.h:1317
Definition parse-tree.h:1276
Definition parse-tree.h:1265
Definition parse-tree.h:1264
Definition parse-tree.h:5609
Definition parse-tree.h:5585
Definition parse-tree.h:5601
Definition parse-tree.h:5593
Definition parse-tree.h:5570
Definition parse-tree.h:5634
Definition parse-tree.h:5564
Definition parse-tree.h:5440
Definition parse-tree.h:5413
Definition parse-tree.h:5541
Definition parse-tree.h:5526
Definition parse-tree.h:5521
Definition parse-tree.h:5429
Definition parse-tree.h:5451
Definition parse-tree.h:5434
Definition parse-tree.h:5446
Definition parse-tree.h:5478
Definition parse-tree.h:5472
Definition parse-tree.h:5576
Definition parse-tree.h:5640
Definition parse-tree.h:5517
Definition parse-tree.h:5508
Definition parse-tree.h:5418
Definition parse-tree.h:5457
Definition parse-tree.h:5462
Definition parse-tree.h:5405
Definition parse-tree.h:5501
Definition parse-tree.h:5497
Definition parse-tree.h:5493
Definition parse-tree.h:5423
Definition parse-tree.h:5489
Definition parse-tree.h:5483
Definition parse-tree.h:5467
Definition parse-tree.h:916
Definition parse-tree.h:1434
Definition parse-tree.h:496
Definition parse-tree.h:3262
Definition parse-tree.h:3252
Definition parse-tree.h:1989
Definition parse-tree.h:1954
Definition parse-tree.h:1933
Definition parse-tree.h:1945
Definition parse-tree.h:2000
Definition parse-tree.h:1962
Definition parse-tree.h:3474
Definition parse-tree.h:1921
Definition parse-tree.h:1365
Definition parse-tree.h:3479
Definition parse-tree.h:3484
Definition parse-tree.h:2026
Definition parse-tree.h:2183
Definition parse-tree.h:2174
Definition parse-tree.h:2167
Definition parse-tree.h:1347
Definition parse-tree.h:1395
Definition parse-tree.h:3424
Definition parse-tree.h:1134
Definition parse-tree.h:1456
Definition parse-tree.h:1463
Definition parse-tree.h:2205
Definition parse-tree.h:3037
Definition parse-tree.h:2038
Definition parse-tree.h:3418
Definition parse-tree.h:5719
Definition parse-tree.h:5713
Definition parse-tree.h:5710
Definition parse-tree.h:5704
Definition parse-tree.h:3289
Definition parse-tree.h:3286
Definition parse-tree.h:3269
Definition parse-tree.h:2448
Definition parse-tree.h:2447
Definition parse-tree.h:2429
Definition parse-tree.h:2435
Definition parse-tree.h:2415
Definition parse-tree.h:2236
Definition parse-tree.h:2221
Definition parse-tree.h:670
Definition parse-tree.h:1850
Definition parse-tree.h:875
Definition parse-tree.h:688
Definition parse-tree.h:686
Definition parse-tree.h:2706
Definition parse-tree.h:2705
Definition parse-tree.h:2213
Definition parse-tree.h:991
Definition parse-tree.h:1469
Definition parse-tree.h:1912
Definition parse-tree.h:1633
Definition parse-tree.h:1642
Definition parse-tree.h:1641
Definition parse-tree.h:3382
Definition parse-tree.h:3375
Definition parse-tree.h:3379
Definition parse-tree.h:3387
Definition parse-tree.h:3397
Definition parse-tree.h:3394
Definition parse-tree.h:3391
Definition parse-tree.h:3373
Definition parse-tree.h:861
Definition parse-tree.h:853
Definition parse-tree.h:1002
Definition parse-tree.h:1015
Definition parse-tree.h:1123
Definition parse-tree.h:1068
Definition parse-tree.h:1227
Definition parse-tree.h:2534
Definition parse-tree.h:2261
Definition parse-tree.h:2683
Definition parse-tree.h:2681
Definition parse-tree.h:303
Definition parse-tree.h:2252
Definition parse-tree.h:2243
Definition parse-tree.h:1076
Definition parse-tree.h:1523
Definition parse-tree.h:1535
Definition parse-tree.h:1828
Definition parse-tree.h:1494
Definition parse-tree.h:1543
Definition parse-tree.h:1509
Definition parse-tree.h:1549
Definition parse-tree.h:1515
Definition parse-tree.h:2020
Definition parse-tree.h:437
Definition parse-tree.h:782
Definition parse-tree.h:777
Definition parse-tree.h:775
Definition parse-tree.h:327
Definition parse-tree.h:612
Definition parse-tree.h:1212
Definition parse-tree.h:757
Definition parse-tree.h:933
Definition parse-tree.h:1867
Definition parse-tree.h:1561
Definition parse-tree.h:1560
Definition parse-tree.h:2348
Definition parse-tree.h:3170
Definition parse-tree.h:2368
Definition parse-tree.h:2230
Definition parse-tree.h:1410
Definition parse-tree.h:3342
Definition parse-tree.h:1256
Definition parse-tree.h:1242
Definition parse-tree.h:2588
Definition parse-tree.h:2594
Definition parse-tree.h:2602
Definition parse-tree.h:529
Definition parse-tree.h:554
Definition parse-tree.h:985
Definition parse-tree.h:972
Definition parse-tree.h:1774
Definition parse-tree.h:1747
Definition parse-tree.h:1788
Definition parse-tree.h:1753
Definition parse-tree.h:1792
Definition parse-tree.h:1729
Definition parse-tree.h:1744
Definition parse-tree.h:1780
Definition parse-tree.h:1762
Definition parse-tree.h:1768
Definition parse-tree.h:1771
Definition parse-tree.h:1734
Definition parse-tree.h:1759
Definition parse-tree.h:1756
Definition parse-tree.h:1741
Definition parse-tree.h:1783
Definition parse-tree.h:1765
Definition parse-tree.h:1723
Definition parse-tree.h:1720
Definition parse-tree.h:1777
Definition parse-tree.h:1714
Definition parse-tree.h:1738
Definition parse-tree.h:1750
Definition parse-tree.h:1717
Definition parse-tree.h:1710
Definition parse-tree.h:1062
Definition parse-tree.h:2124
Definition parse-tree.h:2140
Definition parse-tree.h:2118
Definition parse-tree.h:2153
Definition parse-tree.h:2130
Definition parse-tree.h:3274
Definition parse-tree.h:3159
Definition parse-tree.h:3308
Definition parse-tree.h:3050
Definition parse-tree.h:3065
Definition parse-tree.h:882
Definition parse-tree.h:2387
Definition parse-tree.h:2383
Definition parse-tree.h:2382
Definition parse-tree.h:2398
Definition parse-tree.h:2361
Definition parse-tree.h:1694
Definition parse-tree.h:1704
Definition parse-tree.h:419
Definition parse-tree.h:1617
Definition parse-tree.h:1626
Definition parse-tree.h:625
Definition parse-tree.h:1033
Definition parse-tree.h:2899
Definition parse-tree.h:2907
Definition parse-tree.h:2912
Definition parse-tree.h:2897
Definition parse-tree.h:2927
Definition parse-tree.h:2925
Definition parse-tree.h:809
Definition parse-tree.h:311
Definition parse-tree.h:1373
Definition parse-tree.h:1569
Definition parse-tree.h:3226
Definition parse-tree.h:3193
Definition parse-tree.h:3199
Definition parse-tree.h:3191
Definition parse-tree.h:3216
Definition parse-tree.h:475
Definition parse-tree.h:463
Definition parse-tree.h:720
Definition parse-tree.h:715
Definition parse-tree.h:725
Definition parse-tree.h:709
Definition parse-tree.h:707
Definition parse-tree.h:2741
Definition parse-tree.h:2739
Definition parse-tree.h:2653
Definition parse-tree.h:796
Definition parse-tree.h:658
Definition parse-tree.h:2325
Definition parse-tree.h:1326
Definition parse-tree.h:676
Definition parse-tree.h:1611
Definition parse-tree.h:907
Definition parse-tree.h:2297
Definition parse-tree.h:2293
Definition parse-tree.h:2629
Definition parse-tree.h:2628
Definition parse-tree.h:889
Definition parse-tree.h:319
Definition parse-tree.h:1291
Definition parse-tree.h:2315
Definition parse-tree.h:2313
Definition parse-tree.h:2946
Definition parse-tree.h:3440
Definition parse-tree.h:2085
Definition parse-tree.h:2970
Definition parse-tree.h:2960
Definition parse-tree.h:2981
Definition parse-tree.h:587
Definition parse-tree.h:1332
Definition parse-tree.h:639
Definition parse-tree.h:638
Definition parse-tree.h:2331
Definition parse-tree.h:2556
Definition parse-tree.h:1443
Definition parse-tree.h:4259
Definition parse-tree.h:4265
Definition parse-tree.h:4263
Definition parse-tree.h:4278
Definition parse-tree.h:4285
Definition parse-tree.h:4293
Definition parse-tree.h:4308
Definition parse-tree.h:5208
Definition parse-tree.h:4316
Definition parse-tree.h:4315
Definition parse-tree.h:4324
Definition parse-tree.h:4336
Definition parse-tree.h:5002
Definition parse-tree.h:5345
Definition parse-tree.h:5073
Definition parse-tree.h:4347
Definition parse-tree.h:5012
Definition parse-tree.h:4353
Definition parse-tree.h:4971
Definition parse-tree.h:4955
Definition parse-tree.h:3609
Definition parse-tree.h:4362
Definition parse-tree.h:5116
Definition parse-tree.h:4379
Definition parse-tree.h:4397
Definition parse-tree.h:4456
Definition parse-tree.h:4454
Definition parse-tree.h:4478
Definition parse-tree.h:4486
Definition parse-tree.h:4496
Definition parse-tree.h:4506
Definition parse-tree.h:4514
Definition parse-tree.h:3510
Definition parse-tree.h:4978
Definition parse-tree.h:4469
Definition parse-tree.h:4436
Definition parse-tree.h:4529
Definition parse-tree.h:4524
Definition parse-tree.h:5007
Definition parse-tree.h:5349
Definition parse-tree.h:5078
Definition parse-tree.h:4540
Definition parse-tree.h:5040
Definition parse-tree.h:4548
Definition parse-tree.h:4561
Definition parse-tree.h:4572
Definition parse-tree.h:4582
Definition parse-tree.h:4590
Definition parse-tree.h:4595
Definition parse-tree.h:4603
Definition parse-tree.h:4619
Definition parse-tree.h:4629
Definition parse-tree.h:4608
Definition parse-tree.h:4941
Definition parse-tree.h:4636
Definition parse-tree.h:3621
Definition parse-tree.h:4409
Definition parse-tree.h:4427
Definition parse-tree.h:4418
Definition parse-tree.h:4645
Definition parse-tree.h:4660
Definition parse-tree.h:4671
Definition parse-tree.h:4696
Definition parse-tree.h:4708
Definition parse-tree.h:4717
Definition parse-tree.h:5034
Definition parse-tree.h:4741
Definition parse-tree.h:3555
Definition parse-tree.h:3546
Definition parse-tree.h:3543
Definition parse-tree.h:4752
Definition parse-tree.h:4765
Definition parse-tree.h:4777
Definition parse-tree.h:4788
Definition parse-tree.h:3599
Definition parse-tree.h:4798
Definition parse-tree.h:4807
Definition parse-tree.h:4819
Definition parse-tree.h:4830
Definition parse-tree.h:4837
Definition parse-tree.h:3559
Definition parse-tree.h:3581
Definition parse-tree.h:3569
Definition parse-tree.h:3568
Definition parse-tree.h:4846
Definition parse-tree.h:4855
Definition parse-tree.h:4870
Definition parse-tree.h:4880
Definition parse-tree.h:3535
Definition parse-tree.h:3528
Definition parse-tree.h:4889
Definition parse-tree.h:4898
Definition parse-tree.h:4914
Definition parse-tree.h:4950
Definition parse-tree.h:4925
Definition parse-tree.h:3081
Definition parse-tree.h:5616
Definition parse-tree.h:5623
Definition parse-tree.h:5552
Definition parse-tree.h:5645
Definition parse-tree.h:5684
Definition parse-tree.h:5655
Definition parse-tree.h:5673
Definition parse-tree.h:5664
Definition parse-tree.h:5546
Definition parse-tree.h:5678
Definition parse-tree.h:5628
Definition parse-tree.h:5558
Definition parse-tree.h:5234
Definition parse-tree.h:5067
Definition parse-tree.h:5257
Definition parse-tree.h:5247
Definition parse-tree.h:5239
Definition parse-tree.h:5276
Definition parse-tree.h:5269
Definition parse-tree.h:5380
Definition parse-tree.h:5224
Definition parse-tree.h:5055
Definition parse-tree.h:5212
Definition parse-tree.h:5136
Definition parse-tree.h:5145
Definition parse-tree.h:5153
Definition parse-tree.h:5128
Definition parse-tree.h:5287
Definition parse-tree.h:5301
Definition parse-tree.h:5375
Definition parse-tree.h:5317
Definition parse-tree.h:5163
Definition parse-tree.h:5325
Definition parse-tree.h:5398
Definition parse-tree.h:5354
Definition parse-tree.h:5392
Definition parse-tree.h:5169
Definition parse-tree.h:5087
Definition parse-tree.h:5093
Definition parse-tree.h:5330
Definition parse-tree.h:5336
Definition parse-tree.h:5175
Definition parse-tree.h:5044
Definition parse-tree.h:376
Definition parse-tree.h:2817
Definition parse-tree.h:2780
Definition parse-tree.h:3006
Definition parse-tree.h:2051
Definition parse-tree.h:2050
Definition parse-tree.h:1579
Definition parse-tree.h:2009
Definition parse-tree.h:2843
Definition parse-tree.h:3126
Definition parse-tree.h:2801
Definition parse-tree.h:946
Definition parse-tree.h:3104
Definition parse-tree.h:1087
Definition parse-tree.h:1115
Definition parse-tree.h:1907
Definition parse-tree.h:1107
Definition parse-tree.h:1101
Definition parse-tree.h:1094
Definition parse-tree.h:3114
Definition parse-tree.h:3241
Definition parse-tree.h:3209
Definition parse-tree.h:571
Definition parse-tree.h:2764
Definition parse-tree.h:830
Definition parse-tree.h:828
Definition parse-tree.h:2282
Definition parse-tree.h:2994
Definition parse-tree.h:2998
Definition parse-tree.h:2992
Definition parse-tree.h:1592
Definition parse-tree.h:295
Definition parse-tree.h:1679
Definition parse-tree.h:2405
Definition parse-tree.h:2471
Definition parse-tree.h:2470
Definition parse-tree.h:2484
Definition parse-tree.h:2482
Definition parse-tree.h:2461
Definition parse-tree.h:2518
Definition parse-tree.h:2516
Definition parse-tree.h:2496
Definition parse-tree.h:2161
Definition parse-tree.h:3334
Definition parse-tree.h:867
Definition parse-tree.h:802
Definition parse-tree.h:842
Definition parse-tree.h:398
Definition parse-tree.h:451
Definition parse-tree.h:1978
Definition parse-tree.h:359
Definition parse-tree.h:3352
Definition parse-tree.h:2548
Definition parse-tree.h:1897
Definition parse-tree.h:1233
Definition parse-tree.h:3461
Definition parse-tree.h:3433
Definition parse-tree.h:3456
Definition parse-tree.h:3012
Definition parse-tree.h:3023
Definition parse-tree.h:3178
Definition parse-tree.h:3318
Definition parse-tree.h:1670
Definition parse-tree.h:1859
Definition parse-tree.h:1661
Definition parse-tree.h:1845
Definition parse-tree.h:2567
Definition parse-tree.h:2566
Definition parse-tree.h:2579
Definition parse-tree.h:924
Definition parse-tree.h:1176
Definition parse-tree.h:1189
Definition parse-tree.h:1142
Definition parse-tree.h:1198
Definition parse-tree.h:1152
Definition parse-tree.h:1424
Definition parse-tree.h:2506
Definition parse-tree.h:2505
Definition parse-tree.h:952
Definition parse-tree.h:960
Definition parse-tree.h:751
Definition parse-tree.h:649
Definition parse-tree.h:764
Definition parse-tree.h:3449
Definition parse-tree.h:354
Definition parse-tree.h:2638
Definition parse-tree.h:815
Definition parse-tree.h:3090
Definition parse-tree.h:1875
Definition parse-tree.h:737
Definition parse-tree.h:742
Definition parse-tree.h:282
Definition parse-tree.h:2827
Definition parse-tree.h:2076
Definition parse-tree.h:2069
Definition parse-tree.h:2105
Definition parse-tree.h:2101
Definition parse-tree.h:2100
Definition parse-tree.h:2063
Definition parse-tree.h:2786
Definition parse-tree.h:3683
Definition parse-tree.h:3674
Definition parse-tree.h:3644
Definition parse-tree.h:3633
Definition parse-tree.h:3628
Definition parse-tree.h:3654
Definition parse-tree.h:3667
Definition parse-tree.h:3838
Definition parse-tree.h:3855
Definition parse-tree.h:3847
Definition parse-tree.h:3871
Definition parse-tree.h:3863
Definition parse-tree.h:3883
Definition parse-tree.h:3895
Definition parse-tree.h:3905
Definition parse-tree.h:3916
Definition parse-tree.h:3929
Definition parse-tree.h:3941
Definition parse-tree.h:3962
Definition parse-tree.h:3971
Definition parse-tree.h:3989
Definition parse-tree.h:4004
Definition parse-tree.h:4015
Definition parse-tree.h:4033
Definition parse-tree.h:4024
Definition parse-tree.h:4042
Definition parse-tree.h:4054
Definition parse-tree.h:4064
Definition parse-tree.h:4072
Definition parse-tree.h:4081
Definition parse-tree.h:4116
Definition parse-tree.h:4103
Definition parse-tree.h:4090
Definition parse-tree.h:4140
Definition parse-tree.h:4131
Definition parse-tree.h:4149
Definition parse-tree.h:4162
Definition parse-tree.h:4171
Definition parse-tree.h:4181
Definition parse-tree.h:4191
Definition parse-tree.h:4200
Definition parse-tree.h:4208
Definition parse-tree.h:4218
Definition parse-tree.h:4229
Definition parse-tree.h:4242
Definition parse-tree.h:3814
Definition parse-tree.h:3724
Definition parse-tree.h:3721
Definition parse-tree.h:3704
Definition parse-tree.h:3745
Definition parse-tree.h:3711
Definition parse-tree.h:3772
Definition parse-tree.h:3787
Definition parse-tree.h:3784
Definition parse-tree.h:3797
Definition parse-tree.h:3806