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 -- 
clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp 
clang/test/CIR/CodeGenOpenACC/routine-clauses.cpp 
mlir/lib/Dialect/OpenACC/IR/OpenACC.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/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp 
b/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp
index 0d76587dd..e72578e73 100644
--- a/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp
@@ -303,7 +303,7 @@ void CIRGenModule::emitGlobalOpenACCRoutineDecl(const 
OpenACCRoutineDecl *d) {
 namespace {
 class OpenACCRoutineClauseEmitter final
     : public OpenACCClauseVisitor<OpenACCRoutineClauseEmitter> {
-      CIRGenModule &cgm;
+  CIRGenModule &cgm;
   CIRGen::CIRGenBuilderTy &builder;
   mlir::acc::RoutineOp routineOp;
   llvm::SmallVector<mlir::acc::DeviceType> lastDeviceTypeValues;
diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp 
b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
index e3614118b..291d2eba5 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -4368,7 +4368,7 @@ void RoutineOp::addWorker(MLIRContext *context,
 }
 
 void RoutineOp::addGang(MLIRContext *context,
-                          llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
+                        llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
   setGangAttr(addDeviceTypeAffectedOperandHelper(context, getGangAttr(),
                                                  effectiveDeviceTypes));
 }
@@ -4393,8 +4393,8 @@ void RoutineOp::addGang(MLIRContext *context,
         acc::DeviceTypeAttr::get(context, acc::DeviceType::None));
   } else {
     for (DeviceType dt : effectiveDeviceTypes) {
-    dimValues.push_back(
-        mlir::IntegerAttr::get(mlir::IntegerType::get(context, 64), val));
+      dimValues.push_back(
+          mlir::IntegerAttr::get(mlir::IntegerType::get(context, 64), val));
       deviceTypes.push_back(acc::DeviceTypeAttr::get(context, dt));
     }
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/170506
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to