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,c --
llvm/include/llvm/TargetParser/IntelGPUTargetParser.h
llvm/lib/TargetParser/IntelGPUTargetParser.cpp
llvm/unittests/TargetParser/IntelGPUTargetParserTest.cpp
clang/include/clang/Basic/OffloadArch.h clang/lib/Basic/OffloadArch.cpp
clang/test/Misc/target-invalid-cpu-note/nvptx.c
clang/tools/offload-arch/LevelZeroArch.cpp
clang/unittests/Basic/OffloadArchTest.cpp
clang/unittests/offload-arch/OffloadArchTest.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/TargetParser/IntelGPUTargetParser.cpp
b/llvm/lib/TargetParser/IntelGPUTargetParser.cpp
index 8dccc60d8..c77dccfc7 100644
--- a/llvm/lib/TargetParser/IntelGPUTargetParser.cpp
+++ b/llvm/lib/TargetParser/IntelGPUTargetParser.cpp
@@ -111,10 +111,10 @@ GPUKind llvm::IntelGPU::parseArch(StringRef Name) {
#define IGCA_SUFFIX_RenderExact "ra"
StringRef llvm::IntelGPU::getIGCAName(GPUKind Kind) {
- // Unlike the NVPTX virtual architecture name, this is not a column of its
own:
- // the level and the suffix already spell it, and a column would let the
three
- // disagree. Both parts are known at compile time, so each row yields one
- // literal rather than a string built on demand.
+ // Unlike the NVPTX virtual architecture name, this is not a column of its
+ // own: the level and the suffix already spell it, and a column would let the
+ // three disagree. Both parts are known at compile time, so each row yields
+ // one literal rather than a string built on demand.
switch (Kind) {
case GK_NONE:
return "";
``````````
</details>
https://github.com/llvm/llvm-project/pull/223199
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits