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

via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 02:59:16 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 0e44ffe817ae0f544199be70f468975fcc3ab5c5 10747a9f0c4dbb2f768acaa0563160decdb1025c -- flang/include/flang/Optimizer/Builder/IntrinsicCall.h flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h flang/include/flang/Runtime/time-intrinsic.h flang/lib/Evaluate/intrinsics.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Intrinsics.cpp flang/runtime/time-intrinsic.cpp flang/runtime/tools.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
index f0b0b7c74c..26364961f0 100644
--- a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
+++ b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
@@ -224,8 +224,7 @@ static constexpr IntrinsicHandler handlers[]{
      /*isElemental=*/false},
     {"etime",
      &I::genEtime,
-     {{{"values", asBox},
-       {"time", asBox}}},
+     {{{"values", asBox}, {"time", asBox}}},
      /*isElemental=*/false},
     {"execute_command_line",
      &I::genExecuteCommandLine,
@@ -3236,8 +3235,7 @@ void IntrinsicLibrary::genExecuteCommandLine(
 }
 
 // ETIME
-void IntrinsicLibrary::genEtime(
-    llvm::ArrayRef<fir::ExtendedValue> args) {
+void IntrinsicLibrary::genEtime(llvm::ArrayRef<fir::ExtendedValue> args) {
   assert(args.size() == 2);
 
   mlir::Value values = fir::getBase(args[0]);

``````````

</details>


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


More information about the flang-commits mailing list