[flang-commits] [flang] [flang] Lower REDUCE intrinsic with no DIM argument and rank 1 (PR #94652)
via flang-commits
flang-commits at lists.llvm.org
Mon Jun 10 09:48:07 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 b61d7ec16bf5c740346e87b8b03315e38fe31725 e2d0832eceb44968edc8afc03d6cecb1af6471fc -- flang/include/flang/Optimizer/Builder/IntrinsicCall.h flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h flang/include/flang/Optimizer/Builder/Runtime/Reduction.h flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Reduction.cpp flang/lib/Optimizer/Dialect/FIROps.cpp flang/runtime/reduce.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h b/flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
index ec1e2eb02c..4df49d7c17 100644
--- a/flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
+++ b/flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
@@ -309,7 +309,7 @@ constexpr TypeBuilderFunc getModel<std::int64_t>() {
};
}
template <>
-constexpr TypeBuilderFunc getModel<const std::int64_t*>() {
+constexpr TypeBuilderFunc getModel<const std::int64_t *>() {
return [](mlir::MLIRContext *context) -> mlir::Type {
TypeBuilderFunc f{getModel<std::int64_t>()};
return fir::ReferenceType::get(f(context));
``````````
</details>
https://github.com/llvm/llvm-project/pull/94652
More information about the flang-commits
mailing list