|
22 | 22 | }
|
23 | 23 |
|
24 | 24 | using ReductionOpsSet =
|
25 |
| - Fortran::common::EnumSet<Fortran::parser::AccReductionOperator::Operator, |
26 |
| - Fortran::parser::AccReductionOperator::Operator_enumSize>; |
| 25 | + Fortran::common::EnumSet<Fortran::parser::ReductionOperator::Operator, |
| 26 | + Fortran::parser::ReductionOperator::Operator_enumSize>; |
27 | 27 |
|
28 | 28 | static ReductionOpsSet reductionIntegerSet{
|
29 |
| - Fortran::parser::AccReductionOperator::Operator::Plus, |
30 |
| - Fortran::parser::AccReductionOperator::Operator::Multiply, |
31 |
| - Fortran::parser::AccReductionOperator::Operator::Max, |
32 |
| - Fortran::parser::AccReductionOperator::Operator::Min, |
33 |
| - Fortran::parser::AccReductionOperator::Operator::Iand, |
34 |
| - Fortran::parser::AccReductionOperator::Operator::Ior, |
35 |
| - Fortran::parser::AccReductionOperator::Operator::Ieor}; |
| 29 | + Fortran::parser::ReductionOperator::Operator::Plus, |
| 30 | + Fortran::parser::ReductionOperator::Operator::Multiply, |
| 31 | + Fortran::parser::ReductionOperator::Operator::Max, |
| 32 | + Fortran::parser::ReductionOperator::Operator::Min, |
| 33 | + Fortran::parser::ReductionOperator::Operator::Iand, |
| 34 | + Fortran::parser::ReductionOperator::Operator::Ior, |
| 35 | + Fortran::parser::ReductionOperator::Operator::Ieor}; |
36 | 36 |
|
37 | 37 | static ReductionOpsSet reductionRealSet{
|
38 |
| - Fortran::parser::AccReductionOperator::Operator::Plus, |
39 |
| - Fortran::parser::AccReductionOperator::Operator::Multiply, |
40 |
| - Fortran::parser::AccReductionOperator::Operator::Max, |
41 |
| - Fortran::parser::AccReductionOperator::Operator::Min}; |
| 38 | + Fortran::parser::ReductionOperator::Operator::Plus, |
| 39 | + Fortran::parser::ReductionOperator::Operator::Multiply, |
| 40 | + Fortran::parser::ReductionOperator::Operator::Max, |
| 41 | + Fortran::parser::ReductionOperator::Operator::Min}; |
42 | 42 |
|
43 | 43 | static ReductionOpsSet reductionComplexSet{
|
44 |
| - Fortran::parser::AccReductionOperator::Operator::Plus, |
45 |
| - Fortran::parser::AccReductionOperator::Operator::Multiply}; |
| 44 | + Fortran::parser::ReductionOperator::Operator::Plus, |
| 45 | + Fortran::parser::ReductionOperator::Operator::Multiply}; |
46 | 46 |
|
47 | 47 | static ReductionOpsSet reductionLogicalSet{
|
48 |
| - Fortran::parser::AccReductionOperator::Operator::And, |
49 |
| - Fortran::parser::AccReductionOperator::Operator::Or, |
50 |
| - Fortran::parser::AccReductionOperator::Operator::Eqv, |
51 |
| - Fortran::parser::AccReductionOperator::Operator::Neqv}; |
| 48 | + Fortran::parser::ReductionOperator::Operator::And, |
| 49 | + Fortran::parser::ReductionOperator::Operator::Or, |
| 50 | + Fortran::parser::ReductionOperator::Operator::Eqv, |
| 51 | + Fortran::parser::ReductionOperator::Operator::Neqv}; |
52 | 52 |
|
53 | 53 | namespace Fortran::semantics {
|
54 | 54 |
|
@@ -670,7 +670,7 @@ void AccStructureChecker::Enter(const parser::AccClause::Reduction &reduction) {
|
670 | 670 | // The following check that the reduction operator is supported with the given
|
671 | 671 | // type.
|
672 | 672 | const parser::AccObjectListWithReduction &list{reduction.v};
|
673 |
| - const auto &op{std::get<parser::AccReductionOperator>(list.t)}; |
| 673 | + const auto &op{std::get<parser::ReductionOperator>(list.t)}; |
674 | 674 | const auto &objects{std::get<parser::AccObjectList>(list.t)};
|
675 | 675 |
|
676 | 676 | for (const auto &object : objects.v) {
|
|
0 commit comments