[PATCH] D103805: [flang] Define the runtime API for CPU_TIME

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 7 05:53:30 PDT 2021


rovka added inline comments.


================
Comment at: flang/runtime/time-intrinsic.h:21
+
+void RTNAME(CpuTime)(CppTypeFor<TypeCategory::Real, 8> &time,
+    const char *sourceFile = nullptr, int line = 0);
----------------
IIUC, the default real kind is usually 4, but can be set to 8 with -fdefault-real-8. 

Should we have another overload for CppTypeFor<TypeCategory::Real, 4>, or can we assume that lowering can deal with downcasting if the default kind is 4?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103805



More information about the llvm-commits mailing list