[llvm] [llvm] ABIInfo and TargetCodegenInfo (PR #190730)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 12:19:17 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,cpp -- llvm/include/llvm/ABI/TargetInfo.h llvm/lib/ABI/TargetInfo.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/llvm/include/llvm/ABI/TargetInfo.h b/llvm/include/llvm/ABI/TargetInfo.h
index 9cc221b07..9538fe38d 100644
--- a/llvm/include/llvm/ABI/TargetInfo.h
+++ b/llvm/include/llvm/ABI/TargetInfo.h
@@ -1,4 +1,5 @@
-//===----- TargetInfo.h - Target ABI information ------------------- C++ ---===//
+//===----- TargetInfo.h - Target ABI information ------------------- C++
+//---===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -47,8 +48,7 @@ struct ABICompatInfo {
   bool Clang11Compat : 1;
 
   ABICompatInfo()
-      : PassInt128VectorsInMem(true),
-        ReturnCXXRecordGreaterThan128InMem(true),
+      : PassInt128VectorsInMem(true), ReturnCXXRecordGreaterThan128InMem(true),
         ClassifyIntegerMMXAsSSE(true), HonorsRevision98(true),
         Clang11Compat(true) {}
 
diff --git a/llvm/lib/ABI/TargetInfo.cpp b/llvm/lib/ABI/TargetInfo.cpp
index 2ebc68d8c..340decec9 100644
--- a/llvm/lib/ABI/TargetInfo.cpp
+++ b/llvm/lib/ABI/TargetInfo.cpp
@@ -20,7 +20,8 @@ bool TargetInfo::isAggregateTypeForABI(const Type *Ty) const {
 }
 
 bool TargetInfo::isPromotableInteger(const IntegerType *IT) const {
-  // TODO: The threshold should be the target's int size rather than a hardcoded 32.
+  // TODO: The threshold should be the target's int size rather than a
+  // hardcoded 32.
   unsigned BitWidth = IT->getSizeInBits().getFixedValue();
   return BitWidth < 32;
 }

``````````

</details>


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


More information about the llvm-commits mailing list