Skip to content

Commit e08b00b

Browse files
committed
[NFC][flang] Move ReductionProcessor to Lower/Support.
With llvm#145837, the `ReductionProcessor` component is now used by both OpenMP and `do concurrent`. Therefore, this PR moves it to a shared location: `flang/Lower/Support`. PR stack: - llvm#145837 - llvm#146025 (this one) - llvm#146028 - llvm#146033
1 parent ab43fd1 commit e08b00b

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

flang/include/flang/Lower/OpenMP/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef FORTRAN_LOWER_OPENMPUTILS_H
1010
#define FORTRAN_LOWER_OPENMPUTILS_H
1111

12-
#include "Clauses.h"
12+
#include "flang/Lower/OpenMP/Clauses.h"
1313
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
1414
#include "mlir/IR/Location.h"
1515
#include "mlir/IR/Value.h"

flang/lib/Lower/Bridge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "flang/Lower/Bridge.h"
1414

15-
#include "OpenMP/ReductionProcessor.h"
1615
#include "flang/Lower/Allocatable.h"
1716
#include "flang/Lower/CallInterface.h"
1817
#include "flang/Lower/Coarray.h"
@@ -32,6 +31,7 @@
3231
#include "flang/Lower/PFTBuilder.h"
3332
#include "flang/Lower/Runtime.h"
3433
#include "flang/Lower/StatementContext.h"
34+
#include "flang/Lower/Support/ReductionProcessor.h"
3535
#include "flang/Lower/Support/Utils.h"
3636
#include "flang/Optimizer/Builder/BoxValue.h"
3737
#include "flang/Optimizer/Builder/CUFCommon.h"

flang/lib/Lower/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ add_flang_library(FortranLower
2929
OpenMP/DataSharingProcessor.cpp
3030
OpenMP/Decomposer.cpp
3131
OpenMP/OpenMP.cpp
32-
OpenMP/ReductionProcessor.cpp
3332
OpenMP/Utils.cpp
3433
PFTBuilder.cpp
3534
Runtime.cpp
3635
Support/PrivateReductionUtils.cpp
36+
Support/ReductionProcessor.cpp
3737
Support/Utils.cpp
3838
SymbolMap.cpp
3939
VectorSubscripts.cpp

flang/lib/Lower/OpenMP/ClauseProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
#include "ClauseProcessor.h"
1414

15-
#include "ReductionProcessor.h"
1615
#include "flang/Lower/ConvertExprToHLFIR.h"
1716
#include "flang/Lower/OpenMP/Clauses.h"
1817
#include "flang/Lower/OpenMP/Utils.h"
1918
#include "flang/Lower/PFTBuilder.h"
19+
#include "flang/Lower/Support/ReductionProcessor.h"
2020
#include "flang/Parser/tools.h"
2121
#include "flang/Semantics/tools.h"
2222
#include "flang/Support/OpenMP-utils.h"

flang/lib/Lower/OpenMP/ReductionProcessor.cpp renamed to flang/lib/Lower/Support/ReductionProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "ReductionProcessor.h"
13+
#include "flang/Lower/Support/ReductionProcessor.h"
1414

1515
#include "flang/Lower/AbstractConverter.h"
1616
#include "flang/Lower/ConvertType.h"

0 commit comments

Comments
 (0)