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 BOILERPLATE(ImportStmt);
627 ImportStmt(common::ImportKind &&k) : kind{k} {}
628 ImportStmt(std::list<Name> &&n) : names(std::move(n)) {}
629 ImportStmt(common::ImportKind &&, std::list<Name> &&);
630 common::ImportKind kind{common::ImportKind::Default};
631 std::list<Name> names;
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);
688 struct LengthAndKind {
689 BOILERPLATE(LengthAndKind);
690 LengthAndKind(std::optional<TypeParamValue> &&l, ScalarIntConstantExpr &&k)
691 : length(std::move(l)), kind(std::move(k)) {}
692 std::optional<TypeParamValue> length;
693 ScalarIntConstantExpr kind;
696 : u{
LengthAndKind{std::make_optional(std::move(l)), std::move(k)}} {}
697 CharSelector(ScalarIntConstantExpr &&k, std::optional<TypeParamValue> &&l)
698 : u{LengthAndKind{std::move(l), std::move(k)}} {}
699 std::variant<LengthSelector, LengthAndKind> u;
711 Real(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
712 std::optional<KindSelector> kind;
714 EMPTY_CLASS(DoublePrecision);
716 BOILERPLATE(Complex);
717 Complex(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
718 std::optional<KindSelector> kind;
721 BOILERPLATE(Character);
722 Character(std::optional<CharSelector> &&s) : selector{std::move(s)} {}
723 std::optional<CharSelector> selector;
726 BOILERPLATE(Logical);
727 Logical(std::optional<KindSelector> &&k) : kind{std::move(k)} {}
728 std::optional<KindSelector> kind;
730 EMPTY_CLASS(DoubleComplex);
731 std::variant<IntegerTypeSpec, UnsignedTypeSpec,
Real, DoublePrecision,
739 std::variant<IntegerTypeSpec, IntrinsicTypeSpec::Real, UnsignedTypeSpec> u;
744 EMPTY_CLASS(PairVectorTypeSpec);
745 EMPTY_CLASS(QuadVectorTypeSpec);
746 std::variant<IntrinsicVectorTypeSpec, PairVectorTypeSpec, QuadVectorTypeSpec>
760 std::tuple<Name, std::list<TypeParamSpec>> t;
767 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u;
787 EMPTY_CLASS(ClassStar);
788 EMPTY_CLASS(TypeStar);
789 WRAPPER_CLASS(Record,
Name);
798 std::variant<std::uint64_t, Scalar<Integer<Constant<Name>>>> u;
805 std::tuple<CharBlock, std::optional<KindParam>> t;
811 std::tuple<CharBlock, std::optional<KindParam>> t;
817 std::tuple<CharBlock, std::optional<KindParam>> t;
821enum class Sign { Positive, Negative };
828struct RealLiteralConstant {
829 BOILERPLATE(RealLiteralConstant);
831 COPY_AND_ASSIGN_BOILERPLATE(Real);
835 RealLiteralConstant(
Real &&r, std::optional<KindParam> &&k)
836 : real{std::move(r)}, kind{std::move(k)} {}
838 std::optional<KindParam> kind;
863 std::tuple<ComplexPart, ComplexPart> t;
869 std::tuple<Sign, ComplexLiteralConstant> t;
877 std::tuple<std::optional<KindParam>, std::string> t;
878 std::string GetString()
const {
return std::get<std::string>(t); }
884 std::string GetString()
const {
return v; }
891 std::tuple<bool, std::optional<KindParam>> t;
901WRAPPER_CLASS(BOZLiteralConstant, std::string);
917 ENUM_CLASS(Kind, Public, Private)
923EMPTY_CLASS(Abstract);
927 WRAPPER_CLASS(Extends,
Name);
928 std::variant<Abstract, AccessSpec, BindC, Extends> u;
935 std::tuple<std::list<TypeAttrSpec>,
Name, std::list<Name>> t;
939EMPTY_CLASS(SequenceStmt);
943EMPTY_CLASS(PrivateStmt);
948 std::variant<PrivateStmt, SequenceStmt> u;
954 std::tuple<Name, std::optional<ScalarIntConstantExpr>> t;
962 std::tuple<IntegerTypeSpec, common::TypeParamAttr, std::list<TypeParamDecl>>
967WRAPPER_CLASS(SpecificationExpr, ScalarIntExpr);
974 std::tuple<std::optional<SpecificationExpr>, SpecificationExpr> t;
979WRAPPER_CLASS(DeferredCoshapeSpecList,
int);
987 std::tuple<std::list<ExplicitShapeSpec>, std::optional<SpecificationExpr>> t;
993 std::variant<DeferredCoshapeSpecList, ExplicitCoshapeSpec> u;
998WRAPPER_CLASS(DeferredShapeSpecList,
int);
1004 std::variant<std::list<ExplicitShapeSpec>, DeferredShapeSpecList> u;
1012EMPTY_CLASS(Allocatable);
1013EMPTY_CLASS(Pointer);
1014EMPTY_CLASS(Contiguous);
1035 std::variant<ConstantExpr, NullInit, InitialDataTarget,
1036 std::list<common::Indirection<DataStmtValue>>>
1046struct ComponentDecl {
1047 TUPLE_CLASS_BOILERPLATE(ComponentDecl);
1049 std::optional<ComponentArraySpec> &&aSpec,
1050 std::optional<CoarraySpec> &&coaSpec,
1051 std::optional<Initialization> &&init)
1052 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1053 std::move(length), std::move(init)} {}
1054 std::tuple<Name, std::optional<ComponentArraySpec>,
1055 std::optional<CoarraySpec>, std::optional<CharLength>,
1056 std::optional<Initialization>>
1064 std::tuple<Name, std::optional<ComponentArraySpec>, std::optional<CharLength>>
1070 std::variant<ComponentDecl, FillDecl> u;
1078 std::tuple<DeclarationTypeSpec, std::list<ComponentAttrSpec>,
1079 std::list<ComponentOrFill>>
1086WRAPPER_CLASS(Pass, std::optional<Name>);
1089 std::variant<AccessSpec, NoPass, Pass, Pointer> u;
1096 std::variant<NullInit, Name> u;
1103 std::variant<Name, DeclarationTypeSpec> u;
1109 std::tuple<Name, std::optional<ProcPointerInit>> t;
1117 std::tuple<std::optional<ProcInterface>, std::list<ProcComponentAttrSpec>,
1118 std::list<ProcDecl>>
1136 EMPTY_CLASS(Deferred);
1137 EMPTY_CLASS(Non_Overridable);
1138 std::variant<AccessSpec, Deferred, Non_Overridable, NoPass, Pass> u;
1144 std::tuple<Name, std::optional<Name>> t;
1154 struct WithoutInterface {
1155 BOILERPLATE(WithoutInterface);
1157 std::list<BindAttr> &&as, std::list<TypeBoundProcDecl> &&ds)
1158 : attributes(std::move(as)), declarations(std::move(ds)) {}
1159 std::list<BindAttr> attributes;
1160 std::list<TypeBoundProcDecl> declarations;
1162 struct WithInterface {
1163 BOILERPLATE(WithInterface);
1164 WithInterface(
Name &&n, std::list<BindAttr> &&as, std::list<Name> &&bs)
1165 : interfaceName(std::move(n)), attributes(std::move(as)),
1166 bindingNames(std::move(bs)) {}
1168 std::list<BindAttr> attributes;
1169 std::list<Name> bindingNames;
1171 std::variant<WithoutInterface, WithInterface> u;
1184WRAPPER_CLASS(FinalProcedureStmt, std::list<Name>);
1200 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1201 std::list<Statement<TypeBoundProcBinding>>>
1206WRAPPER_CLASS(EndTypeStmt, std::optional<Name>);
1214 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1215 std::list<Statement<PrivateOrSequence>>,
1216 std::list<Statement<ComponentDefStmt>>,
1229 std::tuple<std::optional<Keyword>, ComponentDataSource> t;
1235 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
1239EMPTY_CLASS(EnumDefStmt);
1244 std::tuple<NamedConstant, std::optional<ScalarIntConstantExpr>> t;
1248WRAPPER_CLASS(EnumeratorDefStmt, std::list<Enumerator>);
1251EMPTY_CLASS(EndEnumStmt);
1257 TUPLE_CLASS_BOILERPLATE(
EnumDef);
1258 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
1266 TUPLE_CLASS_BOILERPLATE(
Triplet);
1267 std::tuple<ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>> t;
1269 UNION_CLASS_BOILERPLATE(
AcValue);
1270 std::variant<Triplet, common::Indirection<Expr>,
1277 BOILERPLATE(AcSpec);
1278 AcSpec(std::optional<TypeSpec> &&ts, std::list<AcValue> &&xs)
1279 : type(std::move(ts)), values(std::move(xs)) {}
1280 explicit AcSpec(
TypeSpec &&ts) : type{std::move(ts)} {}
1281 std::optional<TypeSpec> type;
1282 std::list<AcValue> values;
1286WRAPPER_CLASS(ArrayConstructor,
AcSpec);
1291template <
typename VAR,
typename BOUND>
struct LoopBounds {
1292 LoopBounds(LoopBounds &&that) =
default;
1294 VAR &&name, BOUND &&lower, BOUND &&upper, std::optional<BOUND> &&step)
1295 : name{std::move(name)}, lower{std::move(lower)}, upper{std::move(upper)},
1296 step{std::move(step)} {}
1297 LoopBounds &operator=(LoopBounds &&) =
default;
1300 std::optional<BOUND> step;
1313 std::tuple<std::optional<IntegerTypeSpec>, Bounds> t;
1328 std::tuple<std::optional<ScalarDefaultCharConstantExpr>,
bool> t;
1334 std::tuple<NamedConstant, ConstantExpr> t;
1338WRAPPER_CLASS(ParameterStmt, std::list<NamedConstantDef>);
1341WRAPPER_CLASS(AssumedShapeSpec, std::optional<SpecificationExpr>);
1344WRAPPER_CLASS(AssumedImpliedSpec, std::optional<SpecificationExpr>);
1349 std::tuple<std::list<ExplicitShapeSpec>, AssumedImpliedSpec> t;
1356WRAPPER_CLASS(ImpliedShapeSpec, std::list<AssumedImpliedSpec>);
1359EMPTY_CLASS(AssumedRankSpec);
1367 std::variant<std::list<ExplicitShapeSpec>, std::list<AssumedShapeSpec>,
1368 DeferredShapeSpecList,
AssumedSizeSpec, ImpliedShapeSpec, AssumedRankSpec>
1374 ENUM_CLASS(Intent, In, Out, InOut)
1375 WRAPPER_CLASS_BOILERPLATE(
IntentSpec, Intent);
1385EMPTY_CLASS(Asynchronous);
1386EMPTY_CLASS(External);
1387EMPTY_CLASS(Intrinsic);
1388EMPTY_CLASS(Optional);
1389EMPTY_CLASS(Parameter);
1390EMPTY_CLASS(Protected);
1394EMPTY_CLASS(Volatile);
1399 Parameter, Pointer, Protected, Save, Target, Value, Volatile,
1400 common::CUDADataAttr>
1411 TUPLE_CLASS_BOILERPLATE(EntityDecl);
1412 EntityDecl(ObjectName &&name,
CharLength &&length,
1413 std::optional<ArraySpec> &&aSpec, std::optional<CoarraySpec> &&coaSpec,
1414 std::optional<Initialization> &&init)
1415 : t{std::move(name), std::move(aSpec), std::move(coaSpec),
1416 std::move(length), std::move(init)} {}
1417 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>,
1418 std::optional<CharLength>, std::optional<Initialization>>
1426 std::tuple<DeclarationTypeSpec, std::list<AttrSpec>, std::list<EntityDecl>> t;
1436 std::tuple<AccessSpec, std::list<AccessId>> t;
1445 std::tuple<ObjectName, std::optional<ArraySpec>, std::optional<CoarraySpec>>
1450WRAPPER_CLASS(AllocatableStmt, std::list<ObjectDecl>);
1453WRAPPER_CLASS(AsynchronousStmt, std::list<ObjectName>);
1458 ENUM_CLASS(Kind, Object, Common)
1459 std::tuple<Kind, Name> t;
1465 std::tuple<LanguageBindingSpec, std::list<BindEntity>> t;
1471 std::tuple<Name, CoarraySpec> t;
1475WRAPPER_CLASS(CodimensionStmt, std::list<CodimensionDecl>);
1478WRAPPER_CLASS(ContiguousStmt, std::list<ObjectName>);
1497 mutable TypedExpr typedExpr;
1498 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1511 std::variant<IntLiteralConstant, Scalar<Integer<ConstantSubobject>>> u;
1517 mutable std::int64_t repetitions{1};
1525 std::variant<Scalar<common::Indirection<Designator>>,
1538 std::tuple<std::list<DataIDoObject>, std::optional<IntegerTypeSpec>, Bounds>
1545 std::variant<common::Indirection<Variable>,
DataImpliedDo> u;
1551 std::tuple<std::list<DataStmtObject>, std::list<DataStmtValue>> t;
1555WRAPPER_CLASS(DataStmt, std::list<DataStmtSet>);
1563 std::tuple<Name, ArraySpec> t;
1565 WRAPPER_CLASS_BOILERPLATE(
DimensionStmt, std::list<Declaration>);
1571 std::tuple<IntentSpec, std::list<Name>> t;
1575WRAPPER_CLASS(OptionalStmt, std::list<Name>);
1581 std::tuple<Name, std::optional<DeferredShapeSpecList>> t;
1585WRAPPER_CLASS(PointerStmt, std::list<PointerDecl>);
1588WRAPPER_CLASS(ProtectedStmt, std::list<Name>);
1594 ENUM_CLASS(Kind, Entity, Common)
1595 std::tuple<Kind, Name> t;
1599WRAPPER_CLASS(SaveStmt, std::list<SavedEntity>);
1602WRAPPER_CLASS(TargetStmt, std::list<ObjectDecl>);
1605WRAPPER_CLASS(ValueStmt, std::list<Name>);
1608WRAPPER_CLASS(VolatileStmt, std::list<ObjectName>);
1613 std::tuple<Location, std::optional<Location>> t;
1619 std::tuple<DeclarationTypeSpec, std::list<LetterSpec>> t;
1628 ENUM_CLASS(ImplicitNoneNameSpec, External, Type)
1629 std::variant<std::list<ImplicitSpec>, std::list<ImplicitNoneNameSpec>> u;
1635 std::tuple<Name, std::optional<ArraySpec>> t;
1643 TUPLE_CLASS_BOILERPLATE(
Block);
1644 std::tuple<std::optional<Name>, std::list<CommonBlockObject>> t;
1646 BOILERPLATE(CommonStmt);
1647 CommonStmt(std::optional<Name> &&, std::list<CommonBlockObject> &&,
1648 std::list<Block> &&);
1650 std::list<Block> blocks;
1658WRAPPER_CLASS(EquivalenceStmt, std::list<std::list<EquivalenceObject>>);
1663 std::tuple<std::optional<ScalarIntExpr>, std::optional<ScalarIntExpr>> t;
1667using Subscript = ScalarIntExpr;
1672 std::tuple<std::optional<Subscript>, std::optional<Subscript>,
1673 std::optional<Subscript>>
1681 std::variant<IntExpr, SubscriptTriplet> u;
1685using Cosubscript = ScalarIntExpr;
1696 WRAPPER_CLASS(Team_Number, ScalarIntExpr);
1699 std::variant<Notify, Stat, TeamValue, Team_Number> u;
1706 std::tuple<std::list<Cosubscript>, std::list<ImageSelectorSpec>> t;
1711 UNION_CLASS_BOILERPLATE(Expr);
1715 using IntrinsicUnary::IntrinsicUnary;
1718 using IntrinsicUnary::IntrinsicUnary;
1721 using IntrinsicUnary::IntrinsicUnary;
1723 struct NOT :
public IntrinsicUnary {
1724 using IntrinsicUnary::IntrinsicUnary;
1731 std::tuple<DefinedOpName, common::Indirection<Expr>> t;
1739 using IntrinsicBinary::IntrinsicBinary;
1742 using IntrinsicBinary::IntrinsicBinary;
1745 using IntrinsicBinary::IntrinsicBinary;
1748 using IntrinsicBinary::IntrinsicBinary;
1751 using IntrinsicBinary::IntrinsicBinary;
1754 using IntrinsicBinary::IntrinsicBinary;
1757 using IntrinsicBinary::IntrinsicBinary;
1760 using IntrinsicBinary::IntrinsicBinary;
1763 using IntrinsicBinary::IntrinsicBinary;
1766 using IntrinsicBinary::IntrinsicBinary;
1769 using IntrinsicBinary::IntrinsicBinary;
1772 using IntrinsicBinary::IntrinsicBinary;
1775 using IntrinsicBinary::IntrinsicBinary;
1778 using IntrinsicBinary::IntrinsicBinary;
1781 using IntrinsicBinary::IntrinsicBinary;
1784 using IntrinsicBinary::IntrinsicBinary;
1789 using IntrinsicBinary::IntrinsicBinary;
1794 std::tuple<DefinedOpName, common::Indirection<Expr>,
1802 mutable TypedExpr typedExpr;
1806 std::variant<common::Indirection<CharLiteralConstantSubstring>,
1810 Add,
Subtract,
Concat,
LT,
LE,
EQ,
NE,
GE,
GT,
AND,
OR,
EQV,
NEQV,
1817 BOILERPLATE(PartRef);
1818 PartRef(
Name &&n, std::list<SectionSubscript> &&ss,
1819 std::optional<ImageSelector> &&is)
1820 : name{std::move(n)}, subscripts(std::move(ss)),
1821 imageSelector{std::move(is)} {}
1823 std::list<SectionSubscript> subscripts;
1824 std::optional<ImageSelector> imageSelector;
1829 UNION_CLASS_BOILERPLATE(DataRef);
1830 explicit DataRef(std::list<PartRef> &&);
1831 std::variant<Name, common::Indirection<StructureComponent>,
1847 std::tuple<DataRef, SubstringRange> t;
1852 std::tuple<CharLiteralConstant, SubstringRange> t;
1869 bool EndsInBareName()
const;
1871 std::variant<DataRef, Substring> u;
1877 mutable TypedExpr typedExpr;
1879 std::variant<common::Indirection<Designator>,
1897struct StructureComponent {
1898 BOILERPLATE(StructureComponent);
1900 : base{std::move(dr)}, component(std::move(n)) {}
1912struct CoindexedNamedObject {
1913 BOILERPLATE(CoindexedNamedObject);
1915 : base{std::move(dr)}, imageSelector{std::move(is)} {}
1921struct ArrayElement {
1922 BOILERPLATE(ArrayElement);
1923 ArrayElement(
DataRef &&dr, std::list<SectionSubscript> &&ss)
1924 : base{std::move(dr)}, subscripts(std::move(ss)) {}
1929 std::list<SectionSubscript> subscripts;
1935 mutable TypedExpr typedExpr;
1936 std::variant<Name, StructureComponent> u;
1941using BoundExpr = ScalarIntExpr;
1947 std::tuple<std::optional<BoundExpr>, BoundExpr> t;
1956 std::tuple<std::list<AllocateCoshapeSpec>, std::optional<BoundExpr>> t;
1964 std::tuple<AllocateObject, std::list<AllocateShapeSpec>,
1965 std::optional<AllocateCoarraySpec>>
1970WRAPPER_CLASS(StatVariable, ScalarIntVariable);
1974WRAPPER_CLASS(MsgVariable, ScalarDefaultCharVariable);
1980 std::variant<StatVariable, MsgVariable> u;
1995 std::variant<Mold, Source, StatOrErrmsg, Stream, Pinned> u;
2002 std::tuple<std::optional<TypeSpec>, std::list<Allocation>,
2003 std::list<AllocOpt>>
2011 mutable TypedExpr typedExpr;
2012 std::variant<Name, StructureComponent> u;
2016WRAPPER_CLASS(NullifyStmt, std::list<PointerObject>);
2022 std::tuple<std::list<AllocateObject>, std::list<StatOrErrmsg>> t;
2028 using TypedAssignment =
2030 mutable TypedAssignment typedAssignment;
2031 std::tuple<Variable, Expr> t;
2035WRAPPER_CLASS(BoundsSpec, BoundExpr);
2040 std::tuple<BoundExpr, BoundExpr> t;
2052 UNION_CLASS_BOILERPLATE(
Bounds);
2053 std::variant<std::list<BoundsRemapping>, std::list<BoundsSpec>> u;
2056 mutable AssignmentStmt::TypedAssignment typedAssignment;
2057 std::tuple<DataRef, Bounds, Expr> t;
2065 std::tuple<LogicalExpr, AssignmentStmt> t;
2071 std::tuple<std::optional<Name>, LogicalExpr> t;
2087 std::tuple<LogicalExpr, std::optional<Name>> t;
2091WRAPPER_CLASS(ElsewhereStmt, std::optional<Name>);
2094WRAPPER_CLASS(EndWhereStmt, std::optional<Name>);
2103 std::tuple<Statement<MaskedElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2107 std::tuple<Statement<ElsewhereStmt>, std::list<WhereBodyConstruct>> t;
2110 std::tuple<Statement<WhereConstructStmt>, std::list<WhereBodyConstruct>,
2111 std::list<MaskedElsewhere>, std::optional<Elsewhere>,
2126 std::variant<AssignmentStmt, PointerAssignmentStmt> u;
2132 std::tuple<common::Indirection<ConcurrentHeader>,
2149WRAPPER_CLASS(EndForallStmt, std::optional<Name>);
2155 std::tuple<Statement<ForallConstructStmt>, std::list<ForallBodyConstruct>,
2163 std::variant<Expr, Variable> u;
2169 std::tuple<Name, Selector> t;
2176 std::tuple<std::optional<Name>, std::list<Association>> t;
2180WRAPPER_CLASS(EndAssociateStmt, std::optional<Name>);
2189WRAPPER_CLASS(BlockStmt, std::optional<Name>);
2192WRAPPER_CLASS(EndBlockStmt, std::optional<Name>);
2207 std::tuple<Statement<BlockStmt>, BlockSpecificationPart, Block,
2215 std::tuple<CodimensionDecl, Selector> t;
2223 std::tuple<std::optional<Name>, TeamValue, std::list<CoarrayAssociation>,
2224 std::list<StatOrErrmsg>>
2232 std::tuple<std::list<StatOrErrmsg>, std::optional<Name>> t;
2245 std::tuple<std::optional<Name>, std::list<StatOrErrmsg>> t;
2249WRAPPER_CLASS(EndCriticalStmt, std::optional<Name>);
2263 std::tuple<Name, ScalarIntExpr, ScalarIntExpr, std::optional<ScalarIntExpr>>
2272 std::tuple<std::optional<IntegerTypeSpec>, std::list<ConcurrentControl>,
2273 std::optional<ScalarLogicalExpr>>
2284 Operator, Plus, Multiply, Max, Min, Iand, Ior, Ieor, And, Or, Eqv, Neqv)
2295 WRAPPER_CLASS(Local, std::list<Name>);
2296 WRAPPER_CLASS(LocalInit, std::list<Name>);
2298 TUPLE_CLASS_BOILERPLATE(
Reduce);
2300 std::tuple<Operator, std::list<Name>> t;
2302 WRAPPER_CLASS(Shared, std::list<Name>);
2303 EMPTY_CLASS(DefaultNone);
2304 std::variant<Local, LocalInit, Reduce, Shared, DefaultNone> u;
2317 std::tuple<ConcurrentHeader, std::list<LocalitySpec>> t;
2320 std::variant<Bounds, ScalarLogicalExpr, Concurrent> u;
2327 std::tuple<Label, std::optional<LoopControl>> t;
2333 std::tuple<std::optional<Name>, std::optional<Label>,
2334 std::optional<LoopControl>>
2339WRAPPER_CLASS(EndDoStmt, std::optional<Name>);
2350 const std::optional<LoopControl> &GetLoopControl()
const;
2351 bool IsDoNormal()
const;
2352 bool IsDoWhile()
const;
2353 bool IsDoConcurrent()
const;
2358WRAPPER_CLASS(CycleStmt, std::optional<Name>);
2363 std::tuple<std::optional<Name>, ScalarLogicalExpr> t;
2370 std::tuple<ScalarLogicalExpr, std::optional<Name>> t;
2374WRAPPER_CLASS(ElseStmt, std::optional<Name>);
2377WRAPPER_CLASS(EndIfStmt, std::optional<Name>);
2385 std::tuple<Statement<ElseIfStmt>, Block> t;
2389 std::tuple<Statement<ElseStmt>, Block> t;
2392 std::tuple<Statement<IfThenStmt>, Block, std::list<ElseIfBlock>,
2399 TUPLE_CLASS_BOILERPLATE(
IfStmt);
2400 std::tuple<ScalarLogicalExpr, UnlabeledStatement<ActionStmt>> t;
2419 Range(std::optional<CaseValue> &&l, std::optional<CaseValue> &&u)
2420 : lower{std::move(l)}, upper{std::move(u)} {}
2421 std::optional<CaseValue> lower, upper;
2423 std::variant<CaseValue, Range> u;
2427EMPTY_CLASS(Default);
2431 std::variant<std::list<CaseValueRange>, Default> u;
2437 std::tuple<CaseSelector, std::optional<Name>> t;
2443WRAPPER_CLASS(EndSelectStmt, std::optional<Name>);
2449 TUPLE_CLASS_BOILERPLATE(
Case);
2450 std::tuple<Statement<CaseStmt>, Block> t;
2453 std::tuple<Statement<SelectCaseStmt>, std::list<Case>,
2463 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2472 UNION_CLASS_BOILERPLATE(
Rank);
2473 std::variant<ScalarIntConstantExpr, Star, Default> u;
2476 std::tuple<Rank, std::optional<Name>> t;
2486 std::tuple<Statement<SelectRankCaseStmt>, Block> t;
2488 std::tuple<Statement<SelectRankStmt>, std::list<RankCase>,
2498 std::tuple<std::optional<Name>, std::optional<Name>,
Selector> t;
2507 UNION_CLASS_BOILERPLATE(
Guard);
2508 std::variant<TypeSpec, DerivedTypeSpec, Default> u;
2511 std::tuple<Guard, std::optional<Name>> t;
2520 std::tuple<Statement<TypeGuardStmt>, Block> t;
2522 std::tuple<Statement<SelectTypeStmt>, std::list<TypeCase>,
2528WRAPPER_CLASS(ExitStmt, std::optional<Name>);
2531WRAPPER_CLASS(GotoStmt, Label);
2536 std::tuple<std::list<Label>, ScalarIntExpr> t;
2549 ENUM_CLASS(Kind, Stop, ErrorStop)
2551 std::tuple<Kind, std::optional<StopCode>, std::optional<ScalarLogicalExpr>> t;
2558 std::tuple<Scalar<Variable>, std::list<EventWaitSpec>> t;
2562WRAPPER_CLASS(SyncAllStmt, std::list<StatOrErrmsg>);
2569 std::variant<IntExpr, Star> u;
2572 std::tuple<ImageSet, std::list<StatOrErrmsg>> t;
2576WRAPPER_CLASS(SyncMemoryStmt, std::list<StatOrErrmsg>);
2581 std::tuple<TeamValue, std::list<StatOrErrmsg>> t;
2590 std::tuple<EventVariable, std::list<StatOrErrmsg>> t;
2596 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2604 std::tuple<EventVariable, std::list<EventWaitSpec>> t;
2617 std::variant<ScalarIntExpr, StatOrErrmsg> u;
2620 std::tuple<ScalarIntExpr, TeamVariable, std::list<FormTeamSpec>> t;
2631 std::variant<Scalar<Logical<Variable>>,
StatOrErrmsg> u;
2634 std::tuple<LockVariable, std::list<LockStat>> t;
2640 std::tuple<LockVariable, std::list<StatOrErrmsg>> t;
2644WRAPPER_CLASS(FileUnitNumber, ScalarIntExpr);
2654 UNION_CLASS_BOILERPLATE(
IoUnit);
2655 std::variant<Variable, common::Indirection<Expr>, Star> u;
2659using FileNameExpr = ScalarDefaultCharExpr;
2678WRAPPER_CLASS(StatusExpr, ScalarDefaultCharExpr);
2679WRAPPER_CLASS(ErrLabel, Label);
2684 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2685 Encoding, Form, Pad, Position, Round, Sign,
2686 Carriagecontrol, Convert, Dispose)
2688 std::tuple<Kind, ScalarDefaultCharExpr> t;
2690 WRAPPER_CLASS(Recl, ScalarIntExpr);
2691 WRAPPER_CLASS(Newunit, ScalarIntVariable);
2692 std::variant<FileUnitNumber, FileNameExpr,
CharExpr, MsgVariable,
2693 StatVariable, Recl, Newunit, ErrLabel, StatusExpr>
2698WRAPPER_CLASS(OpenStmt, std::list<ConnectSpec>);
2708 std::variant<FileUnitNumber, StatVariable, MsgVariable, ErrLabel,
2712 WRAPPER_CLASS_BOILERPLATE(
CloseStmt, std::list<CloseSpec>);
2718 UNION_CLASS_BOILERPLATE(
Format);
2719 std::variant<Expr, Label, Star> u;
2723WRAPPER_CLASS(IdVariable, ScalarIntVariable);
2737WRAPPER_CLASS(EndLabel, Label);
2738WRAPPER_CLASS(EorLabel, Label);
2742 ENUM_CLASS(Kind, Advance, Blank, Decimal, Delim, Pad, Round, Sign)
2744 std::tuple<Kind, ScalarDefaultCharExpr> t;
2746 WRAPPER_CLASS(Asynchronous, ScalarDefaultCharConstantExpr);
2747 WRAPPER_CLASS(Pos, ScalarIntExpr);
2748 WRAPPER_CLASS(Rec, ScalarIntExpr);
2749 WRAPPER_CLASS(Size, ScalarIntVariable);
2751 ErrLabel, IdVariable, MsgVariable, StatVariable, Pos, Rec, Size>
2758 std::variant<Variable, common::Indirection<InputImpliedDo>> u;
2765 BOILERPLATE(ReadStmt);
2766 ReadStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2767 std::list<IoControlSpec> &&cs, std::list<InputItem> &&its)
2768 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2769 items(std::move(its)) {}
2770 std::optional<IoUnit> iounit;
2772 std::optional<Format> format;
2775 std::list<IoControlSpec> controls;
2776 std::list<InputItem> items;
2782 std::variant<Expr, common::Indirection<OutputImpliedDo>> u;
2787 BOILERPLATE(WriteStmt);
2788 WriteStmt(std::optional<IoUnit> &&i, std::optional<Format> &&f,
2789 std::list<IoControlSpec> &&cs, std::list<OutputItem> &&its)
2790 : iounit{std::move(i)}, format{std::move(f)}, controls(std::move(cs)),
2791 items(std::move(its)) {}
2792 std::optional<IoUnit> iounit;
2794 std::optional<Format> format;
2796 std::list<IoControlSpec> controls;
2797 std::list<OutputItem> items;
2803 std::tuple<Format, std::list<OutputItem>> t;
2814 std::tuple<std::list<InputItem>, IoImpliedDoControl> t;
2819 std::tuple<std::list<OutputItem>, IoImpliedDoControl> t;
2826WRAPPER_CLASS(IdExpr, ScalarIntExpr);
2829 std::variant<FileUnitNumber, EndLabel, EorLabel, ErrLabel, IdExpr,
2830 MsgVariable, StatVariable>
2835WRAPPER_CLASS(WaitStmt, std::list<WaitSpec>);
2845 std::variant<FileUnitNumber, MsgVariable, StatVariable, ErrLabel> u;
2850WRAPPER_CLASS(BackspaceStmt, std::list<PositionOrFlushSpec>);
2854WRAPPER_CLASS(EndfileStmt, std::list<PositionOrFlushSpec>);
2857WRAPPER_CLASS(RewindStmt, std::list<PositionOrFlushSpec>);
2860WRAPPER_CLASS(FlushStmt, std::list<PositionOrFlushSpec>);
2900 ENUM_CLASS(Kind, Access, Action, Asynchronous, Blank, Decimal, Delim,
2901 Direct, Encoding, Form, Formatted, Iomsg,
Name, Pad, Position, Read,
2902 Readwrite, Round, Sequential, Sign, Stream, Status, Unformatted, Write,
2903 Carriagecontrol, Convert, Dispose)
2904 TUPLE_CLASS_BOILERPLATE(
CharVar);
2905 std::tuple<Kind, ScalarDefaultCharVariable> t;
2908 ENUM_CLASS(Kind, Iostat, Nextrec, Number, Pos, Recl, Size)
2909 TUPLE_CLASS_BOILERPLATE(
IntVar);
2910 std::tuple<Kind, ScalarIntVariable> t;
2913 ENUM_CLASS(Kind, Exist, Named, Opened, Pending)
2914 TUPLE_CLASS_BOILERPLATE(
LogVar);
2915 std::tuple<Kind, Scalar<Logical<Variable>>> t;
2929 std::tuple<ScalarIntVariable, std::list<OutputItem>> t;
2931 std::variant<std::list<InquireSpec>,
Iolength> u;
2938WRAPPER_CLASS(ProgramStmt,
Name);
2941WRAPPER_CLASS(EndProgramStmt, std::optional<Name>);
2949 ExecutionPart, std::optional<InternalSubprogramPart>,
2955WRAPPER_CLASS(ModuleStmt,
Name);
2962 std::variant<common::Indirection<FunctionSubprogram>,
2972 std::tuple<Statement<ContainsStmt>, std::list<ModuleSubprogram>> t;
2976WRAPPER_CLASS(EndModuleStmt, std::optional<Name>);
2982 TUPLE_CLASS_BOILERPLATE(
Module);
2993 UNION_CLASS_BOILERPLATE(
Rename);
2995 TUPLE_CLASS_BOILERPLATE(
Names);
2996 std::tuple<Name, Name> t;
3000 std::tuple<DefinedOpName, DefinedOpName> t;
3002 std::variant<Names, Operators> u;
3008 std::tuple<Name, std::optional<Name>> t;
3014 std::tuple<ParentIdentifier, Name> t;
3018WRAPPER_CLASS(EndSubmoduleStmt, std::optional<Name>);
3031WRAPPER_CLASS(BlockDataStmt, std::optional<Name>);
3034WRAPPER_CLASS(EndBlockDataStmt, std::optional<Name>);
3052 EMPTY_CLASS(Assignment);
3053 EMPTY_CLASS(ReadFormatted);
3054 EMPTY_CLASS(ReadUnformatted);
3055 EMPTY_CLASS(WriteFormatted);
3056 EMPTY_CLASS(WriteUnformatted);
3059 ReadUnformatted, WriteFormatted, WriteUnformatted>
3067 std::tuple<std::optional<AccessSpec>,
GenericSpec, std::list<Name>> t;
3071struct InterfaceStmt {
3072 UNION_CLASS_BOILERPLATE(InterfaceStmt);
3074 InterfaceStmt(Abstract x) : u{x} {}
3076 std::variant<std::optional<GenericSpec>, Abstract> u;
3082 UNION_CLASS_BOILERPLATE(
Only);
3083 std::variant<common::Indirection<GenericSpec>,
Name,
Rename> u;
3091 BOILERPLATE(UseStmt);
3092 ENUM_CLASS(ModuleNature, Intrinsic, Non_Intrinsic)
3093 template <
typename A>
3094 UseStmt(std::optional<ModuleNature> &&nat,
Name &&n, std::list<A> &&x)
3095 : nature(std::move(nat)), moduleName(std::move(n)), u(std::move(x)) {}
3096 std::optional<ModuleNature> nature;
3098 std::variant<std::list<Rename>, std::list<Only>> u;
3116 std::tuple<std::optional<ProcInterface>, std::list<ProcAttrSpec>,
3117 std::list<ProcDecl>>
3128 EMPTY_CLASS(Elemental);
3129 EMPTY_CLASS(Impure);
3131 EMPTY_CLASS(Non_Recursive);
3133 EMPTY_CLASS(Recursive);
3134 WRAPPER_CLASS(Attributes, std::list<common::CUDASubprogramAttrs>);
3135 WRAPPER_CLASS(Launch_Bounds, std::list<ScalarIntConstantExpr>);
3136 WRAPPER_CLASS(Cluster_Dims, std::list<ScalarIntConstantExpr>);
3138 Pure, Recursive, Attributes, Launch_Bounds, Cluster_Dims>
3146 BOILERPLATE(Suffix);
3148 : binding(std::move(lbs)), resultName(std::move(rn)) {}
3149 Suffix(
Name &&rn, std::optional<LanguageBindingSpec> &&lbs)
3150 : binding(std::move(lbs)), resultName(std::move(rn)) {}
3151 std::optional<LanguageBindingSpec> binding;
3152 std::optional<Name> resultName;
3161 std::tuple<std::list<PrefixSpec>,
Name, std::list<Name>,
3162 std::optional<Suffix>>
3167WRAPPER_CLASS(EndFunctionStmt, std::optional<Name>);
3172 std::variant<Name, Star> u;
3180 std::tuple<std::list<PrefixSpec>,
Name, std::list<DummyArg>,
3181 std::optional<LanguageBindingSpec>>
3186WRAPPER_CLASS(EndSubroutineStmt, std::optional<Name>);
3201 std::tuple<Statement<SubroutineStmt>,
3205 std::variant<Function, Subroutine> u;
3210 ENUM_CLASS(Kind, ModuleProcedure, Procedure)
3212 std::tuple<Kind, std::list<Name>> t;
3218 std::variant<InterfaceBody, Statement<ProcedureStmt>> u;
3222WRAPPER_CLASS(EndInterfaceStmt, std::optional<GenericSpec>);
3228 std::tuple<Statement<InterfaceStmt>, std::list<InterfaceSpecification>,
3234WRAPPER_CLASS(ExternalStmt, std::list<Name>);
3237WRAPPER_CLASS(IntrinsicStmt, std::list<Name>);
3243 std::variant<Name, ProcComponentRef> u;
3247WRAPPER_CLASS(AltReturnSpec, Label);
3253 WRAPPER_CLASS(PercentRef,
Expr);
3254 WRAPPER_CLASS(PercentVal,
Expr);
3255 UNION_CLASS_BOILERPLATE(ActualArg);
3257 std::variant<common::Indirection<Expr>, AltReturnSpec, PercentRef, PercentVal>
3264 std::tuple<std::optional<Keyword>,
ActualArg> t;
3270 TUPLE_CLASS_BOILERPLATE(
Call);
3271 std::tuple<ProcedureDesignator, std::list<ActualArgSpec>> t;
3287 BOILERPLATE(CallStmt);
3288 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarExpr>);
3291 std::tuple<StarOrExpr, ScalarExpr, std::optional<ScalarExpr>,
3292 std::optional<ScalarIntExpr>>
3296 std::list<ActualArgSpec> &&args)
3297 : call{std::move(pd), std::move(args)}, chevrons{std::move(ch)} {}
3299 std::optional<Chevrons> chevrons;
3326WRAPPER_CLASS(MpSubprogramStmt,
Name);
3329WRAPPER_CLASS(EndMpSubprogramStmt, std::optional<Name>);
3344 std::tuple<Name, std::list<DummyArg>, std::optional<Suffix>> t;
3348WRAPPER_CLASS(ReturnStmt, std::optional<ScalarIntExpr>);
3377 std::tuple<std::optional<std::list<const char *>>,
Name> t;
3380 WRAPPER_CLASS_BOILERPLATE(
LoopCount, std::list<std::uint64_t>);
3384 std::tuple<common::Indirection<Designator>, uint64_t> t;
3386 EMPTY_CLASS(VectorAlways);
3389 ENUM_CLASS(Kind, Auto, Fixed, Scalable);
3391 std::tuple<std::uint64_t, Kind> t;
3395 std::tuple<Name, std::optional<std::uint64_t>> t;
3398 WRAPPER_CLASS_BOILERPLATE(
Unroll, std::optional<std::uint64_t>);
3401 WRAPPER_CLASS_BOILERPLATE(
UnrollAndJam, std::optional<std::uint64_t>);
3404 WRAPPER_CLASS_BOILERPLATE(
3407 EMPTY_CLASS(NoVector);
3408 EMPTY_CLASS(NoUnroll);
3409 EMPTY_CLASS(NoUnrollAndJam);
3410 EMPTY_CLASS(ForceInline);
3411 EMPTY_CLASS(Inline);
3412 EMPTY_CLASS(NoInline);
3414 EMPTY_CLASS(Unrecognized);
3416 std::variant<std::list<IgnoreTKR>,
LoopCount, std::list<AssumeAligned>,
3418 Unrecognized, NoVector, NoUnroll, NoUnrollAndJam, ForceInline, Inline,
3426 std::tuple<common::CUDADataAttr, std::list<Name>> t;
3432 std::tuple<ObjectName, ObjectName, std::optional<ArraySpec>> t;
3434WRAPPER_CLASS(BasedPointerStmt, std::list<BasedPointer>);
3441 std::variant<Statement<DataComponentDefStmt>,
3447 EMPTY_CLASS(MapStmt);
3448 EMPTY_CLASS(EndMapStmt);
3449 TUPLE_CLASS_BOILERPLATE(
Map);
3450 std::tuple<Statement<MapStmt>, std::list<StructureField>,
3456 EMPTY_CLASS(UnionStmt);
3457 EMPTY_CLASS(EndUnionStmt);
3458 TUPLE_CLASS_BOILERPLATE(
Union);
3464 std::tuple<std::optional<Name>, std::list<EntityDecl>> t;
3468 EMPTY_CLASS(EndStructureStmt);
3470 std::tuple<Statement<StructureStmt>, std::list<StructureField>,
3477WRAPPER_CLASS(OldParameterStmt, std::list<NamedConstantDef>);
3482 std::tuple<Expr, Label, Label, Label> t;
3487 std::tuple<Label, Name> t;
3492 std::tuple<Name, std::list<Label>> t;
3495WRAPPER_CLASS(PauseStmt, std::optional<StopCode>);
3501#define INHERITED_TUPLE_CLASS_BOILERPLATE(classname, basename) \
3502 using basename::basename; \
3503 classname(basename &&b) : basename(std::move(b)) {} \
3504 using TupleTrait = std::true_type; \
3505 BOILERPLATE(classname)
3507#define INHERITED_WRAPPER_CLASS_BOILERPLATE(classname, basename) \
3508 BOILERPLATE(classname); \
3509 using basename::basename; \
3510 classname(basename &&base) : basename(std::move(base)) {} \
3511 using WrapperTrait = std::true_type
3516struct OmpDirectiveName {
3518 constexpr OmpDirectiveName() =
default;
3519 constexpr OmpDirectiveName(
const OmpDirectiveName &) =
default;
3520 constexpr OmpDirectiveName(llvm::omp::Directive x) : v(x) {}
3524 OmpDirectiveName(
const Verbatim &name);
3525 using WrapperTrait = std::true_type;
3527 bool IsExecutionPart()
const;
3530 llvm::omp::Directive v{llvm::omp::Directive::OMPD_unknown};
3538 std::variant<TypeSpec, DeclarationTypeSpec> u;
3553 ENUM_CLASS(Kind, BlankCommonBlock);
3554 WRAPPER_CLASS_BOILERPLATE(
Invalid, Kind);
3562 WRAPPER_CLASS_BOILERPLATE(
OmpObjectList, std::list<OmpObject>);
3569 using EmptyTrait = std::true_type;
3577 std::variant<AssignmentStmt, CallStmt, common::Indirection<Expr>> u;
3580 std::tuple<std::list<OmpStylizedDeclaration>,
Instance> t;
3594 WRAPPER_CLASS_BOILERPLATE(
3607 std::variant<DefinedOperator, ProcedureDesignator> u;
3616 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3628 INHERITED_WRAPPER_CLASS_BOILERPLATE(
3633inline namespace arguments {
3636 std::variant<OmpObject, FunctionReference> u;
3640 WRAPPER_CLASS_BOILERPLATE(
OmpLocatorList, std::list<OmpLocator>);
3652 std::tuple<OmpObject, OmpObject> t;
3663 std::tuple<std::string, TypeSpec, Name> t;
3676 std::optional<OmpCombinerExpression>>
3695inline namespace traits {
3732 TUPLE_CLASS_BOILERPLATE(
Complex);
3734 std::list<common::Indirection<OmpTraitPropertyExtension>>>
3738 std::variant<OmpTraitPropertyName, ScalarExpr, Complex> u;
3754 std::variant<OmpTraitPropertyName, common::Indirection<OmpClause>,
3779 std::string ToString()
const;
3782 ENUM_CLASS(Value, Arch, Atomic_Default_Mem_Order, Condition, Device_Num,
3783 Extension, Isa, Kind, Requires, Simd, Uid, Vendor)
3784 std::variant<Value, llvm::omp::Directive, std::string> u;
3795 std::tuple<std::optional<OmpTraitScore>, std::list<OmpTraitProperty>> t;
3797 std::tuple<OmpTraitSelectorName, std::optional<Properties>> t;
3804 std::string ToString()
const;
3806 ENUM_CLASS(Value, Construct, Device, Implementation, Target_Device, User)
3815 std::tuple<OmpTraitSetSelectorName, std::list<OmpTraitSelector>> t;
3822 WRAPPER_CLASS_BOILERPLATE(
3827#define MODIFIER_BOILERPLATE(...) \
3829 using Variant = std::variant<__VA_ARGS__>; \
3830 UNION_CLASS_BOILERPLATE(Modifier); \
3835#define MODIFIERS() std::optional<std::list<Modifier>>
3837inline namespace modifier {
3845 ENUM_CLASS(Value, Cgroup);
3854 WRAPPER_CLASS_BOILERPLATE(
OmpAlignment, ScalarIntExpr);
3890 ENUM_CLASS(Value, Always)
3902 ENUM_CLASS(Value, Always, Never, Auto)
3912 ENUM_CLASS(Value, Automap);
3923 ENUM_CLASS(Value, Simd)
3936 ENUM_CLASS(Value, Close)
3948 ENUM_CLASS(Value, Delete)
3969 ENUM_CLASS(Value, Sink, Source);
3978 ENUM_CLASS(Value, Ancestor, Device_Num)
3996 INHERITED_WRAPPER_CLASS_BOILERPLATE(
4011 ENUM_CLASS(Value, Present);
4022 ENUM_CLASS(Value, Abort, Default_Mem, Null);
4032 std::variant<CharLiteralConstant, ScalarIntConstantExpr> u;
4040 WRAPPER_CLASS_BOILERPLATE(
4049 ENUM_CLASS(Value, Target, TargetSync)
4063 std::tuple<TypeDeclarationStmt, SubscriptTriplet> t;
4071 WRAPPER_CLASS_BOILERPLATE(
OmpIterator, std::list<OmpIteratorSpecifier>);
4079 ENUM_CLASS(Value, Conditional)
4088 ENUM_CLASS(Value, Ref, Uval, Val);
4110 ENUM_CLASS(Value, Alloc, Delete, From, Release, Storage, To, Tofrom);
4111 WRAPPER_CLASS_BOILERPLATE(
OmpMapType, Value);
4123 ENUM_CLASS(Value, Always, Close, Present, Ompx_Hold)
4138 ENUM_CLASS(Value, Monotonic, Nonmonotonic, Simd)
4147 ENUM_CLASS(Value, Reproducible, Unconstrained)
4156 ENUM_CLASS(Value, Strict)
4169 ENUM_CLASS(Value, Present)
4178 ENUM_CLASS(Value, Default, Inscan, Task);
4188 ENUM_CLASS(Value, Ref_Ptee, Ref_Ptr, Ref_Ptr_Ptee)
4198 ENUM_CLASS(Value, Self)
4225 ENUM_CLASS(Value, In, Out, Inout, Inoutset, Mutexinoutset, Depobj)
4236 ENUM_CLASS(Value, Aggregate, All, Allocatable, Pointer,
Scalar)
4249 ENUM_CLASS(Value, Ompx_Hold)
4259using OmpDirectiveList = std::list<llvm::omp::Directive>;
4272 ENUM_CLASS(Value, Nothing, Need_Device_Ptr)
4275 std::tuple<OmpAdjustOp, OmpObjectList> t;
4292 WRAPPER_CLASS_BOILERPLATE(
OmpAlignClause, ScalarIntConstantExpr);
4323 WRAPPER_CLASS_BOILERPLATE(
OmpAppendOp, std::list<OmpInteropType>);
4331 ENUM_CLASS(ActionTime, Compilation, Execution);
4332 WRAPPER_CLASS_BOILERPLATE(
OmpAtClause, ActionTime);
4343 using MemoryOrder = common::OmpMemoryOrderType;
4354 ENUM_CLASS(Binding, Parallel, Teams, Thread)
4361 std::tuple<OmpDirectiveName, std::optional<ScalarLogicalExpr>> t;
4386 ENUM_CLASS(DataSharingAttribute, Private, Firstprivate, Shared, None)
4388 std::variant<DataSharingAttribute,
4405 ENUM_CLASS(ImplicitBehavior, Alloc, To, From, Tofrom, Firstprivate, None,
4408 std::tuple<ImplicitBehavior, MODIFIERS()> t;
4417 std::tuple<DefinedOperator, ScalarIntConstantExpr> t;
4426 std::tuple<Name, std::optional<OmpIterationOffset>> t;
4443 OmpDependenceType::Value GetDepType()
const;
4446 EMPTY_CLASS(Source);
4448 std::variant<Sink, Source> u;
4463 OmpTaskDependenceType::Value GetTaskDepType()
const;
4464 TUPLE_CLASS_BOILERPLATE(
TaskDep);
4468 std::variant<TaskDep, OmpDoacross> u;
4505 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4521 ENUM_CLASS(DeviceTypeDescription, Any, Host, Nohost)
4531 WRAPPER_CLASS_BOILERPLATE(
4538 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4555 using MemoryOrder = common::OmpMemoryOrderType;
4581 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4602 WRAPPER_CLASS_BOILERPLATE(
OmpHintClause, ScalarIntConstantExpr);
4615 WRAPPER_CLASS_BOILERPLATE(
4628 std::tuple<MODIFIERS(), ScalarLogicalExpr> t;
4668 MODIFIER_BOILERPLATE(
4679 std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
4716 WRAPPER_CLASS_BOILERPLATE(
4730EMPTY_CLASS(OmpNoOpenMPClause);
4735EMPTY_CLASS(OmpNoOpenMPRoutinesClause);
4740EMPTY_CLASS(OmpNoParallelismClause);
4750 std::tuple<MODIFIERS(), ScalarIntExpr> t;
4760 ENUM_CLASS(Ordering, Concurrent)
4762 std::tuple<MODIFIERS(), Ordering> t;
4784 ENUM_CLASS(AffinityPolicy, Close, Master, Spread, Primary)
4827 ENUM_CLASS(Kind, Static, Dynamic, Guided, Auto, Runtime)
4829 std::tuple<MODIFIERS(), Kind, std::optional<ScalarIntExpr>> t;
4844 ENUM_CLASS(Severity, Fatal, Warning);
4862 ENUM_CLASS(ThreadsetPolicy, Omp_Pool, Omp_Team)
4905 WRAPPER_CLASS_BOILERPLATE(
4923 std::variant<OmpDependenceType, OmpTaskDependenceType> u;
4933 MODIFIER_BOILERPLATE(OmpContextSelector);
4934 std::tuple<MODIFIERS(),
4935 std::optional<common::Indirection<OmpDirectiveSpecification>>>
4963 llvm::omp::Clause Id()
const;
4965#define GEN_FLANG_CLAUSE_PARSER_CLASSES
4966#include "llvm/Frontend/OpenMP/OMP.inc"
4971#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
4972#include "llvm/Frontend/OpenMP/OMP.inc"
4978 WRAPPER_CLASS_BOILERPLATE(
OmpClauseList, std::list<OmpClause>);
4985 ENUM_CLASS(Flag, DeprecatedSyntax, CrossesLabelDo)
4990 return std::get<OmpDirectiveName>(t);
4992 llvm::omp::Directive DirId()
const {
4999 std::tuple<OmpDirectiveName, std::optional<OmpArgumentList>,
5000 std::optional<OmpClauseList>, Flags>
5009 INHERITED_TUPLE_CLASS_BOILERPLATE(
5021 return std::get<OmpBeginDirective>(t);
5023 const std::optional<OmpEndDirective> &EndDir()
const {
5024 return std::get<std::optional<OmpEndDirective>>(t);
5028 std::tuple<OmpBeginDirective, Block, std::optional<OmpEndDirective>> t;
5032 WRAPPER_CLASS_BOILERPLATE(
5053 std::variant<OmpErrorDirective, OmpNothingDirective> u;
5062 WRAPPER_CLASS_BOILERPLATE(
5080 INHERITED_TUPLE_CLASS_BOILERPLATE(
5095 std::tuple<std::optional<OmpDirectiveSpecification>, Block> t;
5103 return std::get<OmpBeginSectionsDirective>(t);
5105 const std::optional<OmpEndSectionsDirective> &EndDir()
const {
5106 return std::get<std::optional<OmpEndSectionsDirective>>(t);
5113 std::tuple<OmpBeginSectionsDirective, std::list<OpenMPConstruct>,
5114 std::optional<OmpEndSectionsDirective>>
5123 WRAPPER_CLASS_BOILERPLATE(
5135 WRAPPER_CLASS_BOILERPLATE(
5143 WRAPPER_CLASS_BOILERPLATE(
5152 WRAPPER_CLASS_BOILERPLATE(
5160 WRAPPER_CLASS_BOILERPLATE(
5241 INHERITED_TUPLE_CLASS_BOILERPLATE(
5246 llvm::omp::Clause GetKind()
const;
5247 bool IsCapture()
const;
5248 bool IsCompare()
const;
5254 static constexpr int None = 0;
5255 static constexpr int Read = 1;
5256 static constexpr int Write = 2;
5257 static constexpr int Update = Read | Write;
5258 static constexpr int Action = 3;
5259 static constexpr int IfTrue = 4;
5260 static constexpr int IfFalse = 8;
5261 static constexpr int Condition = 12;
5265 AssignmentStmt::TypedAssignment assign;
5267 TypedExpr atom, cond;
5276 WRAPPER_CLASS_BOILERPLATE(
5337 WRAPPER_CLASS_BOILERPLATE(
5360struct OpenMPLoopConstruct {
5361 TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
5363 : t({std::move(a), Block{}, std::nullopt}) {}
5366 return std::get<OmpBeginLoopDirective>(t);
5368 const std::optional<OmpEndLoopDirective> &EndDir()
const {
5369 return std::get<std::optional<OmpEndLoopDirective>>(t);
5372 const OpenMPLoopConstruct *GetNestedConstruct()
const;
5375 std::tuple<OmpBeginLoopDirective, Block, std::optional<OmpEndLoopDirective>>
5399 INHERITED_TUPLE_CLASS_BOILERPLATE(
5405 using EmptyTrait = std::true_type;
5416WRAPPER_CLASS(AccObjectList, std::list<AccObject>);
5448 std::variant<Name, ScalarDefaultCharExpr> u;
5458 ENUM_CLASS(Modifier, ReadOnly, Zero)
5465 std::tuple<std::optional<AccDataModifier>, AccObjectList> t;
5470 std::tuple<ReductionOperator, AccObjectList> t;
5475 std::tuple<std::optional<ScalarIntExpr>, std::list<ScalarIntExpr>> t;
5479 WRAPPER_CLASS_BOILERPLATE(
5485 WRAPPER_CLASS_BOILERPLATE(
5492 std::tuple<std::optional<ScalarIntConstantExpr>> t;
5500 WRAPPER_CLASS_BOILERPLATE(
AccSizeExpr, std::optional<ScalarIntExpr>);
5509 std::variant<std::optional<ScalarLogicalExpr>, AccObjectList> u;
5516 WRAPPER_CLASS(Num, ScalarIntExpr);
5517 WRAPPER_CLASS(Dim, ScalarIntExpr);
5519 std::variant<Num, Dim, Static> u;
5524 WRAPPER_CLASS_BOILERPLATE(
AccGangArgList, std::list<AccGangArg>);
5529 std::tuple<bool, ScalarIntConstantExpr> t;
5535#define GEN_FLANG_CLAUSE_PARSER_CLASSES
5536#include "llvm/Frontend/OpenACC/ACC.inc"
5541#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
5542#include "llvm/Frontend/OpenACC/ACC.inc"
5548 WRAPPER_CLASS_BOILERPLATE(
AccClauseList, std::list<AccClause>);
5561 std::tuple<Verbatim, AccObjectListWithModifier> t;
5567 std::tuple<Verbatim, std::optional<AccWaitArgument>,
AccClauseList> t;
5572 std::tuple<AccLoopDirective, AccClauseList> t;
5579 std::tuple<AccBlockDirective, AccClauseList> t;
5588EMPTY_CLASS(AccEndAtomic);
5593 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5594 std::optional<AccEndAtomic>>
5601 std::tuple<Verbatim, AccClauseList, Statement<AssignmentStmt>,
5602 std::optional<AccEndAtomic>>
5610 std::optional<AccEndAtomic>>
5619 std::tuple<Verbatim, AccClauseList, Stmt1, Stmt2, AccEndAtomic> t;
5624 std::variant<AccAtomicRead, AccAtomicWrite, AccAtomicCapture, AccAtomicUpdate>
5631 std::tuple<AccBeginBlockDirective, Block, AccEndBlockDirective> t;
5637 std::tuple<AccDeclarativeDirective, AccClauseList> t;
5643 std::tuple<AccCombinedDirective, AccClauseList> t;
5651struct OpenACCCombinedConstruct {
5652 TUPLE_CLASS_BOILERPLATE(OpenACCCombinedConstruct);
5655 : t({std::move(a), std::nullopt, std::nullopt}) {}
5656 std::tuple<AccBeginCombinedDirective, std::optional<DoConstruct>,
5657 std::optional<AccEndCombinedDirective>>
5664 std::variant<OpenACCStandaloneDeclarativeConstruct, OpenACCRoutineConstruct>
5669EMPTY_CLASS(AccEndLoop);
5670struct OpenACCLoopConstruct {
5671 TUPLE_CLASS_BOILERPLATE(OpenACCLoopConstruct);
5673 : t({std::move(a), std::nullopt, std::nullopt}) {}
5674 std::tuple<AccBeginLoopDirective, std::optional<DoConstruct>,
5675 std::optional<AccEndLoop>>
5687 std::tuple<AccStandaloneDirective, AccClauseList> t;
5713 std::tuple<Operator, std::list<Scalar<Variable>>> t;
5718 WRAPPER_CLASS(StarOrExpr, std::optional<ScalarIntExpr>);
5721 std::tuple<std::list<StarOrExpr>, std::list<StarOrExpr>,
5722 std::optional<ScalarIntExpr>>
5728 std::tuple<std::optional<ScalarIntConstantExpr>,
5729 std::optional<LaunchConfiguration>, std::list<CUFReduction>>
5732 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:1310
Definition parse-tree.h:1317
Definition parse-tree.h:1276
Definition parse-tree.h:1265
Definition parse-tree.h:1264
Definition parse-tree.h:5615
Definition parse-tree.h:5591
Definition parse-tree.h:5607
Definition parse-tree.h:5599
Definition parse-tree.h:5576
Definition parse-tree.h:5640
Definition parse-tree.h:5570
Definition parse-tree.h:5446
Definition parse-tree.h:5419
Definition parse-tree.h:5547
Definition parse-tree.h:5532
Definition parse-tree.h:5527
Definition parse-tree.h:5435
Definition parse-tree.h:5457
Definition parse-tree.h:5440
Definition parse-tree.h:5452
Definition parse-tree.h:5484
Definition parse-tree.h:5478
Definition parse-tree.h:5582
Definition parse-tree.h:5646
Definition parse-tree.h:5523
Definition parse-tree.h:5514
Definition parse-tree.h:5424
Definition parse-tree.h:5463
Definition parse-tree.h:5468
Definition parse-tree.h:5411
Definition parse-tree.h:5507
Definition parse-tree.h:5503
Definition parse-tree.h:5499
Definition parse-tree.h:5429
Definition parse-tree.h:5495
Definition parse-tree.h:5489
Definition parse-tree.h:5473
Definition parse-tree.h:916
Definition parse-tree.h:1434
Definition parse-tree.h:496
Definition parse-tree.h:3262
Definition parse-tree.h:3252
Definition parse-tree.h:1989
Definition parse-tree.h:1954
Definition parse-tree.h:1933
Definition parse-tree.h:1945
Definition parse-tree.h:2000
Definition parse-tree.h:1962
Definition parse-tree.h:3480
Definition parse-tree.h:1921
Definition parse-tree.h:1365
Definition parse-tree.h:3485
Definition parse-tree.h:3490
Definition parse-tree.h:2026
Definition parse-tree.h:2183
Definition parse-tree.h:2174
Definition parse-tree.h:2167
Definition parse-tree.h:1347
Definition parse-tree.h:1395
Definition parse-tree.h:3430
Definition parse-tree.h:1134
Definition parse-tree.h:1456
Definition parse-tree.h:1463
Definition parse-tree.h:2205
Definition parse-tree.h:3037
Definition parse-tree.h:2038
Definition parse-tree.h:3424
Definition parse-tree.h:5725
Definition parse-tree.h:5719
Definition parse-tree.h:5716
Definition parse-tree.h:5710
Definition parse-tree.h:3289
Definition parse-tree.h:3286
Definition parse-tree.h:3269
Definition parse-tree.h:2448
Definition parse-tree.h:2447
Definition parse-tree.h:2429
Definition parse-tree.h:2435
Definition parse-tree.h:2415
Definition parse-tree.h:2236
Definition parse-tree.h:2221
Definition parse-tree.h:670
Definition parse-tree.h:1850
Definition parse-tree.h:875
Definition parse-tree.h:688
Definition parse-tree.h:686
Definition parse-tree.h:2706
Definition parse-tree.h:2705
Definition parse-tree.h:2213
Definition parse-tree.h:991
Definition parse-tree.h:1469
Definition parse-tree.h:1912
Definition parse-tree.h:1633
Definition parse-tree.h:1642
Definition parse-tree.h:1641
Definition parse-tree.h:3382
Definition parse-tree.h:3375
Definition parse-tree.h:3379
Definition parse-tree.h:3393
Definition parse-tree.h:3403
Definition parse-tree.h:3400
Definition parse-tree.h:3397
Definition parse-tree.h:3387
Definition parse-tree.h:3373
Definition parse-tree.h:861
Definition parse-tree.h:853
Definition parse-tree.h:1002
Definition parse-tree.h:1015
Definition parse-tree.h:1123
Definition parse-tree.h:1068
Definition parse-tree.h:1227
Definition parse-tree.h:2534
Definition parse-tree.h:2261
Definition parse-tree.h:2683
Definition parse-tree.h:2681
Definition parse-tree.h:303
Definition parse-tree.h:2252
Definition parse-tree.h:2243
Definition parse-tree.h:1076
Definition parse-tree.h:1523
Definition parse-tree.h:1535
Definition parse-tree.h:1828
Definition parse-tree.h:1494
Definition parse-tree.h:1543
Definition parse-tree.h:1509
Definition parse-tree.h:1549
Definition parse-tree.h:1515
Definition parse-tree.h:2020
Definition parse-tree.h:437
Definition parse-tree.h:782
Definition parse-tree.h:777
Definition parse-tree.h:775
Definition parse-tree.h:327
Definition parse-tree.h:612
Definition parse-tree.h:1212
Definition parse-tree.h:757
Definition parse-tree.h:933
Definition parse-tree.h:1867
Definition parse-tree.h:1561
Definition parse-tree.h:1560
Definition parse-tree.h:2348
Definition parse-tree.h:3170
Definition parse-tree.h:2368
Definition parse-tree.h:2230
Definition parse-tree.h:1410
Definition parse-tree.h:3342
Definition parse-tree.h:1256
Definition parse-tree.h:1242
Definition parse-tree.h:2588
Definition parse-tree.h:2594
Definition parse-tree.h:2602
Definition parse-tree.h:529
Definition parse-tree.h:554
Definition parse-tree.h:985
Definition parse-tree.h:972
Definition parse-tree.h:1774
Definition parse-tree.h:1747
Definition parse-tree.h:1788
Definition parse-tree.h:1753
Definition parse-tree.h:1792
Definition parse-tree.h:1729
Definition parse-tree.h:1744
Definition parse-tree.h:1780
Definition parse-tree.h:1762
Definition parse-tree.h:1768
Definition parse-tree.h:1771
Definition parse-tree.h:1734
Definition parse-tree.h:1759
Definition parse-tree.h:1756
Definition parse-tree.h:1741
Definition parse-tree.h:1783
Definition parse-tree.h:1765
Definition parse-tree.h:1723
Definition parse-tree.h:1720
Definition parse-tree.h:1777
Definition parse-tree.h:1714
Definition parse-tree.h:1738
Definition parse-tree.h:1750
Definition parse-tree.h:1717
Definition parse-tree.h:1710
Definition parse-tree.h:1062
Definition parse-tree.h:2124
Definition parse-tree.h:2140
Definition parse-tree.h:2118
Definition parse-tree.h:2153
Definition parse-tree.h:2130
Definition parse-tree.h:3274
Definition parse-tree.h:3159
Definition parse-tree.h:3308
Definition parse-tree.h:3050
Definition parse-tree.h:3065
Definition parse-tree.h:882
Definition parse-tree.h:2387
Definition parse-tree.h:2383
Definition parse-tree.h:2382
Definition parse-tree.h:2398
Definition parse-tree.h:2361
Definition parse-tree.h:1694
Definition parse-tree.h:1704
Definition parse-tree.h:419
Definition parse-tree.h:1617
Definition parse-tree.h:1626
Definition parse-tree.h:625
Definition parse-tree.h:1033
Definition parse-tree.h:2899
Definition parse-tree.h:2907
Definition parse-tree.h:2912
Definition parse-tree.h:2897
Definition parse-tree.h:2927
Definition parse-tree.h:2925
Definition parse-tree.h:809
Definition parse-tree.h:311
Definition parse-tree.h:1373
Definition parse-tree.h:1569
Definition parse-tree.h:3226
Definition parse-tree.h:3193
Definition parse-tree.h:3199
Definition parse-tree.h:3191
Definition parse-tree.h:3216
Definition parse-tree.h:475
Definition parse-tree.h:463
Definition parse-tree.h:720
Definition parse-tree.h:715
Definition parse-tree.h:725
Definition parse-tree.h:709
Definition parse-tree.h:707
Definition parse-tree.h:2741
Definition parse-tree.h:2739
Definition parse-tree.h:2653
Definition parse-tree.h:796
Definition parse-tree.h:658
Definition parse-tree.h:2325
Definition parse-tree.h:1326
Definition parse-tree.h:676
Definition parse-tree.h:1611
Definition parse-tree.h:907
Definition parse-tree.h:2297
Definition parse-tree.h:2293
Definition parse-tree.h:2629
Definition parse-tree.h:2628
Definition parse-tree.h:889
Definition parse-tree.h:319
Definition parse-tree.h:1291
Definition parse-tree.h:2315
Definition parse-tree.h:2313
Definition parse-tree.h:2946
Definition parse-tree.h:3446
Definition parse-tree.h:2085
Definition parse-tree.h:2970
Definition parse-tree.h:2960
Definition parse-tree.h:2981
Definition parse-tree.h:587
Definition parse-tree.h:1332
Definition parse-tree.h:639
Definition parse-tree.h:638
Definition parse-tree.h:2331
Definition parse-tree.h:2556
Definition parse-tree.h:1443
Definition parse-tree.h:4265
Definition parse-tree.h:4271
Definition parse-tree.h:4269
Definition parse-tree.h:4284
Definition parse-tree.h:4291
Definition parse-tree.h:4299
Definition parse-tree.h:4314
Definition parse-tree.h:5214
Definition parse-tree.h:4322
Definition parse-tree.h:4321
Definition parse-tree.h:4330
Definition parse-tree.h:4342
Definition parse-tree.h:5008
Definition parse-tree.h:5351
Definition parse-tree.h:5079
Definition parse-tree.h:4353
Definition parse-tree.h:5018
Definition parse-tree.h:4359
Definition parse-tree.h:4977
Definition parse-tree.h:4961
Definition parse-tree.h:3615
Definition parse-tree.h:4368
Definition parse-tree.h:5122
Definition parse-tree.h:4385
Definition parse-tree.h:4403
Definition parse-tree.h:4462
Definition parse-tree.h:4460
Definition parse-tree.h:4484
Definition parse-tree.h:4492
Definition parse-tree.h:4502
Definition parse-tree.h:4512
Definition parse-tree.h:4520
Definition parse-tree.h:3516
Definition parse-tree.h:4984
Definition parse-tree.h:4475
Definition parse-tree.h:4442
Definition parse-tree.h:4535
Definition parse-tree.h:4530
Definition parse-tree.h:5013
Definition parse-tree.h:5355
Definition parse-tree.h:5084
Definition parse-tree.h:4546
Definition parse-tree.h:5046
Definition parse-tree.h:4554
Definition parse-tree.h:4567
Definition parse-tree.h:4578
Definition parse-tree.h:4588
Definition parse-tree.h:4596
Definition parse-tree.h:4601
Definition parse-tree.h:4609
Definition parse-tree.h:4625
Definition parse-tree.h:4635
Definition parse-tree.h:4614
Definition parse-tree.h:4947
Definition parse-tree.h:4642
Definition parse-tree.h:3627
Definition parse-tree.h:4415
Definition parse-tree.h:4433
Definition parse-tree.h:4424
Definition parse-tree.h:4651
Definition parse-tree.h:4666
Definition parse-tree.h:4677
Definition parse-tree.h:4702
Definition parse-tree.h:4714
Definition parse-tree.h:4723
Definition parse-tree.h:5040
Definition parse-tree.h:4747
Definition parse-tree.h:3561
Definition parse-tree.h:3552
Definition parse-tree.h:3549
Definition parse-tree.h:4758
Definition parse-tree.h:4771
Definition parse-tree.h:4783
Definition parse-tree.h:4794
Definition parse-tree.h:3605
Definition parse-tree.h:4804
Definition parse-tree.h:4813
Definition parse-tree.h:4825
Definition parse-tree.h:4836
Definition parse-tree.h:4843
Definition parse-tree.h:3565
Definition parse-tree.h:3587
Definition parse-tree.h:3575
Definition parse-tree.h:3574
Definition parse-tree.h:4852
Definition parse-tree.h:4861
Definition parse-tree.h:4876
Definition parse-tree.h:4886
Definition parse-tree.h:3541
Definition parse-tree.h:3534
Definition parse-tree.h:4895
Definition parse-tree.h:4904
Definition parse-tree.h:4920
Definition parse-tree.h:4956
Definition parse-tree.h:4931
Definition parse-tree.h:3081
Definition parse-tree.h:5622
Definition parse-tree.h:5629
Definition parse-tree.h:5558
Definition parse-tree.h:5651
Definition parse-tree.h:5690
Definition parse-tree.h:5661
Definition parse-tree.h:5679
Definition parse-tree.h:5670
Definition parse-tree.h:5552
Definition parse-tree.h:5684
Definition parse-tree.h:5634
Definition parse-tree.h:5564
Definition parse-tree.h:5240
Definition parse-tree.h:5073
Definition parse-tree.h:5263
Definition parse-tree.h:5253
Definition parse-tree.h:5245
Definition parse-tree.h:5282
Definition parse-tree.h:5275
Definition parse-tree.h:5386
Definition parse-tree.h:5230
Definition parse-tree.h:5061
Definition parse-tree.h:5218
Definition parse-tree.h:5142
Definition parse-tree.h:5151
Definition parse-tree.h:5159
Definition parse-tree.h:5134
Definition parse-tree.h:5293
Definition parse-tree.h:5307
Definition parse-tree.h:5381
Definition parse-tree.h:5323
Definition parse-tree.h:5169
Definition parse-tree.h:5331
Definition parse-tree.h:5404
Definition parse-tree.h:5360
Definition parse-tree.h:5398
Definition parse-tree.h:5175
Definition parse-tree.h:5093
Definition parse-tree.h:5099
Definition parse-tree.h:5336
Definition parse-tree.h:5342
Definition parse-tree.h:5181
Definition parse-tree.h:5050
Definition parse-tree.h:376
Definition parse-tree.h:2817
Definition parse-tree.h:2780
Definition parse-tree.h:3006
Definition parse-tree.h:2051
Definition parse-tree.h:2050
Definition parse-tree.h:1579
Definition parse-tree.h:2009
Definition parse-tree.h:2843
Definition parse-tree.h:3126
Definition parse-tree.h:2801
Definition parse-tree.h:946
Definition parse-tree.h:3104
Definition parse-tree.h:1087
Definition parse-tree.h:1115
Definition parse-tree.h:1907
Definition parse-tree.h:1107
Definition parse-tree.h:1101
Definition parse-tree.h:1094
Definition parse-tree.h:3114
Definition parse-tree.h:3241
Definition parse-tree.h:3209
Definition parse-tree.h:571
Definition parse-tree.h:2764
Definition parse-tree.h:830
Definition parse-tree.h:828
Definition parse-tree.h:2282
Definition parse-tree.h:2994
Definition parse-tree.h:2998
Definition parse-tree.h:2992
Definition parse-tree.h:1592
Definition parse-tree.h:295
Definition parse-tree.h:1679
Definition parse-tree.h:2405
Definition parse-tree.h:2471
Definition parse-tree.h:2470
Definition parse-tree.h:2484
Definition parse-tree.h:2482
Definition parse-tree.h:2461
Definition parse-tree.h:2518
Definition parse-tree.h:2516
Definition parse-tree.h:2496
Definition parse-tree.h:2161
Definition parse-tree.h:3334
Definition parse-tree.h:867
Definition parse-tree.h:802
Definition parse-tree.h:842
Definition parse-tree.h:398
Definition parse-tree.h:451
Definition parse-tree.h:1978
Definition parse-tree.h:359
Definition parse-tree.h:3352
Definition parse-tree.h:2548
Definition parse-tree.h:1897
Definition parse-tree.h:1233
Definition parse-tree.h:3467
Definition parse-tree.h:3439
Definition parse-tree.h:3462
Definition parse-tree.h:3012
Definition parse-tree.h:3023
Definition parse-tree.h:3178
Definition parse-tree.h:3318
Definition parse-tree.h:1670
Definition parse-tree.h:1859
Definition parse-tree.h:1661
Definition parse-tree.h:1845
Definition parse-tree.h:2567
Definition parse-tree.h:2566
Definition parse-tree.h:2579
Definition parse-tree.h:924
Definition parse-tree.h:1176
Definition parse-tree.h:1189
Definition parse-tree.h:1142
Definition parse-tree.h:1198
Definition parse-tree.h:1152
Definition parse-tree.h:1424
Definition parse-tree.h:2506
Definition parse-tree.h:2505
Definition parse-tree.h:952
Definition parse-tree.h:960
Definition parse-tree.h:751
Definition parse-tree.h:649
Definition parse-tree.h:764
Definition parse-tree.h:3455
Definition parse-tree.h:354
Definition parse-tree.h:2638
Definition parse-tree.h:815
Definition parse-tree.h:3090
Definition parse-tree.h:1875
Definition parse-tree.h:737
Definition parse-tree.h:742
Definition parse-tree.h:282
Definition parse-tree.h:2827
Definition parse-tree.h:2076
Definition parse-tree.h:2069
Definition parse-tree.h:2105
Definition parse-tree.h:2101
Definition parse-tree.h:2100
Definition parse-tree.h:2063
Definition parse-tree.h:2786
Definition parse-tree.h:3689
Definition parse-tree.h:3680
Definition parse-tree.h:3650
Definition parse-tree.h:3639
Definition parse-tree.h:3634
Definition parse-tree.h:3660
Definition parse-tree.h:3673
Definition parse-tree.h:3844
Definition parse-tree.h:3861
Definition parse-tree.h:3853
Definition parse-tree.h:3877
Definition parse-tree.h:3869
Definition parse-tree.h:3889
Definition parse-tree.h:3901
Definition parse-tree.h:3911
Definition parse-tree.h:3922
Definition parse-tree.h:3935
Definition parse-tree.h:3947
Definition parse-tree.h:3968
Definition parse-tree.h:3977
Definition parse-tree.h:3995
Definition parse-tree.h:4010
Definition parse-tree.h:4021
Definition parse-tree.h:4039
Definition parse-tree.h:4030
Definition parse-tree.h:4048
Definition parse-tree.h:4060
Definition parse-tree.h:4070
Definition parse-tree.h:4078
Definition parse-tree.h:4087
Definition parse-tree.h:4122
Definition parse-tree.h:4109
Definition parse-tree.h:4096
Definition parse-tree.h:4146
Definition parse-tree.h:4137
Definition parse-tree.h:4155
Definition parse-tree.h:4168
Definition parse-tree.h:4177
Definition parse-tree.h:4187
Definition parse-tree.h:4197
Definition parse-tree.h:4206
Definition parse-tree.h:4214
Definition parse-tree.h:4224
Definition parse-tree.h:4235
Definition parse-tree.h:4248
Definition parse-tree.h:3820
Definition parse-tree.h:3730
Definition parse-tree.h:3727
Definition parse-tree.h:3710
Definition parse-tree.h:3751
Definition parse-tree.h:3717
Definition parse-tree.h:3778
Definition parse-tree.h:3793
Definition parse-tree.h:3790
Definition parse-tree.h:3803
Definition parse-tree.h:3812