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

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 01:33:32 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG35b0ddab0ee8: [flang] Define the API for CPU_TIME (authored by rovka).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103805

Files:
  flang/runtime/time-intrinsic.h


Index: flang/runtime/time-intrinsic.h
===================================================================
--- /dev/null
+++ flang/runtime/time-intrinsic.h
@@ -0,0 +1,27 @@
+//===-- runtime/time-intrinsic.h --------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Defines the API between compiled code and the implementations of time-related
+// intrinsic subroutines in the runtime library.
+
+#ifndef FORTRAN_RUNTIME_TIME_INTRINSIC_H_
+#define FORTRAN_RUNTIME_TIME_INTRINSIC_H_
+
+#include "cpp-type.h"
+#include "entry-names.h"
+
+namespace Fortran::runtime {
+extern "C" {
+
+// Lowering may need to cast this result to match the precision of the default
+// real kind.
+double RTNAME(CpuTime)();
+
+} // extern "C"
+} // namespace Fortran::runtime
+#endif // FORTRAN_RUNTIME_TIME_INTRINSIC_H_


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103805.350814.patch
Type: text/x-patch
Size: 1088 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/acf3ec81/attachment.bin>


More information about the llvm-commits mailing list