[flang-commits] [flang] [flang][OpenMP][CUDA] Place privatized device allocatable descriptors in managed memory (PR #187114)

via flang-commits flang-commits at lists.llvm.org
Tue Mar 17 13:51:47 PDT 2026


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 origin/main HEAD --extensions cpp -- flang/lib/Lower/Support/PrivateReductionUtils.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/flang/lib/Lower/Support/PrivateReductionUtils.cpp b/flang/lib/Lower/Support/PrivateReductionUtils.cpp
index 93375b789..7fdb6d15e 100644
--- a/flang/lib/Lower/Support/PrivateReductionUtils.cpp
+++ b/flang/lib/Lower/Support/PrivateReductionUtils.cpp
@@ -683,10 +683,12 @@ void PopulateInitAndCleanupRegionsHelper::populateByRefInitAndCleanupRegions() {
         cuf::DataAttributeAttr dataAttr =
             Fortran::lower::translateSymbolCUFDataAttribute(
                 builder.getContext(), sym->GetUltimate());
-        allocatedPrivVarArg = cuf::AllocOp::create(
-            builder, loc, valTy, /*uniq_name=*/llvm::StringRef{},
-            /*bindc_name=*/llvm::StringRef{}, dataAttr,
-            /*typeparams=*/mlir::ValueRange{}, /*shape=*/mlir::ValueRange{}).getResult();
+        allocatedPrivVarArg =
+            cuf::AllocOp::create(
+                builder, loc, valTy, /*uniq_name=*/llvm::StringRef{},
+                /*bindc_name=*/llvm::StringRef{}, dataAttr,
+                /*typeparams=*/mlir::ValueRange{}, /*shape=*/mlir::ValueRange{})
+                .getResult();
       }
     }
 

``````````

</details>


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


More information about the flang-commits mailing list