Skip to content

Commit 760dddb

Browse files
committed
remove-cancel-type
1 parent d4e79af commit 760dddb

File tree

7 files changed

+0
-23
lines changed

7 files changed

+0
-23
lines changed

flang/examples/FeatureList/FeatureList.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,6 @@ struct NodeVisitor {
456456
READ_FEATURE(OmpBeginLoopDirective)
457457
READ_FEATURE(OmpBeginSectionsDirective)
458458
READ_FEATURE(OmpBlockDirective)
459-
READ_FEATURE(OmpCancelType)
460-
READ_FEATURE(OmpCancelType::Type)
461459
READ_FEATURE(OmpClause)
462460
READ_FEATURE(OmpClauseList)
463461
READ_FEATURE(OmpCriticalDirective)

flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,6 @@ void OpenMPCounterVisitor::Post(const OmpDirectiveNameModifier &c) {
265265
clauseDetails +=
266266
"name_modifier=" + llvm::omp::getOpenMPDirectiveName(c.v).str() + ";";
267267
}
268-
void OpenMPCounterVisitor::Post(const OmpCancelType::Type &c) {
269-
clauseDetails += "type=" + std::string{OmpCancelType::EnumToString(c)} + ";";
270-
}
271268
void OpenMPCounterVisitor::Post(const OmpClause &c) {
272269
PostClauseCommon(normalize_clause_name(c.source.ToString()));
273270
clauseDetails.clear();

flang/examples/FlangOmpReport/FlangOmpReportVisitor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ struct OpenMPCounterVisitor {
7878
void Post(const OmpMapType::Value &c);
7979
void Post(const OmpScheduleClause::Kind &c);
8080
void Post(const OmpDirectiveNameModifier &c);
81-
void Post(const OmpCancelType::Type &c);
8281
void Post(const OmpClause &c);
8382
void PostClauseCommon(const ClauseInfo &ci);
8483

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,6 @@ class ParseTreeDumper {
540540
"llvm::omp::Directive = ", llvm::omp::getOpenMPDirectiveName(x))
541541
.str();
542542
}
543-
NODE(parser, OmpCancelType)
544-
NODE_ENUM(OmpCancelType, Type)
545543
NODE(parser, OmpClause)
546544
#define GEN_FLANG_DUMP_PARSE_TREE_CLAUSES
547545
#include "llvm/Frontend/OpenMP/OMP.inc"

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4865,13 +4865,6 @@ struct OmpLoopDirective {
48654865
CharBlock source;
48664866
};
48674867

4868-
// 2.14.1 construct-type-clause -> PARALLEL | SECTIONS | DO | TASKGROUP
4869-
struct OmpCancelType {
4870-
ENUM_CLASS(Type, Parallel, Sections, Do, Taskgroup)
4871-
WRAPPER_CLASS_BOILERPLATE(OmpCancelType, Type);
4872-
CharBlock source;
4873-
};
4874-
48754868
// 2.14.2 cancellation-point -> CANCELLATION POINT construct-type-clause
48764869
struct OpenMPCancellationPointConstruct {
48774870
TUPLE_CLASS_BOILERPLATE(OpenMPCancellationPointConstruct);

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,13 +1127,6 @@ TYPE_PARSER(sourced(construct<OmpLoopDirective>(first(
11271127
TYPE_PARSER(sourced(construct<OmpBeginLoopDirective>(
11281128
sourced(Parser<OmpLoopDirective>{}), Parser<OmpClauseList>{})))
11291129

1130-
// 2.14.1 construct-type-clause -> PARALLEL | SECTIONS | DO | TASKGROUP
1131-
TYPE_PARSER(sourced(construct<OmpCancelType>(
1132-
first("PARALLEL" >> pure(OmpCancelType::Type::Parallel),
1133-
"SECTIONS" >> pure(OmpCancelType::Type::Sections),
1134-
"DO" >> pure(OmpCancelType::Type::Do),
1135-
"TASKGROUP" >> pure(OmpCancelType::Type::Taskgroup)))))
1136-
11371130
// 2.14.2 Cancellation Point construct
11381131
TYPE_PARSER(sourced(construct<OpenMPCancellationPointConstruct>(
11391132
verbatim("CANCELLATION POINT"_tok), Parser<OmpClauseList>{})))

flang/lib/Parser/unparse.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3033,7 +3033,6 @@ class UnparseVisitor {
30333033
OmpDeviceTypeClause, DeviceTypeDescription) // OMP device_type
30343034
WALK_NESTED_ENUM(OmpReductionModifier, Value) // OMP reduction-modifier
30353035
WALK_NESTED_ENUM(OmpExpectation, Value) // OMP motion-expectation
3036-
WALK_NESTED_ENUM(OmpCancelType, Type) // OMP cancel-type
30373036
WALK_NESTED_ENUM(OmpOrderClause, Ordering) // OMP ordering
30383037
WALK_NESTED_ENUM(OmpOrderModifier, Value) // OMP order-modifier
30393038
WALK_NESTED_ENUM(OmpPrescriptiveness, Value) // OMP prescriptiveness

0 commit comments

Comments
 (0)