[flang-commits] [flang] [Flang][MLIR] - Handle the mapping of subroutine arguments when they are subsequently used inside the region of an `omp.target` Op (PR #134967)

via flang-commits flang-commits at lists.llvm.org
Mon May 12 11:28:24 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- flang/include/flang/Optimizer/Builder/DirectivesCommon.h flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/include/flang/Optimizer/Builder/DirectivesCommon.h b/flang/include/flang/Optimizer/Builder/DirectivesCommon.h
index 6934090a7..3f30c761a 100644
--- a/flang/include/flang/Optimizer/Builder/DirectivesCommon.h
+++ b/flang/include/flang/Optimizer/Builder/DirectivesCommon.h
@@ -154,7 +154,7 @@ genBoundsOpFromBoxChar(fir::FirOpBuilder &builder, mlir::Location loc,
     return builder.create<mlir::omp::MapBoundsOp>(
         loc, boundTy, /*lower_bound=*/zero,
         /*upper_bound=*/ub, /*extent=*/extent, /*stride=*/stride,
-        /*stride_in_bytes=*/ true, /*start_idx=*/zero);
+        /*stride_in_bytes=*/true, /*start_idx=*/zero);
   }
   return mlir::Value{};
 }

``````````

</details>


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


More information about the flang-commits mailing list