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); \
162struct AllocatableStmt;
163struct AsynchronousStmt;
165struct CodimensionStmt;
166struct ContiguousStmt;
173struct OldParameterStmt;
183struct EquivalenceStmt;
220struct SyncMemoryStmt;
264struct BasedPointerStmt;
282using Location =
const char *;
287 constexpr Verbatim() {}
288 COPY_AND_ASSIGN_BOILERPLATE(Verbatim);
289 using EmptyTrait = std::true_type;
298template <
typename A>
struct Scalar {
299 using ConstraintTrait = std::true_type;
300 Scalar(Scalar &&that) =
default;
301 Scalar(A &&that) : thing(std::move(that)) {}
302 Scalar &operator=(Scalar &&) =
default;
306template <
typename A>
struct Constant {
307 using ConstraintTrait = std::true_type;
308 Constant(Constant &&that) =
default;
309 Constant(A &&that) : thing(std::move(that)) {}
310 Constant &operator=(Constant &&) =
default;
314template <
typename A>
struct Integer {
315 using ConstraintTrait = std::true_type;
316 Integer(Integer &&that) =
default;
317 Integer(A &&that) : thing(std::move(that)) {}
318 Integer &operator=(Integer &&) =
default;
322template <
typename A>
struct Logical {
323 using ConstraintTrait = std::true_type;
324 Logical(Logical &&that) =
default;
325 Logical(A &&that) : thing(std::move(that)) {}
326 Logical &operator=(Logical &&) =
default;
330template <
typename A>
struct DefaultChar {
331 using ConstraintTrait = std::true_type;
332 DefaultChar(DefaultChar &&that) =
default;
333 DefaultChar(A &&that) : thing(std::move(that)) {}
334 DefaultChar &operator=(DefaultChar &&) =
default;
353using Label = common::Label;
357template <
typename A>
struct UnlabeledStatement {
358 explicit UnlabeledStatement(A &&s) : statement(std::move(s)) {}
362template <
typename A>
struct Statement :
public UnlabeledStatement<A> {
363 Statement(std::optional<long> &&lab, A &&s)
364 : UnlabeledStatement<A>{std::move(s)}, label(std::move(lab)) {}
365 std::optional<Label> label;
369EMPTY_CLASS(ErrorRecovery);
381 std::variant<common::Indirection<AccessStmt>,
404 std::variant<common::Indirection<DerivedTypeDef>,
426 std::variant<Statement<common::Indirection<ImplicitStmt>>,
437WRAPPER_CLASS(ImplicitPart, std::list<ImplicitPartStmt>);
444 std::variant<SpecificationConstruct, Statement<common::Indirection<DataStmt>>,
458 std::tuple<std::list<OpenACCDeclarativeConstruct>,
459 std::list<OpenMPDeclarativeConstruct>,
460 std::list<common::Indirection<CompilerDirective>>,
461 std::list<Statement<common::Indirection<UseStmt>>>,
462 std::list<Statement<common::Indirection<ImportStmt>>>, ImplicitPart,
463 std::list<DeclarationConstruct>>
470 std::variant<common::Indirection<FunctionSubprogram>,
477EMPTY_CLASS(ContainsStmt);
482 std::tuple<Statement<ContainsStmt>, std::list<InternalSubprogram>> t;
486EMPTY_CLASS(ContinueStmt);
489EMPTY_CLASS(FailImageStmt);
503 std::variant<common::Indirection<AllocateStmt>,
561 std::variant<ExecutableConstruct, Statement<common::Indirection<FormatStmt>>,
570using Block = std::list<ExecutionPartConstruct>;
571WRAPPER_CLASS(ExecutionPart, Block);
578 std::variant<common::Indirection<MainProgram>,
589WRAPPER_CLASS(Program, std::list<ProgramUnit>);
593 std::string ToString()
const {
return source.ToString(); }
599WRAPPER_CLASS(Keyword,
Name);
602WRAPPER_CLASS(NamedConstant,
Name);
609WRAPPER_CLASS(DefinedOpName,
Name);
619 ENUM_CLASS(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat,
620 LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV)
621 std::variant<DefinedOpName, IntrinsicOperator> u;
625using ObjectName =
Name;
631 TUPLE_CLASS_BOILERPLATE(ImportStmt);
632 ImportStmt(common::ImportKind &&k) : t(k, std::list<Name>{}) {}
633 ImportStmt(std::list<Name> &&n)
634 : t(common::ImportKind::Default, std::move(n)) {}
635 ImportStmt(common::ImportKind &&, std::list<Name> &&);
636 std::tuple<common::ImportKind, std::list<Name>> t;
645 TUPLE_CLASS_BOILERPLATE(
Group);
646 std::tuple<Name, std::list<Name>> t;
648 WRAPPER_CLASS_BOILERPLATE(
NamelistStmt, std::list<Group>);
656 EMPTY_CLASS(Deferred);
657 std::variant<ScalarIntExpr, Star, Deferred> u;
665 WRAPPER_CLASS(StarSize, std::uint64_t);
666 std::variant<ScalarIntConstantExpr, StarSize> u;
670WRAPPER_CLASS(IntegerTypeSpec, std::optional<KindSelector>);
672WRAPPER_CLASS(UnsignedTypeSpec, std::optional<KindSelector>);
677 std::variant<TypeParamValue, std::uint64_t> u;
683 std::variant<TypeParamValue, CharLength> u;
692 UNION_CLASS_BOILERPLATE(CharSelector);
695 std::tuple<std::optional<TypeParamValue>, ScalarIntConstantExpr> t;
698 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
699 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
700 : u{LengthAndKind{std::move(l), std::move(k)}} {}
701 std::variant<LengthSelector, LengthAndKind> u;
712 WRAPPER_CLASS_BOILERPLATE(
Real, std::optional<KindSelector>);
714 EMPTY_CLASS(DoublePrecision);
716 WRAPPER_CLASS_BOILERPLATE(
Complex, std::optional<KindSelector>);
719 WRAPPER_CLASS_BOILERPLATE(
Character, std::optional<CharSelector>);
722 WRAPPER_CLASS_BOILERPLATE(
Logical, std::optional<KindSelector>);
724 EMPTY_CLASS(DoubleComplex);
725 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
733 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
738 EMPTY_CLASS(PairVectorTypeSpec);
739 EMPTY_CLASS(QuadVectorTypeSpec);
740 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
754 std::tuple<Name, std::list<TypeParamSpec>> t;
761 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
774 EMPTY_CLASS(ClassStar);
775 EMPTY_CLASS(TypeStar);
776 WRAPPER_CLASS(Record,
Name);
787 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
794 std::tuple<CharBlock, std::optional<KindParam>> t;
800 std::tuple<CharBlock, std::optional<KindParam>> t;
806 std::tuple<CharBlock, std::optional<KindParam>> t;
810enum class Sign { Positive, Negative };
820 using EmptyTrait = std::true_type;
821 COPY_AND_ASSIGN_BOILERPLATE(Real);
825 std::tuple<Real, std::optional<KindParam>> t;
850 std::tuple<ComplexPart, ComplexPart> t;
856 std::tuple<Sign, ComplexLiteralConstant> t;
864 std::tuple<std::optional<KindParam>, std::string> t;
865 std::string GetString()
const {
return std::get<std::string>(t); }
871 std::string GetString()
const {
return v; }
878 std::tuple<bool, std::optional<KindParam>> t;
888WRAPPER_CLASS(BOZLiteralConstant, std::string);
904 ENUM_CLASS(Kind, Public, Private)
910EMPTY_CLASS(Abstract);
914 WRAPPER_CLASS(Extends,
Name);
915 std::variant<Abstract, AccessSpec, BindC, Extends> u;
922 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
926EMPTY_CLASS(SequenceStmt);
930EMPTY_CLASS(PrivateStmt);
935 std::variant<PrivateStmt, SequenceStmt> u;
941 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
949 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
954WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
961 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
966WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
974 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
980 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
985WRAPPER_CLASS(DeferredShapeSpecList,
int);
991 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
999EMPTY_CLASS(Allocatable);
1000EMPTY_CLASS(Pointer);
1001EMPTY_CLASS(Contiguous);
1022 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1023 std::list<common::Indirection<DataStmtValue>>>
1033struct ComponentDecl {
1034 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1036 std::optional<ComponentArraySpec> &&aSpec,
1037 std::optional<CoarraySpec> &&coaSpec,
1038 std::optional<Initialization> &&init)
1039 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1040 std::move(length), std::move(init)} {}
1041 std::tuple<Name, std::optional<ComponentArraySpec>,
1042 std::optional<CoarraySpec>, std::optional<CharLength>,
1043 std::optional<Initialization>>
1051 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1057 std::variant<ComponentDecl, FillDecl> u;
1065 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1066 std::list<ComponentOrFill>>
1073WRAPPER_CLASS(Pass, std::optional<Name>);
1076 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1083 std::variant<NullInit, Name> u;
1090 std::variant<Name, DeclarationTypeSpec> u;
1096 std::tuple<Name, std::optional<ProcPointerInit>> t;
1104 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1105 std::list<ProcDecl>>
1123 EMPTY_CLASS(Deferred);
1124 EMPTY_CLASS(Non_Overridable);
1125 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1131 std::tuple<Name, std::optional<Name>> t;
1143 std::tuple<std::list<BindAttr>, std::list<TypeBoundProcDecl>> t;
1147 std::tuple<Name, std::list<BindAttr>, std::list<Name>> t;
1149 std::variant<WithoutInterface, WithInterface> u;
1162WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1178 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1179 std::list<Statement<TypeBoundProcBinding>>>
1184WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1192 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1193 std::list<Statement<PrivateOrSequence>>,
1194 std::list<Statement<ComponentDefStmt>>,
1207 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1213 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1217EMPTY_CLASS(EnumDefStmt);
1222 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1226WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1229EMPTY_CLASS(EndEnumStmt);
1235 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1236 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1245 std::tuple<std::optional<AccessSpec>,
Name> t;
1250WRAPPER_CLASS(EnumerationEnumeratorStmt, std::list<Name>);
1254WRAPPER_CLASS(EndEnumerationTypeStmt, std::optional<Name>);
1262 std::tuple<Statement<EnumerationTypeStmt>,
1263 std::list<Statement<EnumerationEnumeratorStmt>>,
1271 TUPLE_CLASS_BOILERPLATE(
Triplet);
1272 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1274 UNION_CLASS_BOILERPLATE(
AcValue);
1275 std::variant<Triplet, common::Indirection<Expr>,
1282 TUPLE_CLASS_BOILERPLATE(AcSpec);
1283 explicit AcSpec(
TypeSpec &&ts) : t(std::move(ts), std::list<AcValue>()) {}
1284 std::tuple<std::optional<TypeSpec>, std::list<AcValue>> t;
1288WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1295 std::tuple<VAR, BOUND, BOUND, std::optional<BOUND>> t;
1297 const VAR &Name()
const {
return std::get<0>(t); }
1298 const BOUND &Lower()
const {
return std::get<1>(t); }
1299 const BOUND &Upper()
const {
return std::get<2>(t); }
1300 const std::optional<BOUND> &Step()
const {
return std::get<3>(t); }
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);
1369 std::tuple<std::optional<IntExpr>, IntExpr> t;
1376 ImpliedShapeSpec, AssumedRankSpec>
1382 ENUM_CLASS(Intent, In, Out, InOut)
1383 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1388WRAPPER_CLASS(RankClause, ScalarIntConstantExpr);
1398EMPTY_CLASS(Asynchronous);
1399EMPTY_CLASS(External);
1400EMPTY_CLASS(Intrinsic);
1401EMPTY_CLASS(Optional);
1402EMPTY_CLASS(Parameter);
1403EMPTY_CLASS(Protected);
1407EMPTY_CLASS(Volatile);
1412 Parameter, Pointer, Protected, RankClause, Save, Target, Value, Volatile,
1413 common::CUDADataAttr>
1424 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1425 EntityDecl(ObjectName &&name,
CharLength &&length,
1426 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1427 std::optional<Initialization> &&init)
1428 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1429 std::move(length), std::move(init)} {}
1430 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1431 std::optional<CharLength>, std::optional<Initialization>>
1439 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1449 std::tuple<AccessSpec, std::list<AccessId>> t;
1458 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1463WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1466WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1471 ENUM_CLASS(Kind, Object, Common)
1472 std::tuple<Kind, Name> t;
1478 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1484 std::tuple<Name, CoarraySpec> t;
1488WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1491WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1500using TypedAssignment =
1513 mutable TypedExpr typedExpr;
1514 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1527 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1533 mutable std::int64_t repetitions{1};
1541 std::variant<Scalar<common::Indirection<Designator>>,
1554 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1561 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1567 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1571WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1579 std::tuple<Name, ArraySpec> t;
1581 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1587 std::tuple<IntentSpec, std::list<Name>> t;
1591WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1597 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1601WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1604WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1610 ENUM_CLASS(Kind, Entity, Common)
1611 std::tuple<Kind, Name> t;
1615WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1618WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1621WRAPPER_CLASS(ValueStmt, std::list<Name>);
1624WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1629 std::tuple<Location, std::optional<Location>> t;
1635 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1644 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1645 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1651 std::tuple<Name, std::optional<ArraySpec>> t;
1659 TUPLE_CLASS_BOILERPLATE(
Block);
1660 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1662 WRAPPER_CLASS_BOILERPLATE(CommonStmt, std::list<Block>);
1663 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1664 std::list<Block> &&);
1673WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1678 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1682using Subscript = ScalarIntExpr;
1687 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1688 std::optional<Subscript>>
1696 std::variant<IntExpr, SubscriptTriplet> u;
1700using Cosubscript = ScalarIntExpr;
1711 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1714 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1721 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1730 std::tuple<ScalarLogicalExpr, common::Indirection<Expr>,
1737 UNION_CLASS_BOILERPLATE(Expr);
1741 using IntrinsicUnary::IntrinsicUnary;
1744 using IntrinsicUnary::IntrinsicUnary;
1747 using IntrinsicUnary::IntrinsicUnary;
1749 struct NOT :
public IntrinsicUnary {
1750 using IntrinsicUnary::IntrinsicUnary;
1757 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1765 using IntrinsicBinary::IntrinsicBinary;
1768 using IntrinsicBinary::IntrinsicBinary;
1771 using IntrinsicBinary::IntrinsicBinary;
1774 using IntrinsicBinary::IntrinsicBinary;
1777 using IntrinsicBinary::IntrinsicBinary;
1780 using IntrinsicBinary::IntrinsicBinary;
1783 using IntrinsicBinary::IntrinsicBinary;
1786 using IntrinsicBinary::IntrinsicBinary;
1789 using IntrinsicBinary::IntrinsicBinary;
1792 using IntrinsicBinary::IntrinsicBinary;
1795 using IntrinsicBinary::IntrinsicBinary;
1798 using IntrinsicBinary::IntrinsicBinary;
1801 using IntrinsicBinary::IntrinsicBinary;
1804 using IntrinsicBinary::IntrinsicBinary;
1807 using IntrinsicBinary::IntrinsicBinary;
1810 using IntrinsicBinary::IntrinsicBinary;
1815 using IntrinsicBinary::IntrinsicBinary;
1820 std::tuple<DefinedOpName, common::Indirection<Expr>,
1828 mutable TypedExpr typedExpr;
1832 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1837 Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
DefinedBinary,
1844 TUPLE_CLASS_BOILERPLATE(
PartRef);
1845 std::tuple<Name, std::list<SectionSubscript>, std::optional<ImageSelector>> t;
1850 UNION_CLASS_BOILERPLATE(DataRef);
1851 explicit DataRef(std::list<PartRef> &&);
1852 std::variant<Name, common::Indirection<StructureComponent>,
1868 std::tuple<DataRef, SubstringRange> t;
1873 std::tuple<CharLiteralConstant, SubstringRange> t;
1890 bool EndsInBareName()
const;
1892 std::variant<DataRef, Substring> u;
1898 mutable TypedExpr typedExpr;
1900 std::variant<common::Indirection<Designator>,
1920 std::tuple<DataRef, Name> t;
1922 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1923 const Name &Component()
const {
return std::get<Name>(t); }
1935 std::tuple<DataRef, ImageSelector> t;
1944 std::tuple<DataRef, std::list<SectionSubscript>> t;
1946 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1947 const std::list<SectionSubscript> &Subscripts()
const {
1948 return std::get<std::list<SectionSubscript>>(t);
1955 mutable TypedExpr typedExpr;
1956 std::variant<Name, StructureComponent> u;
1961using BoundExpr = ScalarIntExpr;
1967 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1976 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1984 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1985 std::optional<AllocateCoarraySpec>>
1990WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1994WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
2000 std::variant<StatVariable, MsgVariable> u;
2015 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
2022 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
2023 std::list<AllocOpt>>
2031 mutable TypedExpr typedExpr;
2032 std::variant<Name, StructureComponent> u;
2036WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
2042 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
2048 mutable TypedAssignment typedAssignment;
2049 std::tuple<Variable, Expr> t;
2053WRAPPER_CLASS(BoundsSpec, BoundExpr);
2058 std::tuple<BoundExpr, BoundExpr> t;
2070 UNION_CLASS_BOILERPLATE(
Bounds);
2071 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2074 mutable TypedAssignment typedAssignment;
2075 std::tuple<DataRef, Bounds, Expr> t;
2083 std::tuple<LogicalExpr, AssignmentStmt> t;
2089 std::tuple<std::optional<Name>, LogicalExpr> t;
2105 std::tuple<LogicalExpr, std::optional<Name>> t;
2109WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2112WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2121 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2125 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2128 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2129 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2144 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2150 std::tuple<common::Indirection<ConcurrentHeader>,
2167WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2173 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2181 std::variant<Expr, Variable> u;
2187 std::tuple<Name, Selector> t;
2194 std::tuple<std::optional<Name>, std::list<Association>> t;
2198WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2207WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2210WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2225 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2233 std::tuple<CodimensionDecl, Selector> t;
2241 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2242 std::list<StatOrErrmsg>>
2250 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2263 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2267WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2281 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2290 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2291 std::optional<ScalarLogicalExpr>>
2301 ENUM_CLASS(Operator, Plus, Minus, Multiply, Max, Min, Iand, Ior, Ieor, And,
2313 WRAPPER_CLASS(Local, std::list<Name>);
2314 WRAPPER_CLASS(LocalInit, std::list<Name>);
2316 TUPLE_CLASS_BOILERPLATE(
Reduce);
2318 std::tuple<Operator, std::list<Name>> t;
2320 WRAPPER_CLASS(Shared, std::list<Name>);
2321 EMPTY_CLASS(DefaultNone);
2322 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2335 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2338 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2345 std::tuple<Label, std::optional<LoopControl>> t;
2351 std::tuple<std::optional<Name>, std::optional<Label>,
2352 std::optional<LoopControl>>
2357WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2368 const std::optional<LoopControl> &GetLoopControl()
const;
2369 bool IsDoNormal()
const;
2370 bool IsDoWhile()
const;
2371 bool IsDoConcurrent()
const;
2376WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2381 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2388 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2392WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2395WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2403 std::tuple<Statement<ElseIfStmt>, Block> t;
2407 std::tuple<Statement<ElseStmt>, Block> t;
2410 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2417 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2418 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2436 TUPLE_CLASS_BOILERPLATE(
Range);
2437 std::tuple<std::optional<CaseValue>, std::optional<CaseValue>>
2440 std::variant<CaseValue, Range> u;
2444EMPTY_CLASS(Default);
2448 std::variant<std::list<CaseValueRange>, Default> u;
2454 std::tuple<CaseSelector, std::optional<Name>> t;
2460WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2466 TUPLE_CLASS_BOILERPLATE(
Case);
2467 std::tuple<Statement<CaseStmt>, Block> t;
2470 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2480 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2489 UNION_CLASS_BOILERPLATE(
Rank);
2490 std::variant<ScalarIntConstantExpr, Star, Default> u;
2493 std::tuple<Rank, std::optional<Name>> t;
2503 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2505 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2515 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2524 UNION_CLASS_BOILERPLATE(
Guard);
2525 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2528 std::tuple<Guard, std::optional<Name>> t;
2537 std::tuple<Statement<TypeGuardStmt>, Block> t;
2539 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2545WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2548WRAPPER_CLASS(GotoStmt, Label);
2553 std::tuple<std::list<Label>, ScalarIntExpr> t;
2566 ENUM_CLASS(Kind, Stop, ErrorStop)
2568 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2575 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2579WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2586 std::variant<IntExpr, Star> u;
2589 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2593WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2598 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2607 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2613 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2621 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2634 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2637 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2648 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2651 std::tuple<LockVariable, std::list<LockStat>> t;
2657 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2661WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2671 UNION_CLASS_BOILERPLATE(
IoUnit);
2672 std::variant<Variable, common::Indirection<Expr>, Star> u;
2676using FileNameExpr = ScalarDefaultCharExpr;
2696WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2697WRAPPER_CLASS(ErrLabel, Label);
2702 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2703 Encoding, Form, Leading_Zero, Pad, Position, Round, Sign,
2704 Carriagecontrol, Convert, Dispose)
2706 std::tuple<Kind, ScalarDefaultCharExpr> t;
2708 WRAPPER_CLASS(Recl, ScalarIntExpr);
2709 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2710 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2711 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2716WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2726 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2730 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2736 UNION_CLASS_BOILERPLATE(
Format);
2737 std::variant<Expr, Label, Star> u;
2741WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2757WRAPPER_CLASS(EndLabel, Label);
2758WRAPPER_CLASS(EorLabel, Label);
2763 Kind, Advance, Blank, Decimal, Delim, Leading_Zero, Pad, Round, Sign)
2765 std::tuple<Kind, ScalarDefaultCharExpr> t;
2767 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2768 WRAPPER_CLASS(Pos, ScalarIntExpr);
2769 WRAPPER_CLASS(Rec, ScalarIntExpr);
2770 WRAPPER_CLASS(Size, ScalarIntVariable);
2772 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2780 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2787 BOILERPLATE(ReadStmt);
2788 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2789 std::list<IoControlSpec> &&cs, std::list<InputItem> &&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;
2797 std::list<IoControlSpec> controls;
2798 std::list<InputItem> items;
2804 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2809 BOILERPLATE(WriteStmt);
2810 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2811 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2812 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2813 items(std::move(its)) {}
2814 std::optional<IoUnit> iounit;
2816 std::optional<Format> format;
2818 std::list<IoControlSpec> controls;
2819 std::list<OutputItem> items;
2825 std::tuple<Format, std::list<OutputItem>> t;
2836 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2841 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2848WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2851 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2852 MsgVariable, StatVariable>
2857WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2867 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2872WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2876WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2879WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2882WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2923 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2924 Direct, Encoding, Form, Formatted, Iomsg, Leading_Zero,
Name, Pad,
2925 Position, Read, Readwrite, Round, Sequential, Sign, Stream, Status,
2927 Carriagecontrol, Convert, Dispose)
2928 TUPLE_CLASS_BOILERPLATE(
CharVar);
2929 std::tuple<Kind, ScalarDefaultCharVariable> t;
2932 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2933 TUPLE_CLASS_BOILERPLATE(
IntVar);
2934 std::tuple<Kind, ScalarIntVariable> t;
2937 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2938 TUPLE_CLASS_BOILERPLATE(
LogVar);
2939 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2953 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2955 std::variant<std::list<InquireSpec>,
Iolength> u;
2962WRAPPER_CLASS(ProgramStmt,
Name);
2965WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2973 ExecutionPart, std::optional<InternalSubprogramPart>,
2979WRAPPER_CLASS(ModuleStmt,
Name);
2986 std::variant<common::Indirection<FunctionSubprogram>,
2997 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
3001WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
3007 TUPLE_CLASS_BOILERPLATE(
Module);
3018 UNION_CLASS_BOILERPLATE(
Rename);
3020 TUPLE_CLASS_BOILERPLATE(
Names);
3021 std::tuple<Name, Name> t;
3025 std::tuple<DefinedOpName, DefinedOpName> t;
3027 std::variant<Names, Operators> u;
3033 std::tuple<Name, std::optional<Name>> t;
3039 std::tuple<ParentIdentifier, Name> t;
3043WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3056WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3059WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3077 EMPTY_CLASS(Assignment);
3078 EMPTY_CLASS(ReadFormatted);
3079 EMPTY_CLASS(ReadUnformatted);
3080 EMPTY_CLASS(WriteFormatted);
3081 EMPTY_CLASS(WriteUnformatted);
3084 ReadUnformatted, WriteFormatted, WriteUnformatted>
3092 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3096struct InterfaceStmt {
3097 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3099 InterfaceStmt(Abstract x) : u{x} {}
3101 std::variant<std::optional<GenericSpec>, Abstract> u;
3107 UNION_CLASS_BOILERPLATE(
Only);
3108 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3116 BOILERPLATE(UseStmt);
3117 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3118 template <
typename A>
3119 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3120 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3121 std::optional<ModuleNature> nature;
3123 std::variant<std::list<Rename>, std::list<Only>> u;
3141 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3142 std::list<ProcDecl>>
3153 EMPTY_CLASS(Elemental);
3154 EMPTY_CLASS(Impure);
3156 EMPTY_CLASS(Non_Recursive);
3158 EMPTY_CLASS(Recursive);
3159 EMPTY_CLASS(Simple);
3160 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3161 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3162 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3164 Pure, Recursive, Simple, Attributes, Launch_Bounds, Cluster_Dims>
3172 TUPLE_CLASS_BOILERPLATE(Suffix);
3174 : t(std::move(rn), std::move(lbs)) {}
3175 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3184 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3185 std::optional<Suffix>>
3190WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3195 std::variant<Name, Star> u;
3203 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3204 std::optional<LanguageBindingSpec>>
3209WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3224 std::tuple<Statement<SubroutineStmt>,
3228 std::variant<Function, Subroutine> u;
3233 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3235 std::tuple<Kind, std::list<Name>> t;
3242 std::variant<InterfaceBody, Statement<ProcedureStmt>,
3248WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3254 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3260WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3263WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3269 std::variant<Name, ProcComponentRef> u;
3273WRAPPER_CLASS(AltReturnSpec, Label);
3276EMPTY_CLASS(ConditionalArgNil);
3290 std::variant<common::Indirection<Expr>, ConditionalArgNil> u;
3299 std::variant<ConditionalArg, ConditionalArg::Consequent> u;
3306 WRAPPER_CLASS(PercentRef,
Expr);
3307 WRAPPER_CLASS(PercentVal,
Expr);
3308 UNION_CLASS_BOILERPLATE(ActualArg);
3310 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal,
3318 std::tuple<std::optional<Keyword>,
ActualArg> t;
3324 TUPLE_CLASS_BOILERPLATE(
Call);
3325 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3341 TUPLE_CLASS_BOILERPLATE(CallStmt);
3342 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3345 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3346 std::optional<ScalarIntExpr>>
3350 std::list<ActualArgSpec> &&args)
3351 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3352 std::tuple<Call, std::optional<Chevrons>> t;
3354 mutable TypedCall typedCall;
3378WRAPPER_CLASS(MpSubprogramStmt,
Name);
3381WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3396 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3400WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3431 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3434 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3438 std::tuple<common::Indirection<Designator>, uint64_t> t;
3440 EMPTY_CLASS(VectorAlways);
3443 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3445 std::tuple<std::uint64_t, Kind> t;
3449 std::tuple<Name, std::optional<std::uint64_t>> t;
3452 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3455 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3458 WRAPPER_CLASS_BOILERPLATE(
3462 WRAPPER_CLASS_BOILERPLATE(
InlineAlways, std::optional<Name>);
3464 EMPTY_CLASS(NoVector);
3465 EMPTY_CLASS(NoUnroll);
3466 EMPTY_CLASS(NoUnrollAndJam);
3467 EMPTY_CLASS(ForceInline);
3468 EMPTY_CLASS(Inline);
3469 EMPTY_CLASS(NoInline);
3472 EMPTY_CLASS(Unrecognized);
3474 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3476 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3484 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3490 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3492WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3499 std::variant<Statement<DataComponentDefStmt>,
3505 EMPTY_CLASS(MapStmt);
3506 EMPTY_CLASS(EndMapStmt);
3507 TUPLE_CLASS_BOILERPLATE(
Map);
3508 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3514 EMPTY_CLASS(UnionStmt);
3515 EMPTY_CLASS(EndUnionStmt);
3516 TUPLE_CLASS_BOILERPLATE(
Union);
3522 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3526 EMPTY_CLASS(EndStructureStmt);
3528 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3535WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3540 std::tuple<Expr, Label, Label, Label> t;
3545 std::tuple<Label, Name> t;
3550 std::tuple<Name, std::list<Label>> t;
3553WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3559#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3560 using basename::basename; \
3561 classname(basename &&b) : basename(std::move(b)) {} \
3562 using TupleTrait = std::true_type; \
3563 BOILERPLATE(classname)
3565#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3566 BOILERPLATE(classname); \
3567 using basename::basename; \
3568 classname(basename &&base) : basename(std::move(base)) {} \
3569 using WrapperTrait = std::true_type
3574struct OmpDirectiveName {
3576 constexpr OmpDirectiveName() =
default;
3577 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3578 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3582 OmpDirectiveName(
const Verbatim &name);
3583 using WrapperTrait = std::true_type;
3585 bool IsExecutionPart()
const;
3588 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3596 std::variant<TypeSpec, DeclarationTypeSpec> u;
3610 std::variant<FunctionReference, OmpReservedIdentifier> u;
3621 ENUM_CLASS(Kind, BlankCommonBlock);
3622 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3626 std::variant<Designator, OmpLocator, Name, Invalid> u;
3630 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3637 using EmptyTrait = std::true_type;
3645 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3648 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3662 WRAPPER_CLASS_BOILERPLATE(
3675 std::variant<DefinedOperator, ProcedureDesignator> u;
3684 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3696 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3701inline namespace arguments {
3711 std::tuple<OmpObject, OmpObject> t;
3722 std::tuple<std::string, TypeSpec, Name> t;
3735 std::optional<OmpCombinerExpression>>
3754inline namespace traits {
3791 TUPLE_CLASS_BOILERPLATE(
Complex);
3793 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3797 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3813 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3838 std::string ToString()
const;
3841 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3842 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3843 std::variant<Value, llvm::omp::Directive, std::string> u;
3854 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3856 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3863 std::string ToString()
const;
3865 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3874 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3881 WRAPPER_CLASS_BOILERPLATE(
3886#define MODIFIER_BOILERPLATE(...) \
3888 using Variant = std::variant<__VA_ARGS__>; \
3889 UNION_CLASS_BOILERPLATE(Modifier); \
3894#define MODIFIERS() std::optional<std::list<Modifier>>
3896inline namespace modifier {
3904 ENUM_CLASS(Value, Cgroup);
3913 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3949 ENUM_CLASS(Value, Always)
3961 ENUM_CLASS(Value, Always, Never, Auto)
3971 ENUM_CLASS(Value, Automap);
3982 ENUM_CLASS(Value, Simd)
3995 ENUM_CLASS(Value, Close)
4007 ENUM_CLASS(Value, Delete)
4028 ENUM_CLASS(Value, Sink, Source);
4039 using Value = common::OmpDependenceKind;
4041 std::tuple<Value, OmpObject> t;
4049 ENUM_CLASS(Value, Ancestor, Device_Num)
4075 INHERITED_WRAPPER_CLASS_BOILERPLATE(
4090 ENUM_CLASS(Value, Present);
4101 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4112 ENUM_CLASS(Value, Target, Targetsync)
4126 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4134 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4142 ENUM_CLASS(Value, Conditional)
4151 ENUM_CLASS(Value, Ref, Uval, Val);
4181 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4182 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4194 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4209 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4218 ENUM_CLASS(Value, Reproducible, Unconstrained)
4231 using Extensions = std::list<PreferencePropertyExtension>;
4232 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4242 using ForeignRuntimeIdentifier =
4243 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4244 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4252 WRAPPER_CLASS_BOILERPLATE(
4261 ENUM_CLASS(Value, Strict)
4274 ENUM_CLASS(Value, Present)
4283 ENUM_CLASS(Value, Default, Inscan, Task);
4293 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4303 ENUM_CLASS(Value, Self)
4330 using Value = common::OmpDependenceKind;
4341 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4354 ENUM_CLASS(Value, Ompx_Hold)
4364using OmpDirectiveList = std::list<llvm::omp::Directive>;
4377 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4380 std::tuple<OmpAdjustOp, OmpObjectList> t;
4397 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4428 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4436 ENUM_CLASS(ActionTime, Compilation, Execution);
4437 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4448 using MemoryOrder = common::OmpMemoryOrderType;
4459 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4466 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4499 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4501 std::variant<DataSharingAttribute,
4518 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4521 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4530 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4539 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4556 OmpDependenceType::Value GetDepType()
const;
4559 EMPTY_CLASS(Source);
4561 std::variant<Sink, Source> u;
4576 OmpTaskDependenceType::Value GetTaskDepType()
const;
4577 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4581 std::variant<TaskDep, OmpDoacross> u;
4618 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4634 using DeviceTypeDescription = common::OmpDeviceType;
4644 WRAPPER_CLASS_BOILERPLATE(
4651 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4668 using MemoryOrder = common::OmpMemoryOrderType;
4694 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4715 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4728 WRAPPER_CLASS_BOILERPLATE(
4741 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4794 MODIFIER_BOILERPLATE(
4805 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4842 WRAPPER_CLASS_BOILERPLATE(
4856EMPTY_CLASS(OmpNoOpenMPClause);
4861EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4866EMPTY_CLASS(OmpNoParallelismClause);
4876 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4888 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4900 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4910 ENUM_CLASS(Ordering, Concurrent)
4912 std::tuple<MODIFIERS(), Ordering> t;
4934 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4977 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4979 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4994 ENUM_CLASS(SevLevel, Fatal, Warning);
5016 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
5023 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
5066 WRAPPER_CLASS_BOILERPLATE(
5084 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
5094 MODIFIER_BOILERPLATE(OmpContextSelector);
5095 std::tuple<MODIFIERS(),
5096 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5110 llvm::omp::Clause Id()
const;
5112#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5113#include "llvm/Frontend/OpenMP/OMP.inc"
5118#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5119#include "llvm/Frontend/OpenMP/OMP.inc"
5125 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5132 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo, ExplicitBegin)
5137 return std::get<OmpDirectiveName>(t);
5139 llvm::omp::Directive DirId()
const {
5146 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5147 std::optional<OmpClauseList>, Flags>
5156 INHERITED_TUPLE_CLASS_BOILERPLATE(
5168 return std::get<OmpBeginDirective>(t);
5170 const std::optional<OmpEndDirective> &EndDir()
const {
5171 return std::get<std::optional<OmpEndDirective>>(t);
5175 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5179 WRAPPER_CLASS_BOILERPLATE(
5184 INHERITED_TUPLE_CLASS_BOILERPLATE(
5205 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5231 INHERITED_TUPLE_CLASS_BOILERPLATE(
5246 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5254 return std::get<OmpBeginSectionsDirective>(t);
5256 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5257 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5264 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5265 std::optional<OmpEndSectionsDirective>>
5274 WRAPPER_CLASS_BOILERPLATE(
5286 WRAPPER_CLASS_BOILERPLATE(
5294 WRAPPER_CLASS_BOILERPLATE(
5303 WRAPPER_CLASS_BOILERPLATE(
5320 WRAPPER_CLASS_BOILERPLATE(
5333 WRAPPER_CLASS_BOILERPLATE(
5393 INHERITED_TUPLE_CLASS_BOILERPLATE(
5398 llvm::omp::Clause GetKind()
const;
5399 bool IsCapture()
const;
5400 bool IsCompare()
const;
5406 static constexpr int None = 0;
5407 static constexpr int Read = 1;
5408 static constexpr int Write = 2;
5409 static constexpr int Update = Read | Write;
5410 static constexpr int Action = 3;
5411 static constexpr int IfTrue = 4;
5412 static constexpr int IfFalse = 8;
5413 static constexpr int Condition = 12;
5417 TypedAssignment assign;
5419 TypedExpr atom, cond;
5428 WRAPPER_CLASS_BOILERPLATE(
5489 WRAPPER_CLASS_BOILERPLATE(
5531 INHERITED_TUPLE_CLASS_BOILERPLATE(
5537 using EmptyTrait = std::true_type;
5548WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5580 std::variant<Name, ScalarDefaultCharExpr> u;
5590 ENUM_CLASS(Modifier, ReadOnly, Zero)
5597 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5602 std::tuple<ReductionOperator, AccObjectList> t;
5607 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5611 WRAPPER_CLASS_BOILERPLATE(
5617 WRAPPER_CLASS_BOILERPLATE(
5624 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5632 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5641 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5648 WRAPPER_CLASS(Num, ScalarIntExpr);
5649 WRAPPER_CLASS(Dim, ScalarIntExpr);
5651 std::variant<Num, Dim, Static> u;
5656 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5661 std::tuple<bool, ScalarIntConstantExpr> t;
5667#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5668#include "llvm/Frontend/OpenACC/ACC.inc"
5673#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5674#include "llvm/Frontend/OpenACC/ACC.inc"
5680 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5693 std::tuple<Verbatim, AccObjectListWithModifier> t;
5699 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5704 std::tuple<AccLoopDirective, AccClauseList> t;
5711 std::tuple<AccBlockDirective, AccClauseList> t;
5720EMPTY_CLASS(AccEndAtomic);
5725 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5726 std::optional<AccEndAtomic>>
5733 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5734 std::optional<AccEndAtomic>>
5742 std::optional<AccEndAtomic>>
5751 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5756 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5763 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5769 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5775 std::tuple<AccCombinedDirective, AccClauseList> t;
5783struct OpenACCCombinedConstruct {
5784 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5787 : t({std::move(a), std::nullopt, std::nullopt}) {}
5788 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5789 std::optional<AccEndCombinedDirective>>
5796 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5801EMPTY_CLASS(AccEndLoop);
5802struct OpenACCLoopConstruct {
5803 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5805 : t({std::move(a), std::nullopt, std::nullopt}) {}
5806 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5807 std::optional<AccEndLoop>>
5819 std::tuple<AccStandaloneDirective, AccClauseList> t;
5845 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5850 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5853 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5854 std::optional<ScalarIntExpr>>
5860 std::tuple<std::optional<ScalarIntConstantExpr>,
5861 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5864 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:949
Definition expression.h:939
Definition parse-tree.h:1310
Definition parse-tree.h:1317
Definition parse-tree.h:1281
Definition parse-tree.h:1270
Definition parse-tree.h:1269
Definition parse-tree.h:5747
Definition parse-tree.h:5723
Definition parse-tree.h:5739
Definition parse-tree.h:5731
Definition parse-tree.h:5708
Definition parse-tree.h:5772
Definition parse-tree.h:5702
Definition parse-tree.h:5578
Definition parse-tree.h:5551
Definition parse-tree.h:5679
Definition parse-tree.h:5664
Definition parse-tree.h:5659
Definition parse-tree.h:5567
Definition parse-tree.h:5589
Definition parse-tree.h:5572
Definition parse-tree.h:5584
Definition parse-tree.h:5616
Definition parse-tree.h:5610
Definition parse-tree.h:5714
Definition parse-tree.h:5778
Definition parse-tree.h:5655
Definition parse-tree.h:5646
Definition parse-tree.h:5556
Definition parse-tree.h:5595
Definition parse-tree.h:5600
Definition parse-tree.h:5543
Definition parse-tree.h:5639
Definition parse-tree.h:5635
Definition parse-tree.h:5631
Definition parse-tree.h:5561
Definition parse-tree.h:5627
Definition parse-tree.h:5621
Definition parse-tree.h:5605
Definition parse-tree.h:903
Definition parse-tree.h:1447
Definition parse-tree.h:501
Definition parse-tree.h:3316
Definition parse-tree.h:3305
Definition parse-tree.h:2009
Definition parse-tree.h:1974
Definition parse-tree.h:1953
Definition parse-tree.h:1965
Definition parse-tree.h:2020
Definition parse-tree.h:1982
Definition parse-tree.h:3538
Definition parse-tree.h:1939
Definition parse-tree.h:1372
Definition parse-tree.h:3543
Definition parse-tree.h:3548
Definition parse-tree.h:2046
Definition parse-tree.h:2201
Definition parse-tree.h:2192
Definition parse-tree.h:2185
Definition parse-tree.h:1347
Definition parse-tree.h:1408
Definition parse-tree.h:3488
Definition parse-tree.h:1121
Definition parse-tree.h:1469
Definition parse-tree.h:1476
Definition parse-tree.h:2223
Definition parse-tree.h:3062
Definition parse-tree.h:2056
Definition parse-tree.h:3482
Definition parse-tree.h:5857
Definition parse-tree.h:5851
Definition parse-tree.h:5848
Definition parse-tree.h:5842
Definition parse-tree.h:3343
Definition parse-tree.h:3340
Definition parse-tree.h:3323
Definition parse-tree.h:2465
Definition parse-tree.h:2464
Definition parse-tree.h:2446
Definition parse-tree.h:2452
Definition parse-tree.h:2435
Definition parse-tree.h:2433
Definition parse-tree.h:2254
Definition parse-tree.h:2239
Definition parse-tree.h:675
Definition parse-tree.h:1871
Definition parse-tree.h:862
Definition parse-tree.h:693
Definition parse-tree.h:691
Definition parse-tree.h:2724
Definition parse-tree.h:2723
Definition parse-tree.h:2231
Definition parse-tree.h:978
Definition parse-tree.h:1482
Definition parse-tree.h:1933
Definition parse-tree.h:1649
Definition parse-tree.h:1658
Definition parse-tree.h:1657
Definition parse-tree.h:3436
Definition parse-tree.h:3429
Definition parse-tree.h:3461
Definition parse-tree.h:3433
Definition parse-tree.h:3447
Definition parse-tree.h:3457
Definition parse-tree.h:3454
Definition parse-tree.h:3451
Definition parse-tree.h:3441
Definition parse-tree.h:3427
Definition parse-tree.h:848
Definition parse-tree.h:840
Definition parse-tree.h:989
Definition parse-tree.h:1002
Definition parse-tree.h:1110
Definition parse-tree.h:1055
Definition parse-tree.h:1205
Definition parse-tree.h:2551
Definition parse-tree.h:2279
Definition parse-tree.h:3297
Definition parse-tree.h:3286
Definition parse-tree.h:3284
Definition parse-tree.h:1728
Definition parse-tree.h:2701
Definition parse-tree.h:2699
Definition parse-tree.h:306
Definition parse-tree.h:2270
Definition parse-tree.h:2261
Definition parse-tree.h:1063
Definition parse-tree.h:1539
Definition parse-tree.h:1551
Definition parse-tree.h:1849
Definition parse-tree.h:1510
Definition parse-tree.h:1559
Definition parse-tree.h:1525
Definition parse-tree.h:1565
Definition parse-tree.h:1531
Definition parse-tree.h:2040
Definition parse-tree.h:442
Definition parse-tree.h:770
Definition parse-tree.h:330
Definition parse-tree.h:617
Definition parse-tree.h:1190
Definition parse-tree.h:751
Definition parse-tree.h:920
Definition parse-tree.h:1888
Definition parse-tree.h:1577
Definition parse-tree.h:1576
Definition parse-tree.h:2366
Definition parse-tree.h:3193
Definition parse-tree.h:2386
Definition parse-tree.h:2248
Definition parse-tree.h:1423
Definition parse-tree.h:3394
Definition parse-tree.h:1234
Definition parse-tree.h:1260
Definition parse-tree.h:1243
Definition parse-tree.h:1220
Definition parse-tree.h:2605
Definition parse-tree.h:2611
Definition parse-tree.h:2619
Definition parse-tree.h:534
Definition parse-tree.h:559
Definition parse-tree.h:972
Definition parse-tree.h:1367
Definition parse-tree.h:959
Definition parse-tree.h:1800
Definition parse-tree.h:1773
Definition parse-tree.h:1814
Definition parse-tree.h:1779
Definition parse-tree.h:1818
Definition parse-tree.h:1755
Definition parse-tree.h:1770
Definition parse-tree.h:1806
Definition parse-tree.h:1788
Definition parse-tree.h:1794
Definition parse-tree.h:1797
Definition parse-tree.h:1760
Definition parse-tree.h:1785
Definition parse-tree.h:1782
Definition parse-tree.h:1767
Definition parse-tree.h:1809
Definition parse-tree.h:1791
Definition parse-tree.h:1749
Definition parse-tree.h:1746
Definition parse-tree.h:1803
Definition parse-tree.h:1740
Definition parse-tree.h:1764
Definition parse-tree.h:1776
Definition parse-tree.h:1743
Definition parse-tree.h:1736
Definition parse-tree.h:1049
Definition parse-tree.h:2142
Definition parse-tree.h:2158
Definition parse-tree.h:2136
Definition parse-tree.h:2171
Definition parse-tree.h:2148
Definition parse-tree.h:3328
Definition parse-tree.h:3182
Definition parse-tree.h:3360
Definition parse-tree.h:3075
Definition parse-tree.h:3090
Definition parse-tree.h:869
Definition parse-tree.h:2405
Definition parse-tree.h:2401
Definition parse-tree.h:2400
Definition parse-tree.h:2416
Definition parse-tree.h:2379
Definition parse-tree.h:1709
Definition parse-tree.h:1719
Definition parse-tree.h:424
Definition parse-tree.h:1633
Definition parse-tree.h:1642
Definition parse-tree.h:630
Definition parse-tree.h:1020
Definition parse-tree.h:2922
Definition parse-tree.h:2931
Definition parse-tree.h:2936
Definition parse-tree.h:2920
Definition parse-tree.h:2951
Definition parse-tree.h:2949
Definition parse-tree.h:798
Definition parse-tree.h:314
Definition parse-tree.h:1381
Definition parse-tree.h:1585
Definition parse-tree.h:3252
Definition parse-tree.h:3216
Definition parse-tree.h:3222
Definition parse-tree.h:3214
Definition parse-tree.h:3240
Definition parse-tree.h:480
Definition parse-tree.h:468
Definition parse-tree.h:718
Definition parse-tree.h:715
Definition parse-tree.h:721
Definition parse-tree.h:711
Definition parse-tree.h:709
Definition parse-tree.h:2761
Definition parse-tree.h:2759
Definition parse-tree.h:2670
Definition parse-tree.h:785
Definition parse-tree.h:663
Definition parse-tree.h:2343
Definition parse-tree.h:1326
Definition parse-tree.h:681
Definition parse-tree.h:1627
Definition parse-tree.h:894
Definition parse-tree.h:2315
Definition parse-tree.h:2311
Definition parse-tree.h:2646
Definition parse-tree.h:2645
Definition parse-tree.h:876
Definition parse-tree.h:322
Definition parse-tree.h:1293
Definition parse-tree.h:2333
Definition parse-tree.h:2331
Definition parse-tree.h:2970
Definition parse-tree.h:3504
Definition parse-tree.h:2103
Definition parse-tree.h:2995
Definition parse-tree.h:2984
Definition parse-tree.h:3006
Definition parse-tree.h:592
Definition parse-tree.h:1332
Definition parse-tree.h:644
Definition parse-tree.h:643
Definition parse-tree.h:2349
Definition parse-tree.h:2573
Definition parse-tree.h:1456
Definition parse-tree.h:4370
Definition parse-tree.h:4376
Definition parse-tree.h:4374
Definition parse-tree.h:4389
Definition parse-tree.h:4396
Definition parse-tree.h:4404
Definition parse-tree.h:4419
Definition parse-tree.h:5366
Definition parse-tree.h:4427
Definition parse-tree.h:4426
Definition parse-tree.h:5224
Definition parse-tree.h:5213
Definition parse-tree.h:4435
Definition parse-tree.h:4447
Definition parse-tree.h:5155
Definition parse-tree.h:5230
Definition parse-tree.h:4458
Definition parse-tree.h:5165
Definition parse-tree.h:4464
Definition parse-tree.h:5124
Definition parse-tree.h:5108
Definition parse-tree.h:4473
Definition parse-tree.h:3683
Definition parse-tree.h:4481
Definition parse-tree.h:5293
Definition parse-tree.h:5302
Definition parse-tree.h:5310
Definition parse-tree.h:5285
Definition parse-tree.h:5273
Definition parse-tree.h:4498
Definition parse-tree.h:4516
Definition parse-tree.h:4575
Definition parse-tree.h:4573
Definition parse-tree.h:4597
Definition parse-tree.h:4605
Definition parse-tree.h:4615
Definition parse-tree.h:4625
Definition parse-tree.h:4633
Definition parse-tree.h:3574
Definition parse-tree.h:5131
Definition parse-tree.h:4588
Definition parse-tree.h:4555
Definition parse-tree.h:4648
Definition parse-tree.h:4643
Definition parse-tree.h:5160
Definition parse-tree.h:5235
Definition parse-tree.h:4659
Definition parse-tree.h:5198
Definition parse-tree.h:4667
Definition parse-tree.h:4680
Definition parse-tree.h:4691
Definition parse-tree.h:4701
Definition parse-tree.h:4709
Definition parse-tree.h:5319
Definition parse-tree.h:4714
Definition parse-tree.h:4722
Definition parse-tree.h:4738
Definition parse-tree.h:4761
Definition parse-tree.h:4727
Definition parse-tree.h:4751
Definition parse-tree.h:4768
Definition parse-tree.h:3695
Definition parse-tree.h:4528
Definition parse-tree.h:4546
Definition parse-tree.h:4537
Definition parse-tree.h:4777
Definition parse-tree.h:4792
Definition parse-tree.h:3608
Definition parse-tree.h:4803
Definition parse-tree.h:4828
Definition parse-tree.h:4840
Definition parse-tree.h:4849
Definition parse-tree.h:5192
Definition parse-tree.h:4873
Definition parse-tree.h:4885
Definition parse-tree.h:4897
Definition parse-tree.h:3629
Definition parse-tree.h:3620
Definition parse-tree.h:3617
Definition parse-tree.h:4908
Definition parse-tree.h:4921
Definition parse-tree.h:4933
Definition parse-tree.h:4944
Definition parse-tree.h:3673
Definition parse-tree.h:4954
Definition parse-tree.h:5326
Definition parse-tree.h:3603
Definition parse-tree.h:4963
Definition parse-tree.h:4975
Definition parse-tree.h:5244
Definition parse-tree.h:4986
Definition parse-tree.h:4993
Definition parse-tree.h:3633
Definition parse-tree.h:3655
Definition parse-tree.h:3643
Definition parse-tree.h:3642
Definition parse-tree.h:5002
Definition parse-tree.h:5013
Definition parse-tree.h:5332
Definition parse-tree.h:5022
Definition parse-tree.h:5037
Definition parse-tree.h:5047
Definition parse-tree.h:3599
Definition parse-tree.h:3592
Definition parse-tree.h:5056
Definition parse-tree.h:5065
Definition parse-tree.h:5081
Definition parse-tree.h:5103
Definition parse-tree.h:5202
Definition parse-tree.h:5092
Definition parse-tree.h:3106
Definition parse-tree.h:5754
Definition parse-tree.h:5761
Definition parse-tree.h:5690
Definition parse-tree.h:5783
Definition parse-tree.h:5822
Definition parse-tree.h:5793
Definition parse-tree.h:5811
Definition parse-tree.h:5802
Definition parse-tree.h:5684
Definition parse-tree.h:5816
Definition parse-tree.h:5766
Definition parse-tree.h:5696
Definition parse-tree.h:5392
Definition parse-tree.h:5415
Definition parse-tree.h:5405
Definition parse-tree.h:5397
Definition parse-tree.h:5434
Definition parse-tree.h:5427
Definition parse-tree.h:5518
Definition parse-tree.h:5382
Definition parse-tree.h:5370
Definition parse-tree.h:5445
Definition parse-tree.h:5459
Definition parse-tree.h:5513
Definition parse-tree.h:5475
Definition parse-tree.h:5483
Definition parse-tree.h:5536
Definition parse-tree.h:5504
Definition parse-tree.h:5530
Definition parse-tree.h:5250
Definition parse-tree.h:5488
Definition parse-tree.h:5494
Definition parse-tree.h:379
Definition parse-tree.h:2839
Definition parse-tree.h:2802
Definition parse-tree.h:3031
Definition parse-tree.h:1843
Definition parse-tree.h:2069
Definition parse-tree.h:2068
Definition parse-tree.h:1595
Definition parse-tree.h:2029
Definition parse-tree.h:2865
Definition parse-tree.h:3151
Definition parse-tree.h:2823
Definition parse-tree.h:933
Definition parse-tree.h:3129
Definition parse-tree.h:1074
Definition parse-tree.h:1102
Definition parse-tree.h:1928
Definition parse-tree.h:1094
Definition parse-tree.h:1088
Definition parse-tree.h:1081
Definition parse-tree.h:3139
Definition parse-tree.h:3267
Definition parse-tree.h:3232
Definition parse-tree.h:576
Definition parse-tree.h:2786
Definition parse-tree.h:817
Definition parse-tree.h:2300
Definition parse-tree.h:3019
Definition parse-tree.h:3023
Definition parse-tree.h:3017
Definition parse-tree.h:1608
Definition parse-tree.h:298
Definition parse-tree.h:1694
Definition parse-tree.h:2423
Definition parse-tree.h:2488
Definition parse-tree.h:2487
Definition parse-tree.h:2501
Definition parse-tree.h:2499
Definition parse-tree.h:2478
Definition parse-tree.h:2535
Definition parse-tree.h:2533
Definition parse-tree.h:2513
Definition parse-tree.h:2179
Definition parse-tree.h:3386
Definition parse-tree.h:854
Definition parse-tree.h:791
Definition parse-tree.h:829
Definition parse-tree.h:402
Definition parse-tree.h:456
Definition parse-tree.h:1998
Definition parse-tree.h:362
Definition parse-tree.h:3404
Definition parse-tree.h:2565
Definition parse-tree.h:1918
Definition parse-tree.h:1211
Definition parse-tree.h:3525
Definition parse-tree.h:3497
Definition parse-tree.h:3520
Definition parse-tree.h:3037
Definition parse-tree.h:3048
Definition parse-tree.h:3201
Definition parse-tree.h:3370
Definition parse-tree.h:1685
Definition parse-tree.h:1880
Definition parse-tree.h:1676
Definition parse-tree.h:1866
Definition parse-tree.h:2584
Definition parse-tree.h:2583
Definition parse-tree.h:2596
Definition parse-tree.h:911
Definition parse-tree.h:1154
Definition parse-tree.h:1167
Definition parse-tree.h:1129
Definition parse-tree.h:1176
Definition parse-tree.h:1145
Definition parse-tree.h:1141
Definition parse-tree.h:1139
Definition parse-tree.h:1437
Definition parse-tree.h:2523
Definition parse-tree.h:2522
Definition parse-tree.h:939
Definition parse-tree.h:947
Definition parse-tree.h:745
Definition parse-tree.h:654
Definition parse-tree.h:758
Definition parse-tree.h:3513
Definition parse-tree.h:357
Definition parse-tree.h:2655
Definition parse-tree.h:804
Definition parse-tree.h:3115
Definition parse-tree.h:1896
Definition parse-tree.h:731
Definition parse-tree.h:736
Definition parse-tree.h:285
Definition parse-tree.h:2849
Definition parse-tree.h:2094
Definition parse-tree.h:2087
Definition parse-tree.h:2123
Definition parse-tree.h:2119
Definition parse-tree.h:2118
Definition parse-tree.h:2081
Definition parse-tree.h:2808
Definition parse-tree.h:3748
Definition parse-tree.h:3739
Definition parse-tree.h:3709
Definition parse-tree.h:3719
Definition parse-tree.h:3732
Definition parse-tree.h:3903
Definition parse-tree.h:3920
Definition parse-tree.h:3912
Definition parse-tree.h:3936
Definition parse-tree.h:3928
Definition parse-tree.h:3948
Definition parse-tree.h:3960
Definition parse-tree.h:3970
Definition parse-tree.h:3981
Definition parse-tree.h:3994
Definition parse-tree.h:4006
Definition parse-tree.h:4027
Definition parse-tree.h:4038
Definition parse-tree.h:4048
Definition parse-tree.h:4057
Definition parse-tree.h:4074
Definition parse-tree.h:4089
Definition parse-tree.h:4100
Definition parse-tree.h:4111
Definition parse-tree.h:4123
Definition parse-tree.h:4133
Definition parse-tree.h:4141
Definition parse-tree.h:4150
Definition parse-tree.h:4159
Definition parse-tree.h:4193
Definition parse-tree.h:4180
Definition parse-tree.h:4167
Definition parse-tree.h:4217
Definition parse-tree.h:4208
Definition parse-tree.h:4251
Definition parse-tree.h:4227
Definition parse-tree.h:4240
Definition parse-tree.h:4260
Definition parse-tree.h:4273
Definition parse-tree.h:4282
Definition parse-tree.h:4292
Definition parse-tree.h:4302
Definition parse-tree.h:4311
Definition parse-tree.h:4319
Definition parse-tree.h:4329
Definition parse-tree.h:4340
Definition parse-tree.h:4353
Definition parse-tree.h:3879
Definition parse-tree.h:3789
Definition parse-tree.h:3786
Definition parse-tree.h:3769
Definition parse-tree.h:3810
Definition parse-tree.h:3776
Definition parse-tree.h:3837
Definition parse-tree.h:3852
Definition parse-tree.h:3849
Definition parse-tree.h:3862
Definition parse-tree.h:3871