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 cl,c,cpp,h --
clang/include/clang/Basic/OffloadArch.h clang/lib/Basic/OffloadArch.cpp
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp clang/test/Driver/amdgpu-macros.cl
clang/test/Driver/amdgpu-mcpu.cl
clang/test/Misc/target-invalid-cpu-note/amdgcn.c
clang/test/Misc/target-invalid-cpu-note/nvptx.c
llvm/include/llvm/BinaryFormat/ELF.h
llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/lib/TargetParser/AMDGPUTargetParser.cpp
offload/plugins-nextgen/common/src/Utils/ELF.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/offload/plugins-nextgen/common/src/Utils/ELF.cpp
b/offload/plugins-nextgen/common/src/Utils/ELF.cpp
index 0150b6d39..6b7760f3a 100644
--- a/offload/plugins-nextgen/common/src/Utils/ELF.cpp
+++ b/offload/plugins-nextgen/common/src/Utils/ELF.cpp
@@ -76,8 +76,7 @@ checkMachineImpl(const object::ELFObjectFile<ELFT> &ELFObj,
uint16_t EMachine) {
Header.e_ident[EI_ABIVERSION] != ELFABIVERSION_AMDGPU_HSA_V6)
return createError("invalid AMD ABI version, must be version 5 or
above");
if ((Header.e_flags & EF_AMDGPU_MACH) < EF_AMDGPU_MACH_AMDGCN_GFX700 ||
- (Header.e_flags & EF_AMDGPU_MACH) >
- EF_AMDGPU_MACH_AMDGCN_GFX13_GENERIC)
+ (Header.e_flags & EF_AMDGPU_MACH) >
EF_AMDGPU_MACH_AMDGCN_GFX13_GENERIC)
return createError("unsupported AMDGPU architecture");
} else if (Header.e_machine == EM_CUDA) {
if (Header.e_ident[EI_ABIVERSION] == ELFABIVERSION_CUDA_V1) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/205363
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits