31
31
32
32
#include < iterator>
33
33
34
- using namespace Fortran ::semantics;
35
-
36
34
template <typename T>
37
- MaybeIntExpr EvaluateIntExpr (SemanticsContext &context, const T &expr) {
38
- if (MaybeExpr maybeExpr{
35
+ Fortran::semantics::MaybeIntExpr
36
+ EvaluateIntExpr (Fortran::semantics::SemanticsContext &context, const T &expr) {
37
+ if (Fortran::semantics::MaybeExpr maybeExpr{
39
38
Fold (context.foldingContext (), AnalyzeExpr (context, expr))}) {
40
- if (auto *intExpr{Fortran::evaluate::UnwrapExpr<SomeIntExpr>(*maybeExpr)}) {
39
+ if (auto *intExpr{
40
+ Fortran::evaluate::UnwrapExpr<Fortran::semantics::SomeIntExpr>(
41
+ *maybeExpr)}) {
41
42
return std::move (*intExpr);
42
43
}
43
44
}
44
45
return std::nullopt ;
45
46
}
46
47
47
48
template <typename T>
48
- std::optional<std::int64_t > EvaluateInt64 (SemanticsContext &context,
49
- const T &expr) {
49
+ std::optional<std::int64_t >
50
+ EvaluateInt64 (Fortran::semantics::SemanticsContext &context, const T &expr) {
50
51
return Fortran::evaluate::ToInt64 (EvaluateIntExpr (context, expr));
51
52
}
52
53
@@ -602,7 +603,8 @@ static void convertLoopBounds(lower::AbstractConverter &converter,
602
603
// / contains a loop construct with an inner tiling construct.
603
604
void collectTileSizesFromOpenMPConstruct (
604
605
const parser::OpenMPConstruct *ompCons,
605
- llvm::SmallVectorImpl<int64_t > &tileSizes, SemanticsContext &semaCtx) {
606
+ llvm::SmallVectorImpl<int64_t > &tileSizes,
607
+ Fortran::semantics::SemanticsContext &semaCtx) {
606
608
if (!ompCons)
607
609
return ;
608
610
@@ -625,7 +627,7 @@ void collectTileSizesFromOpenMPConstruct(
625
627
// Get the size values from parse tree and convert to a vector
626
628
const auto &innerClauseList{
627
629
std::get<parser::OmpClauseList>(innerBegin.t )};
628
- for (const auto &clause : innerClauseList.v )
630
+ for (const auto &clause : innerClauseList.v ) {
629
631
if (const auto tclause{
630
632
std::get_if<parser::OmpClause::Sizes>(&clause.u )}) {
631
633
for (auto &tval : tclause->v ) {
@@ -634,6 +636,7 @@ void collectTileSizesFromOpenMPConstruct(
634
636
}
635
637
break ;
636
638
}
639
+ }
637
640
}
638
641
}
639
642
}
0 commit comments