[flang] (NFC) Break up flang/runtime/reduction.cpp
authorpeter klausler <pklausler@nvidia.com>
Thu, 22 Apr 2021 21:23:45 +0000 (14:23 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 22 Apr 2021 22:24:10 +0000 (15:24 -0700)
commitbeb5ac8b254b2c46c548cd0840a761fec24c69ff
tree851d8f36759feea4c91a091ddceda4b92aea24ca
parent5185b52988c5874dd46b2cc17685b78cd64609c1
[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
flang/runtime/CMakeLists.txt
flang/runtime/extrema.cpp [new file with mode: 0644]
flang/runtime/findloc.cpp [new file with mode: 0644]
flang/runtime/product.cpp [new file with mode: 0644]
flang/runtime/reduction-templates.h [new file with mode: 0644]
flang/runtime/reduction.cpp
flang/runtime/sum.cpp [new file with mode: 0644]