Lines Matching +full:flang +full:- +full:build

1 //===-- lib/Semantics/program-tree.cpp ------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "flang/Semantics/program-tree.h"
10 #include "flang/Common/idioms.h"
11 #include "flang/Parser/char-block.h"
12 #include "flang/Semantics/scope.h"
13 #include "flang/Semantics/semantics.h"
24 node.AddEntry(entryStmt->statement.value());
32 node.AddEntry(entryStmt->statement.value());
43 node.AddEntry(entryStmt->statement.value());
49 // identically-named subprograms as specific procedures.
58 &spec->u)}) {
59 const parser::GenericStmt &genericStmt{generic->statement.value()};
64 &spec->u)}) {
65 const parser::InterfaceBlock &interfaceBlock{interface->value()};
71 if (genericSpec && genericSpec->has_value()) {
92 std::get<std::list<parser::InternalSubprogram>>(subps->t)) {
95 if (auto child{ProgramTree::Build(y.value(), context)}) {
120 std::get<std::list<parser::ModuleSubprogram>>(subps->t)) {
123 if (auto child{ProgramTree::Build(y.value(), context)}) {
133 ProgramTree &ProgramTree::Build(
136 [&](const auto &y) -> ProgramTree & {
137 auto node{Build(y.value(), context)};
144 std::optional<ProgramTree> ProgramTree::Build(
151 ? BuildSubprogramTree(stmt->statement.v, context, x).set_stmt(*stmt)
156 std::optional<ProgramTree> ProgramTree::Build(
164 if (suffix->binding) {
165 bindingSpec = &*suffix->binding;
174 std::optional<ProgramTree> ProgramTree::Build(
190 std::optional<ProgramTree> ProgramTree::Build(
199 std::optional<ProgramTree> ProgramTree::Build(
207 std::optional<ProgramTree> ProgramTree::Build(
215 std::optional<ProgramTree> ProgramTree::Build(
226 std::optional<ProgramTree> ProgramTree::Build(
234 std::optional<ProgramTree> ProgramTree::Build(
236 DIE("ProgramTree::Build() called for OpenACCRoutineConstruct");
242 return std::get<parser::ParentIdentifier>(stmt->statement.t);
264 return &std::get<ListType>(x->statement.t);
267 return &std::get<ListType>(x->statement.t);
269 [](const auto *) -> const ListType * { return nullptr; },