Skip to content

Commit beb5ac8

Browse files
committed
[flang] (NFC) Break up flang/runtime/reduction.cpp
The single source file reduction.cpp is a little large in terms of both source lines and generated text bytes, so split SUM, PRODUCT, FINDLOC, and MAXLOC/MAXVAL/MINLOC/MINVAL off into their own C++ source files that share a set of implementation function templates now in a common header. Differential Revision: https://reviews.llvm.org/D101111
1 parent 5185b52 commit beb5ac8

File tree

7 files changed

+1616
-1527
lines changed

7 files changed

+1616
-1527
lines changed

flang/runtime/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ add_flang_library(FortranRuntime
4242
edit-input.cpp
4343
edit-output.cpp
4444
environment.cpp
45+
extrema.cpp
4546
file.cpp
47+
findloc.cpp
4648
format.cpp
4749
internal-unit.cpp
4850
iostat.cpp
@@ -55,8 +57,10 @@ add_flang_library(FortranRuntime
5557
numeric.cpp
5658
random.cpp
5759
reduction.cpp
60+
product.cpp
5861
stat.cpp
5962
stop.cpp
63+
sum.cpp
6064
terminator.cpp
6165
tools.cpp
6266
transformational.cpp

0 commit comments

Comments
 (0)