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"
53CLASS_TRAIT(EmptyTrait)
54CLASS_TRAIT(WrapperTrait)
55CLASS_TRAIT(UnionTrait)
56CLASS_TRAIT(TupleTrait)
57CLASS_TRAIT(ConstraintTrait)
62namespace Fortran::semantics {
79#define COPY_AND_ASSIGN_BOILERPLATE(classname) \
80 classname(classname &&) = default; \
81 classname &operator=(classname &&) = default; \
82 classname(const classname &) = delete; \
83 classname &operator=(const classname &) = delete
86#define BOILERPLATE(classname) \
87 COPY_AND_ASSIGN_BOILERPLATE(classname); \
92#define EMPTY_CLASS(classname) \
95 classname(const classname &) {} \
96 classname(classname &&) {} \
97 classname &operator=(const classname &) { return *this; }; \
98 classname &operator=(classname &&) { return *this; }; \
99 using EmptyTrait = std::true_type; \
104#define UNION_CLASS_BOILERPLATE(classname) \
105 template <typename A, typename = common::NoLvalue<A>> \
106 classname(A &&x) : u(std::move(x)) {} \
107 using UnionTrait = std::true_type; \
108 BOILERPLATE(classname)
112#define TUPLE_CLASS_BOILERPLATE(classname) \
113 template <typename... Ts, typename = common::NoLvalue<Ts...>> \
114 classname(Ts &&...args) : t(std::move(args)...) {} \
115 using TupleTrait = std::true_type; \
116 BOILERPLATE(classname)
120#define WRAPPER_CLASS_BOILERPLATE(classname, type) \
121 BOILERPLATE(classname); \
122 classname(type &&x) : v(std::move(x)) {} \
123 using WrapperTrait = std::true_type; \
126#define WRAPPER_CLASS(classname, type) \
128 WRAPPER_CLASS_BOILERPLATE(classname, type); \
161struct AllocatableStmt;
162struct AsynchronousStmt;
164struct CodimensionStmt;
165struct ContiguousStmt;
172struct OldParameterStmt;
182struct EquivalenceStmt;
219struct SyncMemoryStmt;
263struct BasedPointerStmt;
281using Location =
const char *;
286 constexpr Verbatim() {}
287 COPY_AND_ASSIGN_BOILERPLATE(Verbatim);
288 using EmptyTrait = std::true_type;
297template <
typename A>
struct Scalar {
298 using ConstraintTrait = std::true_type;
299 Scalar(Scalar &&that) =
default;
300 Scalar(A &&that) : thing(std::move(that)) {}
301 Scalar &operator=(Scalar &&) =
default;
305template <
typename A>
struct Constant {
306 using ConstraintTrait = std::true_type;
307 Constant(Constant &&that) =
default;
308 Constant(A &&that) : thing(std::move(that)) {}
309 Constant &operator=(Constant &&) =
default;
313template <
typename A>
struct Integer {
314 using ConstraintTrait = std::true_type;
315 Integer(Integer &&that) =
default;
316 Integer(A &&that) : thing(std::move(that)) {}
317 Integer &operator=(Integer &&) =
default;
321template <
typename A>
struct Logical {
322 using ConstraintTrait = std::true_type;
323 Logical(Logical &&that) =
default;
324 Logical(A &&that) : thing(std::move(that)) {}
325 Logical &operator=(Logical &&) =
default;
329template <
typename A>
struct DefaultChar {
330 using ConstraintTrait = std::true_type;
331 DefaultChar(DefaultChar &&that) =
default;
332 DefaultChar(A &&that) : thing(std::move(that)) {}
333 DefaultChar &operator=(DefaultChar &&) =
default;
352using Label = common::Label;
356template <
typename A>
struct UnlabeledStatement {
357 explicit UnlabeledStatement(A &&s) : statement(std::move(s)) {}
361template <
typename A>
struct Statement :
public UnlabeledStatement<A> {
362 Statement(std::optional<long> &&lab, A &&s)
363 : UnlabeledStatement<A>{std::move(s)}, label(std::move(lab)) {}
364 std::optional<Label> label;
368EMPTY_CLASS(ErrorRecovery);
380 std::variant<common::Indirection<AccessStmt>,
403 std::variant<common::Indirection<DerivedTypeDef>,
425 std::variant<Statement<common::Indirection<ImplicitStmt>>,
436WRAPPER_CLASS(ImplicitPart, std::list<ImplicitPartStmt>);
443 std::variant<SpecificationConstruct, Statement<common::Indirection<DataStmt>>,
457 std::tuple<std::list<OpenACCDeclarativeConstruct>,
458 std::list<OpenMPDeclarativeConstruct>,
459 std::list<common::Indirection<CompilerDirective>>,
460 std::list<Statement<common::Indirection<UseStmt>>>,
461 std::list<Statement<common::Indirection<ImportStmt>>>, ImplicitPart,
462 std::list<DeclarationConstruct>>
469 std::variant<common::Indirection<FunctionSubprogram>,
476EMPTY_CLASS(ContainsStmt);
481 std::tuple<Statement<ContainsStmt>, std::list<InternalSubprogram>> t;
485EMPTY_CLASS(ContinueStmt);
488EMPTY_CLASS(FailImageStmt);
502 std::variant<common::Indirection<AllocateStmt>,
560 std::variant<ExecutableConstruct, Statement<common::Indirection<FormatStmt>>,
569using Block = std::list<ExecutionPartConstruct>;
570WRAPPER_CLASS(ExecutionPart, Block);
577 std::variant<common::Indirection<MainProgram>,
588WRAPPER_CLASS(Program, std::list<ProgramUnit>);
592 std::string ToString()
const {
return source.ToString(); }
598WRAPPER_CLASS(Keyword,
Name);
601WRAPPER_CLASS(NamedConstant,
Name);
608WRAPPER_CLASS(DefinedOpName,
Name);
618 ENUM_CLASS(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat,
619 LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV)
620 std::variant<DefinedOpName, IntrinsicOperator> u;
624using ObjectName =
Name;
630 TUPLE_CLASS_BOILERPLATE(ImportStmt);
631 ImportStmt(common::ImportKind &&k) : t(k, std::list<Name>{}) {}
632 ImportStmt(std::list<Name> &&n)
633 : t(common::ImportKind::Default, std::move(n)) {}
634 ImportStmt(common::ImportKind &&, std::list<Name> &&);
635 std::tuple<common::ImportKind, std::list<Name>> t;
644 TUPLE_CLASS_BOILERPLATE(
Group);
645 std::tuple<Name, std::list<Name>> t;
647 WRAPPER_CLASS_BOILERPLATE(
NamelistStmt, std::list<Group>);
655 EMPTY_CLASS(Deferred);
656 std::variant<ScalarIntExpr, Star, Deferred> u;
664 WRAPPER_CLASS(StarSize, std::uint64_t);
665 std::variant<ScalarIntConstantExpr, StarSize> u;
669WRAPPER_CLASS(IntegerTypeSpec, std::optional<KindSelector>);
671WRAPPER_CLASS(UnsignedTypeSpec, std::optional<KindSelector>);
676 std::variant<TypeParamValue, std::uint64_t> u;
682 std::variant<TypeParamValue, CharLength> u;
691 UNION_CLASS_BOILERPLATE(CharSelector);
694 std::tuple<std::optional<TypeParamValue>, ScalarIntConstantExpr> t;
697 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
698 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
699 : u{LengthAndKind{std::move(l), std::move(k)}} {}
700 std::variant<LengthSelector, LengthAndKind> u;
711 WRAPPER_CLASS_BOILERPLATE(
Real, std::optional<KindSelector>);
713 EMPTY_CLASS(DoublePrecision);
715 WRAPPER_CLASS_BOILERPLATE(
Complex, std::optional<KindSelector>);
718 WRAPPER_CLASS_BOILERPLATE(
Character, std::optional<CharSelector>);
721 WRAPPER_CLASS_BOILERPLATE(
Logical, std::optional<KindSelector>);
723 EMPTY_CLASS(DoubleComplex);
724 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
732 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
737 EMPTY_CLASS(PairVectorTypeSpec);
738 EMPTY_CLASS(QuadVectorTypeSpec);
739 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
753 std::tuple<Name, std::list<TypeParamSpec>> t;
760 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
773 EMPTY_CLASS(ClassStar);
774 EMPTY_CLASS(TypeStar);
775 WRAPPER_CLASS(Record,
Name);
786 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
793 std::tuple<CharBlock, std::optional<KindParam>> t;
799 std::tuple<CharBlock, std::optional<KindParam>> t;
805 std::tuple<CharBlock, std::optional<KindParam>> t;
809enum class Sign { Positive, Negative };
819 using EmptyTrait = std::true_type;
820 COPY_AND_ASSIGN_BOILERPLATE(Real);
824 std::tuple<Real, std::optional<KindParam>> t;
849 std::tuple<ComplexPart, ComplexPart> t;
855 std::tuple<Sign, ComplexLiteralConstant> t;
863 std::tuple<std::optional<KindParam>, std::string> t;
864 std::string GetString()
const {
return std::get<std::string>(t); }
870 std::string GetString()
const {
return v; }
877 std::tuple<bool, std::optional<KindParam>> t;
887WRAPPER_CLASS(BOZLiteralConstant, std::string);
903 ENUM_CLASS(Kind, Public, Private)
909EMPTY_CLASS(Abstract);
913 WRAPPER_CLASS(Extends,
Name);
914 std::variant<Abstract, AccessSpec, BindC, Extends> u;
921 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
925EMPTY_CLASS(SequenceStmt);
929EMPTY_CLASS(PrivateStmt);
934 std::variant<PrivateStmt, SequenceStmt> u;
940 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
948 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
953WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
960 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
965WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
973 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
979 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
984WRAPPER_CLASS(DeferredShapeSpecList,
int);
990 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
998EMPTY_CLASS(Allocatable);
1000EMPTY_CLASS(Contiguous);
1021 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1022 std::list<common::Indirection<DataStmtValue>>>
1032struct ComponentDecl {
1033 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1035 std::optional<ComponentArraySpec> &&aSpec,
1036 std::optional<CoarraySpec> &&coaSpec,
1037 std::optional<Initialization> &&init)
1038 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1039 std::move(length), std::move(init)} {}
1040 std::tuple<Name, std::optional<ComponentArraySpec>,
1041 std::optional<CoarraySpec>, std::optional<CharLength>,
1042 std::optional<Initialization>>
1050 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1056 std::variant<ComponentDecl, FillDecl> u;
1064 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1065 std::list<ComponentOrFill>>
1072WRAPPER_CLASS(Pass, std::optional<Name>);
1075 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1082 std::variant<NullInit, Name> u;
1089 std::variant<Name, DeclarationTypeSpec> u;
1095 std::tuple<Name, std::optional<ProcPointerInit>> t;
1103 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1104 std::list<ProcDecl>>
1122 EMPTY_CLASS(Deferred);
1123 EMPTY_CLASS(Non_Overridable);
1124 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1130 std::tuple<Name, std::optional<Name>> t;
1142 std::tuple<std::list<BindAttr>, std::list<TypeBoundProcDecl>> t;
1146 std::tuple<Name, std::list<BindAttr>, std::list<Name>> t;
1148 std::variant<WithoutInterface, WithInterface> u;
1161WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1177 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1178 std::list<Statement<TypeBoundProcBinding>>>
1183WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1191 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1192 std::list<Statement<PrivateOrSequence>>,
1193 std::list<Statement<ComponentDefStmt>>,
1206 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1212 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1216EMPTY_CLASS(EnumDefStmt);
1221 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1225WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1228EMPTY_CLASS(EndEnumStmt);
1234 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1235 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1244 std::tuple<std::optional<AccessSpec>,
Name> t;
1249WRAPPER_CLASS(EnumerationEnumeratorStmt, std::list<Name>);
1253WRAPPER_CLASS(EndEnumerationTypeStmt, std::optional<Name>);
1261 std::tuple<Statement<EnumerationTypeStmt>,
1262 std::list<Statement<EnumerationEnumeratorStmt>>,
1270 TUPLE_CLASS_BOILERPLATE(
Triplet);
1271 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1273 UNION_CLASS_BOILERPLATE(
AcValue);
1274 std::variant<Triplet, common::Indirection<Expr>,
1281 TUPLE_CLASS_BOILERPLATE(AcSpec);
1282 explicit AcSpec(
TypeSpec &&ts) : t(std::move(ts), std::list<AcValue>()) {}
1283 std::tuple<std::optional<TypeSpec>, std::list<AcValue>> t;
1287WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1294 std::tuple<VAR, BOUND, BOUND, std::optional<BOUND>> t;
1296 const VAR &Name()
const {
return std::get<0>(t); }
1297 const BOUND &Lower()
const {
return std::get<1>(t); }
1298 const BOUND &Upper()
const {
return std::get<2>(t); }
1299 const std::optional<BOUND> &Step()
const {
return std::get<3>(t); }
1312 std::tuple<std::optional<IntegerTypeSpec>, Bounds> t;
1327 std::tuple<std::optional<ScalarDefaultCharConstantExpr>,
bool> t;
1333 std::tuple<NamedConstant, ConstantExpr> t;
1337WRAPPER_CLASS(ParameterStmt, std::list<NamedConstantDef>);
1340WRAPPER_CLASS(AssumedShapeSpec, std::optional<SpecificationExpr>);
1343WRAPPER_CLASS(AssumedImpliedSpec, std::optional<SpecificationExpr>);
1348 std::tuple<std::list<ExplicitShapeSpec>, AssumedImpliedSpec> t;
1355WRAPPER_CLASS(ImpliedShapeSpec, std::list<AssumedImpliedSpec>);
1358EMPTY_CLASS(AssumedRankSpec);
1366WRAPPER_CLASS(AssumedShapeBoundsSpec, IntExpr);
1370 std::tuple<std::optional<IntExpr>, IntExpr> t;
1376 std::list<AssumedShapeSpec>, AssumedShapeBoundsSpec,
1377 DeferredShapeSpecList,
AssumedSizeSpec, ImpliedShapeSpec, AssumedRankSpec>
1383 ENUM_CLASS(Intent, In, Out, InOut)
1384 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1389WRAPPER_CLASS(RankClause, ScalarIntConstantExpr);
1399EMPTY_CLASS(Asynchronous);
1400EMPTY_CLASS(External);
1401EMPTY_CLASS(Intrinsic);
1402EMPTY_CLASS(Optional);
1403EMPTY_CLASS(Parameter);
1404EMPTY_CLASS(Protected);
1408EMPTY_CLASS(Volatile);
1413 Parameter, Pointer, Protected, RankClause, Save, Target, Value, Volatile,
1414 common::CUDADataAttr>
1425 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1426 EntityDecl(ObjectName &&name,
CharLength &&length,
1427 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1428 std::optional<Initialization> &&init)
1429 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1430 std::move(length), std::move(init)} {}
1431 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1432 std::optional<CharLength>, std::optional<Initialization>>
1440 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1450 std::tuple<AccessSpec, std::list<AccessId>> t;
1459 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1464WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1467WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1472 ENUM_CLASS(Kind, Object, Common)
1473 std::tuple<Kind, Name> t;
1479 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1485 std::tuple<Name, CoarraySpec> t;
1489WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1492WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1501using TypedAssignment =
1514 mutable TypedExpr typedExpr;
1515 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1528 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1534 mutable std::int64_t repetitions{1};
1542 std::variant<Scalar<common::Indirection<Designator>>,
1555 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1562 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1568 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1572WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1580 std::tuple<Name, ArraySpec> t;
1582 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1588 std::tuple<IntentSpec, std::list<Name>> t;
1592WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1598 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1602WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1605WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1611 ENUM_CLASS(Kind, Entity, Common)
1612 std::tuple<Kind, Name> t;
1616WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1619WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1622WRAPPER_CLASS(ValueStmt, std::list<Name>);
1625WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1630 std::tuple<Location, std::optional<Location>> t;
1636 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1645 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1646 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1652 std::tuple<Name, std::optional<ArraySpec>> t;
1660 TUPLE_CLASS_BOILERPLATE(
Block);
1661 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1663 WRAPPER_CLASS_BOILERPLATE(CommonStmt, std::list<Block>);
1664 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1665 std::list<Block> &&);
1674WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1679 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1683using Subscript = ScalarIntExpr;
1688 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1689 std::optional<Subscript>>
1697 std::variant<IntExpr, SubscriptTriplet> u;
1701using Cosubscript = ScalarIntExpr;
1712 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1715 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1722 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1731 std::tuple<ScalarLogicalExpr, common::Indirection<Expr>,
1738 UNION_CLASS_BOILERPLATE(Expr);
1742 using IntrinsicUnary::IntrinsicUnary;
1745 using IntrinsicUnary::IntrinsicUnary;
1748 using IntrinsicUnary::IntrinsicUnary;
1750 struct NOT :
public IntrinsicUnary {
1751 using IntrinsicUnary::IntrinsicUnary;
1758 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
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;
1787 using IntrinsicBinary::IntrinsicBinary;
1790 using IntrinsicBinary::IntrinsicBinary;
1793 using IntrinsicBinary::IntrinsicBinary;
1796 using IntrinsicBinary::IntrinsicBinary;
1799 using IntrinsicBinary::IntrinsicBinary;
1802 using IntrinsicBinary::IntrinsicBinary;
1805 using IntrinsicBinary::IntrinsicBinary;
1808 using IntrinsicBinary::IntrinsicBinary;
1811 using IntrinsicBinary::IntrinsicBinary;
1816 using IntrinsicBinary::IntrinsicBinary;
1821 std::tuple<DefinedOpName, common::Indirection<Expr>,
1829 mutable TypedExpr typedExpr;
1833 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1838 Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
DefinedBinary,
1845 TUPLE_CLASS_BOILERPLATE(
PartRef);
1846 std::tuple<Name, std::list<SectionSubscript>, std::optional<ImageSelector>> t;
1851 UNION_CLASS_BOILERPLATE(DataRef);
1852 explicit DataRef(std::list<PartRef> &&);
1853 std::variant<Name, common::Indirection<StructureComponent>,
1869 std::tuple<DataRef, SubstringRange> t;
1874 std::tuple<CharLiteralConstant, SubstringRange> t;
1891 bool EndsInBareName()
const;
1893 std::variant<DataRef, Substring> u;
1899 mutable TypedExpr typedExpr;
1901 std::variant<common::Indirection<Designator>,
1921 std::tuple<DataRef, Name> t;
1923 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1924 const Name &Component()
const {
return std::get<Name>(t); }
1936 std::tuple<DataRef, ImageSelector> t;
1945 std::tuple<DataRef, std::list<SectionSubscript>> t;
1947 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1948 const std::list<SectionSubscript> &Subscripts()
const {
1949 return std::get<std::list<SectionSubscript>>(t);
1956 mutable TypedExpr typedExpr;
1957 std::variant<Name, StructureComponent> u;
1962using BoundExpr = ScalarIntExpr;
1968 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1977 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1985 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1986 std::optional<AllocateCoarraySpec>>
1991WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1995WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
2001 std::variant<StatVariable, MsgVariable> u;
2016 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
2023 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
2024 std::list<AllocOpt>>
2032 mutable TypedExpr typedExpr;
2033 std::variant<Name, StructureComponent> u;
2037WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
2043 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
2049 mutable TypedAssignment typedAssignment;
2050 std::tuple<Variable, Expr> t;
2054WRAPPER_CLASS(BoundsSpec, BoundExpr);
2059 std::tuple<BoundExpr, BoundExpr> t;
2071 UNION_CLASS_BOILERPLATE(
Bounds);
2072 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2075 mutable TypedAssignment typedAssignment;
2076 std::tuple<DataRef, Bounds, Expr> t;
2084 std::tuple<LogicalExpr, AssignmentStmt> t;
2090 std::tuple<std::optional<Name>, LogicalExpr> t;
2106 std::tuple<LogicalExpr, std::optional<Name>> t;
2110WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2113WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2122 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2126 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2129 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2130 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2145 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2151 std::tuple<common::Indirection<ConcurrentHeader>,
2168WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2174 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2182 std::variant<Expr, Variable> u;
2188 std::tuple<Name, Selector> t;
2195 std::tuple<std::optional<Name>, std::list<Association>> t;
2199WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2208WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2211WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2226 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2234 std::tuple<CodimensionDecl, Selector> t;
2242 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2243 std::list<StatOrErrmsg>>
2251 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2264 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2268WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2282 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2291 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2292 std::optional<ScalarLogicalExpr>>
2302 ENUM_CLASS(Operator, Plus, Minus, Multiply, Max, Min, Iand, Ior, Ieor, And,
2314 WRAPPER_CLASS(Local, std::list<Name>);
2315 WRAPPER_CLASS(LocalInit, std::list<Name>);
2317 TUPLE_CLASS_BOILERPLATE(
Reduce);
2319 std::tuple<Operator, std::list<Name>> t;
2321 WRAPPER_CLASS(Shared, std::list<Name>);
2322 EMPTY_CLASS(DefaultNone);
2323 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2336 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2339 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2346 std::tuple<Label, std::optional<LoopControl>> t;
2352 std::tuple<std::optional<Name>, std::optional<Label>,
2353 std::optional<LoopControl>>
2358WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2369 const std::optional<LoopControl> &GetLoopControl()
const;
2370 bool IsDoNormal()
const;
2371 bool IsDoWhile()
const;
2372 bool IsDoConcurrent()
const;
2377WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2382 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2389 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2393WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2396WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2404 std::tuple<Statement<ElseIfStmt>, Block> t;
2408 std::tuple<Statement<ElseStmt>, Block> t;
2411 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2418 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2419 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2437 TUPLE_CLASS_BOILERPLATE(
Range);
2438 std::tuple<std::optional<CaseValue>, std::optional<CaseValue>>
2441 std::variant<CaseValue, Range> u;
2445EMPTY_CLASS(Default);
2449 std::variant<std::list<CaseValueRange>, Default> u;
2455 std::tuple<CaseSelector, std::optional<Name>> t;
2461WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2467 TUPLE_CLASS_BOILERPLATE(
Case);
2468 std::tuple<Statement<CaseStmt>, Block> t;
2471 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2481 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2490 UNION_CLASS_BOILERPLATE(
Rank);
2491 std::variant<ScalarIntConstantExpr, Star, Default> u;
2494 std::tuple<Rank, std::optional<Name>> t;
2504 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2506 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2516 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2525 UNION_CLASS_BOILERPLATE(
Guard);
2526 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2529 std::tuple<Guard, std::optional<Name>> t;
2538 std::tuple<Statement<TypeGuardStmt>, Block> t;
2540 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2546WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2549WRAPPER_CLASS(GotoStmt, Label);
2554 std::tuple<std::list<Label>, ScalarIntExpr> t;
2567 ENUM_CLASS(Kind, Stop, ErrorStop)
2569 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2576 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2580WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2587 std::variant<IntExpr, Star> u;
2590 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2594WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2599 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2608 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2614 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2622 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2635 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2638 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2649 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2652 std::tuple<LockVariable, std::list<LockStat>> t;
2658 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2662WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2672 UNION_CLASS_BOILERPLATE(
IoUnit);
2673 std::variant<Variable, common::Indirection<Expr>, Star> u;
2677using FileNameExpr = ScalarDefaultCharExpr;
2697WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2698WRAPPER_CLASS(ErrLabel, Label);
2703 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2704 Encoding, Form, Leading_Zero, Pad, Position, Round, Sign,
2705 Carriagecontrol, Convert, Dispose)
2707 std::tuple<Kind, ScalarDefaultCharExpr> t;
2709 WRAPPER_CLASS(Recl, ScalarIntExpr);
2710 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2711 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2712 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2717WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2727 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2731 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2737 UNION_CLASS_BOILERPLATE(
Format);
2738 std::variant<Expr, Label, Star> u;
2742WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2758WRAPPER_CLASS(EndLabel, Label);
2759WRAPPER_CLASS(EorLabel, Label);
2764 Kind, Advance, Blank, Decimal, Delim, Leading_Zero, Pad, Round, Sign)
2766 std::tuple<Kind, ScalarDefaultCharExpr> t;
2768 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2769 WRAPPER_CLASS(Pos, ScalarIntExpr);
2770 WRAPPER_CLASS(Rec, ScalarIntExpr);
2771 WRAPPER_CLASS(Size, ScalarIntVariable);
2773 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2781 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2788 BOILERPLATE(ReadStmt);
2789 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2790 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2791 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2792 items(std::move(its)) {}
2793 std::optional<IoUnit> iounit;
2795 std::optional<Format> format;
2798 std::list<IoControlSpec> controls;
2799 std::list<InputItem> items;
2805 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2810 BOILERPLATE(WriteStmt);
2811 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2812 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2813 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2814 items(std::move(its)) {}
2815 std::optional<IoUnit> iounit;
2817 std::optional<Format> format;
2819 std::list<IoControlSpec> controls;
2820 std::list<OutputItem> items;
2826 std::tuple<Format, std::list<OutputItem>> t;
2837 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2842 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2849WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2852 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2853 MsgVariable, StatVariable>
2858WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2868 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2873WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2877WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2880WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2883WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2924 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2925 Direct, Encoding, Form, Formatted, Iomsg, Leading_Zero,
Name, Pad,
2926 Position, Read, Readwrite, Round, Sequential, Sign, Stream, Status,
2928 Carriagecontrol, Convert, Dispose)
2929 TUPLE_CLASS_BOILERPLATE(
CharVar);
2930 std::tuple<Kind, ScalarDefaultCharVariable> t;
2933 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2934 TUPLE_CLASS_BOILERPLATE(
IntVar);
2935 std::tuple<Kind, ScalarIntVariable> t;
2938 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2939 TUPLE_CLASS_BOILERPLATE(
LogVar);
2940 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2954 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2956 std::variant<std::list<InquireSpec>,
Iolength> u;
2963WRAPPER_CLASS(ProgramStmt,
Name);
2966WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2974 ExecutionPart, std::optional<InternalSubprogramPart>,
2980WRAPPER_CLASS(ModuleStmt,
Name);
2987 std::variant<common::Indirection<FunctionSubprogram>,
2998 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
3002WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
3008 TUPLE_CLASS_BOILERPLATE(
Module);
3019 UNION_CLASS_BOILERPLATE(
Rename);
3021 TUPLE_CLASS_BOILERPLATE(
Names);
3022 std::tuple<Name, Name> t;
3026 std::tuple<DefinedOpName, DefinedOpName> t;
3028 std::variant<Names, Operators> u;
3034 std::tuple<Name, std::optional<Name>> t;
3040 std::tuple<ParentIdentifier, Name> t;
3044WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3057WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3060WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3078 EMPTY_CLASS(Assignment);
3079 EMPTY_CLASS(ReadFormatted);
3080 EMPTY_CLASS(ReadUnformatted);
3081 EMPTY_CLASS(WriteFormatted);
3082 EMPTY_CLASS(WriteUnformatted);
3085 ReadUnformatted, WriteFormatted, WriteUnformatted>
3093 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3097struct InterfaceStmt {
3098 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3100 InterfaceStmt(Abstract x) : u{x} {}
3102 std::variant<std::optional<GenericSpec>, Abstract> u;
3108 UNION_CLASS_BOILERPLATE(
Only);
3109 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3117 BOILERPLATE(UseStmt);
3118 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3119 template <
typename A>
3120 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3121 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3122 std::optional<ModuleNature> nature;
3124 std::variant<std::list<Rename>, std::list<Only>> u;
3142 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3143 std::list<ProcDecl>>
3154 EMPTY_CLASS(Elemental);
3155 EMPTY_CLASS(Impure);
3157 EMPTY_CLASS(Non_Recursive);
3159 EMPTY_CLASS(Recursive);
3160 EMPTY_CLASS(Simple);
3161 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3162 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3163 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3165 Pure, Recursive, Simple, Attributes, Launch_Bounds, Cluster_Dims>
3173 TUPLE_CLASS_BOILERPLATE(Suffix);
3175 : t(std::move(rn), std::move(lbs)) {}
3176 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3185 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3186 std::optional<Suffix>>
3191WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3196 std::variant<Name, Star> u;
3204 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3205 std::optional<LanguageBindingSpec>>
3210WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3225 std::tuple<Statement<SubroutineStmt>,
3229 std::variant<Function, Subroutine> u;
3234 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3236 std::tuple<Kind, std::list<Name>> t;
3246 std::variant<InterfaceBody, Statement<ProcedureStmt>,
3253WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3259 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3265WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3268WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3274 std::variant<Name, ProcComponentRef> u;
3278WRAPPER_CLASS(AltReturnSpec, Label);
3281EMPTY_CLASS(ConditionalArgNil);
3295 std::variant<common::Indirection<Expr>, ConditionalArgNil> u;
3304 std::variant<ConditionalArg, ConditionalArg::Consequent> u;
3311 WRAPPER_CLASS(PercentRef,
Expr);
3312 WRAPPER_CLASS(PercentVal,
Expr);
3313 UNION_CLASS_BOILERPLATE(ActualArg);
3315 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal,
3323 std::tuple<std::optional<Keyword>,
ActualArg> t;
3329 TUPLE_CLASS_BOILERPLATE(
Call);
3330 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3346 TUPLE_CLASS_BOILERPLATE(CallStmt);
3347 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3350 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3351 std::optional<ScalarIntExpr>>
3355 std::list<ActualArgSpec> &&args)
3356 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3357 std::tuple<Call, std::optional<Chevrons>> t;
3359 mutable TypedCall typedCall;
3383WRAPPER_CLASS(MpSubprogramStmt,
Name);
3386WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3401 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3405WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3436 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3439 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3443 std::tuple<common::Indirection<Designator>, uint64_t> t;
3445 EMPTY_CLASS(VectorAlways);
3448 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3450 std::tuple<std::uint64_t, Kind> t;
3454 std::tuple<Name, std::optional<std::uint64_t>> t;
3457 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3460 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3463 WRAPPER_CLASS_BOILERPLATE(
3467 WRAPPER_CLASS_BOILERPLATE(
InlineAlways, std::optional<Name>);
3469 EMPTY_CLASS(NoVector);
3470 EMPTY_CLASS(NoUnroll);
3471 EMPTY_CLASS(NoUnrollAndJam);
3472 EMPTY_CLASS(ForceInline);
3473 EMPTY_CLASS(Inline);
3474 EMPTY_CLASS(NoInline);
3477 EMPTY_CLASS(Unrecognized);
3479 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3481 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3489 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3495 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3497WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3504 std::variant<Statement<DataComponentDefStmt>,
3510 EMPTY_CLASS(MapStmt);
3511 EMPTY_CLASS(EndMapStmt);
3512 TUPLE_CLASS_BOILERPLATE(
Map);
3513 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3519 EMPTY_CLASS(UnionStmt);
3520 EMPTY_CLASS(EndUnionStmt);
3521 TUPLE_CLASS_BOILERPLATE(
Union);
3527 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3531 EMPTY_CLASS(EndStructureStmt);
3533 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3540WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3545 std::tuple<Expr, Label, Label, Label> t;
3550 std::tuple<Label, Name> t;
3555 std::tuple<Name, std::list<Label>> t;
3558WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3564#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3565 using basename::basename; \
3566 classname(basename &&b) : basename(std::move(b)) {} \
3567 using TupleTrait = std::true_type; \
3568 BOILERPLATE(classname)
3570#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3571 BOILERPLATE(classname); \
3572 using basename::basename; \
3573 classname(basename &&base) : basename(std::move(base)) {} \
3574 using WrapperTrait = std::true_type
3579struct OmpDirectiveName {
3581 constexpr OmpDirectiveName() =
default;
3582 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3583 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3587 OmpDirectiveName(
const Verbatim &name);
3588 using WrapperTrait = std::true_type;
3590 bool IsExecutionPart()
const;
3593 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3601 std::variant<TypeSpec, DeclarationTypeSpec> u;
3615 std::variant<FunctionReference, OmpReservedIdentifier> u;
3626 ENUM_CLASS(Kind, BlankCommonBlock);
3627 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3631 std::variant<Designator, OmpLocator, Name, Invalid> u;
3635 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3642 using EmptyTrait = std::true_type;
3650 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3653 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3667 WRAPPER_CLASS_BOILERPLATE(
3680 std::variant<DefinedOperator, ProcedureDesignator> u;
3689 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3701 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3706inline namespace arguments {
3716 std::tuple<OmpObject, OmpObject> t;
3727 std::tuple<std::string, TypeSpec, Name> t;
3740 std::optional<OmpCombinerExpression>>
3759inline namespace traits {
3796 TUPLE_CLASS_BOILERPLATE(
Complex);
3798 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3802 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3818 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3843 std::string ToString()
const;
3846 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3847 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3848 std::variant<Value, llvm::omp::Directive, std::string> u;
3859 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3861 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3868 std::string ToString()
const;
3870 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3879 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3886 WRAPPER_CLASS_BOILERPLATE(
3891#define MODIFIER_BOILERPLATE(...) \
3893 using Variant = std::variant<__VA_ARGS__>; \
3894 UNION_CLASS_BOILERPLATE(Modifier); \
3899#define MODIFIERS() std::optional<std::list<Modifier>>
3901inline namespace modifier {
3909 ENUM_CLASS(Value, Cgroup);
3918 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3954 ENUM_CLASS(Value, Always)
3966 ENUM_CLASS(Value, Always, Never, Auto)
3976 ENUM_CLASS(Value, Automap);
3987 ENUM_CLASS(Value, Simd)
4000 ENUM_CLASS(Value, Close)
4012 ENUM_CLASS(Value, Delete)
4033 ENUM_CLASS(Value, Sink, Source);
4044 using Value = common::OmpDependenceKind;
4046 std::tuple<Value, OmpObject> t;
4054 ENUM_CLASS(Value, Ancestor, Device_Num)
4080 INHERITED_WRAPPER_CLASS_BOILERPLATE(
4095 ENUM_CLASS(Value, Present);
4106 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4117 ENUM_CLASS(Value, Target, Targetsync)
4131 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4139 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4147 ENUM_CLASS(Value, Conditional)
4156 ENUM_CLASS(Value, Ref, Uval, Val);
4172 std::tuple<llvm::omp::LoopModifier,
4173 std::optional<std::list<ScalarIntConstantExpr>>>
4204 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4205 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4217 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4232 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4241 ENUM_CLASS(Value, Reproducible, Unconstrained)
4254 using Extensions = std::list<PreferencePropertyExtension>;
4255 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4265 using ForeignRuntimeIdentifier =
4266 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4267 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4275 WRAPPER_CLASS_BOILERPLATE(
4284 ENUM_CLASS(Value, Strict)
4297 ENUM_CLASS(Value, Present)
4306 ENUM_CLASS(Value, Default, Inscan, Task);
4316 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4326 ENUM_CLASS(Value, Self)
4353 using Value = common::OmpDependenceKind;
4364 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4377 ENUM_CLASS(Value, Ompx_Hold)
4387using OmpDirectiveList = std::list<llvm::omp::Directive>;
4400 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4403 std::tuple<OmpAdjustOp, OmpObjectList> t;
4420 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4451 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4459 ENUM_CLASS(ActionTime, Compilation, Execution);
4460 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4471 using MemoryOrder = common::OmpMemoryOrderType;
4482 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4489 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4515 std::tuple<MODIFIERS(), std::list<OmpDirectiveSpecification>> t;
4527 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4543 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4546 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4555 WRAPPER_CLASS_BOILERPLATE(
4565 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4574 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4591 OmpDependenceType::Value GetDepType()
const;
4594 EMPTY_CLASS(Source);
4596 std::variant<Sink, Source> u;
4611 OmpTaskDependenceType::Value GetTaskDepType()
const;
4612 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4616 std::variant<TaskDep, OmpDoacross> u;
4653 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4669 using DeviceTypeDescription = common::OmpDeviceType;
4679 WRAPPER_CLASS_BOILERPLATE(
4686 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4703 using MemoryOrder = common::OmpMemoryOrderType;
4729 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4750 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4763 WRAPPER_CLASS_BOILERPLATE(
4776 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4829 MODIFIER_BOILERPLATE(
4840 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4877 WRAPPER_CLASS_BOILERPLATE(
4891EMPTY_CLASS(OmpNoOpenMPClause);
4896EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4901EMPTY_CLASS(OmpNoParallelismClause);
4911 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4923 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4935 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4945 ENUM_CLASS(Ordering, Concurrent)
4947 std::tuple<MODIFIERS(), Ordering> t;
4969 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
5012 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
5014 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
5029 ENUM_CLASS(SevLevel, Fatal, Warning);
5051 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
5058 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
5101 WRAPPER_CLASS_BOILERPLATE(
5119 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
5129 MODIFIER_BOILERPLATE(OmpContextSelector);
5130 std::tuple<MODIFIERS(),
5131 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5145 llvm::omp::Clause Id()
const;
5147#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5148#include "llvm/Frontend/OpenMP/OMP.inc"
5153#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5154#include "llvm/Frontend/OpenMP/OMP.inc"
5160 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5167 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo, ExplicitBegin)
5172 return std::get<OmpDirectiveName>(t);
5174 llvm::omp::Directive DirId()
const {
5181 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5182 std::optional<OmpClauseList>, Flags>
5191 INHERITED_TUPLE_CLASS_BOILERPLATE(
5203 return std::get<OmpBeginDirective>(t);
5205 const std::optional<OmpEndDirective> &EndDir()
const {
5206 return std::get<std::optional<OmpEndDirective>>(t);
5210 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5214 WRAPPER_CLASS_BOILERPLATE(
5219 INHERITED_TUPLE_CLASS_BOILERPLATE(
5240 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5266 INHERITED_TUPLE_CLASS_BOILERPLATE(
5281 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5289 return std::get<OmpBeginSectionsDirective>(t);
5291 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5292 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5299 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5300 std::optional<OmpEndSectionsDirective>>
5309 WRAPPER_CLASS_BOILERPLATE(
5321 WRAPPER_CLASS_BOILERPLATE(
5329 WRAPPER_CLASS_BOILERPLATE(
5338 WRAPPER_CLASS_BOILERPLATE(
5355 WRAPPER_CLASS_BOILERPLATE(
5368 WRAPPER_CLASS_BOILERPLATE(
5428 INHERITED_TUPLE_CLASS_BOILERPLATE(
5433 llvm::omp::Clause GetKind()
const;
5434 bool IsCapture()
const;
5435 bool IsCompare()
const;
5441 static constexpr int None = 0;
5442 static constexpr int Read = 1;
5443 static constexpr int Write = 2;
5444 static constexpr int Update = Read | Write;
5445 static constexpr int Action = 3;
5446 static constexpr int IfTrue = 4;
5447 static constexpr int IfFalse = 8;
5448 static constexpr int Condition = 12;
5452 TypedAssignment assign;
5454 TypedExpr atom, cond;
5463 WRAPPER_CLASS_BOILERPLATE(
5524 WRAPPER_CLASS_BOILERPLATE(
5566 INHERITED_TUPLE_CLASS_BOILERPLATE(
5572 using EmptyTrait = std::true_type;
5583WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5615 std::variant<Name, ScalarDefaultCharExpr> u;
5625 ENUM_CLASS(Modifier, ReadOnly, Zero)
5632 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5637 std::tuple<ReductionOperator, AccObjectList> t;
5642 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5646 WRAPPER_CLASS_BOILERPLATE(
5652 WRAPPER_CLASS_BOILERPLATE(
5659 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5667 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5676 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5683 WRAPPER_CLASS(Num, ScalarIntExpr);
5684 WRAPPER_CLASS(Dim, ScalarIntExpr);
5686 std::variant<Num, Dim, Static> u;
5691 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5696 std::tuple<bool, ScalarIntConstantExpr> t;
5702#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5703#include "llvm/Frontend/OpenACC/ACC.inc"
5708#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5709#include "llvm/Frontend/OpenACC/ACC.inc"
5715 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5728 std::tuple<Verbatim, AccObjectListWithModifier> t;
5734 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5739 std::tuple<AccLoopDirective, AccClauseList> t;
5746 std::tuple<AccBlockDirective, AccClauseList> t;
5755EMPTY_CLASS(AccEndAtomic);
5760 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5761 std::optional<AccEndAtomic>>
5768 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5769 std::optional<AccEndAtomic>>
5777 std::optional<AccEndAtomic>>
5786 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5791 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5798 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5804 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5810 std::tuple<AccCombinedDirective, AccClauseList> t;
5818struct OpenACCCombinedConstruct {
5819 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5822 : t({std::move(a), std::nullopt, std::nullopt}) {}
5823 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5824 std::optional<AccEndCombinedDirective>>
5831 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5836EMPTY_CLASS(AccEndLoop);
5837struct OpenACCLoopConstruct {
5838 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5840 : t({std::move(a), std::nullopt, std::nullopt}) {}
5841 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5842 std::optional<AccEndLoop>>
5854 std::tuple<AccStandaloneDirective, AccClauseList> t;
5880 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5885 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5888 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5889 std::optional<ScalarIntExpr>>
5895 std::tuple<std::optional<ScalarIntConstantExpr>,
5896 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5899 std::tuple<Directive, std::optional<DoConstruct>> t;
Definition indirection.h:127
Definition indirection.h:31
Definition reference.h:18
Definition char-block.h:26
Definition parse-state.h:31
Definition check-expression.h:19
Definition expression.h:948
Definition expression.h:938
Definition parse-tree.h:1309
Definition parse-tree.h:1316
Definition parse-tree.h:1280
Definition parse-tree.h:1269
Definition parse-tree.h:1268
Definition parse-tree.h:5782
Definition parse-tree.h:5758
Definition parse-tree.h:5774
Definition parse-tree.h:5766
Definition parse-tree.h:5743
Definition parse-tree.h:5807
Definition parse-tree.h:5737
Definition parse-tree.h:5613
Definition parse-tree.h:5586
Definition parse-tree.h:5714
Definition parse-tree.h:5699
Definition parse-tree.h:5694
Definition parse-tree.h:5602
Definition parse-tree.h:5624
Definition parse-tree.h:5607
Definition parse-tree.h:5619
Definition parse-tree.h:5651
Definition parse-tree.h:5645
Definition parse-tree.h:5749
Definition parse-tree.h:5813
Definition parse-tree.h:5690
Definition parse-tree.h:5681
Definition parse-tree.h:5591
Definition parse-tree.h:5630
Definition parse-tree.h:5635
Definition parse-tree.h:5578
Definition parse-tree.h:5674
Definition parse-tree.h:5670
Definition parse-tree.h:5666
Definition parse-tree.h:5596
Definition parse-tree.h:5662
Definition parse-tree.h:5656
Definition parse-tree.h:5640
Definition parse-tree.h:902
Definition parse-tree.h:1448
Definition parse-tree.h:500
Definition parse-tree.h:3321
Definition parse-tree.h:3310
Definition parse-tree.h:2010
Definition parse-tree.h:1975
Definition parse-tree.h:1954
Definition parse-tree.h:1966
Definition parse-tree.h:2021
Definition parse-tree.h:1983
Definition parse-tree.h:3543
Definition parse-tree.h:1940
Definition parse-tree.h:1373
Definition parse-tree.h:3548
Definition parse-tree.h:3553
Definition parse-tree.h:2047
Definition parse-tree.h:2202
Definition parse-tree.h:2193
Definition parse-tree.h:2186
Definition parse-tree.h:1346
Definition parse-tree.h:1409
Definition parse-tree.h:3493
Definition parse-tree.h:1120
Definition parse-tree.h:1470
Definition parse-tree.h:1477
Definition parse-tree.h:2224
Definition parse-tree.h:3063
Definition parse-tree.h:2057
Definition parse-tree.h:3487
Definition parse-tree.h:5892
Definition parse-tree.h:5886
Definition parse-tree.h:5883
Definition parse-tree.h:5877
Definition parse-tree.h:3348
Definition parse-tree.h:3345
Definition parse-tree.h:3328
Definition parse-tree.h:2466
Definition parse-tree.h:2465
Definition parse-tree.h:2447
Definition parse-tree.h:2453
Definition parse-tree.h:2436
Definition parse-tree.h:2434
Definition parse-tree.h:2255
Definition parse-tree.h:2240
Definition parse-tree.h:674
Definition parse-tree.h:1872
Definition parse-tree.h:861
Definition parse-tree.h:692
Definition parse-tree.h:690
Definition parse-tree.h:2725
Definition parse-tree.h:2724
Definition parse-tree.h:2232
Definition parse-tree.h:977
Definition parse-tree.h:1483
Definition parse-tree.h:1934
Definition parse-tree.h:1650
Definition parse-tree.h:1659
Definition parse-tree.h:1658
Definition parse-tree.h:3441
Definition parse-tree.h:3434
Definition parse-tree.h:3466
Definition parse-tree.h:3438
Definition parse-tree.h:3452
Definition parse-tree.h:3462
Definition parse-tree.h:3459
Definition parse-tree.h:3456
Definition parse-tree.h:3446
Definition parse-tree.h:3432
Definition parse-tree.h:847
Definition parse-tree.h:839
Definition parse-tree.h:988
Definition parse-tree.h:1001
Definition parse-tree.h:1109
Definition parse-tree.h:1054
Definition parse-tree.h:1204
Definition parse-tree.h:2552
Definition parse-tree.h:2280
Definition parse-tree.h:3302
Definition parse-tree.h:3291
Definition parse-tree.h:3289
Definition parse-tree.h:1729
Definition parse-tree.h:2702
Definition parse-tree.h:2700
Definition parse-tree.h:305
Definition parse-tree.h:2271
Definition parse-tree.h:2262
Definition parse-tree.h:1062
Definition parse-tree.h:1540
Definition parse-tree.h:1552
Definition parse-tree.h:1850
Definition parse-tree.h:1511
Definition parse-tree.h:1560
Definition parse-tree.h:1526
Definition parse-tree.h:1566
Definition parse-tree.h:1532
Definition parse-tree.h:2041
Definition parse-tree.h:441
Definition parse-tree.h:769
Definition parse-tree.h:329
Definition parse-tree.h:616
Definition parse-tree.h:1189
Definition parse-tree.h:750
Definition parse-tree.h:919
Definition parse-tree.h:1889
Definition parse-tree.h:1578
Definition parse-tree.h:1577
Definition parse-tree.h:2367
Definition parse-tree.h:3194
Definition parse-tree.h:2387
Definition parse-tree.h:2249
Definition parse-tree.h:1424
Definition parse-tree.h:3399
Definition parse-tree.h:1233
Definition parse-tree.h:1259
Definition parse-tree.h:1242
Definition parse-tree.h:1219
Definition parse-tree.h:2606
Definition parse-tree.h:2612
Definition parse-tree.h:2620
Definition parse-tree.h:533
Definition parse-tree.h:558
Definition parse-tree.h:971
Definition parse-tree.h:1368
Definition parse-tree.h:958
Definition parse-tree.h:1801
Definition parse-tree.h:1774
Definition parse-tree.h:1815
Definition parse-tree.h:1780
Definition parse-tree.h:1819
Definition parse-tree.h:1756
Definition parse-tree.h:1771
Definition parse-tree.h:1807
Definition parse-tree.h:1789
Definition parse-tree.h:1795
Definition parse-tree.h:1798
Definition parse-tree.h:1761
Definition parse-tree.h:1786
Definition parse-tree.h:1783
Definition parse-tree.h:1768
Definition parse-tree.h:1810
Definition parse-tree.h:1792
Definition parse-tree.h:1750
Definition parse-tree.h:1747
Definition parse-tree.h:1804
Definition parse-tree.h:1741
Definition parse-tree.h:1765
Definition parse-tree.h:1777
Definition parse-tree.h:1744
Definition parse-tree.h:1737
Definition parse-tree.h:1048
Definition parse-tree.h:2143
Definition parse-tree.h:2159
Definition parse-tree.h:2137
Definition parse-tree.h:2172
Definition parse-tree.h:2149
Definition parse-tree.h:3333
Definition parse-tree.h:3183
Definition parse-tree.h:3365
Definition parse-tree.h:3076
Definition parse-tree.h:3091
Definition parse-tree.h:868
Definition parse-tree.h:2406
Definition parse-tree.h:2402
Definition parse-tree.h:2401
Definition parse-tree.h:2417
Definition parse-tree.h:2380
Definition parse-tree.h:1710
Definition parse-tree.h:1720
Definition parse-tree.h:423
Definition parse-tree.h:1634
Definition parse-tree.h:1643
Definition parse-tree.h:629
Definition parse-tree.h:1019
Definition parse-tree.h:2923
Definition parse-tree.h:2932
Definition parse-tree.h:2937
Definition parse-tree.h:2921
Definition parse-tree.h:2952
Definition parse-tree.h:2950
Definition parse-tree.h:797
Definition parse-tree.h:313
Definition parse-tree.h:1382
Definition parse-tree.h:1586
Definition parse-tree.h:3257
Definition parse-tree.h:3217
Definition parse-tree.h:3223
Definition parse-tree.h:3215
Definition parse-tree.h:3244
Definition parse-tree.h:479
Definition parse-tree.h:467
Definition parse-tree.h:717
Definition parse-tree.h:714
Definition parse-tree.h:720
Definition parse-tree.h:710
Definition parse-tree.h:708
Definition parse-tree.h:2762
Definition parse-tree.h:2760
Definition parse-tree.h:2671
Definition parse-tree.h:784
Definition parse-tree.h:662
Definition parse-tree.h:2344
Definition parse-tree.h:1325
Definition parse-tree.h:680
Definition parse-tree.h:1628
Definition parse-tree.h:893
Definition parse-tree.h:2316
Definition parse-tree.h:2312
Definition parse-tree.h:2647
Definition parse-tree.h:2646
Definition parse-tree.h:875
Definition parse-tree.h:321
Definition parse-tree.h:1292
Definition parse-tree.h:2334
Definition parse-tree.h:2332
Definition parse-tree.h:2971
Definition parse-tree.h:3509
Definition parse-tree.h:2104
Definition parse-tree.h:2996
Definition parse-tree.h:2985
Definition parse-tree.h:3007
Definition parse-tree.h:591
Definition parse-tree.h:1331
Definition parse-tree.h:643
Definition parse-tree.h:642
Definition parse-tree.h:2350
Definition parse-tree.h:2574
Definition parse-tree.h:1457
Definition parse-tree.h:4393
Definition parse-tree.h:4399
Definition parse-tree.h:4397
Definition parse-tree.h:4412
Definition parse-tree.h:4419
Definition parse-tree.h:4427
Definition parse-tree.h:4442
Definition parse-tree.h:5401
Definition parse-tree.h:4450
Definition parse-tree.h:4449
Definition parse-tree.h:4512
Definition parse-tree.h:5259
Definition parse-tree.h:5248
Definition parse-tree.h:4458
Definition parse-tree.h:4470
Definition parse-tree.h:5190
Definition parse-tree.h:5265
Definition parse-tree.h:4481
Definition parse-tree.h:5200
Definition parse-tree.h:4487
Definition parse-tree.h:5159
Definition parse-tree.h:5143
Definition parse-tree.h:4496
Definition parse-tree.h:3688
Definition parse-tree.h:4504
Definition parse-tree.h:5328
Definition parse-tree.h:5337
Definition parse-tree.h:5345
Definition parse-tree.h:5320
Definition parse-tree.h:5308
Definition parse-tree.h:4526
Definition parse-tree.h:4554
Definition parse-tree.h:4541
Definition parse-tree.h:4610
Definition parse-tree.h:4608
Definition parse-tree.h:4632
Definition parse-tree.h:4640
Definition parse-tree.h:4650
Definition parse-tree.h:4660
Definition parse-tree.h:4668
Definition parse-tree.h:3579
Definition parse-tree.h:5166
Definition parse-tree.h:4623
Definition parse-tree.h:4590
Definition parse-tree.h:4683
Definition parse-tree.h:4678
Definition parse-tree.h:5195
Definition parse-tree.h:5270
Definition parse-tree.h:4694
Definition parse-tree.h:5233
Definition parse-tree.h:4702
Definition parse-tree.h:4715
Definition parse-tree.h:4726
Definition parse-tree.h:4736
Definition parse-tree.h:4744
Definition parse-tree.h:5354
Definition parse-tree.h:4749
Definition parse-tree.h:4757
Definition parse-tree.h:4773
Definition parse-tree.h:4796
Definition parse-tree.h:4762
Definition parse-tree.h:4786
Definition parse-tree.h:4803
Definition parse-tree.h:3700
Definition parse-tree.h:4563
Definition parse-tree.h:4581
Definition parse-tree.h:4572
Definition parse-tree.h:4812
Definition parse-tree.h:4827
Definition parse-tree.h:3613
Definition parse-tree.h:4838
Definition parse-tree.h:4863
Definition parse-tree.h:4875
Definition parse-tree.h:4884
Definition parse-tree.h:5227
Definition parse-tree.h:4908
Definition parse-tree.h:4920
Definition parse-tree.h:4932
Definition parse-tree.h:3634
Definition parse-tree.h:3625
Definition parse-tree.h:3622
Definition parse-tree.h:4943
Definition parse-tree.h:4956
Definition parse-tree.h:4968
Definition parse-tree.h:4979
Definition parse-tree.h:3678
Definition parse-tree.h:4989
Definition parse-tree.h:5361
Definition parse-tree.h:3608
Definition parse-tree.h:4998
Definition parse-tree.h:5010
Definition parse-tree.h:5279
Definition parse-tree.h:5021
Definition parse-tree.h:5028
Definition parse-tree.h:3638
Definition parse-tree.h:3660
Definition parse-tree.h:3648
Definition parse-tree.h:3647
Definition parse-tree.h:5037
Definition parse-tree.h:5048
Definition parse-tree.h:5367
Definition parse-tree.h:5057
Definition parse-tree.h:5072
Definition parse-tree.h:5082
Definition parse-tree.h:3604
Definition parse-tree.h:3597
Definition parse-tree.h:5091
Definition parse-tree.h:5100
Definition parse-tree.h:5116
Definition parse-tree.h:5138
Definition parse-tree.h:5237
Definition parse-tree.h:5127
Definition parse-tree.h:3107
Definition parse-tree.h:5789
Definition parse-tree.h:5796
Definition parse-tree.h:5725
Definition parse-tree.h:5818
Definition parse-tree.h:5857
Definition parse-tree.h:5828
Definition parse-tree.h:5846
Definition parse-tree.h:5837
Definition parse-tree.h:5719
Definition parse-tree.h:5851
Definition parse-tree.h:5801
Definition parse-tree.h:5731
Definition parse-tree.h:5427
Definition parse-tree.h:5450
Definition parse-tree.h:5440
Definition parse-tree.h:5432
Definition parse-tree.h:5469
Definition parse-tree.h:5462
Definition parse-tree.h:5553
Definition parse-tree.h:5417
Definition parse-tree.h:5405
Definition parse-tree.h:5480
Definition parse-tree.h:5494
Definition parse-tree.h:5548
Definition parse-tree.h:5510
Definition parse-tree.h:5518
Definition parse-tree.h:5571
Definition parse-tree.h:5539
Definition parse-tree.h:5565
Definition parse-tree.h:5285
Definition parse-tree.h:5523
Definition parse-tree.h:5529
Definition parse-tree.h:378
Definition parse-tree.h:2840
Definition parse-tree.h:2803
Definition parse-tree.h:3032
Definition parse-tree.h:1844
Definition parse-tree.h:2070
Definition parse-tree.h:2069
Definition parse-tree.h:1596
Definition parse-tree.h:2030
Definition parse-tree.h:2866
Definition parse-tree.h:3152
Definition parse-tree.h:2824
Definition parse-tree.h:932
Definition parse-tree.h:3130
Definition parse-tree.h:1073
Definition parse-tree.h:1101
Definition parse-tree.h:1929
Definition parse-tree.h:1093
Definition parse-tree.h:1087
Definition parse-tree.h:1080
Definition parse-tree.h:3140
Definition parse-tree.h:3272
Definition parse-tree.h:3233
Definition parse-tree.h:575
Definition parse-tree.h:2787
Definition parse-tree.h:816
Definition parse-tree.h:2301
Definition parse-tree.h:3020
Definition parse-tree.h:3024
Definition parse-tree.h:3018
Definition parse-tree.h:1609
Definition parse-tree.h:297
Definition parse-tree.h:1695
Definition parse-tree.h:2424
Definition parse-tree.h:2489
Definition parse-tree.h:2488
Definition parse-tree.h:2502
Definition parse-tree.h:2500
Definition parse-tree.h:2479
Definition parse-tree.h:2536
Definition parse-tree.h:2534
Definition parse-tree.h:2514
Definition parse-tree.h:2180
Definition parse-tree.h:3391
Definition parse-tree.h:853
Definition parse-tree.h:790
Definition parse-tree.h:828
Definition parse-tree.h:401
Definition parse-tree.h:455
Definition parse-tree.h:1999
Definition parse-tree.h:361
Definition parse-tree.h:3409
Definition parse-tree.h:2566
Definition parse-tree.h:1919
Definition parse-tree.h:1210
Definition parse-tree.h:3530
Definition parse-tree.h:3502
Definition parse-tree.h:3525
Definition parse-tree.h:3038
Definition parse-tree.h:3049
Definition parse-tree.h:3202
Definition parse-tree.h:3375
Definition parse-tree.h:1686
Definition parse-tree.h:1881
Definition parse-tree.h:1677
Definition parse-tree.h:1867
Definition parse-tree.h:2585
Definition parse-tree.h:2584
Definition parse-tree.h:2597
Definition parse-tree.h:910
Definition parse-tree.h:1153
Definition parse-tree.h:1166
Definition parse-tree.h:1128
Definition parse-tree.h:1175
Definition parse-tree.h:1144
Definition parse-tree.h:1140
Definition parse-tree.h:1138
Definition parse-tree.h:1438
Definition parse-tree.h:2524
Definition parse-tree.h:2523
Definition parse-tree.h:938
Definition parse-tree.h:946
Definition parse-tree.h:744
Definition parse-tree.h:653
Definition parse-tree.h:757
Definition parse-tree.h:3518
Definition parse-tree.h:356
Definition parse-tree.h:2656
Definition parse-tree.h:803
Definition parse-tree.h:3116
Definition parse-tree.h:1897
Definition parse-tree.h:730
Definition parse-tree.h:735
Definition parse-tree.h:284
Definition parse-tree.h:2850
Definition parse-tree.h:2095
Definition parse-tree.h:2088
Definition parse-tree.h:2124
Definition parse-tree.h:2120
Definition parse-tree.h:2119
Definition parse-tree.h:2082
Definition parse-tree.h:2809
Definition parse-tree.h:3753
Definition parse-tree.h:3744
Definition parse-tree.h:3714
Definition parse-tree.h:3724
Definition parse-tree.h:3737
Definition parse-tree.h:3908
Definition parse-tree.h:3925
Definition parse-tree.h:3917
Definition parse-tree.h:3941
Definition parse-tree.h:3933
Definition parse-tree.h:3953
Definition parse-tree.h:3965
Definition parse-tree.h:3975
Definition parse-tree.h:3986
Definition parse-tree.h:3999
Definition parse-tree.h:4011
Definition parse-tree.h:4032
Definition parse-tree.h:4043
Definition parse-tree.h:4053
Definition parse-tree.h:4062
Definition parse-tree.h:4079
Definition parse-tree.h:4094
Definition parse-tree.h:4105
Definition parse-tree.h:4116
Definition parse-tree.h:4128
Definition parse-tree.h:4138
Definition parse-tree.h:4146
Definition parse-tree.h:4155
Definition parse-tree.h:4170
Definition parse-tree.h:4182
Definition parse-tree.h:4216
Definition parse-tree.h:4203
Definition parse-tree.h:4190
Definition parse-tree.h:4240
Definition parse-tree.h:4231
Definition parse-tree.h:4274
Definition parse-tree.h:4250
Definition parse-tree.h:4263
Definition parse-tree.h:4283
Definition parse-tree.h:4296
Definition parse-tree.h:4305
Definition parse-tree.h:4315
Definition parse-tree.h:4325
Definition parse-tree.h:4334
Definition parse-tree.h:4342
Definition parse-tree.h:4352
Definition parse-tree.h:4363
Definition parse-tree.h:4376
Definition parse-tree.h:3884
Definition parse-tree.h:3794
Definition parse-tree.h:3791
Definition parse-tree.h:3774
Definition parse-tree.h:3815
Definition parse-tree.h:3781
Definition parse-tree.h:3842
Definition parse-tree.h:3857
Definition parse-tree.h:3854
Definition parse-tree.h:3867
Definition parse-tree.h:3876