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

jiajie zhang via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 21:03:00 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");
----------------
JumpMasterJJ wrote:

Ok, but I was referring to the code here. So, should this also be "arguments"?
https://github.com/llvm/llvm-project/blob/410d6350eda322de213941b36adcdab13a0b557b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp#L3193-L3194
https://github.com/llvm/llvm-project/blob/410d6350eda322de213941b36adcdab13a0b557b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp#L3425-L3426

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


More information about the flang-commits mailing list