[clang] [llvm] [PowerPC] add TargetParser for PPC target (PR #97541)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 01:50:18 PDT 2024


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 6a992bc89f5ca25d132abd044d78ecf27ae6e162 5a2787925bc05453763b2577fd95daa8f39acb1b -- llvm/include/llvm/TargetParser/PPCTargetParser.h llvm/lib/TargetParser/PPCTargetParser.cpp clang/lib/Basic/Targets/PPC.cpp clang/lib/Driver/ToolChains/Arch/PPC.cpp clang/lib/Driver/ToolChains/Arch/PPC.h clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/CommonArgs.cpp clang/test/CodeGen/aix-builtin-cpu-is.c clang/test/Misc/target-invalid-cpu-note.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/TargetParser/PPCTargetParser.cpp b/llvm/lib/TargetParser/PPCTargetParser.cpp
index 3c7a64c215..c9942c3d8a 100644
--- a/llvm/lib/TargetParser/PPCTargetParser.cpp
+++ b/llvm/lib/TargetParser/PPCTargetParser.cpp
@@ -11,9 +11,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/TargetParser/PPCTargetParser.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/TargetParser/Host.h"
-#include "llvm/TargetParser/PPCTargetParser.h"
 
 namespace llvm {
 namespace PPC {
@@ -118,4 +118,3 @@ StringRef getPPCGenericTuneCPU(const Triple &T, StringRef CPUName) {
 
 } // namespace PPC
 } // namespace llvm
-

``````````

</details>


https://github.com/llvm/llvm-project/pull/97541


More information about the cfe-commits mailing list