[flang-commits] [flang] [flang] Implement non-standard RTC intrinsic (PR #182560)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Feb 20 12:00:40 PST 2026


================
@@ -7762,6 +7763,14 @@ IntrinsicLibrary::genSecond(std::optional<mlir::Type> resultType,
   return {};
 }
 
+// RTC
+mlir::Value IntrinsicLibrary::genRtc(mlir::Type resultType,
+                                     llvm::ArrayRef<mlir::Value> args) {
+  assert(args.empty());
+  mlir::Value time = fir::runtime::genTime(builder, loc);
----------------
eugeneepshteyn wrote:

On the other hand, on systems with 64 bit `time_t` it'll probably be ok.

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


More information about the flang-commits mailing list