[flang] Lower F08 NORM2 intrinsic
authorTarun Prabhu <tarun@lanl.gov>
Mon, 5 Dec 2022 20:50:33 +0000 (13:50 -0700)
committerTarun Prabhu <tarun@lanl.gov>
Mon, 5 Dec 2022 20:53:35 +0000 (13:53 -0700)
commit7fe4abbbc2702c09303110a3f4cd9f97494bc887
tree80fc90ca09699986fbd468ecf0cd909a186e534d
parent14c41b7d3586ceeeb6692f29308ca48f3437812b
[flang] Lower F08 NORM2 intrinsic

The implementation follows the pattern used in comparable intrinsics.
Change the runtime API for Norm2 so it does not expect a mask argument
since the Norm2 intrinsic does not accept a mask in Fortran.

Differential Revision: https://reviews.llvm.org/D138150
flang/include/flang/Optimizer/Builder/Runtime/Reduction.h
flang/include/flang/Runtime/reduction.h
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Builder/Runtime/Reduction.cpp
flang/runtime/extrema.cpp
flang/test/Lower/Intrinsics/norm2.f90 [new file with mode: 0644]