@@ -1012,7 +1012,7 @@ static void lowerExplicitLowerBounds(
1012
1012
auto lb = builder.createConvert (
1013
1013
loc, idxTy, genScalarValue (converter, loc, expr, symMap, stmtCtx));
1014
1014
result.emplace_back (lb);
1015
- } else if (!spec->lbound ().isDeferred ()) {
1015
+ } else if (!spec->lbound ().isColon ()) {
1016
1016
// Implicit lower bound is 1 (Fortran 2018 section 8.5.8.3 point 3.)
1017
1017
result.emplace_back (builder.createIntegerConstant (loc, idxTy, 1 ));
1018
1018
}
@@ -1049,8 +1049,8 @@ static void lowerExplicitExtents(Fortran::lower::AbstractConverter &converter,
1049
1049
else
1050
1050
result.emplace_back (
1051
1051
computeExtent (builder, loc, lowerBounds[spec.index ()], ub));
1052
- } else if (spec.value ()->ubound ().isAssumed ()) {
1053
- // Column extent is undefined. Must be provided by user's code.
1052
+ } else if (spec.value ()->ubound ().isStar ()) {
1053
+ // Assumed extent is undefined. Must be provided by user's code.
1054
1054
result.emplace_back (builder.create <fir::UndefOp>(loc, idxTy));
1055
1055
}
1056
1056
}
@@ -1179,13 +1179,13 @@ void Fortran::lower::mapSymbolAttributes(
1179
1179
Fortran::semantics::SomeExpr highEx{*high};
1180
1180
auto ub = genValue (highEx);
1181
1181
shapes.emplace_back (builder.createConvert (loc, idxTy, ub));
1182
- } else if (spec->ubound ().isDeferred ()) {
1183
- assert (box && " deferred bounds require a descriptor" );
1182
+ } else if (spec->ubound ().isColon ()) {
1183
+ assert (box && " assumed bounds require a descriptor" );
1184
1184
auto dim = builder.createIntegerConstant (loc, idxTy, iter.index ());
1185
1185
auto dimInfo =
1186
1186
builder.create <fir::BoxDimsOp>(loc, idxTy, idxTy, idxTy, box, dim);
1187
1187
shapes.emplace_back (dimInfo.getResult (1 ));
1188
- } else if (spec->ubound ().isAssumed ()) {
1188
+ } else if (spec->ubound ().isStar ()) {
1189
1189
shapes.emplace_back (builder.create <fir::UndefOp>(loc, idxTy));
1190
1190
} else {
1191
1191
llvm::report_fatal_error (" unknown bound category" );
@@ -1200,7 +1200,7 @@ void Fortran::lower::mapSymbolAttributes(
1200
1200
auto *spec = iter.value ();
1201
1201
fir::BoxDimsOp dimInfo;
1202
1202
mlir::Value ub, lb;
1203
- if (spec->lbound ().isDeferred () || spec->ubound ().isDeferred ()) {
1203
+ if (spec->lbound ().isColon () || spec->ubound ().isColon ()) {
1204
1204
// This is an assumed shape because allocatables and pointers extents
1205
1205
// are not constant in the scope and are not read here.
1206
1206
assert (box && " deferred bounds require a descriptor" );
@@ -1231,7 +1231,7 @@ void Fortran::lower::mapSymbolAttributes(
1231
1231
extents.emplace_back (computeExtent (builder, loc, lb, ub));
1232
1232
} else {
1233
1233
// An assumed size array. The extent is not computed.
1234
- assert (spec->ubound ().isAssumed () && " expected assumed size" );
1234
+ assert (spec->ubound ().isStar () && " expected assumed size" );
1235
1235
lbounds.emplace_back (lb);
1236
1236
extents.emplace_back (builder.create <fir::UndefOp>(loc, idxTy));
1237
1237
}
0 commit comments