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

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 09:11:18 PDT 2024


================
@@ -222,6 +222,11 @@ static constexpr IntrinsicHandler handlers[]{
        {"boundary", asBox, handleDynamicOptional},
        {"dim", asValue}}},
      /*isElemental=*/false},
+    {"etime",
+     &I::genEtime,
+     {{{"values", asBox},
+       {"time", asBox}}},
----------------
tblah wrote:

Why is time as a box? I guess this should work but passing by reference is simpler and avoids creating a box on the fly

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


More information about the flang-commits mailing list