[flang-commits] [flang] [mlir] [flang][openacc] Add ability to link acc.declare_enter with acc.declare_exit ops (PR #72476)

via flang-commits flang-commits at lists.llvm.org
Wed Nov 15 21:40:41 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 5b59540661e995839ad970c782c68c2c0c74cbac f6ba6f80b06fdb2fcd94b683bb3fa09c836b34fd -- flang/lib/Lower/OpenACC.cpp mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
index dabdf05bb4..08e83cad48 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -1087,9 +1087,9 @@ LogicalResult AtomicCaptureOp::verifyRegions() { return verifyRegionsCommon(); }
 //===----------------------------------------------------------------------===//
 
 template <typename Op>
-static LogicalResult checkDeclareOperands(Op &op,
-                                          const mlir::ValueRange &operands,
-                                          bool requireAtLeastOneOperand = true) {
+static LogicalResult
+checkDeclareOperands(Op &op, const mlir::ValueRange &operands,
+                     bool requireAtLeastOneOperand = true) {
   if (operands.empty() && requireAtLeastOneOperand)
     return emitError(
         op->getLoc(),

``````````

</details>


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


More information about the flang-commits mailing list