[flang-commits] [flang] [flang] Register and lower SECNDS (stubbed implementation) (PR #151878)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sun Aug 3 14:14:35 PDT 2025
================
@@ -7815,6 +7819,14 @@ IntrinsicLibrary::genScan(mlir::Type resultType,
return readAndAddCleanUp(resultMutableBox, resultType, "SCAN");
}
+// SECNDS
+// Lowering is registered, runtime not yet implemented
----------------
eugeneepshteyn wrote:
Hello, thank you for the patch!
I happen to know how to add `secnds()` to the runtime part, so I can quickly do that part.
`genSecnds()` though, is not part of runtime, it's part of flang compiler that generates MLIR/FIR/HLFIR code to *set up* the runtime call. Would you like to try to do that? That's probably going to be similar (but easier) to `genEtime()`, where the input arg is always one REAL.
https://github.com/llvm/llvm-project/pull/151878
More information about the flang-commits
mailing list