[flang-commits] [flang] [flang][openacc] Support variable in equivalence in declare directive (PR #71242)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 6 09:40:08 PST 2023


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 fc55068c0969fa83d894d46e14d4fdec05a30b2c 575fa003fd8563a7e49319e953ab87e67f8c55bc -- flang/lib/Lower/OpenACC.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 080db63976eb..875db135d15a 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -2741,12 +2741,12 @@ static void genACC(Fortran::lower::AbstractConverter &converter,
 
 template <typename GlobalOp, typename EntryOp, typename DeclareOp,
           typename ExitOp>
-static void
-createDeclareGlobalOp(mlir::OpBuilder &modBuilder, fir::FirOpBuilder &builder,
-                      mlir::Location loc, fir::GlobalOp globalOp,
-                      mlir::acc::DataClause clause,
-                      const std::string declareGlobalName, bool implicit,
-                      std::stringstream &asFortran) {
+static void createDeclareGlobalOp(mlir::OpBuilder &modBuilder,
+                                  fir::FirOpBuilder &builder,
+                                  mlir::Location loc, fir::GlobalOp globalOp,
+                                  mlir::acc::DataClause clause,
+                                  const std::string declareGlobalName,
+                                  bool implicit, std::stringstream &asFortran) {
   GlobalOp declareGlobalOp =
       modBuilder.create<GlobalOp>(loc, declareGlobalName);
   builder.createBlock(&declareGlobalOp.getRegion(),

``````````

</details>


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


More information about the flang-commits mailing list