[llvm] [ABI] Add DefaultTargetInfo for default argument/return classification (PR #225009)

Steffen Larsen via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 03:20:47 PDT 2026


================
@@ -41,6 +41,10 @@ bool TargetInfo::isPromotableInteger(const IntegerType *IT) const {
   return BitWidth < 32;
 }
 
+unsigned TargetInfo::getBitIntRegThreshold() const {
+  return hasInt128Type() ? 128 : getLongLongWidth();
+}
----------------
steffenlarsen wrote:

Nit; This seems small enough that it could just live in the headers. All the functions used should be available there.

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


More information about the llvm-commits mailing list