Skip to content

Commit e2467cb

Browse files
authored
[flang][OpenMP] Remove no longer used OmpLoopDirective, NFC (#159576)
1 parent be6c4d9 commit e2467cb

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

flang/examples/FeatureList/FeatureList.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ struct NodeVisitor {
485485
READ_FEATURE(OmpLinearClause::Modifier)
486486
READ_FEATURE(OmpLinearModifier)
487487
READ_FEATURE(OmpLinearModifier::Value)
488-
READ_FEATURE(OmpLoopDirective)
489488
READ_FEATURE(OmpMapClause)
490489
READ_FEATURE(OmpMapClause::Modifier)
491490
READ_FEATURE(OmpNumTasksClause)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ class ParseTreeDumper {
615615
NODE_ENUM(OmpLinearModifier, Value)
616616
NODE(parser, OmpLocator)
617617
NODE(parser, OmpLocatorList)
618-
NODE(parser, OmpLoopDirective)
619618
NODE(parser, OmpMapClause)
620619
NODE(OmpMapClause, Modifier)
621620
NODE(parser, OmpMapper)

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,12 +5075,6 @@ struct OpenMPAtomicConstruct : public OmpBlockConstruct {
50755075
mutable Analysis analysis;
50765076
};
50775077

5078-
// OpenMP directives that associate with loop(s)
5079-
struct OmpLoopDirective {
5080-
WRAPPER_CLASS_BOILERPLATE(OmpLoopDirective, llvm::omp::Directive);
5081-
CharBlock source;
5082-
};
5083-
50845078
// 2.14.2 cancellation-point -> CANCELLATION POINT construct-type-clause
50855079
struct OpenMPCancellationPointConstruct {
50865080
WRAPPER_CLASS_BOILERPLATE(

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,6 @@ template <typename Checker> struct DirectiveSpellingVisitor {
679679
checker_(x.DirName().source, x.DirId());
680680
return false;
681681
}
682-
bool Pre(const parser::OmpLoopDirective &x) {
683-
checker_(x.source, x.v);
684-
return false;
685-
}
686682

687683
bool Pre(const parser::OmpDirectiveSpecification &x) {
688684
auto &name = std::get<parser::OmpDirectiveName>(x.t);

0 commit comments

Comments
 (0)