[flang-commits] [PATCH] D104851: [flang] Add runtime interface for SYSTEM_CLOCK
Diana Picus via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon Jun 28 02:08:04 PDT 2021
rovka updated this revision to Diff 354812.
rovka edited the summary of this revision.
rovka added a comment.
Split into 3 functions.
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.354812.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210628/333a59ff/attachment.bin>
More information about the flang-commits
mailing list