[clang] [llvm] [X86] Support apxf in attribute target (PR #184078)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 15 06:33:31 PDT 2026


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 h,c,cpp -- clang/lib/Basic/Targets/X86.cpp clang/test/CodeGen/attr-target-x86.c clang/test/Sema/attr-target-mv.c clang/test/Sema/attr-target.c llvm/include/llvm/TargetParser/X86TargetParser.h llvm/lib/TargetParser/X86TargetParser.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/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 6da3f383d..50725330e 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -176,8 +176,8 @@ bool X86TargetInfo::initFeatureMap(
 
     if (Feature == "+apxf" || Feature == "-apxf") {
       std::vector<StringRef> APXFeatures;
-      llvm::X86::expandAPXFeatures(Feature == "-apxf", getTriple().isOSWindows(),
-                                   APXFeatures);
+      llvm::X86::expandAPXFeatures(Feature == "-apxf",
+                                   getTriple().isOSWindows(), APXFeatures);
       UpdatedFeaturesVec.insert(UpdatedFeaturesVec.end(), APXFeatures.begin(),
                                 APXFeatures.end());
       continue;

``````````

</details>


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


More information about the cfe-commits mailing list