[flang-commits] [flang] [flang] Add ETIME runtime and lowering intrinsics implementation (PR #90578)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 21:26:48 PDT 2024


================
@@ -3230,6 +3235,22 @@ void IntrinsicLibrary::genExecuteCommandLine(
                                       exitstatBox, cmdstatBox, cmdmsgBox);
 }
 
+// ETIME
+void IntrinsicLibrary::genEtime(
+    llvm::ArrayRef<fir::ExtendedValue> args) {
+  assert(args.size() == 2);
+
+  mlir::Value values = fir::getBase(args[0]);
+  mlir::Value time = fir::getBase(args[1]);
+
+  if (!values)
+    fir::emitFatalError(loc, "expected VALUES parameter");
----------------
kkwli wrote:

Yes, I think that needs to be changed as well. Perhaps we can do it in a separate PR.

https://github.com/llvm/llvm-project/pull/90578


More information about the flang-commits mailing list