9#ifndef FORTRAN_PARSER_PARSE_TREE_H_
10#define FORTRAN_PARSER_PARSE_TREE_H_
20#include "char-block.h"
21#include "characters.h"
22#include "format-specification.h"
24#include "provenance.h"
25#include "flang/Common/enum-set.h"
26#include "flang/Common/idioms.h"
27#include "flang/Common/indirection.h"
28#include "flang/Common/reference.h"
29#include "flang/Support/Fortran.h"
30#include "llvm/ADT/ArrayRef.h"
31#include "llvm/Frontend/OpenACC/ACC.h.inc"
32#include "llvm/Frontend/OpenMP/OMP.h"
33#include "llvm/Frontend/OpenMP/OMPConstants.h"
54CLASS_TRAIT(EmptyTrait)
55CLASS_TRAIT(WrapperTrait)
56CLASS_TRAIT(UnionTrait)
57CLASS_TRAIT(TupleTrait)
58CLASS_TRAIT(ConstraintTrait)
63namespace Fortran::semantics {
80#define COPY_AND_ASSIGN_BOILERPLATE(classname) \
81 classname(classname &&) = default; \
82 classname &operator=(classname &&) = default; \
83 classname(const classname &) = delete; \
84 classname &operator=(const classname &) = delete
87#define BOILERPLATE(classname) \
88 COPY_AND_ASSIGN_BOILERPLATE(classname); \
93#define EMPTY_CLASS(classname) \
96 classname(const classname &) {} \
97 classname(classname &&) {} \
98 classname &operator=(const classname &) { return *this; }; \
99 classname &operator=(classname &&) { return *this; }; \
100 using EmptyTrait = std::true_type; \
105#define UNION_CLASS_BOILERPLATE(classname) \
106 template <typename A, typename = common::NoLvalue<A>> \
107 classname(A &&x) : u(std::move(x)) {} \
108 using UnionTrait = std::true_type; \
109 BOILERPLATE(classname)
113#define TUPLE_CLASS_BOILERPLATE(classname) \
114 template <typename... Ts, typename = common::NoLvalue<Ts...>> \
115 classname(Ts &&...args) : t(std::move(args)...) {} \
116 using TupleTrait = std::true_type; \
117 BOILERPLATE(classname)
121#define WRAPPER_CLASS_BOILERPLATE(classname, type) \
122 BOILERPLATE(classname); \
123 classname(type &&x) : v(std::move(x)) {} \
124 using WrapperTrait = std::true_type; \
127#define WRAPPER_CLASS(classname, type) \
129 WRAPPER_CLASS_BOILERPLATE(classname, type); \
161struct AllocatableStmt;
162struct AsynchronousStmt;
164struct CodimensionStmt;
165struct ContiguousStmt;
172struct OldParameterStmt;
182struct EquivalenceStmt;
219struct SyncMemoryStmt;
261struct BasedPointerStmt;
279using Location =
const char *;
284 constexpr Verbatim() {}
285 COPY_AND_ASSIGN_BOILERPLATE(Verbatim);
286 using EmptyTrait = std::true_type;
295template <
typename A>
struct Scalar {
296 using ConstraintTrait = std::true_type;
297 Scalar(Scalar &&that) =
default;
298 Scalar(A &&that) : thing(std::move(that)) {}
299 Scalar &operator=(Scalar &&) =
default;
303template <
typename A>
struct Constant {
304 using ConstraintTrait = std::true_type;
305 Constant(Constant &&that) =
default;
306 Constant(A &&that) : thing(std::move(that)) {}
307 Constant &operator=(Constant &&) =
default;
311template <
typename A>
struct Integer {
312 using ConstraintTrait = std::true_type;
313 Integer(Integer &&that) =
default;
314 Integer(A &&that) : thing(std::move(that)) {}
315 Integer &operator=(Integer &&) =
default;
319template <
typename A>
struct Logical {
320 using ConstraintTrait = std::true_type;
321 Logical(Logical &&that) =
default;
322 Logical(A &&that) : thing(std::move(that)) {}
323 Logical &operator=(Logical &&) =
default;
327template <
typename A>
struct DefaultChar {
328 using ConstraintTrait = std::true_type;
329 DefaultChar(DefaultChar &&that) =
default;
330 DefaultChar(A &&that) : thing(std::move(that)) {}
331 DefaultChar &operator=(DefaultChar &&) =
default;
350using Label = common::Label;
354template <
typename A>
struct UnlabeledStatement {
355 explicit UnlabeledStatement(A &&s) : statement(std::move(s)) {}
359template <
typename A>
struct Statement :
public UnlabeledStatement<A> {
360 Statement(std::optional<long> &&lab, A &&s)
361 : UnlabeledStatement<A>{std::move(s)}, label(std::move(lab)) {}
362 std::optional<Label> label;
366EMPTY_CLASS(ErrorRecovery);
378 std::variant<common::Indirection<AccessStmt>,
400 std::variant<common::Indirection<DerivedTypeDef>,
421 std::variant<Statement<common::Indirection<ImplicitStmt>>,
432WRAPPER_CLASS(ImplicitPart, std::list<ImplicitPartStmt>);
439 std::variant<SpecificationConstruct, Statement<common::Indirection<DataStmt>>,
453 std::tuple<std::list<OpenACCDeclarativeConstruct>,
454 std::list<OpenMPDeclarativeConstruct>,
455 std::list<common::Indirection<CompilerDirective>>,
456 std::list<Statement<common::Indirection<UseStmt>>>,
457 std::list<Statement<common::Indirection<ImportStmt>>>, ImplicitPart,
458 std::list<DeclarationConstruct>>
465 std::variant<common::Indirection<FunctionSubprogram>,
472EMPTY_CLASS(ContainsStmt);
477 std::tuple<Statement<ContainsStmt>, std::list<InternalSubprogram>> t;
481EMPTY_CLASS(ContinueStmt);
484EMPTY_CLASS(FailImageStmt);
498 std::variant<common::Indirection<AllocateStmt>,
556 std::variant<ExecutableConstruct, Statement<common::Indirection<FormatStmt>>,
565using Block = std::list<ExecutionPartConstruct>;
566WRAPPER_CLASS(ExecutionPart, Block);
573 std::variant<common::Indirection<MainProgram>,
584WRAPPER_CLASS(Program, std::list<ProgramUnit>);
588 std::string ToString()
const {
return source.ToString(); }
594WRAPPER_CLASS(Keyword,
Name);
597WRAPPER_CLASS(NamedConstant,
Name);
604WRAPPER_CLASS(DefinedOpName,
Name);
614 ENUM_CLASS(IntrinsicOperator, Power, Multiply, Divide, Add, Subtract, Concat,
615 LT, LE, EQ, NE, GE, GT, NOT, AND, OR, EQV, NEQV)
616 std::variant<DefinedOpName, IntrinsicOperator> u;
620using ObjectName =
Name;
626 TUPLE_CLASS_BOILERPLATE(ImportStmt);
627 ImportStmt(common::ImportKind &&k) : t(k, std::list<Name>{}) {}
628 ImportStmt(std::list<Name> &&n)
629 : t(common::ImportKind::Default, std::move(n)) {}
630 ImportStmt(common::ImportKind &&, std::list<Name> &&);
631 std::tuple<common::ImportKind, std::list<Name>> t;
640 TUPLE_CLASS_BOILERPLATE(
Group);
641 std::tuple<Name, std::list<Name>> t;
643 WRAPPER_CLASS_BOILERPLATE(
NamelistStmt, std::list<Group>);
651 EMPTY_CLASS(Deferred);
652 std::variant<ScalarIntExpr, Star, Deferred> u;
660 WRAPPER_CLASS(StarSize, std::uint64_t);
661 std::variant<ScalarIntConstantExpr, StarSize> u;
665WRAPPER_CLASS(IntegerTypeSpec, std::optional<KindSelector>);
667WRAPPER_CLASS(UnsignedTypeSpec, std::optional<KindSelector>);
672 std::variant<TypeParamValue, std::uint64_t> u;
678 std::variant<TypeParamValue, CharLength> u;
687 UNION_CLASS_BOILERPLATE(CharSelector);
690 std::tuple<std::optional<TypeParamValue>, ScalarIntConstantExpr> t;
693 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
694 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
695 : u{LengthAndKind{std::move(l), std::move(k)}} {}
696 std::variant<LengthSelector, LengthAndKind> u;
707 WRAPPER_CLASS_BOILERPLATE(
Real, std::optional<KindSelector>);
709 EMPTY_CLASS(DoublePrecision);
711 WRAPPER_CLASS_BOILERPLATE(
Complex, std::optional<KindSelector>);
714 WRAPPER_CLASS_BOILERPLATE(
Character, std::optional<CharSelector>);
717 WRAPPER_CLASS_BOILERPLATE(
Logical, std::optional<KindSelector>);
719 EMPTY_CLASS(DoubleComplex);
720 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
728 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
733 EMPTY_CLASS(PairVectorTypeSpec);
734 EMPTY_CLASS(QuadVectorTypeSpec);
735 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
749 std::tuple<Name, std::list<TypeParamSpec>> t;
756 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
768 EMPTY_CLASS(ClassStar);
769 EMPTY_CLASS(TypeStar);
770 WRAPPER_CLASS(Record,
Name);
779 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
786 std::tuple<CharBlock, std::optional<KindParam>> t;
792 std::tuple<CharBlock, std::optional<KindParam>> t;
798 std::tuple<CharBlock, std::optional<KindParam>> t;
802enum class Sign { Positive, Negative };
812 using EmptyTrait = std::true_type;
813 COPY_AND_ASSIGN_BOILERPLATE(Real);
817 std::tuple<Real, std::optional<KindParam>> t;
842 std::tuple<ComplexPart, ComplexPart> t;
848 std::tuple<Sign, ComplexLiteralConstant> t;
856 std::tuple<std::optional<KindParam>, std::string> t;
857 std::string GetString()
const {
return std::get<std::string>(t); }
863 std::string GetString()
const {
return v; }
870 std::tuple<bool, std::optional<KindParam>> t;
880WRAPPER_CLASS(BOZLiteralConstant, std::string);
896 ENUM_CLASS(Kind, Public, Private)
902EMPTY_CLASS(Abstract);
906 WRAPPER_CLASS(Extends,
Name);
907 std::variant<Abstract, AccessSpec, BindC, Extends> u;
914 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
918EMPTY_CLASS(SequenceStmt);
922EMPTY_CLASS(PrivateStmt);
927 std::variant<PrivateStmt, SequenceStmt> u;
933 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
941 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
946WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
953 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
958WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
966 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
972 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
977WRAPPER_CLASS(DeferredShapeSpecList,
int);
983 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
991EMPTY_CLASS(Allocatable);
993EMPTY_CLASS(Contiguous);
1014 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1015 std::list<common::Indirection<DataStmtValue>>>
1025struct ComponentDecl {
1026 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1028 std::optional<ComponentArraySpec> &&aSpec,
1029 std::optional<CoarraySpec> &&coaSpec,
1030 std::optional<Initialization> &&init)
1031 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1032 std::move(length), std::move(init)} {}
1033 std::tuple<Name, std::optional<ComponentArraySpec>,
1034 std::optional<CoarraySpec>, std::optional<CharLength>,
1035 std::optional<Initialization>>
1043 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1049 std::variant<ComponentDecl, FillDecl> u;
1057 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1058 std::list<ComponentOrFill>>
1065WRAPPER_CLASS(Pass, std::optional<Name>);
1068 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1075 std::variant<NullInit, Name> u;
1082 std::variant<Name, DeclarationTypeSpec> u;
1088 std::tuple<Name, std::optional<ProcPointerInit>> t;
1096 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1097 std::list<ProcDecl>>
1115 EMPTY_CLASS(Deferred);
1116 EMPTY_CLASS(Non_Overridable);
1117 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1123 std::tuple<Name, std::optional<Name>> t;
1135 std::tuple<std::list<BindAttr>, std::list<TypeBoundProcDecl>> t;
1139 std::tuple<Name, std::list<BindAttr>, std::list<Name>> t;
1141 std::variant<WithoutInterface, WithInterface> u;
1154WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1170 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1171 std::list<Statement<TypeBoundProcBinding>>>
1176WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1184 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1185 std::list<Statement<PrivateOrSequence>>,
1186 std::list<Statement<ComponentDefStmt>>,
1199 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1205 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1209EMPTY_CLASS(EnumDefStmt);
1214 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1218WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1221EMPTY_CLASS(EndEnumStmt);
1227 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1228 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1236 TUPLE_CLASS_BOILERPLATE(
Triplet);
1237 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1239 UNION_CLASS_BOILERPLATE(
AcValue);
1240 std::variant<Triplet, common::Indirection<Expr>,
1247 TUPLE_CLASS_BOILERPLATE(AcSpec);
1248 explicit AcSpec(
TypeSpec &&ts) : t(std::move(ts), std::list<AcValue>()) {}
1249 std::tuple<std::optional<TypeSpec>, std::list<AcValue>> t;
1253WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1260 std::tuple<VAR, BOUND, BOUND, std::optional<BOUND>> t;
1262 const VAR &Name()
const {
return std::get<0>(t); }
1263 const BOUND &Lower()
const {
return std::get<1>(t); }
1264 const BOUND &Upper()
const {
return std::get<2>(t); }
1265 const std::optional<BOUND> &Step()
const {
return std::get<3>(t); }
1278 std::tuple<std::optional<IntegerTypeSpec>, Bounds> t;
1293 std::tuple<std::optional<ScalarDefaultCharConstantExpr>,
bool> t;
1299 std::tuple<NamedConstant, ConstantExpr> t;
1303WRAPPER_CLASS(ParameterStmt, std::list<NamedConstantDef>);
1306WRAPPER_CLASS(AssumedShapeSpec, std::optional<SpecificationExpr>);
1309WRAPPER_CLASS(AssumedImpliedSpec, std::optional<SpecificationExpr>);
1314 std::tuple<std::list<ExplicitShapeSpec>, AssumedImpliedSpec> t;
1321WRAPPER_CLASS(ImpliedShapeSpec, std::list<AssumedImpliedSpec>);
1324EMPTY_CLASS(AssumedRankSpec);
1332 std::variant<std::list<ExplicitShapeSpec>, std::list<AssumedShapeSpec>,
1333 DeferredShapeSpecList,
AssumedSizeSpec, ImpliedShapeSpec, AssumedRankSpec>
1339 ENUM_CLASS(Intent, In, Out, InOut)
1340 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1350EMPTY_CLASS(Asynchronous);
1351EMPTY_CLASS(External);
1352EMPTY_CLASS(Intrinsic);
1353EMPTY_CLASS(Optional);
1354EMPTY_CLASS(Parameter);
1355EMPTY_CLASS(Protected);
1359EMPTY_CLASS(Volatile);
1364 Parameter, Pointer, Protected, Save, Target, Value, Volatile,
1365 common::CUDADataAttr>
1376 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1377 EntityDecl(ObjectName &&name,
CharLength &&length,
1378 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1379 std::optional<Initialization> &&init)
1380 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1381 std::move(length), std::move(init)} {}
1382 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1383 std::optional<CharLength>, std::optional<Initialization>>
1391 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1401 std::tuple<AccessSpec, std::list<AccessId>> t;
1410 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1415WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1418WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1423 ENUM_CLASS(Kind, Object, Common)
1424 std::tuple<Kind, Name> t;
1430 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1436 std::tuple<Name, CoarraySpec> t;
1440WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1443WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1452using TypedAssignment =
1465 mutable TypedExpr typedExpr;
1466 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1479 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1485 mutable std::int64_t repetitions{1};
1493 std::variant<Scalar<common::Indirection<Designator>>,
1506 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1513 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1519 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1523WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1531 std::tuple<Name, ArraySpec> t;
1533 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1539 std::tuple<IntentSpec, std::list<Name>> t;
1543WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1549 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1553WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1556WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1562 ENUM_CLASS(Kind, Entity, Common)
1563 std::tuple<Kind, Name> t;
1567WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1570WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1573WRAPPER_CLASS(ValueStmt, std::list<Name>);
1576WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1581 std::tuple<Location, std::optional<Location>> t;
1587 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1596 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1597 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1603 std::tuple<Name, std::optional<ArraySpec>> t;
1611 TUPLE_CLASS_BOILERPLATE(
Block);
1612 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1614 WRAPPER_CLASS_BOILERPLATE(CommonStmt, std::list<Block>);
1615 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1616 std::list<Block> &&);
1625WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1630 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1634using Subscript = ScalarIntExpr;
1639 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1640 std::optional<Subscript>>
1648 std::variant<IntExpr, SubscriptTriplet> u;
1652using Cosubscript = ScalarIntExpr;
1663 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1666 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1673 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1678 UNION_CLASS_BOILERPLATE(Expr);
1682 using IntrinsicUnary::IntrinsicUnary;
1685 using IntrinsicUnary::IntrinsicUnary;
1688 using IntrinsicUnary::IntrinsicUnary;
1690 struct NOT :
public IntrinsicUnary {
1691 using IntrinsicUnary::IntrinsicUnary;
1698 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1706 using IntrinsicBinary::IntrinsicBinary;
1709 using IntrinsicBinary::IntrinsicBinary;
1712 using IntrinsicBinary::IntrinsicBinary;
1715 using IntrinsicBinary::IntrinsicBinary;
1718 using IntrinsicBinary::IntrinsicBinary;
1721 using IntrinsicBinary::IntrinsicBinary;
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;
1756 using IntrinsicBinary::IntrinsicBinary;
1761 std::tuple<DefinedOpName, common::Indirection<Expr>,
1769 mutable TypedExpr typedExpr;
1773 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1777 Add,
Subtract,
Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
1784 TUPLE_CLASS_BOILERPLATE(
PartRef);
1785 std::tuple<Name, std::list<SectionSubscript>, std::optional<ImageSelector>> t;
1790 UNION_CLASS_BOILERPLATE(DataRef);
1791 explicit DataRef(std::list<PartRef> &&);
1792 std::variant<Name, common::Indirection<StructureComponent>,
1808 std::tuple<DataRef, SubstringRange> t;
1813 std::tuple<CharLiteralConstant, SubstringRange> t;
1830 bool EndsInBareName()
const;
1832 std::variant<DataRef, Substring> u;
1838 mutable TypedExpr typedExpr;
1840 std::variant<common::Indirection<Designator>,
1860 std::tuple<DataRef, Name> t;
1862 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1863 const Name &Component()
const {
return std::get<Name>(t); }
1875 std::tuple<DataRef, ImageSelector> t;
1884 std::tuple<DataRef, std::list<SectionSubscript>> t;
1886 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1887 const std::list<SectionSubscript> &Subscripts()
const {
1888 return std::get<std::list<SectionSubscript>>(t);
1895 mutable TypedExpr typedExpr;
1896 std::variant<Name, StructureComponent> u;
1901using BoundExpr = ScalarIntExpr;
1907 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1916 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1924 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1925 std::optional<AllocateCoarraySpec>>
1930WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1934WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
1940 std::variant<StatVariable, MsgVariable> u;
1955 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
1962 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
1963 std::list<AllocOpt>>
1971 mutable TypedExpr typedExpr;
1972 std::variant<Name, StructureComponent> u;
1976WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
1982 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
1988 mutable TypedAssignment typedAssignment;
1989 std::tuple<Variable, Expr> t;
1993WRAPPER_CLASS(BoundsSpec, BoundExpr);
1998 std::tuple<BoundExpr, BoundExpr> t;
2010 UNION_CLASS_BOILERPLATE(
Bounds);
2011 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2014 mutable TypedAssignment typedAssignment;
2015 std::tuple<DataRef, Bounds, Expr> t;
2023 std::tuple<LogicalExpr, AssignmentStmt> t;
2029 std::tuple<std::optional<Name>, LogicalExpr> t;
2045 std::tuple<LogicalExpr, std::optional<Name>> t;
2049WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2052WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2061 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2065 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2068 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2069 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2084 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2090 std::tuple<common::Indirection<ConcurrentHeader>,
2107WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2113 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2121 std::variant<Expr, Variable> u;
2127 std::tuple<Name, Selector> t;
2134 std::tuple<std::optional<Name>, std::list<Association>> t;
2138WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2147WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2150WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2165 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2173 std::tuple<CodimensionDecl, Selector> t;
2181 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2182 std::list<StatOrErrmsg>>
2190 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2203 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2207WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2221 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2230 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2231 std::optional<ScalarLogicalExpr>>
2242 Operator, Plus, Multiply, Max, Min, Iand, Ior, Ieor, And, Or, Eqv, Neqv)
2253 WRAPPER_CLASS(Local, std::list<Name>);
2254 WRAPPER_CLASS(LocalInit, std::list<Name>);
2256 TUPLE_CLASS_BOILERPLATE(
Reduce);
2258 std::tuple<Operator, std::list<Name>> t;
2260 WRAPPER_CLASS(Shared, std::list<Name>);
2261 EMPTY_CLASS(DefaultNone);
2262 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2275 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2278 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2285 std::tuple<Label, std::optional<LoopControl>> t;
2291 std::tuple<std::optional<Name>, std::optional<Label>,
2292 std::optional<LoopControl>>
2297WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2308 const std::optional<LoopControl> &GetLoopControl()
const;
2309 bool IsDoNormal()
const;
2310 bool IsDoWhile()
const;
2311 bool IsDoConcurrent()
const;
2316WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2321 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2328 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2332WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2335WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2343 std::tuple<Statement<ElseIfStmt>, Block> t;
2347 std::tuple<Statement<ElseStmt>, Block> t;
2350 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2357 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2358 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2376 TUPLE_CLASS_BOILERPLATE(
Range);
2377 std::tuple<std::optional<CaseValue>, std::optional<CaseValue>>
2380 std::variant<CaseValue, Range> u;
2384EMPTY_CLASS(Default);
2388 std::variant<std::list<CaseValueRange>, Default> u;
2394 std::tuple<CaseSelector, std::optional<Name>> t;
2400WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2406 TUPLE_CLASS_BOILERPLATE(
Case);
2407 std::tuple<Statement<CaseStmt>, Block> t;
2410 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2420 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2429 UNION_CLASS_BOILERPLATE(
Rank);
2430 std::variant<ScalarIntConstantExpr, Star, Default> u;
2433 std::tuple<Rank, std::optional<Name>> t;
2443 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2445 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2455 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2464 UNION_CLASS_BOILERPLATE(
Guard);
2465 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2468 std::tuple<Guard, std::optional<Name>> t;
2477 std::tuple<Statement<TypeGuardStmt>, Block> t;
2479 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2485WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2488WRAPPER_CLASS(GotoStmt, Label);
2493 std::tuple<std::list<Label>, ScalarIntExpr> t;
2506 ENUM_CLASS(Kind, Stop, ErrorStop)
2508 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2515 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2519WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2526 std::variant<IntExpr, Star> u;
2529 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2533WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2538 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2547 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2553 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2561 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2574 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2577 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2588 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2591 std::tuple<LockVariable, std::list<LockStat>> t;
2597 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2601WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2611 UNION_CLASS_BOILERPLATE(
IoUnit);
2612 std::variant<Variable, common::Indirection<Expr>, Star> u;
2616using FileNameExpr = ScalarDefaultCharExpr;
2635WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2636WRAPPER_CLASS(ErrLabel, Label);
2641 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2642 Encoding, Form, Pad, Position, Round, Sign,
2643 Carriagecontrol, Convert, Dispose)
2645 std::tuple<Kind, ScalarDefaultCharExpr> t;
2647 WRAPPER_CLASS(Recl, ScalarIntExpr);
2648 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2649 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2650 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2655WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2665 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2669 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2675 UNION_CLASS_BOILERPLATE(
Format);
2676 std::variant<Expr, Label, Star> u;
2680WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2694WRAPPER_CLASS(EndLabel, Label);
2695WRAPPER_CLASS(EorLabel, Label);
2699 ENUM_CLASS(Kind, Advance, Blank, Decimal, Delim, Pad, Round, Sign)
2701 std::tuple<Kind, ScalarDefaultCharExpr> t;
2703 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2704 WRAPPER_CLASS(Pos, ScalarIntExpr);
2705 WRAPPER_CLASS(Rec, ScalarIntExpr);
2706 WRAPPER_CLASS(Size, ScalarIntVariable);
2708 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2716 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2723 BOILERPLATE(ReadStmt);
2724 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2725 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2726 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2727 items(std::move(its)) {}
2728 std::optional<IoUnit> iounit;
2730 std::optional<Format> format;
2733 std::list<IoControlSpec> controls;
2734 std::list<InputItem> items;
2740 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2745 BOILERPLATE(WriteStmt);
2746 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2747 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2748 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2749 items(std::move(its)) {}
2750 std::optional<IoUnit> iounit;
2752 std::optional<Format> format;
2754 std::list<IoControlSpec> controls;
2755 std::list<OutputItem> items;
2761 std::tuple<Format, std::list<OutputItem>> t;
2772 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2777 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2784WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2787 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2788 MsgVariable, StatVariable>
2793WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2803 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2808WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2812WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2815WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2818WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2858 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2859 Direct, Encoding, Form, Formatted, Iomsg,
Name, Pad, Position, Read,
2860 Readwrite, Round, Sequential, Sign, Stream, Status, Unformatted, Write,
2861 Carriagecontrol, Convert, Dispose)
2862 TUPLE_CLASS_BOILERPLATE(
CharVar);
2863 std::tuple<Kind, ScalarDefaultCharVariable> t;
2866 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2867 TUPLE_CLASS_BOILERPLATE(
IntVar);
2868 std::tuple<Kind, ScalarIntVariable> t;
2871 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2872 TUPLE_CLASS_BOILERPLATE(
LogVar);
2873 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2887 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2889 std::variant<std::list<InquireSpec>,
Iolength> u;
2896WRAPPER_CLASS(ProgramStmt,
Name);
2899WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2907 ExecutionPart, std::optional<InternalSubprogramPart>,
2913WRAPPER_CLASS(ModuleStmt,
Name);
2920 std::variant<common::Indirection<FunctionSubprogram>,
2930 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2934WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2940 TUPLE_CLASS_BOILERPLATE(
Module);
2951 UNION_CLASS_BOILERPLATE(
Rename);
2953 TUPLE_CLASS_BOILERPLATE(
Names);
2954 std::tuple<Name, Name> t;
2958 std::tuple<DefinedOpName, DefinedOpName> t;
2960 std::variant<Names, Operators> u;
2966 std::tuple<Name, std::optional<Name>> t;
2972 std::tuple<ParentIdentifier, Name> t;
2976WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
2989WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
2992WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3010 EMPTY_CLASS(Assignment);
3011 EMPTY_CLASS(ReadFormatted);
3012 EMPTY_CLASS(ReadUnformatted);
3013 EMPTY_CLASS(WriteFormatted);
3014 EMPTY_CLASS(WriteUnformatted);
3017 ReadUnformatted, WriteFormatted, WriteUnformatted>
3025 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3029struct InterfaceStmt {
3030 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3032 InterfaceStmt(Abstract x) : u{x} {}
3034 std::variant<std::optional<GenericSpec>, Abstract> u;
3040 UNION_CLASS_BOILERPLATE(
Only);
3041 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3049 BOILERPLATE(UseStmt);
3050 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3051 template <
typename A>
3052 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3053 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3054 std::optional<ModuleNature> nature;
3056 std::variant<std::list<Rename>, std::list<Only>> u;
3074 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3075 std::list<ProcDecl>>
3086 EMPTY_CLASS(Elemental);
3087 EMPTY_CLASS(Impure);
3089 EMPTY_CLASS(Non_Recursive);
3091 EMPTY_CLASS(Recursive);
3092 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3093 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3094 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3096 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3104 TUPLE_CLASS_BOILERPLATE(Suffix);
3106 : t(std::move(rn), std::move(lbs)) {}
3107 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3116 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3117 std::optional<Suffix>>
3122WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3127 std::variant<Name, Star> u;
3135 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3136 std::optional<LanguageBindingSpec>>
3141WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3156 std::tuple<Statement<SubroutineStmt>,
3160 std::variant<Function, Subroutine> u;
3165 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3167 std::tuple<Kind, std::list<Name>> t;
3173 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3177WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3183 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3189WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3192WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3198 std::variant<Name, ProcComponentRef> u;
3202WRAPPER_CLASS(AltReturnSpec, Label);
3208 WRAPPER_CLASS(PercentRef,
Expr);
3209 WRAPPER_CLASS(PercentVal,
Expr);
3210 UNION_CLASS_BOILERPLATE(ActualArg);
3212 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal>
3219 std::tuple<std::optional<Keyword>,
ActualArg> t;
3225 TUPLE_CLASS_BOILERPLATE(
Call);
3226 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3242 TUPLE_CLASS_BOILERPLATE(CallStmt);
3243 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3246 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3247 std::optional<ScalarIntExpr>>
3251 std::list<ActualArgSpec> &&args)
3252 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3253 std::tuple<Call, std::optional<Chevrons>> t;
3255 mutable TypedCall typedCall;
3279WRAPPER_CLASS(MpSubprogramStmt,
Name);
3282WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3297 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3301WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3330 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3333 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3337 std::tuple<common::Indirection<Designator>, uint64_t> t;
3339 EMPTY_CLASS(VectorAlways);
3342 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3344 std::tuple<std::uint64_t, Kind> t;
3348 std::tuple<Name, std::optional<std::uint64_t>> t;
3351 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3354 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3357 WRAPPER_CLASS_BOILERPLATE(
3360 EMPTY_CLASS(NoVector);
3361 EMPTY_CLASS(NoUnroll);
3362 EMPTY_CLASS(NoUnrollAndJam);
3363 EMPTY_CLASS(ForceInline);
3364 EMPTY_CLASS(Inline);
3365 EMPTY_CLASS(NoInline);
3367 EMPTY_CLASS(Unrecognized);
3369 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3371 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3379 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3385 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3387WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3394 std::variant<Statement<DataComponentDefStmt>,
3400 EMPTY_CLASS(MapStmt);
3401 EMPTY_CLASS(EndMapStmt);
3402 TUPLE_CLASS_BOILERPLATE(
Map);
3403 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3409 EMPTY_CLASS(UnionStmt);
3410 EMPTY_CLASS(EndUnionStmt);
3411 TUPLE_CLASS_BOILERPLATE(
Union);
3417 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3421 EMPTY_CLASS(EndStructureStmt);
3423 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3430WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3435 std::tuple<Expr, Label, Label, Label> t;
3440 std::tuple<Label, Name> t;
3445 std::tuple<Name, std::list<Label>> t;
3448WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3454#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3455 using basename::basename; \
3456 classname(basename &&b) : basename(std::move(b)) {} \
3457 using TupleTrait = std::true_type; \
3458 BOILERPLATE(classname)
3460#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3461 BOILERPLATE(classname); \
3462 using basename::basename; \
3463 classname(basename &&base) : basename(std::move(base)) {} \
3464 using WrapperTrait = std::true_type
3469struct OmpDirectiveName {
3471 constexpr OmpDirectiveName() =
default;
3472 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3473 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3477 OmpDirectiveName(
const Verbatim &name);
3478 using WrapperTrait = std::true_type;
3480 bool IsExecutionPart()
const;
3483 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3491 std::variant<TypeSpec, DeclarationTypeSpec> u;
3506 ENUM_CLASS(Kind, BlankCommonBlock);
3507 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3515 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3522 using EmptyTrait = std::true_type;
3530 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3533 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3547 WRAPPER_CLASS_BOILERPLATE(
3560 std::variant<DefinedOperator, ProcedureDesignator> u;
3569 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3581 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3586inline namespace arguments {
3589 std::variant<OmpObject, FunctionReference> u;
3593 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3605 std::tuple<OmpObject, OmpObject> t;
3616 std::tuple<std::string, TypeSpec, Name> t;
3629 std::optional<OmpCombinerExpression>>
3648inline namespace traits {
3685 TUPLE_CLASS_BOILERPLATE(
Complex);
3687 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3691 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3707 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3732 std::string ToString()
const;
3735 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3736 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3737 std::variant<Value, llvm::omp::Directive, std::string> u;
3748 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3750 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3757 std::string ToString()
const;
3759 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3768 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3775 WRAPPER_CLASS_BOILERPLATE(
3780#define MODIFIER_BOILERPLATE(...) \
3782 using Variant = std::variant<__VA_ARGS__>; \
3783 UNION_CLASS_BOILERPLATE(Modifier); \
3788#define MODIFIERS() std::optional<std::list<Modifier>>
3790inline namespace modifier {
3798 ENUM_CLASS(Value, Cgroup);
3807 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3843 ENUM_CLASS(Value, Always)
3855 ENUM_CLASS(Value, Always, Never, Auto)
3865 ENUM_CLASS(Value, Automap);
3876 ENUM_CLASS(Value, Simd)
3889 ENUM_CLASS(Value, Close)
3901 ENUM_CLASS(Value, Delete)
3922 ENUM_CLASS(Value, Sink, Source);
3933 using Value = common::OmpDependenceKind;
3935 std::tuple<Value, OmpObject> t;
3943 ENUM_CLASS(Value, Ancestor, Device_Num)
3969 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3984 ENUM_CLASS(Value, Present);
3995 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4006 ENUM_CLASS(Value, Target, Targetsync)
4020 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4028 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4036 ENUM_CLASS(Value, Conditional)
4045 ENUM_CLASS(Value, Ref, Uval, Val);
4075 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4076 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4088 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4103 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4112 ENUM_CLASS(Value, Reproducible, Unconstrained)
4125 using Extensions = std::list<PreferencePropertyExtension>;
4126 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4136 using ForeignRuntimeIdentifier =
4137 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4138 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4146 WRAPPER_CLASS_BOILERPLATE(
4155 ENUM_CLASS(Value, Strict)
4168 ENUM_CLASS(Value, Present)
4177 ENUM_CLASS(Value, Default, Inscan, Task);
4187 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4197 ENUM_CLASS(Value, Self)
4224 using Value = common::OmpDependenceKind;
4235 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4248 ENUM_CLASS(Value, Ompx_Hold)
4258using OmpDirectiveList = std::list<llvm::omp::Directive>;
4271 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4274 std::tuple<OmpAdjustOp, OmpObjectList> t;
4291 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4322 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4330 ENUM_CLASS(ActionTime, Compilation, Execution);
4331 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4342 using MemoryOrder = common::OmpMemoryOrderType;
4353 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4360 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4393 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4395 std::variant<DataSharingAttribute,
4412 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4415 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4424 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4433 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4450 OmpDependenceType::Value GetDepType()
const;
4453 EMPTY_CLASS(Source);
4455 std::variant<Sink, Source> u;
4470 OmpTaskDependenceType::Value GetTaskDepType()
const;
4471 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4475 std::variant<TaskDep, OmpDoacross> u;
4512 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4528 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4538 WRAPPER_CLASS_BOILERPLATE(
4545 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4562 using MemoryOrder = common::OmpMemoryOrderType;
4588 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4609 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4622 WRAPPER_CLASS_BOILERPLATE(
4635 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4688 MODIFIER_BOILERPLATE(
4699 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4736 WRAPPER_CLASS_BOILERPLATE(
4750EMPTY_CLASS(OmpNoOpenMPClause);
4755EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4760EMPTY_CLASS(OmpNoParallelismClause);
4770 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4782 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4794 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4804 ENUM_CLASS(Ordering, Concurrent)
4806 std::tuple<MODIFIERS(), Ordering> t;
4828 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4871 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4873 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4888 ENUM_CLASS(SevLevel, Fatal, Warning);
4910 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4917 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
4960 WRAPPER_CLASS_BOILERPLATE(
4978 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
4988 MODIFIER_BOILERPLATE(OmpContextSelector);
4989 std::tuple<MODIFIERS(),
4990 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5004 llvm::omp::Clause Id()
const;
5006#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5007#include "llvm/Frontend/OpenMP/OMP.inc"
5012#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5013#include "llvm/Frontend/OpenMP/OMP.inc"
5019 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5026 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo)
5031 return std::get<OmpDirectiveName>(t);
5033 llvm::omp::Directive DirId()
const {
5040 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5041 std::optional<OmpClauseList>, Flags>
5050 INHERITED_TUPLE_CLASS_BOILERPLATE(
5062 return std::get<OmpBeginDirective>(t);
5064 const std::optional<OmpEndDirective> &EndDir()
const {
5065 return std::get<std::optional<OmpEndDirective>>(t);
5069 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5073 WRAPPER_CLASS_BOILERPLATE(
5094 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5103 WRAPPER_CLASS_BOILERPLATE(
5121 INHERITED_TUPLE_CLASS_BOILERPLATE(
5136 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5144 return std::get<OmpBeginSectionsDirective>(t);
5146 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5147 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5154 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5155 std::optional<OmpEndSectionsDirective>>
5164 WRAPPER_CLASS_BOILERPLATE(
5176 WRAPPER_CLASS_BOILERPLATE(
5184 WRAPPER_CLASS_BOILERPLATE(
5193 WRAPPER_CLASS_BOILERPLATE(
5201 WRAPPER_CLASS_BOILERPLATE(
5282 INHERITED_TUPLE_CLASS_BOILERPLATE(
5287 llvm::omp::Clause GetKind()
const;
5288 bool IsCapture()
const;
5289 bool IsCompare()
const;
5295 static constexpr int None = 0;
5296 static constexpr int Read = 1;
5297 static constexpr int Write = 2;
5298 static constexpr int Update = Read | Write;
5299 static constexpr int Action = 3;
5300 static constexpr int IfTrue = 4;
5301 static constexpr int IfFalse = 8;
5302 static constexpr int Condition = 12;
5306 TypedAssignment assign;
5308 TypedExpr atom, cond;
5317 WRAPPER_CLASS_BOILERPLATE(
5378 WRAPPER_CLASS_BOILERPLATE(
5401struct OpenMPLoopConstruct {
5402 TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
5404 : t({std::move(a), Block{}, std::nullopt}) {}
5407 return std::get<OmpBeginLoopDirective>(t);
5409 const std::optional<OmpEndLoopDirective> &EndDir()
const {
5410 return std::get<std::optional<OmpEndLoopDirective>>(t);
5413 const OpenMPLoopConstruct *GetNestedConstruct()
const;
5416 std::tuple<OmpBeginLoopDirective, Block, std::optional<OmpEndLoopDirective>>
5440 INHERITED_TUPLE_CLASS_BOILERPLATE(
5446 using EmptyTrait = std::true_type;
5457WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5489 std::variant<Name, ScalarDefaultCharExpr> u;
5499 ENUM_CLASS(Modifier, ReadOnly, Zero)
5506 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5511 std::tuple<ReductionOperator, AccObjectList> t;
5516 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5520 WRAPPER_CLASS_BOILERPLATE(
5526 WRAPPER_CLASS_BOILERPLATE(
5533 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5541 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5550 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5557 WRAPPER_CLASS(Num, ScalarIntExpr);
5558 WRAPPER_CLASS(Dim, ScalarIntExpr);
5560 std::variant<Num, Dim, Static> u;
5565 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5570 std::tuple<bool, ScalarIntConstantExpr> t;
5576#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5577#include "llvm/Frontend/OpenACC/ACC.inc"
5582#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5583#include "llvm/Frontend/OpenACC/ACC.inc"
5589 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5602 std::tuple<Verbatim, AccObjectListWithModifier> t;
5608 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5613 std::tuple<AccLoopDirective, AccClauseList> t;
5620 std::tuple<AccBlockDirective, AccClauseList> t;
5629EMPTY_CLASS(AccEndAtomic);
5634 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5635 std::optional<AccEndAtomic>>
5642 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5643 std::optional<AccEndAtomic>>
5651 std::optional<AccEndAtomic>>
5660 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5665 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5672 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5678 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5684 std::tuple<AccCombinedDirective, AccClauseList> t;
5692struct OpenACCCombinedConstruct {
5693 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5696 : t({std::move(a), std::nullopt, std::nullopt}) {}
5697 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5698 std::optional<AccEndCombinedDirective>>
5705 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5710EMPTY_CLASS(AccEndLoop);
5711struct OpenACCLoopConstruct {
5712 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5714 : t({std::move(a), std::nullopt, std::nullopt}) {}
5715 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5716 std::optional<AccEndLoop>>
5728 std::tuple<AccStandaloneDirective, AccClauseList> t;
5754 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5759 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5762 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5763 std::optional<ScalarIntExpr>>
5769 std::tuple<std::optional<ScalarIntConstantExpr>,
5770 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5773 std::tuple<Directive, std::optional<DoConstruct>> t;
Definition indirection.h:127
Definition indirection.h:31
Definition reference.h:18
Definition char-block.h:28
Definition parse-state.h:35
Definition check-expression.h:19
Definition expression.h:906
Definition expression.h:896
Definition parse-tree.h:1275
Definition parse-tree.h:1282
Definition parse-tree.h:1246
Definition parse-tree.h:1235
Definition parse-tree.h:1234
Definition parse-tree.h:5656
Definition parse-tree.h:5632
Definition parse-tree.h:5648
Definition parse-tree.h:5640
Definition parse-tree.h:5617
Definition parse-tree.h:5681
Definition parse-tree.h:5611
Definition parse-tree.h:5487
Definition parse-tree.h:5460
Definition parse-tree.h:5588
Definition parse-tree.h:5573
Definition parse-tree.h:5568
Definition parse-tree.h:5476
Definition parse-tree.h:5498
Definition parse-tree.h:5481
Definition parse-tree.h:5493
Definition parse-tree.h:5525
Definition parse-tree.h:5519
Definition parse-tree.h:5623
Definition parse-tree.h:5687
Definition parse-tree.h:5564
Definition parse-tree.h:5555
Definition parse-tree.h:5465
Definition parse-tree.h:5504
Definition parse-tree.h:5509
Definition parse-tree.h:5452
Definition parse-tree.h:5548
Definition parse-tree.h:5544
Definition parse-tree.h:5540
Definition parse-tree.h:5470
Definition parse-tree.h:5536
Definition parse-tree.h:5530
Definition parse-tree.h:5514
Definition parse-tree.h:895
Definition parse-tree.h:1399
Definition parse-tree.h:496
Definition parse-tree.h:3217
Definition parse-tree.h:3207
Definition parse-tree.h:1949
Definition parse-tree.h:1914
Definition parse-tree.h:1893
Definition parse-tree.h:1905
Definition parse-tree.h:1960
Definition parse-tree.h:1922
Definition parse-tree.h:3433
Definition parse-tree.h:1879
Definition parse-tree.h:1330
Definition parse-tree.h:3438
Definition parse-tree.h:3443
Definition parse-tree.h:1986
Definition parse-tree.h:2141
Definition parse-tree.h:2132
Definition parse-tree.h:2125
Definition parse-tree.h:1312
Definition parse-tree.h:1360
Definition parse-tree.h:3383
Definition parse-tree.h:1113
Definition parse-tree.h:1421
Definition parse-tree.h:1428
Definition parse-tree.h:2163
Definition parse-tree.h:2995
Definition parse-tree.h:1996
Definition parse-tree.h:3377
Definition parse-tree.h:5766
Definition parse-tree.h:5760
Definition parse-tree.h:5757
Definition parse-tree.h:5751
Definition parse-tree.h:3244
Definition parse-tree.h:3241
Definition parse-tree.h:3224
Definition parse-tree.h:2405
Definition parse-tree.h:2404
Definition parse-tree.h:2386
Definition parse-tree.h:2392
Definition parse-tree.h:2375
Definition parse-tree.h:2373
Definition parse-tree.h:2194
Definition parse-tree.h:2179
Definition parse-tree.h:670
Definition parse-tree.h:1811
Definition parse-tree.h:854
Definition parse-tree.h:688
Definition parse-tree.h:686
Definition parse-tree.h:2663
Definition parse-tree.h:2662
Definition parse-tree.h:2171
Definition parse-tree.h:970
Definition parse-tree.h:1434
Definition parse-tree.h:1873
Definition parse-tree.h:1601
Definition parse-tree.h:1610
Definition parse-tree.h:1609
Definition parse-tree.h:3335
Definition parse-tree.h:3328
Definition parse-tree.h:3332
Definition parse-tree.h:3346
Definition parse-tree.h:3356
Definition parse-tree.h:3353
Definition parse-tree.h:3350
Definition parse-tree.h:3340
Definition parse-tree.h:3326
Definition parse-tree.h:840
Definition parse-tree.h:832
Definition parse-tree.h:981
Definition parse-tree.h:994
Definition parse-tree.h:1102
Definition parse-tree.h:1047
Definition parse-tree.h:1197
Definition parse-tree.h:2491
Definition parse-tree.h:2219
Definition parse-tree.h:2640
Definition parse-tree.h:2638
Definition parse-tree.h:303
Definition parse-tree.h:2210
Definition parse-tree.h:2201
Definition parse-tree.h:1055
Definition parse-tree.h:1491
Definition parse-tree.h:1503
Definition parse-tree.h:1789
Definition parse-tree.h:1462
Definition parse-tree.h:1511
Definition parse-tree.h:1477
Definition parse-tree.h:1517
Definition parse-tree.h:1483
Definition parse-tree.h:1980
Definition parse-tree.h:437
Definition parse-tree.h:764
Definition parse-tree.h:327
Definition parse-tree.h:612
Definition parse-tree.h:1182
Definition parse-tree.h:746
Definition parse-tree.h:912
Definition parse-tree.h:1828
Definition parse-tree.h:1529
Definition parse-tree.h:1528
Definition parse-tree.h:2306
Definition parse-tree.h:3125
Definition parse-tree.h:2326
Definition parse-tree.h:2188
Definition parse-tree.h:1375
Definition parse-tree.h:3295
Definition parse-tree.h:1226
Definition parse-tree.h:1212
Definition parse-tree.h:2545
Definition parse-tree.h:2551
Definition parse-tree.h:2559
Definition parse-tree.h:529
Definition parse-tree.h:554
Definition parse-tree.h:964
Definition parse-tree.h:951
Definition parse-tree.h:1741
Definition parse-tree.h:1714
Definition parse-tree.h:1755
Definition parse-tree.h:1720
Definition parse-tree.h:1759
Definition parse-tree.h:1696
Definition parse-tree.h:1711
Definition parse-tree.h:1747
Definition parse-tree.h:1729
Definition parse-tree.h:1735
Definition parse-tree.h:1738
Definition parse-tree.h:1701
Definition parse-tree.h:1726
Definition parse-tree.h:1723
Definition parse-tree.h:1708
Definition parse-tree.h:1750
Definition parse-tree.h:1732
Definition parse-tree.h:1690
Definition parse-tree.h:1687
Definition parse-tree.h:1744
Definition parse-tree.h:1681
Definition parse-tree.h:1705
Definition parse-tree.h:1717
Definition parse-tree.h:1684
Definition parse-tree.h:1677
Definition parse-tree.h:1041
Definition parse-tree.h:2082
Definition parse-tree.h:2098
Definition parse-tree.h:2076
Definition parse-tree.h:2111
Definition parse-tree.h:2088
Definition parse-tree.h:3229
Definition parse-tree.h:3114
Definition parse-tree.h:3261
Definition parse-tree.h:3008
Definition parse-tree.h:3023
Definition parse-tree.h:861
Definition parse-tree.h:2345
Definition parse-tree.h:2341
Definition parse-tree.h:2340
Definition parse-tree.h:2356
Definition parse-tree.h:2319
Definition parse-tree.h:1661
Definition parse-tree.h:1671
Definition parse-tree.h:419
Definition parse-tree.h:1585
Definition parse-tree.h:1594
Definition parse-tree.h:625
Definition parse-tree.h:1012
Definition parse-tree.h:2857
Definition parse-tree.h:2865
Definition parse-tree.h:2870
Definition parse-tree.h:2855
Definition parse-tree.h:2885
Definition parse-tree.h:2883
Definition parse-tree.h:790
Definition parse-tree.h:311
Definition parse-tree.h:1338
Definition parse-tree.h:1537
Definition parse-tree.h:3181
Definition parse-tree.h:3148
Definition parse-tree.h:3154
Definition parse-tree.h:3146
Definition parse-tree.h:3171
Definition parse-tree.h:475
Definition parse-tree.h:463
Definition parse-tree.h:713
Definition parse-tree.h:710
Definition parse-tree.h:716
Definition parse-tree.h:706
Definition parse-tree.h:704
Definition parse-tree.h:2698
Definition parse-tree.h:2696
Definition parse-tree.h:2610
Definition parse-tree.h:777
Definition parse-tree.h:658
Definition parse-tree.h:2283
Definition parse-tree.h:1291
Definition parse-tree.h:676
Definition parse-tree.h:1579
Definition parse-tree.h:886
Definition parse-tree.h:2255
Definition parse-tree.h:2251
Definition parse-tree.h:2586
Definition parse-tree.h:2585
Definition parse-tree.h:868
Definition parse-tree.h:319
Definition parse-tree.h:1258
Definition parse-tree.h:2273
Definition parse-tree.h:2271
Definition parse-tree.h:2904
Definition parse-tree.h:3399
Definition parse-tree.h:2043
Definition parse-tree.h:2928
Definition parse-tree.h:2918
Definition parse-tree.h:2939
Definition parse-tree.h:587
Definition parse-tree.h:1297
Definition parse-tree.h:639
Definition parse-tree.h:638
Definition parse-tree.h:2289
Definition parse-tree.h:2513
Definition parse-tree.h:1408
Definition parse-tree.h:4264
Definition parse-tree.h:4270
Definition parse-tree.h:4268
Definition parse-tree.h:4283
Definition parse-tree.h:4290
Definition parse-tree.h:4298
Definition parse-tree.h:4313
Definition parse-tree.h:5255
Definition parse-tree.h:4321
Definition parse-tree.h:4320
Definition parse-tree.h:4329
Definition parse-tree.h:4341
Definition parse-tree.h:5049
Definition parse-tree.h:5392
Definition parse-tree.h:5120
Definition parse-tree.h:4352
Definition parse-tree.h:5059
Definition parse-tree.h:4358
Definition parse-tree.h:5018
Definition parse-tree.h:5002
Definition parse-tree.h:4367
Definition parse-tree.h:3568
Definition parse-tree.h:4375
Definition parse-tree.h:5163
Definition parse-tree.h:4392
Definition parse-tree.h:4410
Definition parse-tree.h:4469
Definition parse-tree.h:4467
Definition parse-tree.h:4491
Definition parse-tree.h:4499
Definition parse-tree.h:4509
Definition parse-tree.h:4519
Definition parse-tree.h:4527
Definition parse-tree.h:3469
Definition parse-tree.h:5025
Definition parse-tree.h:4482
Definition parse-tree.h:4449
Definition parse-tree.h:4542
Definition parse-tree.h:4537
Definition parse-tree.h:5054
Definition parse-tree.h:5396
Definition parse-tree.h:5125
Definition parse-tree.h:4553
Definition parse-tree.h:5087
Definition parse-tree.h:4561
Definition parse-tree.h:4574
Definition parse-tree.h:4585
Definition parse-tree.h:4595
Definition parse-tree.h:4603
Definition parse-tree.h:4608
Definition parse-tree.h:4616
Definition parse-tree.h:4632
Definition parse-tree.h:4655
Definition parse-tree.h:4621
Definition parse-tree.h:4645
Definition parse-tree.h:4662
Definition parse-tree.h:3580
Definition parse-tree.h:4422
Definition parse-tree.h:4440
Definition parse-tree.h:4431
Definition parse-tree.h:4671
Definition parse-tree.h:4686
Definition parse-tree.h:4697
Definition parse-tree.h:4722
Definition parse-tree.h:4734
Definition parse-tree.h:4743
Definition parse-tree.h:5081
Definition parse-tree.h:4767
Definition parse-tree.h:4779
Definition parse-tree.h:4791
Definition parse-tree.h:3514
Definition parse-tree.h:3505
Definition parse-tree.h:3502
Definition parse-tree.h:4802
Definition parse-tree.h:4815
Definition parse-tree.h:4827
Definition parse-tree.h:4838
Definition parse-tree.h:3558
Definition parse-tree.h:4848
Definition parse-tree.h:4857
Definition parse-tree.h:4869
Definition parse-tree.h:4880
Definition parse-tree.h:4887
Definition parse-tree.h:3518
Definition parse-tree.h:3540
Definition parse-tree.h:3528
Definition parse-tree.h:3527
Definition parse-tree.h:4896
Definition parse-tree.h:4907
Definition parse-tree.h:4916
Definition parse-tree.h:4931
Definition parse-tree.h:4941
Definition parse-tree.h:3494
Definition parse-tree.h:3487
Definition parse-tree.h:4950
Definition parse-tree.h:4959
Definition parse-tree.h:4975
Definition parse-tree.h:4997
Definition parse-tree.h:4986
Definition parse-tree.h:3039
Definition parse-tree.h:5663
Definition parse-tree.h:5670
Definition parse-tree.h:5599
Definition parse-tree.h:5692
Definition parse-tree.h:5731
Definition parse-tree.h:5702
Definition parse-tree.h:5720
Definition parse-tree.h:5711
Definition parse-tree.h:5593
Definition parse-tree.h:5725
Definition parse-tree.h:5675
Definition parse-tree.h:5605
Definition parse-tree.h:5281
Definition parse-tree.h:5114
Definition parse-tree.h:5304
Definition parse-tree.h:5294
Definition parse-tree.h:5286
Definition parse-tree.h:5323
Definition parse-tree.h:5316
Definition parse-tree.h:5427
Definition parse-tree.h:5271
Definition parse-tree.h:5102
Definition parse-tree.h:5259
Definition parse-tree.h:5183
Definition parse-tree.h:5192
Definition parse-tree.h:5200
Definition parse-tree.h:5175
Definition parse-tree.h:5334
Definition parse-tree.h:5348
Definition parse-tree.h:5422
Definition parse-tree.h:5364
Definition parse-tree.h:5210
Definition parse-tree.h:5372
Definition parse-tree.h:5445
Definition parse-tree.h:5401
Definition parse-tree.h:5439
Definition parse-tree.h:5216
Definition parse-tree.h:5134
Definition parse-tree.h:5140
Definition parse-tree.h:5377
Definition parse-tree.h:5383
Definition parse-tree.h:5222
Definition parse-tree.h:5091
Definition parse-tree.h:376
Definition parse-tree.h:2775
Definition parse-tree.h:2738
Definition parse-tree.h:2964
Definition parse-tree.h:1783
Definition parse-tree.h:2009
Definition parse-tree.h:2008
Definition parse-tree.h:1547
Definition parse-tree.h:1969
Definition parse-tree.h:2801
Definition parse-tree.h:3084
Definition parse-tree.h:2759
Definition parse-tree.h:925
Definition parse-tree.h:3062
Definition parse-tree.h:1066
Definition parse-tree.h:1094
Definition parse-tree.h:1868
Definition parse-tree.h:1086
Definition parse-tree.h:1080
Definition parse-tree.h:1073
Definition parse-tree.h:3072
Definition parse-tree.h:3196
Definition parse-tree.h:3164
Definition parse-tree.h:571
Definition parse-tree.h:2722
Definition parse-tree.h:809
Definition parse-tree.h:2240
Definition parse-tree.h:2952
Definition parse-tree.h:2956
Definition parse-tree.h:2950
Definition parse-tree.h:1560
Definition parse-tree.h:295
Definition parse-tree.h:1646
Definition parse-tree.h:2363
Definition parse-tree.h:2428
Definition parse-tree.h:2427
Definition parse-tree.h:2441
Definition parse-tree.h:2439
Definition parse-tree.h:2418
Definition parse-tree.h:2475
Definition parse-tree.h:2473
Definition parse-tree.h:2453
Definition parse-tree.h:2119
Definition parse-tree.h:3287
Definition parse-tree.h:846
Definition parse-tree.h:783
Definition parse-tree.h:821
Definition parse-tree.h:398
Definition parse-tree.h:451
Definition parse-tree.h:1938
Definition parse-tree.h:359
Definition parse-tree.h:3305
Definition parse-tree.h:2505
Definition parse-tree.h:1858
Definition parse-tree.h:1203
Definition parse-tree.h:3420
Definition parse-tree.h:3392
Definition parse-tree.h:3415
Definition parse-tree.h:2970
Definition parse-tree.h:2981
Definition parse-tree.h:3133
Definition parse-tree.h:3271
Definition parse-tree.h:1637
Definition parse-tree.h:1820
Definition parse-tree.h:1628
Definition parse-tree.h:1806
Definition parse-tree.h:2524
Definition parse-tree.h:2523
Definition parse-tree.h:2536
Definition parse-tree.h:903
Definition parse-tree.h:1146
Definition parse-tree.h:1159
Definition parse-tree.h:1121
Definition parse-tree.h:1168
Definition parse-tree.h:1137
Definition parse-tree.h:1133
Definition parse-tree.h:1131
Definition parse-tree.h:1389
Definition parse-tree.h:2463
Definition parse-tree.h:2462
Definition parse-tree.h:931
Definition parse-tree.h:939
Definition parse-tree.h:740
Definition parse-tree.h:649
Definition parse-tree.h:753
Definition parse-tree.h:3408
Definition parse-tree.h:354
Definition parse-tree.h:2595
Definition parse-tree.h:796
Definition parse-tree.h:3048
Definition parse-tree.h:1836
Definition parse-tree.h:726
Definition parse-tree.h:731
Definition parse-tree.h:282
Definition parse-tree.h:2785
Definition parse-tree.h:2034
Definition parse-tree.h:2027
Definition parse-tree.h:2063
Definition parse-tree.h:2059
Definition parse-tree.h:2058
Definition parse-tree.h:2021
Definition parse-tree.h:2744
Definition parse-tree.h:3642
Definition parse-tree.h:3633
Definition parse-tree.h:3603
Definition parse-tree.h:3592
Definition parse-tree.h:3587
Definition parse-tree.h:3613
Definition parse-tree.h:3626
Definition parse-tree.h:3797
Definition parse-tree.h:3814
Definition parse-tree.h:3806
Definition parse-tree.h:3830
Definition parse-tree.h:3822
Definition parse-tree.h:3842
Definition parse-tree.h:3854
Definition parse-tree.h:3864
Definition parse-tree.h:3875
Definition parse-tree.h:3888
Definition parse-tree.h:3900
Definition parse-tree.h:3921
Definition parse-tree.h:3932
Definition parse-tree.h:3942
Definition parse-tree.h:3951
Definition parse-tree.h:3968
Definition parse-tree.h:3983
Definition parse-tree.h:3994
Definition parse-tree.h:4005
Definition parse-tree.h:4017
Definition parse-tree.h:4027
Definition parse-tree.h:4035
Definition parse-tree.h:4044
Definition parse-tree.h:4053
Definition parse-tree.h:4087
Definition parse-tree.h:4074
Definition parse-tree.h:4061
Definition parse-tree.h:4111
Definition parse-tree.h:4102
Definition parse-tree.h:4145
Definition parse-tree.h:4121
Definition parse-tree.h:4134
Definition parse-tree.h:4154
Definition parse-tree.h:4167
Definition parse-tree.h:4176
Definition parse-tree.h:4186
Definition parse-tree.h:4196
Definition parse-tree.h:4205
Definition parse-tree.h:4213
Definition parse-tree.h:4223
Definition parse-tree.h:4234
Definition parse-tree.h:4247
Definition parse-tree.h:3773
Definition parse-tree.h:3683
Definition parse-tree.h:3680
Definition parse-tree.h:3663
Definition parse-tree.h:3704
Definition parse-tree.h:3670
Definition parse-tree.h:3731
Definition parse-tree.h:3746
Definition parse-tree.h:3743
Definition parse-tree.h:3756
Definition parse-tree.h:3765