[libc-commits] [clang] [libc] [libcxx] [clang][X86] Emit AVX level mismatch psABI warnings on function definitions (PR #199091)

via libc-commits libc-commits at lists.llvm.org
Wed May 27 17:51:09 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 cpp,h,c -- clang/test/CodeGenCXX/target-avx-abi-diag.cpp clang/lib/CodeGen/Targets/X86.cpp clang/test/CodeGen/X86/mmx-inline-asm-error.c clang/test/CodeGen/target-builtin-error-3.c clang/test/CodeGen/target-features-error-2.c libcxx/include/__algorithm/simd_utils.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/CodeGen/Targets/X86.cpp b/clang/lib/CodeGen/Targets/X86.cpp
index 08fd35c7b..f456c1a77 100644
--- a/clang/lib/CodeGen/Targets/X86.cpp
+++ b/clang/lib/CodeGen/Targets/X86.cpp
@@ -1615,7 +1615,7 @@ void X86_64TargetCodeGenInfo::checkFunctionABI(CodeGenModule &CGM,
     return false;
   };
 
-  // psABI warnings & errors for function definitions that are only visible 
+  // psABI warnings & errors for function definitions that are only visible
   // in this translation unit are handled at call site by checkFunctionCallABI
   if (!FD->isExternallyVisible())
     return;

``````````

</details>


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


More information about the libc-commits mailing list