Skip to content

Commit ca513ee

Browse files
authored
[flang][OpenMP] Remove unused class OmpMemoryOrderClause, NFC (#151759)
1 parent da11c1d commit ca513ee

File tree

5 files changed

+0
-29
lines changed

5 files changed

+0
-29
lines changed

flang/examples/FeatureList/FeatureList.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ struct NodeVisitor {
554554
READ_FEATURE(OpenMPDeclareSimdConstruct)
555555
READ_FEATURE(OpenMPDeclareTargetConstruct)
556556
READ_FEATURE(OmpMemoryOrderType)
557-
READ_FEATURE(OmpMemoryOrderClause)
558557
READ_FEATURE(OmpAtomicDefaultMemOrderClause)
559558
READ_FEATURE(OpenMPFlushConstruct)
560559
READ_FEATURE(OpenMPLoopConstruct)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ class ParseTreeDumper {
721721
NODE(parser, OpenMPDeclareTargetConstruct)
722722
NODE(parser, OpenMPDeclareMapperConstruct)
723723
NODE_ENUM(common, OmpMemoryOrderType)
724-
NODE(parser, OmpMemoryOrderClause)
725724
NODE(parser, OmpAtomicDefaultMemOrderClause)
726725
NODE(parser, OpenMPDepobjConstruct)
727726
NODE(parser, OpenMPUtilityConstruct)

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ struct OpenMPConstruct;
270270
struct OpenMPLoopConstruct;
271271
struct OpenMPDeclarativeConstruct;
272272
struct OmpEndLoopDirective;
273-
struct OmpMemoryOrderClause;
274273
struct CUFKernelDoConstruct;
275274

276275
// Cooked character stream locations
@@ -5016,17 +5015,6 @@ struct OpenMPAllocatorsConstruct : public OmpBlockConstruct {
50165015
OpenMPAllocatorsConstruct, OmpBlockConstruct);
50175016
};
50185017

5019-
// 2.17.7 Atomic construct/2.17.8 Flush construct [OpenMP 5.0]
5020-
// memory-order-clause -> acq_rel
5021-
// acquire
5022-
// release
5023-
// relaxed
5024-
// seq_cst
5025-
struct OmpMemoryOrderClause {
5026-
WRAPPER_CLASS_BOILERPLATE(OmpMemoryOrderClause, OmpClause);
5027-
CharBlock source;
5028-
};
5029-
50305018
struct OpenMPAtomicConstruct : public OmpBlockConstruct {
50315019
llvm::omp::Clause GetKind() const;
50325020
bool IsCapture() const;

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,20 +1619,6 @@ bool OmpAtomicConstructParser::recursing_{false};
16191619
TYPE_PARSER(sourced( //
16201620
construct<OpenMPAtomicConstruct>(OmpAtomicConstructParser{})))
16211621

1622-
// 2.17.7 Atomic construct/2.17.8 Flush construct [OpenMP 5.0]
1623-
// memory-order-clause ->
1624-
// acq_rel
1625-
// acquire
1626-
// relaxed
1627-
// release
1628-
// seq_cst
1629-
TYPE_PARSER(sourced(construct<OmpMemoryOrderClause>(
1630-
sourced("ACQ_REL" >> construct<OmpClause>(construct<OmpClause::AcqRel>()) ||
1631-
"ACQUIRE" >> construct<OmpClause>(construct<OmpClause::Acquire>()) ||
1632-
"RELAXED" >> construct<OmpClause>(construct<OmpClause::Relaxed>()) ||
1633-
"RELEASE" >> construct<OmpClause>(construct<OmpClause::Release>()) ||
1634-
"SEQ_CST" >> construct<OmpClause>(construct<OmpClause::SeqCst>())))))
1635-
16361622
static bool IsSimpleStandalone(const OmpDirectiveName &name) {
16371623
switch (name.v) {
16381624
case llvm::omp::Directive::OMPD_barrier:

flang/lib/Parser/unparse.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,6 @@ class UnparseVisitor {
28012801
EndOpenMP();
28022802
}
28032803
void Unparse(const OmpFailClause &x) { Walk(x.v); }
2804-
void Unparse(const OmpMemoryOrderClause &x) { Walk(x.v); }
28052804
void Unparse(const OmpMetadirectiveDirective &x) {
28062805
BeginOpenMP();
28072806
Word("!$OMP METADIRECTIVE ");

0 commit comments

Comments
 (0)