[flang-commits] [PATCH] D104851: [flang] Add runtime interface for SYSTEM_CLOCK

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jun 29 01:26:06 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb8bac6b33c57: [flang] Add runtime interface for SYSTEM_CLOCK (authored by rovka).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104851/new/

https://reviews.llvm.org/D104851

Files:
  flang/runtime/time-intrinsic.h


Index: flang/runtime/time-intrinsic.h
===================================================================
--- flang/runtime/time-intrinsic.h
+++ flang/runtime/time-intrinsic.h
@@ -22,6 +22,12 @@
 // real kind.
 double RTNAME(CpuTime)();
 
+// Interface for the SYSTEM_CLOCK intrinsic. We break it up into 3 distinct
+// function calls, one for each of SYSTEM_CLOCK's optional output arguments.
+// Lowering will have to cast the results to whatever type it prefers.
+CppTypeFor<TypeCategory::Integer, 8> RTNAME(SystemClockCount)();
+CppTypeFor<TypeCategory::Integer, 8> RTNAME(SystemClockCountRate)();
+CppTypeFor<TypeCategory::Integer, 8> RTNAME(SystemClockCountMax)();
 } // extern "C"
 } // namespace Fortran::runtime
 #endif // FORTRAN_RUNTIME_TIME_INTRINSIC_H_


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104851.355139.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210629/9b3f47b1/attachment.bin>


More information about the flang-commits mailing list