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);
1345WRAPPER_CLASS(RankClause, ScalarIntConstantExpr);
1355EMPTY_CLASS(Asynchronous);
1356EMPTY_CLASS(External);
1357EMPTY_CLASS(Intrinsic);
1358EMPTY_CLASS(Optional);
1359EMPTY_CLASS(Parameter);
1360EMPTY_CLASS(Protected);
1364EMPTY_CLASS(Volatile);
1369 Parameter, Pointer, Protected, RankClause, Save, Target, Value, Volatile,
1370 common::CUDADataAttr>
1381 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1382 EntityDecl(ObjectName &&name,
CharLength &&length,
1383 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1384 std::optional<Initialization> &&init)
1385 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1386 std::move(length), std::move(init)} {}
1387 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1388 std::optional<CharLength>, std::optional<Initialization>>
1396 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1406 std::tuple<AccessSpec, std::list<AccessId>> t;
1415 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1420WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1423WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1428 ENUM_CLASS(Kind, Object, Common)
1429 std::tuple<Kind, Name> t;
1435 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1441 std::tuple<Name, CoarraySpec> t;
1445WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1448WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1457using TypedAssignment =
1470 mutable TypedExpr typedExpr;
1471 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1484 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1490 mutable std::int64_t repetitions{1};
1498 std::variant<Scalar<common::Indirection<Designator>>,
1511 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1518 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1524 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1528WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1536 std::tuple<Name, ArraySpec> t;
1538 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1544 std::tuple<IntentSpec, std::list<Name>> t;
1548WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1554 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1558WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1561WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1567 ENUM_CLASS(Kind, Entity, Common)
1568 std::tuple<Kind, Name> t;
1572WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1575WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1578WRAPPER_CLASS(ValueStmt, std::list<Name>);
1581WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1586 std::tuple<Location, std::optional<Location>> t;
1592 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1601 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1602 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1608 std::tuple<Name, std::optional<ArraySpec>> t;
1616 TUPLE_CLASS_BOILERPLATE(
Block);
1617 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1619 WRAPPER_CLASS_BOILERPLATE(CommonStmt, std::list<Block>);
1620 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1621 std::list<Block> &&);
1630WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1635 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1639using Subscript = ScalarIntExpr;
1644 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1645 std::optional<Subscript>>
1653 std::variant<IntExpr, SubscriptTriplet> u;
1657using Cosubscript = ScalarIntExpr;
1668 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1671 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1678 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1683 UNION_CLASS_BOILERPLATE(Expr);
1687 using IntrinsicUnary::IntrinsicUnary;
1690 using IntrinsicUnary::IntrinsicUnary;
1693 using IntrinsicUnary::IntrinsicUnary;
1695 struct NOT :
public IntrinsicUnary {
1696 using IntrinsicUnary::IntrinsicUnary;
1703 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1711 using IntrinsicBinary::IntrinsicBinary;
1714 using IntrinsicBinary::IntrinsicBinary;
1717 using IntrinsicBinary::IntrinsicBinary;
1720 using IntrinsicBinary::IntrinsicBinary;
1723 using IntrinsicBinary::IntrinsicBinary;
1726 using IntrinsicBinary::IntrinsicBinary;
1729 using IntrinsicBinary::IntrinsicBinary;
1732 using IntrinsicBinary::IntrinsicBinary;
1735 using IntrinsicBinary::IntrinsicBinary;
1738 using IntrinsicBinary::IntrinsicBinary;
1741 using IntrinsicBinary::IntrinsicBinary;
1744 using IntrinsicBinary::IntrinsicBinary;
1747 using IntrinsicBinary::IntrinsicBinary;
1750 using IntrinsicBinary::IntrinsicBinary;
1753 using IntrinsicBinary::IntrinsicBinary;
1756 using IntrinsicBinary::IntrinsicBinary;
1761 using IntrinsicBinary::IntrinsicBinary;
1766 std::tuple<DefinedOpName, common::Indirection<Expr>,
1774 mutable TypedExpr typedExpr;
1778 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1782 Add,
Subtract,
Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
1789 TUPLE_CLASS_BOILERPLATE(
PartRef);
1790 std::tuple<Name, std::list<SectionSubscript>, std::optional<ImageSelector>> t;
1795 UNION_CLASS_BOILERPLATE(DataRef);
1796 explicit DataRef(std::list<PartRef> &&);
1797 std::variant<Name, common::Indirection<StructureComponent>,
1813 std::tuple<DataRef, SubstringRange> t;
1818 std::tuple<CharLiteralConstant, SubstringRange> t;
1835 bool EndsInBareName()
const;
1837 std::variant<DataRef, Substring> u;
1843 mutable TypedExpr typedExpr;
1845 std::variant<common::Indirection<Designator>,
1865 std::tuple<DataRef, Name> t;
1867 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1868 const Name &Component()
const {
return std::get<Name>(t); }
1880 std::tuple<DataRef, ImageSelector> t;
1889 std::tuple<DataRef, std::list<SectionSubscript>> t;
1891 const DataRef &Base()
const {
return std::get<DataRef>(t); }
1892 const std::list<SectionSubscript> &Subscripts()
const {
1893 return std::get<std::list<SectionSubscript>>(t);
1900 mutable TypedExpr typedExpr;
1901 std::variant<Name, StructureComponent> u;
1906using BoundExpr = ScalarIntExpr;
1912 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1921 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1929 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1930 std::optional<AllocateCoarraySpec>>
1935WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1939WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
1945 std::variant<StatVariable, MsgVariable> u;
1960 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
1967 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
1968 std::list<AllocOpt>>
1976 mutable TypedExpr typedExpr;
1977 std::variant<Name, StructureComponent> u;
1981WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
1987 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
1993 mutable TypedAssignment typedAssignment;
1994 std::tuple<Variable, Expr> t;
1998WRAPPER_CLASS(BoundsSpec, BoundExpr);
2003 std::tuple<BoundExpr, BoundExpr> t;
2015 UNION_CLASS_BOILERPLATE(
Bounds);
2016 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2019 mutable TypedAssignment typedAssignment;
2020 std::tuple<DataRef, Bounds, Expr> t;
2028 std::tuple<LogicalExpr, AssignmentStmt> t;
2034 std::tuple<std::optional<Name>, LogicalExpr> t;
2050 std::tuple<LogicalExpr, std::optional<Name>> t;
2054WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2057WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2066 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2070 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2073 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2074 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2089 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2095 std::tuple<common::Indirection<ConcurrentHeader>,
2112WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2118 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2126 std::variant<Expr, Variable> u;
2132 std::tuple<Name, Selector> t;
2139 std::tuple<std::optional<Name>, std::list<Association>> t;
2143WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2152WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2155WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2170 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2178 std::tuple<CodimensionDecl, Selector> t;
2186 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2187 std::list<StatOrErrmsg>>
2195 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2208 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2212WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2226 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2235 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2236 std::optional<ScalarLogicalExpr>>
2247 Operator, Plus, Multiply, Max, Min, Iand, Ior, Ieor, And, Or, Eqv, Neqv)
2258 WRAPPER_CLASS(Local, std::list<Name>);
2259 WRAPPER_CLASS(LocalInit, std::list<Name>);
2261 TUPLE_CLASS_BOILERPLATE(
Reduce);
2263 std::tuple<Operator, std::list<Name>> t;
2265 WRAPPER_CLASS(Shared, std::list<Name>);
2266 EMPTY_CLASS(DefaultNone);
2267 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2280 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2283 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2290 std::tuple<Label, std::optional<LoopControl>> t;
2296 std::tuple<std::optional<Name>, std::optional<Label>,
2297 std::optional<LoopControl>>
2302WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2313 const std::optional<LoopControl> &GetLoopControl()
const;
2314 bool IsDoNormal()
const;
2315 bool IsDoWhile()
const;
2316 bool IsDoConcurrent()
const;
2321WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2326 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2333 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2337WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2340WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2348 std::tuple<Statement<ElseIfStmt>, Block> t;
2352 std::tuple<Statement<ElseStmt>, Block> t;
2355 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2362 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2363 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2381 TUPLE_CLASS_BOILERPLATE(
Range);
2382 std::tuple<std::optional<CaseValue>, std::optional<CaseValue>>
2385 std::variant<CaseValue, Range> u;
2389EMPTY_CLASS(Default);
2393 std::variant<std::list<CaseValueRange>, Default> u;
2399 std::tuple<CaseSelector, std::optional<Name>> t;
2405WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2411 TUPLE_CLASS_BOILERPLATE(
Case);
2412 std::tuple<Statement<CaseStmt>, Block> t;
2415 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2425 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2434 UNION_CLASS_BOILERPLATE(
Rank);
2435 std::variant<ScalarIntConstantExpr, Star, Default> u;
2438 std::tuple<Rank, std::optional<Name>> t;
2448 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2450 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2460 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2469 UNION_CLASS_BOILERPLATE(
Guard);
2470 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2473 std::tuple<Guard, std::optional<Name>> t;
2482 std::tuple<Statement<TypeGuardStmt>, Block> t;
2484 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2490WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2493WRAPPER_CLASS(GotoStmt, Label);
2498 std::tuple<std::list<Label>, ScalarIntExpr> t;
2511 ENUM_CLASS(Kind, Stop, ErrorStop)
2513 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2520 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2524WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2531 std::variant<IntExpr, Star> u;
2534 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2538WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2543 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2552 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2558 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2566 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2579 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2582 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2593 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2596 std::tuple<LockVariable, std::list<LockStat>> t;
2602 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2606WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2616 UNION_CLASS_BOILERPLATE(
IoUnit);
2617 std::variant<Variable, common::Indirection<Expr>, Star> u;
2621using FileNameExpr = ScalarDefaultCharExpr;
2640WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2641WRAPPER_CLASS(ErrLabel, Label);
2646 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2647 Encoding, Form, Pad, Position, Round, Sign,
2648 Carriagecontrol, Convert, Dispose)
2650 std::tuple<Kind, ScalarDefaultCharExpr> t;
2652 WRAPPER_CLASS(Recl, ScalarIntExpr);
2653 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2654 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2655 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2660WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2670 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2674 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2680 UNION_CLASS_BOILERPLATE(
Format);
2681 std::variant<Expr, Label, Star> u;
2685WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2699WRAPPER_CLASS(EndLabel, Label);
2700WRAPPER_CLASS(EorLabel, Label);
2704 ENUM_CLASS(Kind, Advance, Blank, Decimal, Delim, Pad, Round, Sign)
2706 std::tuple<Kind, ScalarDefaultCharExpr> t;
2708 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2709 WRAPPER_CLASS(Pos, ScalarIntExpr);
2710 WRAPPER_CLASS(Rec, ScalarIntExpr);
2711 WRAPPER_CLASS(Size, ScalarIntVariable);
2713 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2721 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2728 BOILERPLATE(ReadStmt);
2729 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2730 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2731 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2732 items(std::move(its)) {}
2733 std::optional<IoUnit> iounit;
2735 std::optional<Format> format;
2738 std::list<IoControlSpec> controls;
2739 std::list<InputItem> items;
2745 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2750 BOILERPLATE(WriteStmt);
2751 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2752 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2753 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2754 items(std::move(its)) {}
2755 std::optional<IoUnit> iounit;
2757 std::optional<Format> format;
2759 std::list<IoControlSpec> controls;
2760 std::list<OutputItem> items;
2766 std::tuple<Format, std::list<OutputItem>> t;
2777 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2782 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2789WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2792 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2793 MsgVariable, StatVariable>
2798WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2808 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2813WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2817WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2820WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2823WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2863 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2864 Direct, Encoding, Form, Formatted, Iomsg,
Name, Pad, Position, Read,
2865 Readwrite, Round, Sequential, Sign, Stream, Status, Unformatted, Write,
2866 Carriagecontrol, Convert, Dispose)
2867 TUPLE_CLASS_BOILERPLATE(
CharVar);
2868 std::tuple<Kind, ScalarDefaultCharVariable> t;
2871 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2872 TUPLE_CLASS_BOILERPLATE(
IntVar);
2873 std::tuple<Kind, ScalarIntVariable> t;
2876 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2877 TUPLE_CLASS_BOILERPLATE(
LogVar);
2878 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2892 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2894 std::variant<std::list<InquireSpec>,
Iolength> u;
2901WRAPPER_CLASS(ProgramStmt,
Name);
2904WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2912 ExecutionPart, std::optional<InternalSubprogramPart>,
2918WRAPPER_CLASS(ModuleStmt,
Name);
2925 std::variant<common::Indirection<FunctionSubprogram>,
2935 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2939WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2945 TUPLE_CLASS_BOILERPLATE(
Module);
2956 UNION_CLASS_BOILERPLATE(
Rename);
2958 TUPLE_CLASS_BOILERPLATE(
Names);
2959 std::tuple<Name, Name> t;
2963 std::tuple<DefinedOpName, DefinedOpName> t;
2965 std::variant<Names, Operators> u;
2971 std::tuple<Name, std::optional<Name>> t;
2977 std::tuple<ParentIdentifier, Name> t;
2981WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
2994WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
2997WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3015 EMPTY_CLASS(Assignment);
3016 EMPTY_CLASS(ReadFormatted);
3017 EMPTY_CLASS(ReadUnformatted);
3018 EMPTY_CLASS(WriteFormatted);
3019 EMPTY_CLASS(WriteUnformatted);
3022 ReadUnformatted, WriteFormatted, WriteUnformatted>
3030 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3034struct InterfaceStmt {
3035 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3037 InterfaceStmt(Abstract x) : u{x} {}
3039 std::variant<std::optional<GenericSpec>, Abstract> u;
3045 UNION_CLASS_BOILERPLATE(
Only);
3046 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3054 BOILERPLATE(UseStmt);
3055 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3056 template <
typename A>
3057 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3058 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3059 std::optional<ModuleNature> nature;
3061 std::variant<std::list<Rename>, std::list<Only>> u;
3079 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3080 std::list<ProcDecl>>
3091 EMPTY_CLASS(Elemental);
3092 EMPTY_CLASS(Impure);
3094 EMPTY_CLASS(Non_Recursive);
3096 EMPTY_CLASS(Recursive);
3097 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3098 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3099 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3101 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3109 TUPLE_CLASS_BOILERPLATE(Suffix);
3111 : t(std::move(rn), std::move(lbs)) {}
3112 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3121 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3122 std::optional<Suffix>>
3127WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3132 std::variant<Name, Star> u;
3140 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3141 std::optional<LanguageBindingSpec>>
3146WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3161 std::tuple<Statement<SubroutineStmt>,
3165 std::variant<Function, Subroutine> u;
3170 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3172 std::tuple<Kind, std::list<Name>> t;
3178 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3182WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3188 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3194WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3197WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3203 std::variant<Name, ProcComponentRef> u;
3207WRAPPER_CLASS(AltReturnSpec, Label);
3213 WRAPPER_CLASS(PercentRef,
Expr);
3214 WRAPPER_CLASS(PercentVal,
Expr);
3215 UNION_CLASS_BOILERPLATE(ActualArg);
3217 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal>
3224 std::tuple<std::optional<Keyword>,
ActualArg> t;
3230 TUPLE_CLASS_BOILERPLATE(
Call);
3231 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3247 TUPLE_CLASS_BOILERPLATE(CallStmt);
3248 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3251 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3252 std::optional<ScalarIntExpr>>
3256 std::list<ActualArgSpec> &&args)
3257 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3258 std::tuple<Call, std::optional<Chevrons>> t;
3260 mutable TypedCall typedCall;
3284WRAPPER_CLASS(MpSubprogramStmt,
Name);
3287WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3302 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3306WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3335 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3338 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3342 std::tuple<common::Indirection<Designator>, uint64_t> t;
3344 EMPTY_CLASS(VectorAlways);
3347 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3349 std::tuple<std::uint64_t, Kind> t;
3353 std::tuple<Name, std::optional<std::uint64_t>> t;
3356 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3359 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3362 WRAPPER_CLASS_BOILERPLATE(
3365 EMPTY_CLASS(NoVector);
3366 EMPTY_CLASS(NoUnroll);
3367 EMPTY_CLASS(NoUnrollAndJam);
3368 EMPTY_CLASS(ForceInline);
3369 EMPTY_CLASS(Inline);
3370 EMPTY_CLASS(NoInline);
3372 EMPTY_CLASS(Unrecognized);
3374 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3376 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3384 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3390 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3392WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3399 std::variant<Statement<DataComponentDefStmt>,
3405 EMPTY_CLASS(MapStmt);
3406 EMPTY_CLASS(EndMapStmt);
3407 TUPLE_CLASS_BOILERPLATE(
Map);
3408 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3414 EMPTY_CLASS(UnionStmt);
3415 EMPTY_CLASS(EndUnionStmt);
3416 TUPLE_CLASS_BOILERPLATE(
Union);
3422 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3426 EMPTY_CLASS(EndStructureStmt);
3428 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3435WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3440 std::tuple<Expr, Label, Label, Label> t;
3445 std::tuple<Label, Name> t;
3450 std::tuple<Name, std::list<Label>> t;
3453WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3459#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3460 using basename::basename; \
3461 classname(basename &&b) : basename(std::move(b)) {} \
3462 using TupleTrait = std::true_type; \
3463 BOILERPLATE(classname)
3465#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3466 BOILERPLATE(classname); \
3467 using basename::basename; \
3468 classname(basename &&base) : basename(std::move(base)) {} \
3469 using WrapperTrait = std::true_type
3474struct OmpDirectiveName {
3476 constexpr OmpDirectiveName() =
default;
3477 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3478 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3482 OmpDirectiveName(
const Verbatim &name);
3483 using WrapperTrait = std::true_type;
3485 bool IsExecutionPart()
const;
3488 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3496 std::variant<TypeSpec, DeclarationTypeSpec> u;
3511 ENUM_CLASS(Kind, BlankCommonBlock);
3512 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3520 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3527 using EmptyTrait = std::true_type;
3535 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3538 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3552 WRAPPER_CLASS_BOILERPLATE(
3565 std::variant<DefinedOperator, ProcedureDesignator> u;
3574 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3586 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3591inline namespace arguments {
3594 std::variant<OmpObject, FunctionReference> u;
3598 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3610 std::tuple<OmpObject, OmpObject> t;
3621 std::tuple<std::string, TypeSpec, Name> t;
3634 std::optional<OmpCombinerExpression>>
3653inline namespace traits {
3690 TUPLE_CLASS_BOILERPLATE(
Complex);
3692 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3696 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3712 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3737 std::string ToString()
const;
3740 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3741 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3742 std::variant<Value, llvm::omp::Directive, std::string> u;
3753 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3755 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3762 std::string ToString()
const;
3764 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3773 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3780 WRAPPER_CLASS_BOILERPLATE(
3785#define MODIFIER_BOILERPLATE(...) \
3787 using Variant = std::variant<__VA_ARGS__>; \
3788 UNION_CLASS_BOILERPLATE(Modifier); \
3793#define MODIFIERS() std::optional<std::list<Modifier>>
3795inline namespace modifier {
3803 ENUM_CLASS(Value, Cgroup);
3812 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3848 ENUM_CLASS(Value, Always)
3860 ENUM_CLASS(Value, Always, Never, Auto)
3870 ENUM_CLASS(Value, Automap);
3881 ENUM_CLASS(Value, Simd)
3894 ENUM_CLASS(Value, Close)
3906 ENUM_CLASS(Value, Delete)
3927 ENUM_CLASS(Value, Sink, Source);
3938 using Value = common::OmpDependenceKind;
3940 std::tuple<Value, OmpObject> t;
3948 ENUM_CLASS(Value, Ancestor, Device_Num)
3974 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3989 ENUM_CLASS(Value, Present);
4000 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4011 ENUM_CLASS(Value, Target, Targetsync)
4025 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4033 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4041 ENUM_CLASS(Value, Conditional)
4050 ENUM_CLASS(Value, Ref, Uval, Val);
4080 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4081 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4093 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4108 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4117 ENUM_CLASS(Value, Reproducible, Unconstrained)
4130 using Extensions = std::list<PreferencePropertyExtension>;
4131 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4141 using ForeignRuntimeIdentifier =
4142 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4143 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4151 WRAPPER_CLASS_BOILERPLATE(
4160 ENUM_CLASS(Value, Strict)
4173 ENUM_CLASS(Value, Present)
4182 ENUM_CLASS(Value, Default, Inscan, Task);
4192 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4202 ENUM_CLASS(Value, Self)
4229 using Value = common::OmpDependenceKind;
4240 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4253 ENUM_CLASS(Value, Ompx_Hold)
4263using OmpDirectiveList = std::list<llvm::omp::Directive>;
4276 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4279 std::tuple<OmpAdjustOp, OmpObjectList> t;
4296 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4327 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4335 ENUM_CLASS(ActionTime, Compilation, Execution);
4336 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4347 using MemoryOrder = common::OmpMemoryOrderType;
4358 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4365 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4398 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4400 std::variant<DataSharingAttribute,
4417 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4420 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4429 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4438 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4455 OmpDependenceType::Value GetDepType()
const;
4458 EMPTY_CLASS(Source);
4460 std::variant<Sink, Source> u;
4475 OmpTaskDependenceType::Value GetTaskDepType()
const;
4476 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4480 std::variant<TaskDep, OmpDoacross> u;
4517 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4533 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4543 WRAPPER_CLASS_BOILERPLATE(
4550 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4567 using MemoryOrder = common::OmpMemoryOrderType;
4593 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4614 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4627 WRAPPER_CLASS_BOILERPLATE(
4640 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4693 MODIFIER_BOILERPLATE(
4704 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4741 WRAPPER_CLASS_BOILERPLATE(
4755EMPTY_CLASS(OmpNoOpenMPClause);
4760EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4765EMPTY_CLASS(OmpNoParallelismClause);
4775 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4787 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4799 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4809 ENUM_CLASS(Ordering, Concurrent)
4811 std::tuple<MODIFIERS(), Ordering> t;
4833 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4876 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4878 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4893 ENUM_CLASS(SevLevel, Fatal, Warning);
4915 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4922 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
4965 WRAPPER_CLASS_BOILERPLATE(
4983 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
4993 MODIFIER_BOILERPLATE(OmpContextSelector);
4994 std::tuple<MODIFIERS(),
4995 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5009 llvm::omp::Clause Id()
const;
5011#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5012#include "llvm/Frontend/OpenMP/OMP.inc"
5017#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5018#include "llvm/Frontend/OpenMP/OMP.inc"
5024 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5031 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo)
5036 return std::get<OmpDirectiveName>(t);
5038 llvm::omp::Directive DirId()
const {
5045 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5046 std::optional<OmpClauseList>, Flags>
5055 INHERITED_TUPLE_CLASS_BOILERPLATE(
5067 return std::get<OmpBeginDirective>(t);
5069 const std::optional<OmpEndDirective> &EndDir()
const {
5070 return std::get<std::optional<OmpEndDirective>>(t);
5074 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5078 WRAPPER_CLASS_BOILERPLATE(
5099 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5108 WRAPPER_CLASS_BOILERPLATE(
5126 INHERITED_TUPLE_CLASS_BOILERPLATE(
5141 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5149 return std::get<OmpBeginSectionsDirective>(t);
5151 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5152 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5159 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5160 std::optional<OmpEndSectionsDirective>>
5169 WRAPPER_CLASS_BOILERPLATE(
5181 WRAPPER_CLASS_BOILERPLATE(
5189 WRAPPER_CLASS_BOILERPLATE(
5198 WRAPPER_CLASS_BOILERPLATE(
5206 WRAPPER_CLASS_BOILERPLATE(
5287 INHERITED_TUPLE_CLASS_BOILERPLATE(
5292 llvm::omp::Clause GetKind()
const;
5293 bool IsCapture()
const;
5294 bool IsCompare()
const;
5300 static constexpr int None = 0;
5301 static constexpr int Read = 1;
5302 static constexpr int Write = 2;
5303 static constexpr int Update = Read | Write;
5304 static constexpr int Action = 3;
5305 static constexpr int IfTrue = 4;
5306 static constexpr int IfFalse = 8;
5307 static constexpr int Condition = 12;
5311 TypedAssignment assign;
5313 TypedExpr atom, cond;
5322 WRAPPER_CLASS_BOILERPLATE(
5383 WRAPPER_CLASS_BOILERPLATE(
5406struct OpenMPLoopConstruct {
5407 TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
5409 : t({std::move(a), Block{}, std::nullopt}) {}
5412 return std::get<OmpBeginLoopDirective>(t);
5414 const std::optional<OmpEndLoopDirective> &EndDir()
const {
5415 return std::get<std::optional<OmpEndLoopDirective>>(t);
5418 const OpenMPLoopConstruct *GetNestedConstruct()
const;
5421 std::tuple<OmpBeginLoopDirective, Block, std::optional<OmpEndLoopDirective>>
5445 INHERITED_TUPLE_CLASS_BOILERPLATE(
5451 using EmptyTrait = std::true_type;
5462WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5494 std::variant<Name, ScalarDefaultCharExpr> u;
5504 ENUM_CLASS(Modifier, ReadOnly, Zero)
5511 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5516 std::tuple<ReductionOperator, AccObjectList> t;
5521 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5525 WRAPPER_CLASS_BOILERPLATE(
5531 WRAPPER_CLASS_BOILERPLATE(
5538 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5546 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5555 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5562 WRAPPER_CLASS(Num, ScalarIntExpr);
5563 WRAPPER_CLASS(Dim, ScalarIntExpr);
5565 std::variant<Num, Dim, Static> u;
5570 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5575 std::tuple<bool, ScalarIntConstantExpr> t;
5581#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5582#include "llvm/Frontend/OpenACC/ACC.inc"
5587#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5588#include "llvm/Frontend/OpenACC/ACC.inc"
5594 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5607 std::tuple<Verbatim, AccObjectListWithModifier> t;
5613 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5618 std::tuple<AccLoopDirective, AccClauseList> t;
5625 std::tuple<AccBlockDirective, AccClauseList> t;
5634EMPTY_CLASS(AccEndAtomic);
5639 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5640 std::optional<AccEndAtomic>>
5647 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5648 std::optional<AccEndAtomic>>
5656 std::optional<AccEndAtomic>>
5665 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5670 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5677 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5683 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5689 std::tuple<AccCombinedDirective, AccClauseList> t;
5697struct OpenACCCombinedConstruct {
5698 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5701 : t({std::move(a), std::nullopt, std::nullopt}) {}
5702 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5703 std::optional<AccEndCombinedDirective>>
5710 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5715EMPTY_CLASS(AccEndLoop);
5716struct OpenACCLoopConstruct {
5717 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5719 : t({std::move(a), std::nullopt, std::nullopt}) {}
5720 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5721 std::optional<AccEndLoop>>
5733 std::tuple<AccStandaloneDirective, AccClauseList> t;
5759 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5764 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5767 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5768 std::optional<ScalarIntExpr>>
5774 std::tuple<std::optional<ScalarIntConstantExpr>,
5775 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5778 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:5661
Definition parse-tree.h:5637
Definition parse-tree.h:5653
Definition parse-tree.h:5645
Definition parse-tree.h:5622
Definition parse-tree.h:5686
Definition parse-tree.h:5616
Definition parse-tree.h:5492
Definition parse-tree.h:5465
Definition parse-tree.h:5593
Definition parse-tree.h:5578
Definition parse-tree.h:5573
Definition parse-tree.h:5481
Definition parse-tree.h:5503
Definition parse-tree.h:5486
Definition parse-tree.h:5498
Definition parse-tree.h:5530
Definition parse-tree.h:5524
Definition parse-tree.h:5628
Definition parse-tree.h:5692
Definition parse-tree.h:5569
Definition parse-tree.h:5560
Definition parse-tree.h:5470
Definition parse-tree.h:5509
Definition parse-tree.h:5514
Definition parse-tree.h:5457
Definition parse-tree.h:5553
Definition parse-tree.h:5549
Definition parse-tree.h:5545
Definition parse-tree.h:5475
Definition parse-tree.h:5541
Definition parse-tree.h:5535
Definition parse-tree.h:5519
Definition parse-tree.h:895
Definition parse-tree.h:1404
Definition parse-tree.h:496
Definition parse-tree.h:3222
Definition parse-tree.h:3212
Definition parse-tree.h:1954
Definition parse-tree.h:1919
Definition parse-tree.h:1898
Definition parse-tree.h:1910
Definition parse-tree.h:1965
Definition parse-tree.h:1927
Definition parse-tree.h:3438
Definition parse-tree.h:1884
Definition parse-tree.h:1330
Definition parse-tree.h:3443
Definition parse-tree.h:3448
Definition parse-tree.h:1991
Definition parse-tree.h:2146
Definition parse-tree.h:2137
Definition parse-tree.h:2130
Definition parse-tree.h:1312
Definition parse-tree.h:1365
Definition parse-tree.h:3388
Definition parse-tree.h:1113
Definition parse-tree.h:1426
Definition parse-tree.h:1433
Definition parse-tree.h:2168
Definition parse-tree.h:3000
Definition parse-tree.h:2001
Definition parse-tree.h:3382
Definition parse-tree.h:5771
Definition parse-tree.h:5765
Definition parse-tree.h:5762
Definition parse-tree.h:5756
Definition parse-tree.h:3249
Definition parse-tree.h:3246
Definition parse-tree.h:3229
Definition parse-tree.h:2410
Definition parse-tree.h:2409
Definition parse-tree.h:2391
Definition parse-tree.h:2397
Definition parse-tree.h:2380
Definition parse-tree.h:2378
Definition parse-tree.h:2199
Definition parse-tree.h:2184
Definition parse-tree.h:670
Definition parse-tree.h:1816
Definition parse-tree.h:854
Definition parse-tree.h:688
Definition parse-tree.h:686
Definition parse-tree.h:2668
Definition parse-tree.h:2667
Definition parse-tree.h:2176
Definition parse-tree.h:970
Definition parse-tree.h:1439
Definition parse-tree.h:1878
Definition parse-tree.h:1606
Definition parse-tree.h:1615
Definition parse-tree.h:1614
Definition parse-tree.h:3340
Definition parse-tree.h:3333
Definition parse-tree.h:3337
Definition parse-tree.h:3351
Definition parse-tree.h:3361
Definition parse-tree.h:3358
Definition parse-tree.h:3355
Definition parse-tree.h:3345
Definition parse-tree.h:3331
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:2496
Definition parse-tree.h:2224
Definition parse-tree.h:2645
Definition parse-tree.h:2643
Definition parse-tree.h:303
Definition parse-tree.h:2215
Definition parse-tree.h:2206
Definition parse-tree.h:1055
Definition parse-tree.h:1496
Definition parse-tree.h:1508
Definition parse-tree.h:1794
Definition parse-tree.h:1467
Definition parse-tree.h:1516
Definition parse-tree.h:1482
Definition parse-tree.h:1522
Definition parse-tree.h:1488
Definition parse-tree.h:1985
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:1833
Definition parse-tree.h:1534
Definition parse-tree.h:1533
Definition parse-tree.h:2311
Definition parse-tree.h:3130
Definition parse-tree.h:2331
Definition parse-tree.h:2193
Definition parse-tree.h:1380
Definition parse-tree.h:3300
Definition parse-tree.h:1226
Definition parse-tree.h:1212
Definition parse-tree.h:2550
Definition parse-tree.h:2556
Definition parse-tree.h:2564
Definition parse-tree.h:529
Definition parse-tree.h:554
Definition parse-tree.h:964
Definition parse-tree.h:951
Definition parse-tree.h:1746
Definition parse-tree.h:1719
Definition parse-tree.h:1760
Definition parse-tree.h:1725
Definition parse-tree.h:1764
Definition parse-tree.h:1701
Definition parse-tree.h:1716
Definition parse-tree.h:1752
Definition parse-tree.h:1734
Definition parse-tree.h:1740
Definition parse-tree.h:1743
Definition parse-tree.h:1706
Definition parse-tree.h:1731
Definition parse-tree.h:1728
Definition parse-tree.h:1713
Definition parse-tree.h:1755
Definition parse-tree.h:1737
Definition parse-tree.h:1695
Definition parse-tree.h:1692
Definition parse-tree.h:1749
Definition parse-tree.h:1686
Definition parse-tree.h:1710
Definition parse-tree.h:1722
Definition parse-tree.h:1689
Definition parse-tree.h:1682
Definition parse-tree.h:1041
Definition parse-tree.h:2087
Definition parse-tree.h:2103
Definition parse-tree.h:2081
Definition parse-tree.h:2116
Definition parse-tree.h:2093
Definition parse-tree.h:3234
Definition parse-tree.h:3119
Definition parse-tree.h:3266
Definition parse-tree.h:3013
Definition parse-tree.h:3028
Definition parse-tree.h:861
Definition parse-tree.h:2350
Definition parse-tree.h:2346
Definition parse-tree.h:2345
Definition parse-tree.h:2361
Definition parse-tree.h:2324
Definition parse-tree.h:1666
Definition parse-tree.h:1676
Definition parse-tree.h:419
Definition parse-tree.h:1590
Definition parse-tree.h:1599
Definition parse-tree.h:625
Definition parse-tree.h:1012
Definition parse-tree.h:2862
Definition parse-tree.h:2870
Definition parse-tree.h:2875
Definition parse-tree.h:2860
Definition parse-tree.h:2890
Definition parse-tree.h:2888
Definition parse-tree.h:790
Definition parse-tree.h:311
Definition parse-tree.h:1338
Definition parse-tree.h:1542
Definition parse-tree.h:3186
Definition parse-tree.h:3153
Definition parse-tree.h:3159
Definition parse-tree.h:3151
Definition parse-tree.h:3176
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:2703
Definition parse-tree.h:2701
Definition parse-tree.h:2615
Definition parse-tree.h:777
Definition parse-tree.h:658
Definition parse-tree.h:2288
Definition parse-tree.h:1291
Definition parse-tree.h:676
Definition parse-tree.h:1584
Definition parse-tree.h:886
Definition parse-tree.h:2260
Definition parse-tree.h:2256
Definition parse-tree.h:2591
Definition parse-tree.h:2590
Definition parse-tree.h:868
Definition parse-tree.h:319
Definition parse-tree.h:1258
Definition parse-tree.h:2278
Definition parse-tree.h:2276
Definition parse-tree.h:2909
Definition parse-tree.h:3404
Definition parse-tree.h:2048
Definition parse-tree.h:2933
Definition parse-tree.h:2923
Definition parse-tree.h:2944
Definition parse-tree.h:587
Definition parse-tree.h:1297
Definition parse-tree.h:639
Definition parse-tree.h:638
Definition parse-tree.h:2294
Definition parse-tree.h:2518
Definition parse-tree.h:1413
Definition parse-tree.h:4269
Definition parse-tree.h:4275
Definition parse-tree.h:4273
Definition parse-tree.h:4288
Definition parse-tree.h:4295
Definition parse-tree.h:4303
Definition parse-tree.h:4318
Definition parse-tree.h:5260
Definition parse-tree.h:4326
Definition parse-tree.h:4325
Definition parse-tree.h:4334
Definition parse-tree.h:4346
Definition parse-tree.h:5054
Definition parse-tree.h:5397
Definition parse-tree.h:5125
Definition parse-tree.h:4357
Definition parse-tree.h:5064
Definition parse-tree.h:4363
Definition parse-tree.h:5023
Definition parse-tree.h:5007
Definition parse-tree.h:4372
Definition parse-tree.h:3573
Definition parse-tree.h:4380
Definition parse-tree.h:5168
Definition parse-tree.h:4397
Definition parse-tree.h:4415
Definition parse-tree.h:4474
Definition parse-tree.h:4472
Definition parse-tree.h:4496
Definition parse-tree.h:4504
Definition parse-tree.h:4514
Definition parse-tree.h:4524
Definition parse-tree.h:4532
Definition parse-tree.h:3474
Definition parse-tree.h:5030
Definition parse-tree.h:4487
Definition parse-tree.h:4454
Definition parse-tree.h:4547
Definition parse-tree.h:4542
Definition parse-tree.h:5059
Definition parse-tree.h:5401
Definition parse-tree.h:5130
Definition parse-tree.h:4558
Definition parse-tree.h:5092
Definition parse-tree.h:4566
Definition parse-tree.h:4579
Definition parse-tree.h:4590
Definition parse-tree.h:4600
Definition parse-tree.h:4608
Definition parse-tree.h:4613
Definition parse-tree.h:4621
Definition parse-tree.h:4637
Definition parse-tree.h:4660
Definition parse-tree.h:4626
Definition parse-tree.h:4650
Definition parse-tree.h:4667
Definition parse-tree.h:3585
Definition parse-tree.h:4427
Definition parse-tree.h:4445
Definition parse-tree.h:4436
Definition parse-tree.h:4676
Definition parse-tree.h:4691
Definition parse-tree.h:4702
Definition parse-tree.h:4727
Definition parse-tree.h:4739
Definition parse-tree.h:4748
Definition parse-tree.h:5086
Definition parse-tree.h:4772
Definition parse-tree.h:4784
Definition parse-tree.h:4796
Definition parse-tree.h:3519
Definition parse-tree.h:3510
Definition parse-tree.h:3507
Definition parse-tree.h:4807
Definition parse-tree.h:4820
Definition parse-tree.h:4832
Definition parse-tree.h:4843
Definition parse-tree.h:3563
Definition parse-tree.h:4853
Definition parse-tree.h:4862
Definition parse-tree.h:4874
Definition parse-tree.h:4885
Definition parse-tree.h:4892
Definition parse-tree.h:3523
Definition parse-tree.h:3545
Definition parse-tree.h:3533
Definition parse-tree.h:3532
Definition parse-tree.h:4901
Definition parse-tree.h:4912
Definition parse-tree.h:4921
Definition parse-tree.h:4936
Definition parse-tree.h:4946
Definition parse-tree.h:3499
Definition parse-tree.h:3492
Definition parse-tree.h:4955
Definition parse-tree.h:4964
Definition parse-tree.h:4980
Definition parse-tree.h:5002
Definition parse-tree.h:4991
Definition parse-tree.h:3044
Definition parse-tree.h:5668
Definition parse-tree.h:5675
Definition parse-tree.h:5604
Definition parse-tree.h:5697
Definition parse-tree.h:5736
Definition parse-tree.h:5707
Definition parse-tree.h:5725
Definition parse-tree.h:5716
Definition parse-tree.h:5598
Definition parse-tree.h:5730
Definition parse-tree.h:5680
Definition parse-tree.h:5610
Definition parse-tree.h:5286
Definition parse-tree.h:5119
Definition parse-tree.h:5309
Definition parse-tree.h:5299
Definition parse-tree.h:5291
Definition parse-tree.h:5328
Definition parse-tree.h:5321
Definition parse-tree.h:5432
Definition parse-tree.h:5276
Definition parse-tree.h:5107
Definition parse-tree.h:5264
Definition parse-tree.h:5188
Definition parse-tree.h:5197
Definition parse-tree.h:5205
Definition parse-tree.h:5180
Definition parse-tree.h:5339
Definition parse-tree.h:5353
Definition parse-tree.h:5427
Definition parse-tree.h:5369
Definition parse-tree.h:5215
Definition parse-tree.h:5377
Definition parse-tree.h:5450
Definition parse-tree.h:5406
Definition parse-tree.h:5444
Definition parse-tree.h:5221
Definition parse-tree.h:5139
Definition parse-tree.h:5145
Definition parse-tree.h:5382
Definition parse-tree.h:5388
Definition parse-tree.h:5227
Definition parse-tree.h:5096
Definition parse-tree.h:376
Definition parse-tree.h:2780
Definition parse-tree.h:2743
Definition parse-tree.h:2969
Definition parse-tree.h:1788
Definition parse-tree.h:2014
Definition parse-tree.h:2013
Definition parse-tree.h:1552
Definition parse-tree.h:1974
Definition parse-tree.h:2806
Definition parse-tree.h:3089
Definition parse-tree.h:2764
Definition parse-tree.h:925
Definition parse-tree.h:3067
Definition parse-tree.h:1066
Definition parse-tree.h:1094
Definition parse-tree.h:1873
Definition parse-tree.h:1086
Definition parse-tree.h:1080
Definition parse-tree.h:1073
Definition parse-tree.h:3077
Definition parse-tree.h:3201
Definition parse-tree.h:3169
Definition parse-tree.h:571
Definition parse-tree.h:2727
Definition parse-tree.h:809
Definition parse-tree.h:2245
Definition parse-tree.h:2957
Definition parse-tree.h:2961
Definition parse-tree.h:2955
Definition parse-tree.h:1565
Definition parse-tree.h:295
Definition parse-tree.h:1651
Definition parse-tree.h:2368
Definition parse-tree.h:2433
Definition parse-tree.h:2432
Definition parse-tree.h:2446
Definition parse-tree.h:2444
Definition parse-tree.h:2423
Definition parse-tree.h:2480
Definition parse-tree.h:2478
Definition parse-tree.h:2458
Definition parse-tree.h:2124
Definition parse-tree.h:3292
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:1943
Definition parse-tree.h:359
Definition parse-tree.h:3310
Definition parse-tree.h:2510
Definition parse-tree.h:1863
Definition parse-tree.h:1203
Definition parse-tree.h:3425
Definition parse-tree.h:3397
Definition parse-tree.h:3420
Definition parse-tree.h:2975
Definition parse-tree.h:2986
Definition parse-tree.h:3138
Definition parse-tree.h:3276
Definition parse-tree.h:1642
Definition parse-tree.h:1825
Definition parse-tree.h:1633
Definition parse-tree.h:1811
Definition parse-tree.h:2529
Definition parse-tree.h:2528
Definition parse-tree.h:2541
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:1394
Definition parse-tree.h:2468
Definition parse-tree.h:2467
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:3413
Definition parse-tree.h:354
Definition parse-tree.h:2600
Definition parse-tree.h:796
Definition parse-tree.h:3053
Definition parse-tree.h:1841
Definition parse-tree.h:726
Definition parse-tree.h:731
Definition parse-tree.h:282
Definition parse-tree.h:2790
Definition parse-tree.h:2039
Definition parse-tree.h:2032
Definition parse-tree.h:2068
Definition parse-tree.h:2064
Definition parse-tree.h:2063
Definition parse-tree.h:2026
Definition parse-tree.h:2749
Definition parse-tree.h:3647
Definition parse-tree.h:3638
Definition parse-tree.h:3608
Definition parse-tree.h:3597
Definition parse-tree.h:3592
Definition parse-tree.h:3618
Definition parse-tree.h:3631
Definition parse-tree.h:3802
Definition parse-tree.h:3819
Definition parse-tree.h:3811
Definition parse-tree.h:3835
Definition parse-tree.h:3827
Definition parse-tree.h:3847
Definition parse-tree.h:3859
Definition parse-tree.h:3869
Definition parse-tree.h:3880
Definition parse-tree.h:3893
Definition parse-tree.h:3905
Definition parse-tree.h:3926
Definition parse-tree.h:3937
Definition parse-tree.h:3947
Definition parse-tree.h:3956
Definition parse-tree.h:3973
Definition parse-tree.h:3988
Definition parse-tree.h:3999
Definition parse-tree.h:4010
Definition parse-tree.h:4022
Definition parse-tree.h:4032
Definition parse-tree.h:4040
Definition parse-tree.h:4049
Definition parse-tree.h:4058
Definition parse-tree.h:4092
Definition parse-tree.h:4079
Definition parse-tree.h:4066
Definition parse-tree.h:4116
Definition parse-tree.h:4107
Definition parse-tree.h:4150
Definition parse-tree.h:4126
Definition parse-tree.h:4139
Definition parse-tree.h:4159
Definition parse-tree.h:4172
Definition parse-tree.h:4181
Definition parse-tree.h:4191
Definition parse-tree.h:4201
Definition parse-tree.h:4210
Definition parse-tree.h:4218
Definition parse-tree.h:4228
Definition parse-tree.h:4239
Definition parse-tree.h:4252
Definition parse-tree.h:3778
Definition parse-tree.h:3688
Definition parse-tree.h:3685
Definition parse-tree.h:3668
Definition parse-tree.h:3709
Definition parse-tree.h:3675
Definition parse-tree.h:3736
Definition parse-tree.h:3751
Definition parse-tree.h:3748
Definition parse-tree.h:3761
Definition parse-tree.h:3770