9#ifndef FORTRAN_PARSER_PARSE_TREE_H_
10#define FORTRAN_PARSER_PARSE_TREE_H_
20#include "char-block.h"
21#include "characters.h"
22#include "format-specification.h"
24#include "provenance.h"
25#include "flang/Common/enum-set.h"
26#include "flang/Common/idioms.h"
27#include "flang/Common/indirection.h"
28#include "flang/Common/reference.h"
29#include "flang/Support/Fortran.h"
30#include "llvm/ADT/ArrayRef.h"
31#include "llvm/Frontend/OpenACC/ACC.h.inc"
32#include "llvm/Frontend/OpenMP/OMP.h"
33#include "llvm/Frontend/OpenMP/OMPConstants.h"
54CLASS_TRAIT(EmptyTrait)
55CLASS_TRAIT(WrapperTrait)
56CLASS_TRAIT(UnionTrait)
57CLASS_TRAIT(TupleTrait)
58CLASS_TRAIT(ConstraintTrait)
63namespace Fortran::semantics {
80#define COPY_AND_ASSIGN_BOILERPLATE(classname) \
81 classname(classname &&) = default; \
82 classname &operator=(classname &&) = default; \
83 classname(const classname &) = delete; \
84 classname &operator=(const classname &) = delete
87#define BOILERPLATE(classname) \
88 COPY_AND_ASSIGN_BOILERPLATE(classname); \
93#define EMPTY_CLASS(classname) \
96 classname(const classname &) {} \
97 classname(classname &&) {} \
98 classname &operator=(const classname &) { return *this; }; \
99 classname &operator=(classname &&) { return *this; }; \
100 using EmptyTrait = std::true_type; \
105#define UNION_CLASS_BOILERPLATE(classname) \
106 template <typename A, typename = common::NoLvalue<A>> \
107 classname(A &&x) : u(std::move(x)) {} \
108 using UnionTrait = std::true_type; \
109 BOILERPLATE(classname)
113#define TUPLE_CLASS_BOILERPLATE(classname) \
114 template <typename... Ts, typename = common::NoLvalue<Ts...>> \
115 classname(Ts &&...args) : t(std::move(args)...) {} \
116 using TupleTrait = std::true_type; \
117 BOILERPLATE(classname)
121#define WRAPPER_CLASS_BOILERPLATE(classname, type) \
122 BOILERPLATE(classname); \
123 classname(type &&x) : v(std::move(x)) {} \
124 using WrapperTrait = std::true_type; \
127#define WRAPPER_CLASS(classname, type) \
129 WRAPPER_CLASS_BOILERPLATE(classname, type); \
161struct AllocatableStmt;
162struct AsynchronousStmt;
164struct CodimensionStmt;
165struct ContiguousStmt;
172struct OldParameterStmt;
182struct EquivalenceStmt;
219struct SyncMemoryStmt;
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>,
402 std::variant<common::Indirection<DerivedTypeDef>,
423 std::variant<Statement<common::Indirection<ImplicitStmt>>,
434WRAPPER_CLASS(ImplicitPart, std::list<ImplicitPartStmt>);
441 std::variant<SpecificationConstruct, Statement<common::Indirection<DataStmt>>,
455 std::tuple<std::list<OpenACCDeclarativeConstruct>,
456 std::list<OpenMPDeclarativeConstruct>,
457 std::list<common::Indirection<CompilerDirective>>,
458 std::list<Statement<common::Indirection<UseStmt>>>,
459 std::list<Statement<common::Indirection<ImportStmt>>>, ImplicitPart,
460 std::list<DeclarationConstruct>>
467 std::variant<common::Indirection<FunctionSubprogram>,
474EMPTY_CLASS(ContainsStmt);
479 std::tuple<Statement<ContainsStmt>, std::list<InternalSubprogram>> t;
483EMPTY_CLASS(ContinueStmt);
486EMPTY_CLASS(FailImageStmt);
500 std::variant<common::Indirection<AllocateStmt>,
558 std::variant<ExecutableConstruct, Statement<common::Indirection<FormatStmt>>,
567using Block = std::list<ExecutionPartConstruct>;
568WRAPPER_CLASS(ExecutionPart, Block);
575 std::variant<common::Indirection<MainProgram>,
586WRAPPER_CLASS(Program, std::list<ProgramUnit>);
590 std::string ToString()
const {
return source.ToString(); }
596WRAPPER_CLASS(Keyword,
Name);
599WRAPPER_CLASS(NamedConstant,
Name);
606WRAPPER_CLASS(DefinedOpName,
Name);
616 ENUM_CLASS(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat,
617 LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV)
618 std::variant<DefinedOpName, IntrinsicOperator> u;
622using ObjectName =
Name;
628 TUPLE_CLASS_BOILERPLATE(ImportStmt);
629 ImportStmt(common::ImportKind &&k) : t(k, std::list<Name>{}) {}
630 ImportStmt(std::list<Name> &&n)
631 : t(common::ImportKind::Default, std::move(n)) {}
632 ImportStmt(common::ImportKind &&, std::list<Name> &&);
633 std::tuple<common::ImportKind, std::list<Name>> t;
642 TUPLE_CLASS_BOILERPLATE(
Group);
643 std::tuple<Name, std::list<Name>> t;
645 WRAPPER_CLASS_BOILERPLATE(
NamelistStmt, std::list<Group>);
653 EMPTY_CLASS(Deferred);
654 std::variant<ScalarIntExpr, Star, Deferred> u;
662 WRAPPER_CLASS(StarSize, std::uint64_t);
663 std::variant<ScalarIntConstantExpr, StarSize> u;
667WRAPPER_CLASS(IntegerTypeSpec, std::optional<KindSelector>);
669WRAPPER_CLASS(UnsignedTypeSpec, std::optional<KindSelector>);
674 std::variant<TypeParamValue, std::uint64_t> u;
680 std::variant<TypeParamValue, CharLength> u;
689 UNION_CLASS_BOILERPLATE(CharSelector);
692 std::tuple<std::optional<TypeParamValue>, ScalarIntConstantExpr> t;
695 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
696 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
697 : u{LengthAndKind{std::move(l), std::move(k)}} {}
698 std::variant<LengthSelector, LengthAndKind> u;
709 WRAPPER_CLASS_BOILERPLATE(
Real, std::optional<KindSelector>);
711 EMPTY_CLASS(DoublePrecision);
713 WRAPPER_CLASS_BOILERPLATE(
Complex, std::optional<KindSelector>);
716 WRAPPER_CLASS_BOILERPLATE(
Character, std::optional<CharSelector>);
719 WRAPPER_CLASS_BOILERPLATE(
Logical, std::optional<KindSelector>);
721 EMPTY_CLASS(DoubleComplex);
722 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
730 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
735 EMPTY_CLASS(PairVectorTypeSpec);
736 EMPTY_CLASS(QuadVectorTypeSpec);
737 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
751 std::tuple<Name, std::list<TypeParamSpec>> t;
758 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
770 EMPTY_CLASS(ClassStar);
771 EMPTY_CLASS(TypeStar);
772 WRAPPER_CLASS(Record,
Name);
781 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
788 std::tuple<CharBlock, std::optional<KindParam>> t;
794 std::tuple<CharBlock, std::optional<KindParam>> t;
800 std::tuple<CharBlock, std::optional<KindParam>> t;
804enum class Sign { Positive, Negative };
814 using EmptyTrait = std::true_type;
815 COPY_AND_ASSIGN_BOILERPLATE(Real);
819 std::tuple<Real, std::optional<KindParam>> t;
844 std::tuple<ComplexPart, ComplexPart> t;
850 std::tuple<Sign, ComplexLiteralConstant> t;
858 std::tuple<std::optional<KindParam>, std::string> t;
859 std::string GetString()
const {
return std::get<std::string>(t); }
865 std::string GetString()
const {
return v; }
872 std::tuple<bool, std::optional<KindParam>> t;
882WRAPPER_CLASS(BOZLiteralConstant, std::string);
898 ENUM_CLASS(Kind, Public, Private)
904EMPTY_CLASS(Abstract);
908 WRAPPER_CLASS(Extends,
Name);
909 std::variant<Abstract, AccessSpec, BindC, Extends> u;
916 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
920EMPTY_CLASS(SequenceStmt);
924EMPTY_CLASS(PrivateStmt);
929 std::variant<PrivateStmt, SequenceStmt> u;
935 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
943 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
948WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
955 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
960WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
968 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
974 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
979WRAPPER_CLASS(DeferredShapeSpecList,
int);
985 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
993EMPTY_CLASS(Allocatable);
995EMPTY_CLASS(Contiguous);
1016 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1017 std::list<common::Indirection<DataStmtValue>>>
1027struct ComponentDecl {
1028 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1030 std::optional<ComponentArraySpec> &&aSpec,
1031 std::optional<CoarraySpec> &&coaSpec,
1032 std::optional<Initialization> &&init)
1033 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1034 std::move(length), std::move(init)} {}
1035 std::tuple<Name, std::optional<ComponentArraySpec>,
1036 std::optional<CoarraySpec>, std::optional<CharLength>,
1037 std::optional<Initialization>>
1045 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1051 std::variant<ComponentDecl, FillDecl> u;
1059 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1060 std::list<ComponentOrFill>>
1067WRAPPER_CLASS(Pass, std::optional<Name>);
1070 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1077 std::variant<NullInit, Name> u;
1084 std::variant<Name, DeclarationTypeSpec> u;
1090 std::tuple<Name, std::optional<ProcPointerInit>> t;
1098 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1099 std::list<ProcDecl>>
1117 EMPTY_CLASS(Deferred);
1118 EMPTY_CLASS(Non_Overridable);
1119 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1125 std::tuple<Name, std::optional<Name>> t;
1137 std::tuple<std::list<BindAttr>, std::list<TypeBoundProcDecl>> t;
1141 std::tuple<Name, std::list<BindAttr>, std::list<Name>> t;
1143 std::variant<WithoutInterface, WithInterface> u;
1156WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1172 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1173 std::list<Statement<TypeBoundProcBinding>>>
1178WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1186 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1187 std::list<Statement<PrivateOrSequence>>,
1188 std::list<Statement<ComponentDefStmt>>,
1201 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1207 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1211EMPTY_CLASS(EnumDefStmt);
1216 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1220WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1223EMPTY_CLASS(EndEnumStmt);
1229 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1230 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1238 TUPLE_CLASS_BOILERPLATE(
Triplet);
1239 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1241 UNION_CLASS_BOILERPLATE(
AcValue);
1242 std::variant<Triplet, common::Indirection<Expr>,
1249 TUPLE_CLASS_BOILERPLATE(AcSpec);
1250 explicit AcSpec(
TypeSpec &&ts) : t(std::move(ts), std::list<AcValue>()) {}
1251 std::tuple<std::optional<TypeSpec>, std::list<AcValue>> t;
1255WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1262 std::tuple<VAR, BOUND, BOUND, std::optional<BOUND>> t;
1264 const VAR &Name()
const {
return std::get<0>(t); }
1265 const BOUND &Lower()
const {
return std::get<1>(t); }
1266 const BOUND &Upper()
const {
return std::get<2>(t); }
1267 const std::optional<BOUND> &Step()
const {
return std::get<3>(t); }
1280 std::tuple<std::optional<IntegerTypeSpec>, Bounds> t;
1295 std::tuple<std::optional<ScalarDefaultCharConstantExpr>,
bool> t;
1301 std::tuple<NamedConstant, ConstantExpr> t;
1305WRAPPER_CLASS(ParameterStmt, std::list<NamedConstantDef>);
1308WRAPPER_CLASS(AssumedShapeSpec, std::optional<SpecificationExpr>);
1311WRAPPER_CLASS(AssumedImpliedSpec, std::optional<SpecificationExpr>);
1316 std::tuple<std::list<ExplicitShapeSpec>, AssumedImpliedSpec> t;
1323WRAPPER_CLASS(ImpliedShapeSpec, std::list<AssumedImpliedSpec>);
1326EMPTY_CLASS(AssumedRankSpec);
1334 std::variant<std::list<ExplicitShapeSpec>, std::list<AssumedShapeSpec>,
1335 DeferredShapeSpecList,
AssumedSizeSpec, ImpliedShapeSpec, AssumedRankSpec>
1341 ENUM_CLASS(Intent, In, Out, InOut)
1342 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1347WRAPPER_CLASS(RankClause, ScalarIntConstantExpr);
1357EMPTY_CLASS(Asynchronous);
1358EMPTY_CLASS(External);
1359EMPTY_CLASS(Intrinsic);
1360EMPTY_CLASS(Optional);
1361EMPTY_CLASS(Parameter);
1362EMPTY_CLASS(Protected);
1366EMPTY_CLASS(Volatile);
1371 Parameter, Pointer, Protected, RankClause, Save, Target, Value, Volatile,
1372 common::CUDADataAttr>
1383 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1384 EntityDecl(ObjectName &&name,
CharLength &&length,
1385 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1386 std::optional<Initialization> &&init)
1387 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1388 std::move(length), std::move(init)} {}
1389 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1390 std::optional<CharLength>, std::optional<Initialization>>
1398 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1408 std::tuple<AccessSpec, std::list<AccessId>> t;
1417 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1422WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1425WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1430 ENUM_CLASS(Kind, Object, Common)
1431 std::tuple<Kind, Name> t;
1437 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1443 std::tuple<Name, CoarraySpec> t;
1447WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1450WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1459using TypedAssignment =
1472 mutable TypedExpr typedExpr;
1473 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1486 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1492 mutable std::int64_t repetitions{1};
1500 std::variant<Scalar<common::Indirection<Designator>>,
1513 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1520 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1526 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1530WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1538 std::tuple<Name, ArraySpec> t;
1540 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1546 std::tuple<IntentSpec, std::list<Name>> t;
1550WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1556 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1560WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1563WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1569 ENUM_CLASS(Kind, Entity, Common)
1570 std::tuple<Kind, Name> t;
1574WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1577WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1580WRAPPER_CLASS(ValueStmt, std::list<Name>);
1583WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1588 std::tuple<Location, std::optional<Location>> t;
1594 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1603 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1604 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1610 std::tuple<Name, std::optional<ArraySpec>> t;
1618 TUPLE_CLASS_BOILERPLATE(
Block);
1619 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1621 WRAPPER_CLASS_BOILERPLATE(CommonStmt, std::list<Block>);
1622 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1623 std::list<Block> &&);
1632WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1637 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1641using Subscript = ScalarIntExpr;
1646 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1647 std::optional<Subscript>>
1655 std::variant<IntExpr, SubscriptTriplet> u;
1659using Cosubscript = ScalarIntExpr;
1670 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1673 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1680 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1689 std::tuple<ScalarLogicalExpr, common::Indirection<Expr>,
1696 UNION_CLASS_BOILERPLATE(Expr);
1700 using IntrinsicUnary::IntrinsicUnary;
1703 using IntrinsicUnary::IntrinsicUnary;
1706 using IntrinsicUnary::IntrinsicUnary;
1708 struct NOT :
public IntrinsicUnary {
1709 using IntrinsicUnary::IntrinsicUnary;
1716 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1724 using IntrinsicBinary::IntrinsicBinary;
1727 using IntrinsicBinary::IntrinsicBinary;
1730 using IntrinsicBinary::IntrinsicBinary;
1733 using IntrinsicBinary::IntrinsicBinary;
1736 using IntrinsicBinary::IntrinsicBinary;
1739 using IntrinsicBinary::IntrinsicBinary;
1742 using IntrinsicBinary::IntrinsicBinary;
1745 using IntrinsicBinary::IntrinsicBinary;
1748 using IntrinsicBinary::IntrinsicBinary;
1751 using IntrinsicBinary::IntrinsicBinary;
1754 using IntrinsicBinary::IntrinsicBinary;
1757 using IntrinsicBinary::IntrinsicBinary;
1760 using IntrinsicBinary::IntrinsicBinary;
1763 using IntrinsicBinary::IntrinsicBinary;
1766 using IntrinsicBinary::IntrinsicBinary;
1769 using IntrinsicBinary::IntrinsicBinary;
1774 using IntrinsicBinary::IntrinsicBinary;
1779 std::tuple<DefinedOpName, common::Indirection<Expr>,
1787 mutable TypedExpr typedExpr;
1791 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1796 Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
DefinedBinary,
1803 TUPLE_CLASS_BOILERPLATE(
PartRef);
1804 std::tuple<Name, std::list<SectionSubscript>, std::optional<ImageSelector>> t;
1809 UNION_CLASS_BOILERPLATE(DataRef);
1810 explicit DataRef(std::list<PartRef> &&);
1811 std::variant<Name, common::Indirection<StructureComponent>,
1827 std::tuple<DataRef, SubstringRange> t;
1832 std::tuple<CharLiteralConstant, SubstringRange> t;
1849 bool EndsInBareName()
const;
1851 std::variant<DataRef, Substring> u;
1857 mutable TypedExpr typedExpr;
1859 std::variant<common::Indirection<Designator>,
1879 std::tuple<DataRef, Name> t;
1881 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1882 const Name &Component()
const {
return std::get<Name>(t); }
1894 std::tuple<DataRef, ImageSelector> t;
1903 std::tuple<DataRef, std::list<SectionSubscript>> t;
1905 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1906 const std::list<SectionSubscript> &Subscripts()
const {
1907 return std::get<std::list<SectionSubscript>>(t);
1914 mutable TypedExpr typedExpr;
1915 std::variant<Name, StructureComponent> u;
1920using BoundExpr = ScalarIntExpr;
1926 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1935 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1943 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1944 std::optional<AllocateCoarraySpec>>
1949WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1953WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
1959 std::variant<StatVariable, MsgVariable> u;
1974 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
1981 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
1982 std::list<AllocOpt>>
1990 mutable TypedExpr typedExpr;
1991 std::variant<Name, StructureComponent> u;
1995WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
2001 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
2007 mutable TypedAssignment typedAssignment;
2008 std::tuple<Variable, Expr> t;
2012WRAPPER_CLASS(BoundsSpec, BoundExpr);
2017 std::tuple<BoundExpr, BoundExpr> t;
2029 UNION_CLASS_BOILERPLATE(
Bounds);
2030 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2033 mutable TypedAssignment typedAssignment;
2034 std::tuple<DataRef, Bounds, Expr> t;
2042 std::tuple<LogicalExpr, AssignmentStmt> t;
2048 std::tuple<std::optional<Name>, LogicalExpr> t;
2064 std::tuple<LogicalExpr, std::optional<Name>> t;
2068WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2071WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2080 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2084 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2087 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2088 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2103 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2109 std::tuple<common::Indirection<ConcurrentHeader>,
2126WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2132 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2140 std::variant<Expr, Variable> u;
2146 std::tuple<Name, Selector> t;
2153 std::tuple<std::optional<Name>, std::list<Association>> t;
2157WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2166WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2169WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2184 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2192 std::tuple<CodimensionDecl, Selector> t;
2200 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2201 std::list<StatOrErrmsg>>
2209 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2222 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2226WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2240 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2249 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2250 std::optional<ScalarLogicalExpr>>
2261 Operator, Plus, Multiply, Max, Min, Iand, Ior, Ieor, And, Or, Eqv, Neqv)
2272 WRAPPER_CLASS(Local, std::list<Name>);
2273 WRAPPER_CLASS(LocalInit, std::list<Name>);
2275 TUPLE_CLASS_BOILERPLATE(
Reduce);
2277 std::tuple<Operator, std::list<Name>> t;
2279 WRAPPER_CLASS(Shared, std::list<Name>);
2280 EMPTY_CLASS(DefaultNone);
2281 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2294 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2297 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2304 std::tuple<Label, std::optional<LoopControl>> t;
2310 std::tuple<std::optional<Name>, std::optional<Label>,
2311 std::optional<LoopControl>>
2316WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2327 const std::optional<LoopControl> &GetLoopControl()
const;
2328 bool IsDoNormal()
const;
2329 bool IsDoWhile()
const;
2330 bool IsDoConcurrent()
const;
2335WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2340 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2347 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2351WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2354WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2362 std::tuple<Statement<ElseIfStmt>, Block> t;
2366 std::tuple<Statement<ElseStmt>, Block> t;
2369 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2376 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2377 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2395 TUPLE_CLASS_BOILERPLATE(
Range);
2396 std::tuple<std::optional<CaseValue>, std::optional<CaseValue>>
2399 std::variant<CaseValue, Range> u;
2403EMPTY_CLASS(Default);
2407 std::variant<std::list<CaseValueRange>, Default> u;
2413 std::tuple<CaseSelector, std::optional<Name>> t;
2419WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2425 TUPLE_CLASS_BOILERPLATE(
Case);
2426 std::tuple<Statement<CaseStmt>, Block> t;
2429 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2439 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2448 UNION_CLASS_BOILERPLATE(
Rank);
2449 std::variant<ScalarIntConstantExpr, Star, Default> u;
2452 std::tuple<Rank, std::optional<Name>> t;
2462 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2464 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2474 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2483 UNION_CLASS_BOILERPLATE(
Guard);
2484 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2487 std::tuple<Guard, std::optional<Name>> t;
2496 std::tuple<Statement<TypeGuardStmt>, Block> t;
2498 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2504WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2507WRAPPER_CLASS(GotoStmt, Label);
2512 std::tuple<std::list<Label>, ScalarIntExpr> t;
2525 ENUM_CLASS(Kind, Stop, ErrorStop)
2527 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2534 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2538WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2545 std::variant<IntExpr, Star> u;
2548 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2552WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2557 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2566 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2572 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2580 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2593 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2596 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2607 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2610 std::tuple<LockVariable, std::list<LockStat>> t;
2616 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2620WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2630 UNION_CLASS_BOILERPLATE(
IoUnit);
2631 std::variant<Variable, common::Indirection<Expr>, Star> u;
2635using FileNameExpr = ScalarDefaultCharExpr;
2655WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2656WRAPPER_CLASS(ErrLabel, Label);
2661 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2662 Encoding, Form, Leading_Zero, Pad, Position, Round, Sign,
2663 Carriagecontrol, Convert, Dispose)
2665 std::tuple<Kind, ScalarDefaultCharExpr> t;
2667 WRAPPER_CLASS(Recl, ScalarIntExpr);
2668 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2669 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2670 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2675WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2685 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2689 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2695 UNION_CLASS_BOILERPLATE(
Format);
2696 std::variant<Expr, Label, Star> u;
2700WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2716WRAPPER_CLASS(EndLabel, Label);
2717WRAPPER_CLASS(EorLabel, Label);
2722 Kind, Advance, Blank, Decimal, Delim, Leading_Zero, Pad, Round, Sign)
2724 std::tuple<Kind, ScalarDefaultCharExpr> t;
2726 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2727 WRAPPER_CLASS(Pos, ScalarIntExpr);
2728 WRAPPER_CLASS(Rec, ScalarIntExpr);
2729 WRAPPER_CLASS(Size, ScalarIntVariable);
2731 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2739 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2746 BOILERPLATE(ReadStmt);
2747 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2748 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2749 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2750 items(std::move(its)) {}
2751 std::optional<IoUnit> iounit;
2753 std::optional<Format> format;
2756 std::list<IoControlSpec> controls;
2757 std::list<InputItem> items;
2763 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2768 BOILERPLATE(WriteStmt);
2769 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2770 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2771 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2772 items(std::move(its)) {}
2773 std::optional<IoUnit> iounit;
2775 std::optional<Format> format;
2777 std::list<IoControlSpec> controls;
2778 std::list<OutputItem> items;
2784 std::tuple<Format, std::list<OutputItem>> t;
2795 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2800 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2807WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2810 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2811 MsgVariable, StatVariable>
2816WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2826 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2831WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2835WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2838WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2841WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2882 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2883 Direct, Encoding, Form, Formatted, Iomsg, Leading_Zero,
Name, Pad,
2884 Position, Read, Readwrite, Round, Sequential, Sign, Stream, Status,
2886 Carriagecontrol, Convert, Dispose)
2887 TUPLE_CLASS_BOILERPLATE(
CharVar);
2888 std::tuple<Kind, ScalarDefaultCharVariable> t;
2891 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2892 TUPLE_CLASS_BOILERPLATE(
IntVar);
2893 std::tuple<Kind, ScalarIntVariable> t;
2896 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2897 TUPLE_CLASS_BOILERPLATE(
LogVar);
2898 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2912 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2914 std::variant<std::list<InquireSpec>,
Iolength> u;
2921WRAPPER_CLASS(ProgramStmt,
Name);
2924WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2932 ExecutionPart, std::optional<InternalSubprogramPart>,
2938WRAPPER_CLASS(ModuleStmt,
Name);
2945 std::variant<common::Indirection<FunctionSubprogram>,
2955 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2959WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2965 TUPLE_CLASS_BOILERPLATE(
Module);
2976 UNION_CLASS_BOILERPLATE(
Rename);
2978 TUPLE_CLASS_BOILERPLATE(
Names);
2979 std::tuple<Name, Name> t;
2983 std::tuple<DefinedOpName, DefinedOpName> t;
2985 std::variant<Names, Operators> u;
2991 std::tuple<Name, std::optional<Name>> t;
2997 std::tuple<ParentIdentifier, Name> t;
3001WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3014WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3017WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3035 EMPTY_CLASS(Assignment);
3036 EMPTY_CLASS(ReadFormatted);
3037 EMPTY_CLASS(ReadUnformatted);
3038 EMPTY_CLASS(WriteFormatted);
3039 EMPTY_CLASS(WriteUnformatted);
3042 ReadUnformatted, WriteFormatted, WriteUnformatted>
3050 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3054struct InterfaceStmt {
3055 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3057 InterfaceStmt(Abstract x) : u{x} {}
3059 std::variant<std::optional<GenericSpec>, Abstract> u;
3065 UNION_CLASS_BOILERPLATE(
Only);
3066 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3074 BOILERPLATE(UseStmt);
3075 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3076 template <
typename A>
3077 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3078 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3079 std::optional<ModuleNature> nature;
3081 std::variant<std::list<Rename>, std::list<Only>> u;
3099 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3100 std::list<ProcDecl>>
3111 EMPTY_CLASS(Elemental);
3112 EMPTY_CLASS(Impure);
3114 EMPTY_CLASS(Non_Recursive);
3116 EMPTY_CLASS(Recursive);
3117 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3118 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3119 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3121 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3129 TUPLE_CLASS_BOILERPLATE(Suffix);
3131 : t(std::move(rn), std::move(lbs)) {}
3132 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3141 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3142 std::optional<Suffix>>
3147WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3152 std::variant<Name, Star> u;
3160 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3161 std::optional<LanguageBindingSpec>>
3166WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3181 std::tuple<Statement<SubroutineStmt>,
3185 std::variant<Function, Subroutine> u;
3190 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3192 std::tuple<Kind, std::list<Name>> t;
3198 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3202WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3208 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3214WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3217WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3223 std::variant<Name, ProcComponentRef> u;
3227WRAPPER_CLASS(AltReturnSpec, Label);
3230EMPTY_CLASS(ConditionalArgNil);
3244 std::variant<common::Indirection<Expr>, ConditionalArgNil> u;
3253 std::variant<ConditionalArg, ConditionalArg::Consequent> u;
3260 WRAPPER_CLASS(PercentRef,
Expr);
3261 WRAPPER_CLASS(PercentVal,
Expr);
3262 UNION_CLASS_BOILERPLATE(ActualArg);
3264 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal,
3272 std::tuple<std::optional<Keyword>,
ActualArg> t;
3278 TUPLE_CLASS_BOILERPLATE(
Call);
3279 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3295 TUPLE_CLASS_BOILERPLATE(CallStmt);
3296 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3299 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3300 std::optional<ScalarIntExpr>>
3304 std::list<ActualArgSpec> &&args)
3305 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3306 std::tuple<Call, std::optional<Chevrons>> t;
3308 mutable TypedCall typedCall;
3332WRAPPER_CLASS(MpSubprogramStmt,
Name);
3335WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3350 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3354WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3385 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3388 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3392 std::tuple<common::Indirection<Designator>, uint64_t> t;
3394 EMPTY_CLASS(VectorAlways);
3397 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3399 std::tuple<std::uint64_t, Kind> t;
3403 std::tuple<Name, std::optional<std::uint64_t>> t;
3406 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3409 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3412 WRAPPER_CLASS_BOILERPLATE(
3416 WRAPPER_CLASS_BOILERPLATE(
InlineAlways, std::optional<Name>);
3418 EMPTY_CLASS(NoVector);
3419 EMPTY_CLASS(NoUnroll);
3420 EMPTY_CLASS(NoUnrollAndJam);
3421 EMPTY_CLASS(ForceInline);
3422 EMPTY_CLASS(Inline);
3423 EMPTY_CLASS(NoInline);
3426 EMPTY_CLASS(Unrecognized);
3428 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3430 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3438 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3444 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3446WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3453 std::variant<Statement<DataComponentDefStmt>,
3459 EMPTY_CLASS(MapStmt);
3460 EMPTY_CLASS(EndMapStmt);
3461 TUPLE_CLASS_BOILERPLATE(
Map);
3462 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3468 EMPTY_CLASS(UnionStmt);
3469 EMPTY_CLASS(EndUnionStmt);
3470 TUPLE_CLASS_BOILERPLATE(
Union);
3476 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3480 EMPTY_CLASS(EndStructureStmt);
3482 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3489WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3494 std::tuple<Expr, Label, Label, Label> t;
3499 std::tuple<Label, Name> t;
3504 std::tuple<Name, std::list<Label>> t;
3507WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3513#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3514 using basename::basename; \
3515 classname(basename &&b) : basename(std::move(b)) {} \
3516 using TupleTrait = std::true_type; \
3517 BOILERPLATE(classname)
3519#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3520 BOILERPLATE(classname); \
3521 using basename::basename; \
3522 classname(basename &&base) : basename(std::move(base)) {} \
3523 using WrapperTrait = std::true_type
3528struct OmpDirectiveName {
3530 constexpr OmpDirectiveName() =
default;
3531 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3532 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3536 OmpDirectiveName(
const Verbatim &name);
3537 using WrapperTrait = std::true_type;
3539 bool IsExecutionPart()
const;
3542 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3550 std::variant<TypeSpec, DeclarationTypeSpec> u;
3565 ENUM_CLASS(Kind, BlankCommonBlock);
3566 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3574 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3581 using EmptyTrait = std::true_type;
3589 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3592 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3606 WRAPPER_CLASS_BOILERPLATE(
3619 std::variant<DefinedOperator, ProcedureDesignator> u;
3628 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3640 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3645inline namespace arguments {
3648 std::variant<OmpObject, FunctionReference> u;
3652 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3664 std::tuple<OmpObject, OmpObject> t;
3675 std::tuple<std::string, TypeSpec, Name> t;
3688 std::optional<OmpCombinerExpression>>
3707inline namespace traits {
3744 TUPLE_CLASS_BOILERPLATE(
Complex);
3746 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3750 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3766 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3791 std::string ToString()
const;
3794 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3795 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3796 std::variant<Value, llvm::omp::Directive, std::string> u;
3807 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3809 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3816 std::string ToString()
const;
3818 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3827 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3834 WRAPPER_CLASS_BOILERPLATE(
3839#define MODIFIER_BOILERPLATE(...) \
3841 using Variant = std::variant<__VA_ARGS__>; \
3842 UNION_CLASS_BOILERPLATE(Modifier); \
3847#define MODIFIERS() std::optional<std::list<Modifier>>
3849inline namespace modifier {
3857 ENUM_CLASS(Value, Cgroup);
3866 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3902 ENUM_CLASS(Value, Always)
3914 ENUM_CLASS(Value, Always, Never, Auto)
3924 ENUM_CLASS(Value, Automap);
3935 ENUM_CLASS(Value, Simd)
3948 ENUM_CLASS(Value, Close)
3960 ENUM_CLASS(Value, Delete)
3981 ENUM_CLASS(Value, Sink, Source);
3992 using Value = common::OmpDependenceKind;
3994 std::tuple<Value, OmpObject> t;
4002 ENUM_CLASS(Value, Ancestor, Device_Num)
4028 INHERITED_WRAPPER_CLASS_BOILERPLATE(
4043 ENUM_CLASS(Value, Present);
4054 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4065 ENUM_CLASS(Value, Target, Targetsync)
4079 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4087 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4095 ENUM_CLASS(Value, Conditional)
4104 ENUM_CLASS(Value, Ref, Uval, Val);
4134 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4135 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4147 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4162 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4171 ENUM_CLASS(Value, Reproducible, Unconstrained)
4184 using Extensions = std::list<PreferencePropertyExtension>;
4185 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4195 using ForeignRuntimeIdentifier =
4196 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4197 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4205 WRAPPER_CLASS_BOILERPLATE(
4214 ENUM_CLASS(Value, Strict)
4227 ENUM_CLASS(Value, Present)
4236 ENUM_CLASS(Value, Default, Inscan, Task);
4246 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4256 ENUM_CLASS(Value, Self)
4283 using Value = common::OmpDependenceKind;
4294 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4307 ENUM_CLASS(Value, Ompx_Hold)
4317using OmpDirectiveList = std::list<llvm::omp::Directive>;
4330 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4333 std::tuple<OmpAdjustOp, OmpObjectList> t;
4350 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4381 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4389 ENUM_CLASS(ActionTime, Compilation, Execution);
4390 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4401 using MemoryOrder = common::OmpMemoryOrderType;
4412 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4419 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4452 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4454 std::variant<DataSharingAttribute,
4471 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4474 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4483 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4492 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4509 OmpDependenceType::Value GetDepType()
const;
4512 EMPTY_CLASS(Source);
4514 std::variant<Sink, Source> u;
4529 OmpTaskDependenceType::Value GetTaskDepType()
const;
4530 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4534 std::variant<TaskDep, OmpDoacross> u;
4571 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4587 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4597 WRAPPER_CLASS_BOILERPLATE(
4604 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4621 using MemoryOrder = common::OmpMemoryOrderType;
4647 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4668 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4681 WRAPPER_CLASS_BOILERPLATE(
4694 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4747 MODIFIER_BOILERPLATE(
4758 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4795 WRAPPER_CLASS_BOILERPLATE(
4809EMPTY_CLASS(OmpNoOpenMPClause);
4814EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4819EMPTY_CLASS(OmpNoParallelismClause);
4829 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4841 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4853 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4863 ENUM_CLASS(Ordering, Concurrent)
4865 std::tuple<MODIFIERS(), Ordering> t;
4887 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4930 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4932 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4947 ENUM_CLASS(SevLevel, Fatal, Warning);
4969 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4976 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
5019 WRAPPER_CLASS_BOILERPLATE(
5037 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
5047 MODIFIER_BOILERPLATE(OmpContextSelector);
5048 std::tuple<MODIFIERS(),
5049 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5063 llvm::omp::Clause Id()
const;
5065#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5066#include "llvm/Frontend/OpenMP/OMP.inc"
5071#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5072#include "llvm/Frontend/OpenMP/OMP.inc"
5078 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5085 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo, ExplicitBegin)
5090 return std::get<OmpDirectiveName>(t);
5092 llvm::omp::Directive DirId()
const {
5099 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5100 std::optional<OmpClauseList>, Flags>
5109 INHERITED_TUPLE_CLASS_BOILERPLATE(
5121 return std::get<OmpBeginDirective>(t);
5123 const std::optional<OmpEndDirective> &EndDir()
const {
5124 return std::get<std::optional<OmpEndDirective>>(t);
5128 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5132 WRAPPER_CLASS_BOILERPLATE(
5137 INHERITED_TUPLE_CLASS_BOILERPLATE(
5158 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5167 WRAPPER_CLASS_BOILERPLATE(
5185 INHERITED_TUPLE_CLASS_BOILERPLATE(
5200 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5208 return std::get<OmpBeginSectionsDirective>(t);
5210 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5211 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5218 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5219 std::optional<OmpEndSectionsDirective>>
5228 WRAPPER_CLASS_BOILERPLATE(
5240 WRAPPER_CLASS_BOILERPLATE(
5248 WRAPPER_CLASS_BOILERPLATE(
5257 WRAPPER_CLASS_BOILERPLATE(
5345 INHERITED_TUPLE_CLASS_BOILERPLATE(
5350 llvm::omp::Clause GetKind()
const;
5351 bool IsCapture()
const;
5352 bool IsCompare()
const;
5358 static constexpr int None = 0;
5359 static constexpr int Read = 1;
5360 static constexpr int Write = 2;
5361 static constexpr int Update = Read | Write;
5362 static constexpr int Action = 3;
5363 static constexpr int IfTrue = 4;
5364 static constexpr int IfFalse = 8;
5365 static constexpr int Condition = 12;
5369 TypedAssignment assign;
5371 TypedExpr atom, cond;
5380 WRAPPER_CLASS_BOILERPLATE(
5441 WRAPPER_CLASS_BOILERPLATE(
5483 INHERITED_TUPLE_CLASS_BOILERPLATE(
5489 using EmptyTrait = std::true_type;
5500WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5532 std::variant<Name, ScalarDefaultCharExpr> u;
5542 ENUM_CLASS(Modifier, ReadOnly, Zero)
5549 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5554 std::tuple<ReductionOperator, AccObjectList> t;
5559 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5563 WRAPPER_CLASS_BOILERPLATE(
5569 WRAPPER_CLASS_BOILERPLATE(
5576 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5584 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5593 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5600 WRAPPER_CLASS(Num, ScalarIntExpr);
5601 WRAPPER_CLASS(Dim, ScalarIntExpr);
5603 std::variant<Num, Dim, Static> u;
5608 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5613 std::tuple<bool, ScalarIntConstantExpr> t;
5619#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5620#include "llvm/Frontend/OpenACC/ACC.inc"
5625#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5626#include "llvm/Frontend/OpenACC/ACC.inc"
5632 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5645 std::tuple<Verbatim, AccObjectListWithModifier> t;
5651 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5656 std::tuple<AccLoopDirective, AccClauseList> t;
5663 std::tuple<AccBlockDirective, AccClauseList> t;
5672EMPTY_CLASS(AccEndAtomic);
5677 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5678 std::optional<AccEndAtomic>>
5685 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5686 std::optional<AccEndAtomic>>
5694 std::optional<AccEndAtomic>>
5703 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5708 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5715 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5721 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5727 std::tuple<AccCombinedDirective, AccClauseList> t;
5735struct OpenACCCombinedConstruct {
5736 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5739 : t({std::move(a), std::nullopt, std::nullopt}) {}
5740 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5741 std::optional<AccEndCombinedDirective>>
5748 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5753EMPTY_CLASS(AccEndLoop);
5754struct OpenACCLoopConstruct {
5755 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5757 : t({std::move(a), std::nullopt, std::nullopt}) {}
5758 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5759 std::optional<AccEndLoop>>
5771 std::tuple<AccStandaloneDirective, AccClauseList> t;
5797 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5802 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5805 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5806 std::optional<ScalarIntExpr>>
5812 std::tuple<std::optional<ScalarIntConstantExpr>,
5813 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5816 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:1277
Definition parse-tree.h:1284
Definition parse-tree.h:1248
Definition parse-tree.h:1237
Definition parse-tree.h:1236
Definition parse-tree.h:5699
Definition parse-tree.h:5675
Definition parse-tree.h:5691
Definition parse-tree.h:5683
Definition parse-tree.h:5660
Definition parse-tree.h:5724
Definition parse-tree.h:5654
Definition parse-tree.h:5530
Definition parse-tree.h:5503
Definition parse-tree.h:5631
Definition parse-tree.h:5616
Definition parse-tree.h:5611
Definition parse-tree.h:5519
Definition parse-tree.h:5541
Definition parse-tree.h:5524
Definition parse-tree.h:5536
Definition parse-tree.h:5568
Definition parse-tree.h:5562
Definition parse-tree.h:5666
Definition parse-tree.h:5730
Definition parse-tree.h:5607
Definition parse-tree.h:5598
Definition parse-tree.h:5508
Definition parse-tree.h:5547
Definition parse-tree.h:5552
Definition parse-tree.h:5495
Definition parse-tree.h:5591
Definition parse-tree.h:5587
Definition parse-tree.h:5583
Definition parse-tree.h:5513
Definition parse-tree.h:5579
Definition parse-tree.h:5573
Definition parse-tree.h:5557
Definition parse-tree.h:897
Definition parse-tree.h:1406
Definition parse-tree.h:498
Definition parse-tree.h:3270
Definition parse-tree.h:3259
Definition parse-tree.h:1968
Definition parse-tree.h:1933
Definition parse-tree.h:1912
Definition parse-tree.h:1924
Definition parse-tree.h:1979
Definition parse-tree.h:1941
Definition parse-tree.h:3492
Definition parse-tree.h:1898
Definition parse-tree.h:1332
Definition parse-tree.h:3497
Definition parse-tree.h:3502
Definition parse-tree.h:2005
Definition parse-tree.h:2160
Definition parse-tree.h:2151
Definition parse-tree.h:2144
Definition parse-tree.h:1314
Definition parse-tree.h:1367
Definition parse-tree.h:3442
Definition parse-tree.h:1115
Definition parse-tree.h:1428
Definition parse-tree.h:1435
Definition parse-tree.h:2182
Definition parse-tree.h:3020
Definition parse-tree.h:2015
Definition parse-tree.h:3436
Definition parse-tree.h:5809
Definition parse-tree.h:5803
Definition parse-tree.h:5800
Definition parse-tree.h:5794
Definition parse-tree.h:3297
Definition parse-tree.h:3294
Definition parse-tree.h:3277
Definition parse-tree.h:2424
Definition parse-tree.h:2423
Definition parse-tree.h:2405
Definition parse-tree.h:2411
Definition parse-tree.h:2394
Definition parse-tree.h:2392
Definition parse-tree.h:2213
Definition parse-tree.h:2198
Definition parse-tree.h:672
Definition parse-tree.h:1830
Definition parse-tree.h:856
Definition parse-tree.h:690
Definition parse-tree.h:688
Definition parse-tree.h:2683
Definition parse-tree.h:2682
Definition parse-tree.h:2190
Definition parse-tree.h:972
Definition parse-tree.h:1441
Definition parse-tree.h:1892
Definition parse-tree.h:1608
Definition parse-tree.h:1617
Definition parse-tree.h:1616
Definition parse-tree.h:3390
Definition parse-tree.h:3383
Definition parse-tree.h:3415
Definition parse-tree.h:3387
Definition parse-tree.h:3401
Definition parse-tree.h:3411
Definition parse-tree.h:3408
Definition parse-tree.h:3405
Definition parse-tree.h:3395
Definition parse-tree.h:3381
Definition parse-tree.h:842
Definition parse-tree.h:834
Definition parse-tree.h:983
Definition parse-tree.h:996
Definition parse-tree.h:1104
Definition parse-tree.h:1049
Definition parse-tree.h:1199
Definition parse-tree.h:2510
Definition parse-tree.h:2238
Definition parse-tree.h:3251
Definition parse-tree.h:3240
Definition parse-tree.h:3238
Definition parse-tree.h:1687
Definition parse-tree.h:2660
Definition parse-tree.h:2658
Definition parse-tree.h:305
Definition parse-tree.h:2229
Definition parse-tree.h:2220
Definition parse-tree.h:1057
Definition parse-tree.h:1498
Definition parse-tree.h:1510
Definition parse-tree.h:1808
Definition parse-tree.h:1469
Definition parse-tree.h:1518
Definition parse-tree.h:1484
Definition parse-tree.h:1524
Definition parse-tree.h:1490
Definition parse-tree.h:1999
Definition parse-tree.h:439
Definition parse-tree.h:766
Definition parse-tree.h:329
Definition parse-tree.h:614
Definition parse-tree.h:1184
Definition parse-tree.h:748
Definition parse-tree.h:914
Definition parse-tree.h:1847
Definition parse-tree.h:1536
Definition parse-tree.h:1535
Definition parse-tree.h:2325
Definition parse-tree.h:3150
Definition parse-tree.h:2345
Definition parse-tree.h:2207
Definition parse-tree.h:1382
Definition parse-tree.h:3348
Definition parse-tree.h:1228
Definition parse-tree.h:1214
Definition parse-tree.h:2564
Definition parse-tree.h:2570
Definition parse-tree.h:2578
Definition parse-tree.h:531
Definition parse-tree.h:556
Definition parse-tree.h:966
Definition parse-tree.h:953
Definition parse-tree.h:1759
Definition parse-tree.h:1732
Definition parse-tree.h:1773
Definition parse-tree.h:1738
Definition parse-tree.h:1777
Definition parse-tree.h:1714
Definition parse-tree.h:1729
Definition parse-tree.h:1765
Definition parse-tree.h:1747
Definition parse-tree.h:1753
Definition parse-tree.h:1756
Definition parse-tree.h:1719
Definition parse-tree.h:1744
Definition parse-tree.h:1741
Definition parse-tree.h:1726
Definition parse-tree.h:1768
Definition parse-tree.h:1750
Definition parse-tree.h:1708
Definition parse-tree.h:1705
Definition parse-tree.h:1762
Definition parse-tree.h:1699
Definition parse-tree.h:1723
Definition parse-tree.h:1735
Definition parse-tree.h:1702
Definition parse-tree.h:1695
Definition parse-tree.h:1043
Definition parse-tree.h:2101
Definition parse-tree.h:2117
Definition parse-tree.h:2095
Definition parse-tree.h:2130
Definition parse-tree.h:2107
Definition parse-tree.h:3282
Definition parse-tree.h:3139
Definition parse-tree.h:3314
Definition parse-tree.h:3033
Definition parse-tree.h:3048
Definition parse-tree.h:863
Definition parse-tree.h:2364
Definition parse-tree.h:2360
Definition parse-tree.h:2359
Definition parse-tree.h:2375
Definition parse-tree.h:2338
Definition parse-tree.h:1668
Definition parse-tree.h:1678
Definition parse-tree.h:421
Definition parse-tree.h:1592
Definition parse-tree.h:1601
Definition parse-tree.h:627
Definition parse-tree.h:1014
Definition parse-tree.h:2881
Definition parse-tree.h:2890
Definition parse-tree.h:2895
Definition parse-tree.h:2879
Definition parse-tree.h:2910
Definition parse-tree.h:2908
Definition parse-tree.h:792
Definition parse-tree.h:313
Definition parse-tree.h:1340
Definition parse-tree.h:1544
Definition parse-tree.h:3206
Definition parse-tree.h:3173
Definition parse-tree.h:3179
Definition parse-tree.h:3171
Definition parse-tree.h:3196
Definition parse-tree.h:477
Definition parse-tree.h:465
Definition parse-tree.h:715
Definition parse-tree.h:712
Definition parse-tree.h:718
Definition parse-tree.h:708
Definition parse-tree.h:706
Definition parse-tree.h:2720
Definition parse-tree.h:2718
Definition parse-tree.h:2629
Definition parse-tree.h:779
Definition parse-tree.h:660
Definition parse-tree.h:2302
Definition parse-tree.h:1293
Definition parse-tree.h:678
Definition parse-tree.h:1586
Definition parse-tree.h:888
Definition parse-tree.h:2274
Definition parse-tree.h:2270
Definition parse-tree.h:2605
Definition parse-tree.h:2604
Definition parse-tree.h:870
Definition parse-tree.h:321
Definition parse-tree.h:1260
Definition parse-tree.h:2292
Definition parse-tree.h:2290
Definition parse-tree.h:2929
Definition parse-tree.h:3458
Definition parse-tree.h:2062
Definition parse-tree.h:2953
Definition parse-tree.h:2943
Definition parse-tree.h:2964
Definition parse-tree.h:589
Definition parse-tree.h:1299
Definition parse-tree.h:641
Definition parse-tree.h:640
Definition parse-tree.h:2308
Definition parse-tree.h:2532
Definition parse-tree.h:1415
Definition parse-tree.h:4323
Definition parse-tree.h:4329
Definition parse-tree.h:4327
Definition parse-tree.h:4342
Definition parse-tree.h:4349
Definition parse-tree.h:4357
Definition parse-tree.h:4372
Definition parse-tree.h:5318
Definition parse-tree.h:4380
Definition parse-tree.h:4379
Definition parse-tree.h:4388
Definition parse-tree.h:4400
Definition parse-tree.h:5108
Definition parse-tree.h:5184
Definition parse-tree.h:4411
Definition parse-tree.h:5118
Definition parse-tree.h:4417
Definition parse-tree.h:5077
Definition parse-tree.h:5061
Definition parse-tree.h:4426
Definition parse-tree.h:3627
Definition parse-tree.h:4434
Definition parse-tree.h:5247
Definition parse-tree.h:5256
Definition parse-tree.h:5264
Definition parse-tree.h:5239
Definition parse-tree.h:5227
Definition parse-tree.h:4451
Definition parse-tree.h:4469
Definition parse-tree.h:4528
Definition parse-tree.h:4526
Definition parse-tree.h:4550
Definition parse-tree.h:4558
Definition parse-tree.h:4568
Definition parse-tree.h:4578
Definition parse-tree.h:4586
Definition parse-tree.h:3528
Definition parse-tree.h:5084
Definition parse-tree.h:4541
Definition parse-tree.h:4508
Definition parse-tree.h:4601
Definition parse-tree.h:4596
Definition parse-tree.h:5113
Definition parse-tree.h:5189
Definition parse-tree.h:4612
Definition parse-tree.h:5151
Definition parse-tree.h:4620
Definition parse-tree.h:4633
Definition parse-tree.h:4644
Definition parse-tree.h:4654
Definition parse-tree.h:4662
Definition parse-tree.h:4667
Definition parse-tree.h:4675
Definition parse-tree.h:4691
Definition parse-tree.h:4714
Definition parse-tree.h:4680
Definition parse-tree.h:4704
Definition parse-tree.h:4721
Definition parse-tree.h:3639
Definition parse-tree.h:4481
Definition parse-tree.h:4499
Definition parse-tree.h:4490
Definition parse-tree.h:4730
Definition parse-tree.h:4745
Definition parse-tree.h:4756
Definition parse-tree.h:4781
Definition parse-tree.h:4793
Definition parse-tree.h:4802
Definition parse-tree.h:5145
Definition parse-tree.h:4826
Definition parse-tree.h:4838
Definition parse-tree.h:4850
Definition parse-tree.h:3573
Definition parse-tree.h:3564
Definition parse-tree.h:3561
Definition parse-tree.h:4861
Definition parse-tree.h:4874
Definition parse-tree.h:4886
Definition parse-tree.h:4897
Definition parse-tree.h:3617
Definition parse-tree.h:4907
Definition parse-tree.h:4916
Definition parse-tree.h:4928
Definition parse-tree.h:4939
Definition parse-tree.h:4946
Definition parse-tree.h:3577
Definition parse-tree.h:3599
Definition parse-tree.h:3587
Definition parse-tree.h:3586
Definition parse-tree.h:4955
Definition parse-tree.h:4966
Definition parse-tree.h:4975
Definition parse-tree.h:4990
Definition parse-tree.h:5000
Definition parse-tree.h:3553
Definition parse-tree.h:3546
Definition parse-tree.h:5009
Definition parse-tree.h:5018
Definition parse-tree.h:5034
Definition parse-tree.h:5056
Definition parse-tree.h:5045
Definition parse-tree.h:3064
Definition parse-tree.h:5706
Definition parse-tree.h:5713
Definition parse-tree.h:5642
Definition parse-tree.h:5735
Definition parse-tree.h:5774
Definition parse-tree.h:5745
Definition parse-tree.h:5763
Definition parse-tree.h:5754
Definition parse-tree.h:5636
Definition parse-tree.h:5768
Definition parse-tree.h:5718
Definition parse-tree.h:5648
Definition parse-tree.h:5344
Definition parse-tree.h:5178
Definition parse-tree.h:5367
Definition parse-tree.h:5357
Definition parse-tree.h:5349
Definition parse-tree.h:5386
Definition parse-tree.h:5379
Definition parse-tree.h:5470
Definition parse-tree.h:5334
Definition parse-tree.h:5166
Definition parse-tree.h:5322
Definition parse-tree.h:5397
Definition parse-tree.h:5411
Definition parse-tree.h:5465
Definition parse-tree.h:5427
Definition parse-tree.h:5273
Definition parse-tree.h:5435
Definition parse-tree.h:5488
Definition parse-tree.h:5456
Definition parse-tree.h:5482
Definition parse-tree.h:5279
Definition parse-tree.h:5198
Definition parse-tree.h:5204
Definition parse-tree.h:5440
Definition parse-tree.h:5446
Definition parse-tree.h:5285
Definition parse-tree.h:5155
Definition parse-tree.h:378
Definition parse-tree.h:2798
Definition parse-tree.h:2761
Definition parse-tree.h:2989
Definition parse-tree.h:1802
Definition parse-tree.h:2028
Definition parse-tree.h:2027
Definition parse-tree.h:1554
Definition parse-tree.h:1988
Definition parse-tree.h:2824
Definition parse-tree.h:3109
Definition parse-tree.h:2782
Definition parse-tree.h:927
Definition parse-tree.h:3087
Definition parse-tree.h:1068
Definition parse-tree.h:1096
Definition parse-tree.h:1887
Definition parse-tree.h:1088
Definition parse-tree.h:1082
Definition parse-tree.h:1075
Definition parse-tree.h:3097
Definition parse-tree.h:3221
Definition parse-tree.h:3189
Definition parse-tree.h:573
Definition parse-tree.h:2745
Definition parse-tree.h:811
Definition parse-tree.h:2259
Definition parse-tree.h:2977
Definition parse-tree.h:2981
Definition parse-tree.h:2975
Definition parse-tree.h:1567
Definition parse-tree.h:297
Definition parse-tree.h:1653
Definition parse-tree.h:2382
Definition parse-tree.h:2447
Definition parse-tree.h:2446
Definition parse-tree.h:2460
Definition parse-tree.h:2458
Definition parse-tree.h:2437
Definition parse-tree.h:2494
Definition parse-tree.h:2492
Definition parse-tree.h:2472
Definition parse-tree.h:2138
Definition parse-tree.h:3340
Definition parse-tree.h:848
Definition parse-tree.h:785
Definition parse-tree.h:823
Definition parse-tree.h:400
Definition parse-tree.h:453
Definition parse-tree.h:1957
Definition parse-tree.h:361
Definition parse-tree.h:3358
Definition parse-tree.h:2524
Definition parse-tree.h:1877
Definition parse-tree.h:1205
Definition parse-tree.h:3479
Definition parse-tree.h:3451
Definition parse-tree.h:3474
Definition parse-tree.h:2995
Definition parse-tree.h:3006
Definition parse-tree.h:3158
Definition parse-tree.h:3324
Definition parse-tree.h:1644
Definition parse-tree.h:1839
Definition parse-tree.h:1635
Definition parse-tree.h:1825
Definition parse-tree.h:2543
Definition parse-tree.h:2542
Definition parse-tree.h:2555
Definition parse-tree.h:905
Definition parse-tree.h:1148
Definition parse-tree.h:1161
Definition parse-tree.h:1123
Definition parse-tree.h:1170
Definition parse-tree.h:1139
Definition parse-tree.h:1135
Definition parse-tree.h:1133
Definition parse-tree.h:1396
Definition parse-tree.h:2482
Definition parse-tree.h:2481
Definition parse-tree.h:933
Definition parse-tree.h:941
Definition parse-tree.h:742
Definition parse-tree.h:651
Definition parse-tree.h:755
Definition parse-tree.h:3467
Definition parse-tree.h:356
Definition parse-tree.h:2614
Definition parse-tree.h:798
Definition parse-tree.h:3073
Definition parse-tree.h:1855
Definition parse-tree.h:728
Definition parse-tree.h:733
Definition parse-tree.h:284
Definition parse-tree.h:2808
Definition parse-tree.h:2053
Definition parse-tree.h:2046
Definition parse-tree.h:2082
Definition parse-tree.h:2078
Definition parse-tree.h:2077
Definition parse-tree.h:2040
Definition parse-tree.h:2767
Definition parse-tree.h:3701
Definition parse-tree.h:3692
Definition parse-tree.h:3662
Definition parse-tree.h:3651
Definition parse-tree.h:3646
Definition parse-tree.h:3672
Definition parse-tree.h:3685
Definition parse-tree.h:3856
Definition parse-tree.h:3873
Definition parse-tree.h:3865
Definition parse-tree.h:3889
Definition parse-tree.h:3881
Definition parse-tree.h:3901
Definition parse-tree.h:3913
Definition parse-tree.h:3923
Definition parse-tree.h:3934
Definition parse-tree.h:3947
Definition parse-tree.h:3959
Definition parse-tree.h:3980
Definition parse-tree.h:3991
Definition parse-tree.h:4001
Definition parse-tree.h:4010
Definition parse-tree.h:4027
Definition parse-tree.h:4042
Definition parse-tree.h:4053
Definition parse-tree.h:4064
Definition parse-tree.h:4076
Definition parse-tree.h:4086
Definition parse-tree.h:4094
Definition parse-tree.h:4103
Definition parse-tree.h:4112
Definition parse-tree.h:4146
Definition parse-tree.h:4133
Definition parse-tree.h:4120
Definition parse-tree.h:4170
Definition parse-tree.h:4161
Definition parse-tree.h:4204
Definition parse-tree.h:4180
Definition parse-tree.h:4193
Definition parse-tree.h:4213
Definition parse-tree.h:4226
Definition parse-tree.h:4235
Definition parse-tree.h:4245
Definition parse-tree.h:4255
Definition parse-tree.h:4264
Definition parse-tree.h:4272
Definition parse-tree.h:4282
Definition parse-tree.h:4293
Definition parse-tree.h:4306
Definition parse-tree.h:3832
Definition parse-tree.h:3742
Definition parse-tree.h:3739
Definition parse-tree.h:3722
Definition parse-tree.h:3763
Definition parse-tree.h:3729
Definition parse-tree.h:3790
Definition parse-tree.h:3805
Definition parse-tree.h:3802
Definition parse-tree.h:3815
Definition parse-tree.h:3824