Skip to content

Commit b55f68b

Browse files
committed
Remove fallback from prescriptiveness
1 parent 7718186 commit b55f68b

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

flang/include/flang/Parser/parse-tree.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4132,9 +4132,8 @@ struct OmpOrderModifier {
41324132
//
41334133
// prescriptiveness ->
41344134
// STRICT // since 5.1
4135-
// FALLBACK // since 6.1
41364135
struct OmpPrescriptiveness {
4137-
ENUM_CLASS(Value, Strict, Fallback)
4136+
ENUM_CLASS(Value, Strict)
41384137
WRAPPER_CLASS_BOILERPLATE(OmpPrescriptiveness, Value);
41394138
};
41404139

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,6 @@ makePrescriptiveness(parser::OmpPrescriptiveness::Value v) {
394394
switch (v) {
395395
case parser::OmpPrescriptiveness::Value::Strict:
396396
return clause::Prescriptiveness::Strict;
397-
case parser::OmpPrescriptiveness::Value::Fallback:
398-
return clause::Prescriptiveness::Fallback;
399397
}
400398
llvm_unreachable("Unexpected prescriptiveness");
401399
}
@@ -820,7 +818,7 @@ DynGroupprivate make(const parser::OmpClause::DynGroupprivate &inp,
820818
auto &size = std::get<parser::ScalarIntExpr>(inp.v.t);
821819

822820
return DynGroupprivate{{/*AccessGroup=*/maybeApplyToV(makeAccessGroup, m0),
823-
/*Prescriptiveness=*/maybeApplyToV(makeFallback, m1),
821+
/*Fallback=*/maybeApplyToV(makeFallback, m1),
824822
/*Size=*/makeExpr(size, semaCtx)}};
825823
}
826824

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,7 @@ TYPE_PARSER(construct<OmpOrderingModifier>(
863863
"SIMD" >> pure(OmpOrderingModifier::Value::Simd)))
864864

865865
TYPE_PARSER(construct<OmpPrescriptiveness>(
866-
"STRICT" >> pure(OmpPrescriptiveness::Value::Strict) ||
867-
"FALLBACK" >> pure(OmpPrescriptiveness::Value::Fallback)))
866+
"STRICT" >> pure(OmpPrescriptiveness::Value::Strict)))
868867

869868
TYPE_PARSER(construct<OmpPresentModifier>( //
870869
"PRESENT" >> pure(OmpPresentModifier::Value::Present)))

llvm/include/llvm/Frontend/OpenMP/ClauseT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ ENUM(MotionExpectation, Present);
242242
// V5.2: [15.9.1] `task-dependence-type` modifier
243243
ENUM(DependenceType, Depobj, In, Inout, Inoutset, Mutexinoutset, Out, Sink,
244244
Source);
245-
ENUM(Prescriptiveness, Strict, Fallback);
245+
ENUM(Prescriptiveness, Strict);
246246

247247
template <typename I, typename E> //
248248
struct LoopIterationT {

0 commit comments

Comments
 (0)