[flang] Implement NORM2 in the runtime
authorpeter klausler <pklausler@nvidia.com>
Thu, 6 May 2021 20:50:12 +0000 (13:50 -0700)
committerpeter klausler <pklausler@nvidia.com>
Fri, 7 May 2021 20:23:21 +0000 (13:23 -0700)
commit01c78a0b0764e5c254c745a21c35f7950b6c8816
tree2810d95c4f124ba927a1788975462cba476d0e07
parent6b00b34b8a05896f79b18a1963811299b83d5b21
[flang] Implement NORM2 in the runtime

Implement the reduction transformational intrinsic function NORM2 in
the runtime, using infrastructure already in place for MAXVAL & al.

Differential Revision: https://reviews.llvm.org/D102024
flang/runtime/extrema.cpp
flang/runtime/reduction.cpp
flang/runtime/reduction.h
flang/unittests/RuntimeGTest/Reduction.cpp