[flang] [llvm] [flang][OpenMP] Update handling of DEPEND clause (PR #113620)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 14:28:47 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 59b6c1b2d5290c40f59d2820b5144e2dec731635 0c5c452840a32490bdac36ef48e27d50cc1d8e39 --extensions cpp,h -- flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp flang/examples/FlangOmpReport/FlangOmpReportVisitor.h flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Semantics/symbol.h flang/lib/Lower/OpenMP/ClauseProcessor.cpp flang/lib/Lower/OpenMP/Clauses.cpp flang/lib/Parser/openmp-parsers.cpp flang/lib/Parser/unparse.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/resolve-directives.cpp llvm/include/llvm/Frontend/OpenMP/ClauseT.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/OpenMP/Clauses.cpp b/flang/lib/Lower/OpenMP/Clauses.cpp
index 57667fbbf7..bcff82c2c1 100644
--- a/flang/lib/Lower/OpenMP/Clauses.cpp
+++ b/flang/lib/Lower/OpenMP/Clauses.cpp
@@ -597,10 +597,9 @@ Depend make(const parser::OmpClause::Depend &inp,
[&](const wrapped::InOut &s) -> Variant {
auto &t0 = std::get<parser::OmpTaskDependenceType>(s.t);
auto &t1 = std::get<parser::OmpObjectList>(s.t);
- return Depend::DepType{
- {/*TaskDependenceType=*/convert1(t0.v),
- /*Iterator=*/std::nullopt,
- /*LocatorList=*/makeObjects(t1, semaCtx)}};
+ return Depend::DepType{{/*TaskDependenceType=*/convert1(t0.v),
+ /*Iterator=*/std::nullopt,
+ /*LocatorList=*/makeObjects(t1, semaCtx)}};
},
},
inp.v.u)};
diff --git a/llvm/include/llvm/Frontend/OpenMP/ClauseT.h b/llvm/include/llvm/Frontend/OpenMP/ClauseT.h
index 2b8e56ed24..2a890905dc 100644
--- a/llvm/include/llvm/Frontend/OpenMP/ClauseT.h
+++ b/llvm/include/llvm/Frontend/OpenMP/ClauseT.h
@@ -503,7 +503,7 @@ struct DependT {
using LocatorList = ObjectListT<I, E>;
using TaskDependenceType = tomp::type::TaskDependenceType;
- struct DepType { // The form with task dependence type.
+ struct DepType { // The form with task dependence type.
using TupleTrait = std::true_type;
// Empty LocatorList means "omp_all_memory".
std::tuple<TaskDependenceType, OPT(Iterator), LocatorList> t;
``````````
</details>
https://github.com/llvm/llvm-project/pull/113620
More information about the llvm-commits
mailing list