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;
2641WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2642WRAPPER_CLASS(ErrLabel, Label);
2647 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2648 Encoding, Form, Leading_Zero, Pad, Position, Round, Sign,
2649 Carriagecontrol, Convert, Dispose)
2651 std::tuple<Kind, ScalarDefaultCharExpr> t;
2653 WRAPPER_CLASS(Recl, ScalarIntExpr);
2654 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2655 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2656 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2661WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2671 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2675 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2681 UNION_CLASS_BOILERPLATE(
Format);
2682 std::variant<Expr, Label, Star> u;
2686WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2702WRAPPER_CLASS(EndLabel, Label);
2703WRAPPER_CLASS(EorLabel, Label);
2708 Kind, Advance, Blank, Decimal, Delim, Leading_Zero, Pad, Round, Sign)
2710 std::tuple<Kind, ScalarDefaultCharExpr> t;
2712 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2713 WRAPPER_CLASS(Pos, ScalarIntExpr);
2714 WRAPPER_CLASS(Rec, ScalarIntExpr);
2715 WRAPPER_CLASS(Size, ScalarIntVariable);
2717 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size,
2725 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2732 BOILERPLATE(ReadStmt);
2733 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2734 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2735 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2736 items(std::move(its)) {}
2737 std::optional<IoUnit> iounit;
2739 std::optional<Format> format;
2742 std::list<IoControlSpec> controls;
2743 std::list<InputItem> items;
2749 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2754 BOILERPLATE(WriteStmt);
2755 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2756 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2757 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2758 items(std::move(its)) {}
2759 std::optional<IoUnit> iounit;
2761 std::optional<Format> format;
2763 std::list<IoControlSpec> controls;
2764 std::list<OutputItem> items;
2770 std::tuple<Format, std::list<OutputItem>> t;
2781 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2786 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2793WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2796 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2797 MsgVariable, StatVariable>
2802WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2812 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2817WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2821WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2824WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2827WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2868 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2869 Direct, Encoding, Form, Formatted, Iomsg, Leading_Zero,
Name, Pad,
2870 Position, Read, Readwrite, Round, Sequential, Sign, Stream, Status,
2872 Carriagecontrol, Convert, Dispose)
2873 TUPLE_CLASS_BOILERPLATE(
CharVar);
2874 std::tuple<Kind, ScalarDefaultCharVariable> t;
2877 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2878 TUPLE_CLASS_BOILERPLATE(
IntVar);
2879 std::tuple<Kind, ScalarIntVariable> t;
2882 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2883 TUPLE_CLASS_BOILERPLATE(
LogVar);
2884 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2898 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2900 std::variant<std::list<InquireSpec>,
Iolength> u;
2907WRAPPER_CLASS(ProgramStmt,
Name);
2910WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2918 ExecutionPart, std::optional<InternalSubprogramPart>,
2924WRAPPER_CLASS(ModuleStmt,
Name);
2931 std::variant<common::Indirection<FunctionSubprogram>,
2941 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2945WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2951 TUPLE_CLASS_BOILERPLATE(
Module);
2962 UNION_CLASS_BOILERPLATE(
Rename);
2964 TUPLE_CLASS_BOILERPLATE(
Names);
2965 std::tuple<Name, Name> t;
2969 std::tuple<DefinedOpName, DefinedOpName> t;
2971 std::variant<Names, Operators> u;
2977 std::tuple<Name, std::optional<Name>> t;
2983 std::tuple<ParentIdentifier, Name> t;
2987WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3000WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3003WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3021 EMPTY_CLASS(Assignment);
3022 EMPTY_CLASS(ReadFormatted);
3023 EMPTY_CLASS(ReadUnformatted);
3024 EMPTY_CLASS(WriteFormatted);
3025 EMPTY_CLASS(WriteUnformatted);
3028 ReadUnformatted, WriteFormatted, WriteUnformatted>
3036 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3040struct InterfaceStmt {
3041 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3043 InterfaceStmt(Abstract x) : u{x} {}
3045 std::variant<std::optional<GenericSpec>, Abstract> u;
3051 UNION_CLASS_BOILERPLATE(
Only);
3052 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3060 BOILERPLATE(UseStmt);
3061 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3062 template <
typename A>
3063 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3064 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3065 std::optional<ModuleNature> nature;
3067 std::variant<std::list<Rename>, std::list<Only>> u;
3085 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3086 std::list<ProcDecl>>
3097 EMPTY_CLASS(Elemental);
3098 EMPTY_CLASS(Impure);
3100 EMPTY_CLASS(Non_Recursive);
3102 EMPTY_CLASS(Recursive);
3103 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3104 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3105 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3107 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3115 TUPLE_CLASS_BOILERPLATE(Suffix);
3117 : t(std::move(rn), std::move(lbs)) {}
3118 std::tuple<std::optional<Name>, std::optional<LanguageBindingSpec>> t;
3127 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3128 std::optional<Suffix>>
3133WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3138 std::variant<Name, Star> u;
3146 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3147 std::optional<LanguageBindingSpec>>
3152WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3167 std::tuple<Statement<SubroutineStmt>,
3171 std::variant<Function, Subroutine> u;
3176 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3178 std::tuple<Kind, std::list<Name>> t;
3184 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3188WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3194 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3200WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3203WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3209 std::variant<Name, ProcComponentRef> u;
3213WRAPPER_CLASS(AltReturnSpec, Label);
3219 WRAPPER_CLASS(PercentRef,
Expr);
3220 WRAPPER_CLASS(PercentVal,
Expr);
3221 UNION_CLASS_BOILERPLATE(ActualArg);
3223 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal>
3230 std::tuple<std::optional<Keyword>,
ActualArg> t;
3236 TUPLE_CLASS_BOILERPLATE(
Call);
3237 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3253 TUPLE_CLASS_BOILERPLATE(CallStmt);
3254 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3257 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3258 std::optional<ScalarIntExpr>>
3262 std::list<ActualArgSpec> &&args)
3263 : CallStmt(
Call{std::move(pd), std::move(args)}, std::move(ch)) {}
3264 std::tuple<Call, std::optional<Chevrons>> t;
3266 mutable TypedCall typedCall;
3290WRAPPER_CLASS(MpSubprogramStmt,
Name);
3293WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3308 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3312WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3341 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3344 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3348 std::tuple<common::Indirection<Designator>, uint64_t> t;
3350 EMPTY_CLASS(VectorAlways);
3353 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3355 std::tuple<std::uint64_t, Kind> t;
3359 std::tuple<Name, std::optional<std::uint64_t>> t;
3362 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3365 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3368 WRAPPER_CLASS_BOILERPLATE(
3371 EMPTY_CLASS(NoVector);
3372 EMPTY_CLASS(NoUnroll);
3373 EMPTY_CLASS(NoUnrollAndJam);
3374 EMPTY_CLASS(ForceInline);
3375 EMPTY_CLASS(Inline);
3376 EMPTY_CLASS(NoInline);
3378 EMPTY_CLASS(Unrecognized);
3380 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3382 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3390 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3396 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3398WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3405 std::variant<Statement<DataComponentDefStmt>,
3411 EMPTY_CLASS(MapStmt);
3412 EMPTY_CLASS(EndMapStmt);
3413 TUPLE_CLASS_BOILERPLATE(
Map);
3414 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3420 EMPTY_CLASS(UnionStmt);
3421 EMPTY_CLASS(EndUnionStmt);
3422 TUPLE_CLASS_BOILERPLATE(
Union);
3428 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3432 EMPTY_CLASS(EndStructureStmt);
3434 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3441WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3446 std::tuple<Expr, Label, Label, Label> t;
3451 std::tuple<Label, Name> t;
3456 std::tuple<Name, std::list<Label>> t;
3459WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3465#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3466 using basename::basename; \
3467 classname(basename &&b) : basename(std::move(b)) {} \
3468 using TupleTrait = std::true_type; \
3469 BOILERPLATE(classname)
3471#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3472 BOILERPLATE(classname); \
3473 using basename::basename; \
3474 classname(basename &&base) : basename(std::move(base)) {} \
3475 using WrapperTrait = std::true_type
3480struct OmpDirectiveName {
3482 constexpr OmpDirectiveName() =
default;
3483 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3484 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3488 OmpDirectiveName(
const Verbatim &name);
3489 using WrapperTrait = std::true_type;
3491 bool IsExecutionPart()
const;
3494 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3502 std::variant<TypeSpec, DeclarationTypeSpec> u;
3517 ENUM_CLASS(Kind, BlankCommonBlock);
3518 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3526 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3533 using EmptyTrait = std::true_type;
3541 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3544 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3558 WRAPPER_CLASS_BOILERPLATE(
3571 std::variant<DefinedOperator, ProcedureDesignator> u;
3580 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3592 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3597inline namespace arguments {
3600 std::variant<OmpObject, FunctionReference> u;
3604 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3616 std::tuple<OmpObject, OmpObject> t;
3627 std::tuple<std::string, TypeSpec, Name> t;
3640 std::optional<OmpCombinerExpression>>
3659inline namespace traits {
3696 TUPLE_CLASS_BOILERPLATE(
Complex);
3698 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3702 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3718 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3743 std::string ToString()
const;
3746 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3747 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3748 std::variant<Value, llvm::omp::Directive, std::string> u;
3759 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3761 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3768 std::string ToString()
const;
3770 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3779 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3786 WRAPPER_CLASS_BOILERPLATE(
3791#define MODIFIER_BOILERPLATE(...) \
3793 using Variant = std::variant<__VA_ARGS__>; \
3794 UNION_CLASS_BOILERPLATE(Modifier); \
3799#define MODIFIERS() std::optional<std::list<Modifier>>
3801inline namespace modifier {
3809 ENUM_CLASS(Value, Cgroup);
3818 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3854 ENUM_CLASS(Value, Always)
3866 ENUM_CLASS(Value, Always, Never, Auto)
3876 ENUM_CLASS(Value, Automap);
3887 ENUM_CLASS(Value, Simd)
3900 ENUM_CLASS(Value, Close)
3912 ENUM_CLASS(Value, Delete)
3933 ENUM_CLASS(Value, Sink, Source);
3944 using Value = common::OmpDependenceKind;
3946 std::tuple<Value, OmpObject> t;
3954 ENUM_CLASS(Value, Ancestor, Device_Num)
3980 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3995 ENUM_CLASS(Value, Present);
4006 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4017 ENUM_CLASS(Value, Target, Targetsync)
4031 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4039 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4047 ENUM_CLASS(Value, Conditional)
4056 ENUM_CLASS(Value, Ref, Uval, Val);
4086 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4087 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4099 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4114 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4123 ENUM_CLASS(Value, Reproducible, Unconstrained)
4136 using Extensions = std::list<PreferencePropertyExtension>;
4137 std::variant<ForeignRuntimeIdentifier, Extensions> u;
4147 using ForeignRuntimeIdentifier =
4148 OmpPreferenceSelector::ForeignRuntimeIdentifier;
4149 std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
4157 WRAPPER_CLASS_BOILERPLATE(
4166 ENUM_CLASS(Value, Strict)
4179 ENUM_CLASS(Value, Present)
4188 ENUM_CLASS(Value, Default, Inscan, Task);
4198 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4208 ENUM_CLASS(Value, Self)
4235 using Value = common::OmpDependenceKind;
4246 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4259 ENUM_CLASS(Value, Ompx_Hold)
4269using OmpDirectiveList = std::list<llvm::omp::Directive>;
4282 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4285 std::tuple<OmpAdjustOp, OmpObjectList> t;
4302 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4333 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4341 ENUM_CLASS(ActionTime, Compilation, Execution);
4342 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4353 using MemoryOrder = common::OmpMemoryOrderType;
4364 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4371 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4404 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4406 std::variant<DataSharingAttribute,
4423 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4426 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4435 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4444 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4461 OmpDependenceType::Value GetDepType()
const;
4464 EMPTY_CLASS(Source);
4466 std::variant<Sink, Source> u;
4481 OmpTaskDependenceType::Value GetTaskDepType()
const;
4482 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4486 std::variant<TaskDep, OmpDoacross> u;
4523 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4539 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4549 WRAPPER_CLASS_BOILERPLATE(
4556 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4573 using MemoryOrder = common::OmpMemoryOrderType;
4599 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4620 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4633 WRAPPER_CLASS_BOILERPLATE(
4646 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4699 MODIFIER_BOILERPLATE(
4710 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4747 WRAPPER_CLASS_BOILERPLATE(
4761EMPTY_CLASS(OmpNoOpenMPClause);
4766EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4771EMPTY_CLASS(OmpNoParallelismClause);
4781 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4793 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4805 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4815 ENUM_CLASS(Ordering, Concurrent)
4817 std::tuple<MODIFIERS(), Ordering> t;
4839 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4882 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4884 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4899 ENUM_CLASS(SevLevel, Fatal, Warning);
4921 std::tuple<MODIFIERS(), std::list<ScalarIntExpr>> t;
4928 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
4971 WRAPPER_CLASS_BOILERPLATE(
4989 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
4999 MODIFIER_BOILERPLATE(OmpContextSelector);
5000 std::tuple<MODIFIERS(),
5001 std::optional<common::Indirection<OmpDirectiveSpecification>>>
5015 llvm::omp::Clause Id()
const;
5017#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5018#include "llvm/Frontend/OpenMP/OMP.inc"
5023#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5024#include "llvm/Frontend/OpenMP/OMP.inc"
5030 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
5037 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo)
5042 return std::get<OmpDirectiveName>(t);
5044 llvm::omp::Directive DirId()
const {
5051 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5052 std::optional<OmpClauseList>, Flags>
5061 INHERITED_TUPLE_CLASS_BOILERPLATE(
5073 return std::get<OmpBeginDirective>(t);
5075 const std::optional<OmpEndDirective> &EndDir()
const {
5076 return std::get<std::optional<OmpEndDirective>>(t);
5080 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5084 WRAPPER_CLASS_BOILERPLATE(
5105 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5114 WRAPPER_CLASS_BOILERPLATE(
5132 INHERITED_TUPLE_CLASS_BOILERPLATE(
5147 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5155 return std::get<OmpBeginSectionsDirective>(t);
5157 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5158 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5165 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5166 std::optional<OmpEndSectionsDirective>>
5175 WRAPPER_CLASS_BOILERPLATE(
5187 WRAPPER_CLASS_BOILERPLATE(
5195 WRAPPER_CLASS_BOILERPLATE(
5204 WRAPPER_CLASS_BOILERPLATE(
5212 WRAPPER_CLASS_BOILERPLATE(
5293 INHERITED_TUPLE_CLASS_BOILERPLATE(
5298 llvm::omp::Clause GetKind()
const;
5299 bool IsCapture()
const;
5300 bool IsCompare()
const;
5306 static constexpr int None = 0;
5307 static constexpr int Read = 1;
5308 static constexpr int Write = 2;
5309 static constexpr int Update = Read | Write;
5310 static constexpr int Action = 3;
5311 static constexpr int IfTrue = 4;
5312 static constexpr int IfFalse = 8;
5313 static constexpr int Condition = 12;
5317 TypedAssignment assign;
5319 TypedExpr atom, cond;
5328 WRAPPER_CLASS_BOILERPLATE(
5389 WRAPPER_CLASS_BOILERPLATE(
5412struct OpenMPLoopConstruct {
5413 TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
5415 : t({std::move(a), Block{}, std::nullopt}) {}
5418 return std::get<OmpBeginLoopDirective>(t);
5420 const std::optional<OmpEndLoopDirective> &EndDir()
const {
5421 return std::get<std::optional<OmpEndLoopDirective>>(t);
5424 const OpenMPLoopConstruct *GetNestedConstruct()
const;
5427 std::tuple<OmpBeginLoopDirective, Block, std::optional<OmpEndLoopDirective>>
5451 INHERITED_TUPLE_CLASS_BOILERPLATE(
5457 using EmptyTrait = std::true_type;
5468WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5500 std::variant<Name, ScalarDefaultCharExpr> u;
5510 ENUM_CLASS(Modifier, ReadOnly, Zero)
5517 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5522 std::tuple<ReductionOperator, AccObjectList> t;
5527 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5531 WRAPPER_CLASS_BOILERPLATE(
5537 WRAPPER_CLASS_BOILERPLATE(
5544 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5552 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5561 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5568 WRAPPER_CLASS(Num, ScalarIntExpr);
5569 WRAPPER_CLASS(Dim, ScalarIntExpr);
5571 std::variant<Num, Dim, Static> u;
5576 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5581 std::tuple<bool, ScalarIntConstantExpr> t;
5587#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5588#include "llvm/Frontend/OpenACC/ACC.inc"
5593#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5594#include "llvm/Frontend/OpenACC/ACC.inc"
5600 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5613 std::tuple<Verbatim, AccObjectListWithModifier> t;
5619 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5624 std::tuple<AccLoopDirective, AccClauseList> t;
5631 std::tuple<AccBlockDirective, AccClauseList> t;
5640EMPTY_CLASS(AccEndAtomic);
5645 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5646 std::optional<AccEndAtomic>>
5653 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5654 std::optional<AccEndAtomic>>
5662 std::optional<AccEndAtomic>>
5671 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5676 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5683 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5689 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5695 std::tuple<AccCombinedDirective, AccClauseList> t;
5703struct OpenACCCombinedConstruct {
5704 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5707 : t({std::move(a), std::nullopt, std::nullopt}) {}
5708 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5709 std::optional<AccEndCombinedDirective>>
5716 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5721EMPTY_CLASS(AccEndLoop);
5722struct OpenACCLoopConstruct {
5723 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5725 : t({std::move(a), std::nullopt, std::nullopt}) {}
5726 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5727 std::optional<AccEndLoop>>
5739 std::tuple<AccStandaloneDirective, AccClauseList> t;
5765 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5770 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5773 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5774 std::optional<ScalarIntExpr>>
5780 std::tuple<std::optional<ScalarIntConstantExpr>,
5781 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5784 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:5667
Definition parse-tree.h:5643
Definition parse-tree.h:5659
Definition parse-tree.h:5651
Definition parse-tree.h:5628
Definition parse-tree.h:5692
Definition parse-tree.h:5622
Definition parse-tree.h:5498
Definition parse-tree.h:5471
Definition parse-tree.h:5599
Definition parse-tree.h:5584
Definition parse-tree.h:5579
Definition parse-tree.h:5487
Definition parse-tree.h:5509
Definition parse-tree.h:5492
Definition parse-tree.h:5504
Definition parse-tree.h:5536
Definition parse-tree.h:5530
Definition parse-tree.h:5634
Definition parse-tree.h:5698
Definition parse-tree.h:5575
Definition parse-tree.h:5566
Definition parse-tree.h:5476
Definition parse-tree.h:5515
Definition parse-tree.h:5520
Definition parse-tree.h:5463
Definition parse-tree.h:5559
Definition parse-tree.h:5555
Definition parse-tree.h:5551
Definition parse-tree.h:5481
Definition parse-tree.h:5547
Definition parse-tree.h:5541
Definition parse-tree.h:5525
Definition parse-tree.h:895
Definition parse-tree.h:1404
Definition parse-tree.h:496
Definition parse-tree.h:3228
Definition parse-tree.h:3218
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:3444
Definition parse-tree.h:1884
Definition parse-tree.h:1330
Definition parse-tree.h:3449
Definition parse-tree.h:3454
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:3394
Definition parse-tree.h:1113
Definition parse-tree.h:1426
Definition parse-tree.h:1433
Definition parse-tree.h:2168
Definition parse-tree.h:3006
Definition parse-tree.h:2001
Definition parse-tree.h:3388
Definition parse-tree.h:5777
Definition parse-tree.h:5771
Definition parse-tree.h:5768
Definition parse-tree.h:5762
Definition parse-tree.h:3255
Definition parse-tree.h:3252
Definition parse-tree.h:3235
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:2669
Definition parse-tree.h:2668
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:3346
Definition parse-tree.h:3339
Definition parse-tree.h:3343
Definition parse-tree.h:3357
Definition parse-tree.h:3367
Definition parse-tree.h:3364
Definition parse-tree.h:3361
Definition parse-tree.h:3351
Definition parse-tree.h:3337
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:2646
Definition parse-tree.h:2644
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:3136
Definition parse-tree.h:2331
Definition parse-tree.h:2193
Definition parse-tree.h:1380
Definition parse-tree.h:3306
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:3240
Definition parse-tree.h:3125
Definition parse-tree.h:3272
Definition parse-tree.h:3019
Definition parse-tree.h:3034
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:2867
Definition parse-tree.h:2876
Definition parse-tree.h:2881
Definition parse-tree.h:2865
Definition parse-tree.h:2896
Definition parse-tree.h:2894
Definition parse-tree.h:790
Definition parse-tree.h:311
Definition parse-tree.h:1338
Definition parse-tree.h:1542
Definition parse-tree.h:3192
Definition parse-tree.h:3159
Definition parse-tree.h:3165
Definition parse-tree.h:3157
Definition parse-tree.h:3182
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:2706
Definition parse-tree.h:2704
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:2915
Definition parse-tree.h:3410
Definition parse-tree.h:2048
Definition parse-tree.h:2939
Definition parse-tree.h:2929
Definition parse-tree.h:2950
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:4275
Definition parse-tree.h:4281
Definition parse-tree.h:4279
Definition parse-tree.h:4294
Definition parse-tree.h:4301
Definition parse-tree.h:4309
Definition parse-tree.h:4324
Definition parse-tree.h:5266
Definition parse-tree.h:4332
Definition parse-tree.h:4331
Definition parse-tree.h:4340
Definition parse-tree.h:4352
Definition parse-tree.h:5060
Definition parse-tree.h:5403
Definition parse-tree.h:5131
Definition parse-tree.h:4363
Definition parse-tree.h:5070
Definition parse-tree.h:4369
Definition parse-tree.h:5029
Definition parse-tree.h:5013
Definition parse-tree.h:4378
Definition parse-tree.h:3579
Definition parse-tree.h:4386
Definition parse-tree.h:5174
Definition parse-tree.h:4403
Definition parse-tree.h:4421
Definition parse-tree.h:4480
Definition parse-tree.h:4478
Definition parse-tree.h:4502
Definition parse-tree.h:4510
Definition parse-tree.h:4520
Definition parse-tree.h:4530
Definition parse-tree.h:4538
Definition parse-tree.h:3480
Definition parse-tree.h:5036
Definition parse-tree.h:4493
Definition parse-tree.h:4460
Definition parse-tree.h:4553
Definition parse-tree.h:4548
Definition parse-tree.h:5065
Definition parse-tree.h:5407
Definition parse-tree.h:5136
Definition parse-tree.h:4564
Definition parse-tree.h:5098
Definition parse-tree.h:4572
Definition parse-tree.h:4585
Definition parse-tree.h:4596
Definition parse-tree.h:4606
Definition parse-tree.h:4614
Definition parse-tree.h:4619
Definition parse-tree.h:4627
Definition parse-tree.h:4643
Definition parse-tree.h:4666
Definition parse-tree.h:4632
Definition parse-tree.h:4656
Definition parse-tree.h:4673
Definition parse-tree.h:3591
Definition parse-tree.h:4433
Definition parse-tree.h:4451
Definition parse-tree.h:4442
Definition parse-tree.h:4682
Definition parse-tree.h:4697
Definition parse-tree.h:4708
Definition parse-tree.h:4733
Definition parse-tree.h:4745
Definition parse-tree.h:4754
Definition parse-tree.h:5092
Definition parse-tree.h:4778
Definition parse-tree.h:4790
Definition parse-tree.h:4802
Definition parse-tree.h:3525
Definition parse-tree.h:3516
Definition parse-tree.h:3513
Definition parse-tree.h:4813
Definition parse-tree.h:4826
Definition parse-tree.h:4838
Definition parse-tree.h:4849
Definition parse-tree.h:3569
Definition parse-tree.h:4859
Definition parse-tree.h:4868
Definition parse-tree.h:4880
Definition parse-tree.h:4891
Definition parse-tree.h:4898
Definition parse-tree.h:3529
Definition parse-tree.h:3551
Definition parse-tree.h:3539
Definition parse-tree.h:3538
Definition parse-tree.h:4907
Definition parse-tree.h:4918
Definition parse-tree.h:4927
Definition parse-tree.h:4942
Definition parse-tree.h:4952
Definition parse-tree.h:3505
Definition parse-tree.h:3498
Definition parse-tree.h:4961
Definition parse-tree.h:4970
Definition parse-tree.h:4986
Definition parse-tree.h:5008
Definition parse-tree.h:4997
Definition parse-tree.h:3050
Definition parse-tree.h:5674
Definition parse-tree.h:5681
Definition parse-tree.h:5610
Definition parse-tree.h:5703
Definition parse-tree.h:5742
Definition parse-tree.h:5713
Definition parse-tree.h:5731
Definition parse-tree.h:5722
Definition parse-tree.h:5604
Definition parse-tree.h:5736
Definition parse-tree.h:5686
Definition parse-tree.h:5616
Definition parse-tree.h:5292
Definition parse-tree.h:5125
Definition parse-tree.h:5315
Definition parse-tree.h:5305
Definition parse-tree.h:5297
Definition parse-tree.h:5334
Definition parse-tree.h:5327
Definition parse-tree.h:5438
Definition parse-tree.h:5282
Definition parse-tree.h:5113
Definition parse-tree.h:5270
Definition parse-tree.h:5194
Definition parse-tree.h:5203
Definition parse-tree.h:5211
Definition parse-tree.h:5186
Definition parse-tree.h:5345
Definition parse-tree.h:5359
Definition parse-tree.h:5433
Definition parse-tree.h:5375
Definition parse-tree.h:5221
Definition parse-tree.h:5383
Definition parse-tree.h:5456
Definition parse-tree.h:5412
Definition parse-tree.h:5450
Definition parse-tree.h:5227
Definition parse-tree.h:5145
Definition parse-tree.h:5151
Definition parse-tree.h:5388
Definition parse-tree.h:5394
Definition parse-tree.h:5233
Definition parse-tree.h:5102
Definition parse-tree.h:376
Definition parse-tree.h:2784
Definition parse-tree.h:2747
Definition parse-tree.h:2975
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:2810
Definition parse-tree.h:3095
Definition parse-tree.h:2768
Definition parse-tree.h:925
Definition parse-tree.h:3073
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:3083
Definition parse-tree.h:3207
Definition parse-tree.h:3175
Definition parse-tree.h:571
Definition parse-tree.h:2731
Definition parse-tree.h:809
Definition parse-tree.h:2245
Definition parse-tree.h:2963
Definition parse-tree.h:2967
Definition parse-tree.h:2961
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:3298
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:3316
Definition parse-tree.h:2510
Definition parse-tree.h:1863
Definition parse-tree.h:1203
Definition parse-tree.h:3431
Definition parse-tree.h:3403
Definition parse-tree.h:3426
Definition parse-tree.h:2981
Definition parse-tree.h:2992
Definition parse-tree.h:3144
Definition parse-tree.h:3282
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:3419
Definition parse-tree.h:354
Definition parse-tree.h:2600
Definition parse-tree.h:796
Definition parse-tree.h:3059
Definition parse-tree.h:1841
Definition parse-tree.h:726
Definition parse-tree.h:731
Definition parse-tree.h:282
Definition parse-tree.h:2794
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:2753
Definition parse-tree.h:3653
Definition parse-tree.h:3644
Definition parse-tree.h:3614
Definition parse-tree.h:3603
Definition parse-tree.h:3598
Definition parse-tree.h:3624
Definition parse-tree.h:3637
Definition parse-tree.h:3808
Definition parse-tree.h:3825
Definition parse-tree.h:3817
Definition parse-tree.h:3841
Definition parse-tree.h:3833
Definition parse-tree.h:3853
Definition parse-tree.h:3865
Definition parse-tree.h:3875
Definition parse-tree.h:3886
Definition parse-tree.h:3899
Definition parse-tree.h:3911
Definition parse-tree.h:3932
Definition parse-tree.h:3943
Definition parse-tree.h:3953
Definition parse-tree.h:3962
Definition parse-tree.h:3979
Definition parse-tree.h:3994
Definition parse-tree.h:4005
Definition parse-tree.h:4016
Definition parse-tree.h:4028
Definition parse-tree.h:4038
Definition parse-tree.h:4046
Definition parse-tree.h:4055
Definition parse-tree.h:4064
Definition parse-tree.h:4098
Definition parse-tree.h:4085
Definition parse-tree.h:4072
Definition parse-tree.h:4122
Definition parse-tree.h:4113
Definition parse-tree.h:4156
Definition parse-tree.h:4132
Definition parse-tree.h:4145
Definition parse-tree.h:4165
Definition parse-tree.h:4178
Definition parse-tree.h:4187
Definition parse-tree.h:4197
Definition parse-tree.h:4207
Definition parse-tree.h:4216
Definition parse-tree.h:4224
Definition parse-tree.h:4234
Definition parse-tree.h:4245
Definition parse-tree.h:4258
Definition parse-tree.h:3784
Definition parse-tree.h:3694
Definition parse-tree.h:3691
Definition parse-tree.h:3674
Definition parse-tree.h:3715
Definition parse-tree.h:3681
Definition parse-tree.h:3742
Definition parse-tree.h:3757
Definition parse-tree.h:3754
Definition parse-tree.h:3767
Definition parse-tree.h:3776