[flang] Add runtime interface for SYSTEM_CLOCK
authorDiana Picus <diana.picus@linaro.org>
Fri, 11 Jun 2021 08:05:30 +0000 (08:05 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 29 Jun 2021 08:25:01 +0000 (08:25 +0000)
commitb8bac6b33c576dec88add0e6a68e96219e278c8a
treeb57a3e2fccc10e2b9857c7165e4708208cd86b6a
parent91fa3565da16f77e07270e5323874abc22661cb0
[flang] Add runtime interface for SYSTEM_CLOCK

SYSTEM_CLOCK may take up to 3 optional parameters, all of which are
INTENT(OUT). The COUNT and COUNT_MAX parameters are integer scalars,
while COUNT_RATE may be a real or integer scalar.

This patch breaks up the interface into 3 different functions, one for
each parameter. All 3 return integers. It is up to lowering to convert
the results to the preferred type.

Differential Revision: https://reviews.llvm.org/D104851
flang/runtime/time-intrinsic.h