[flang] Define the API for CPU_TIME
authorDiana Picus <diana.picus@linaro.org>
Mon, 7 Jun 2021 11:48:32 +0000 (11:48 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 9 Jun 2021 08:20:58 +0000 (08:20 +0000)
commit35b0ddab0ee8064d23c6f390e30da14e756b5ba6
tree6f2da0820b63b7309a86ce255b4840d90938c0d0
parent5c5ae6a661ce01fb4e5f3a645de188028e8c981e
[flang] Define the API for CPU_TIME

CPU_TIME takes a single real scalar INTENT(OUT) argument. We can
therefore return a double and let lowering handle casting that to the
precision used for the default real kind.

Differential Revision: https://reviews.llvm.org/D103805
flang/runtime/time-intrinsic.h [new file with mode: 0644]