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 -- 
clang/lib/Driver/ToolChains/Arch/X86.cpp 
llvm/lib/Target/X86/X86RegisterInfo.cpp llvm/lib/Target/X86/X86Subtarget.cpp 
llvm/lib/Target/X86/X86Subtarget.h --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/clang/lib/Driver/ToolChains/Arch/X86.cpp 
b/clang/lib/Driver/ToolChains/Arch/X86.cpp
index a77f0c33b..328f92507 100644
--- a/clang/lib/Driver/ToolChains/Arch/X86.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/X86.cpp
@@ -359,15 +359,13 @@ void x86::getX86TargetFeatures(const Driver &D, const 
llvm::Triple &Triple,
   RESERVE_REG(r15)
 #undef RESERVE_REG
 
-  bool NeedDetectEGPR =
-      Args.hasArg(options::OPT_ffixed_r16, options::OPT_ffixed_r17,
-                  options::OPT_ffixed_r18, options::OPT_ffixed_r19,
-                  options::OPT_ffixed_r20, options::OPT_ffixed_r21,
-                  options::OPT_ffixed_r22, options::OPT_ffixed_r23,
-                  options::OPT_ffixed_r24, options::OPT_ffixed_r25,
-                  options::OPT_ffixed_r26, options::OPT_ffixed_r27,
-                  options::OPT_ffixed_r28, options::OPT_ffixed_r29,
-                  options::OPT_ffixed_r30, options::OPT_ffixed_r31);
+  bool NeedDetectEGPR = Args.hasArg(
+      options::OPT_ffixed_r16, options::OPT_ffixed_r17, 
options::OPT_ffixed_r18,
+      options::OPT_ffixed_r19, options::OPT_ffixed_r20, 
options::OPT_ffixed_r21,
+      options::OPT_ffixed_r22, options::OPT_ffixed_r23, 
options::OPT_ffixed_r24,
+      options::OPT_ffixed_r25, options::OPT_ffixed_r26, 
options::OPT_ffixed_r27,
+      options::OPT_ffixed_r28, options::OPT_ffixed_r29, 
options::OPT_ffixed_r30,
+      options::OPT_ffixed_r31);
   if (NeedDetectEGPR && !HasEGPR && ArchType == llvm::Triple::x86_64) {
     SmallVector<StringRef, 16> CPUFeatures;
     llvm::X86::getFeaturesForCPU(getX86TargetCPU(D, Args, Triple), 
CPUFeatures);

``````````

</details>


https://github.com/llvm/llvm-project/pull/184606
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to