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 HEAD~1 HEAD --extensions c,cpp -- clang/lib/Basic/Targets/SystemZ.cpp clang/test/CodeGen/SystemZ/builtins-systemz-bitop.c clang/test/CodeGen/SystemZ/builtins-systemz-vector5-error.c clang/test/CodeGen/SystemZ/builtins-systemz-vector5.c clang/test/CodeGen/SystemZ/builtins-systemz-zvector5-error.c clang/test/CodeGen/SystemZ/builtins-systemz-zvector5.c clang/test/CodeGen/SystemZ/systemz-abi-vector.c clang/test/CodeGen/SystemZ/systemz-abi.c clang/test/Driver/systemz-march.c clang/test/Misc/target-invalid-cpu-note/systemz.c clang/test/Preprocessor/predefined-arch-macros.c llvm/lib/Target/SystemZ/SystemZISelLowering.cpp llvm/lib/TargetParser/Host.cpp llvm/unittests/TargetParser/Host.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Basic/Targets/SystemZ.cpp b/clang/lib/Basic/Targets/SystemZ.cpp index ce532b72a..16e47b9fa 100644 --- a/clang/lib/Basic/Targets/SystemZ.cpp +++ b/clang/lib/Basic/Targets/SystemZ.cpp @@ -107,14 +107,10 @@ struct ISANameRevision { int ISARevisionID; }; static constexpr ISANameRevision ISARevisions[] = { - {{"arch8"}, 8}, {{"z10"}, 8}, - {{"arch9"}, 9}, {{"z196"}, 9}, - {{"arch10"}, 10}, {{"zEC12"}, 10}, - {{"arch11"}, 11}, {{"z13"}, 11}, - {{"arch12"}, 12}, {{"z14"}, 12}, - {{"arch13"}, 13}, {{"z15"}, 13}, - {{"arch14"}, 14}, {{"z16"}, 14}, - {{"arch15"}, 15}, {{"z17"}, 15}, + {{"arch8"}, 8}, {{"z10"}, 8}, {{"arch9"}, 9}, {{"z196"}, 9}, + {{"arch10"}, 10}, {{"zEC12"}, 10}, {{"arch11"}, 11}, {{"z13"}, 11}, + {{"arch12"}, 12}, {{"z14"}, 12}, {{"arch13"}, 13}, {{"z15"}, 13}, + {{"arch14"}, 14}, {{"z16"}, 14}, {{"arch15"}, 15}, {{"z17"}, 15}, }; int SystemZTargetInfo::getISARevision(StringRef Name) const { diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp index 922c2163b..c581fd23a 100644 --- a/llvm/lib/TargetParser/Host.cpp +++ b/llvm/lib/TargetParser/Host.cpp @@ -430,7 +430,7 @@ StringRef getCPUNameFromS390Model(unsigned int Id, bool HaveVectorSupport) { case 9175: case 9176: default: - return HaveVectorSupport? "z17" : "zEC12"; + return HaveVectorSupport ? "z17" : "zEC12"; } } } // end anonymous namespace `````````` </details> https://github.com/llvm/llvm-project/pull/135254 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits