[Mlir-commits] [mlir] [acc] Improve LegalizeDataValues pass to handle data constructs (PR #112990)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 18 15:06:43 PDT 2024


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 835feaaf35306d1c18c01f2f2792ce01357c7a09 b596274e3e16196e0068b5c6b7449309f061b578 --extensions h,cpp -- mlir/include/mlir/Dialect/OpenACC/OpenACC.h mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h mlir/lib/Dialect/OpenACC/Transforms/LegalizeDataValues.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACC.h b/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
index 60fe4c5fb9..cda07d6a91 100644
--- a/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+++ b/mlir/include/mlir/Dialect/OpenACC/OpenACC.h
@@ -56,7 +56,7 @@
   mlir::acc::ParallelOp, mlir::acc::KernelsOp, mlir::acc::SerialOp
 #define ACC_COMPUTE_CONSTRUCT_AND_LOOP_OPS                                     \
   ACC_COMPUTE_CONSTRUCT_OPS, mlir::acc::LoopOp
-#define ACC_DATA_CONSTRUCT_STRUCTURED_OPS                                  \
+#define ACC_DATA_CONSTRUCT_STRUCTURED_OPS                                      \
   mlir::acc::DataOp, mlir::acc::DeclareOp
 #define ACC_DATA_CONSTRUCT_UNSTRUCTURED_OPS                                    \
   mlir::acc::EnterDataOp, mlir::acc::ExitDataOp, mlir::acc::UpdateOp,          \

``````````

</details>


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


More information about the Mlir-commits mailing list