[clang] [mlir] [OpenACC] Implement 'helpers' for all of the clauses I've used so far (PR #137396)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 25 14:06:55 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 cpp -- clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.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 fa684942f..b8cf14253 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -2699,8 +2699,8 @@ void acc::DataOp::addAsyncOperand(
       getAsyncOperandsMutable()));
 }
 
-void acc::DataOp::addWaitOnly(
-    MLIRContext *context, llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
+void acc::DataOp::addWaitOnly(MLIRContext *context,
+                              llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
   setWaitOnlyAttr(addDeviceTypeAffectedOperandHelper(context, getWaitOnlyAttr(),
                                                      effectiveDeviceTypes));
 }

``````````

</details>


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


More information about the cfe-commits mailing list