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,h --
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.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/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 7b0556242..23893172d 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -2205,7 +2205,7 @@ OpenMPIRBuilder::InsertPointOrErrorTy
OpenMPIRBuilder::createTaskloop(
Value *ThreadID = getOrCreateThreadID(Ident);
- if(!NoGroup) {
+ if (!NoGroup) {
// Emit runtime call for @__kmpc_taskgroup
Function *TaskgroupFn =
getOrCreateRuntimeFunctionPtr(OMPRTL___kmpc_taskgroup);
@@ -2274,7 +2274,8 @@ OpenMPIRBuilder::InsertPointOrErrorTy
OpenMPIRBuilder::createTaskloop(
Value *IfCondVal =
IfCond ? Builder.CreateIntCast(IfCond, Builder.getInt32Ty(), true)
: Builder.getInt32(1);
- // As __kmpc_taskgroup is called manually in OMPIRBuilder, NoGroupVal
should always be 1 when calling __kmpc_taskloop to ensure it is not called again
+ // As __kmpc_taskgroup is called manually in OMPIRBuilder, NoGroupVal
should
+ // always be 1 when calling __kmpc_taskloop to ensure it is not called
again
Value *NoGroupVal = Builder.getInt32(1);
Value *SchedVal = Builder.getInt32(Sched);
Value *GrainSizeVal =
``````````
</details>
https://github.com/llvm/llvm-project/pull/174623
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits