[clang] [llvm] [LLVMABI] Add CanBeFlattened to abi::ArgInfo (PR #220558)

Andy Kaylor via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 15:49:26 PDT 2026


================
@@ -71,10 +71,11 @@ class ArgInfo {
   bool ZeroExt : 1;
   bool IndirectByVal : 1;
   bool IndirectRealign : 1;
+  bool CanBeFlattened : 1;
 
   ArgInfo(Kind K = Direct)
       : TheKind(K), SignExt(false), ZeroExt(false), IndirectByVal(false),
-        IndirectRealign(false) {}
+        IndirectRealign(false), CanBeFlattened(true) {}
----------------
andykaylor wrote:

This defaults to `false` in classic codegen, and having everything default to `false` seems to be the trend here. I see that you're setting it to true so existing classifiers don't need to change, but that doesn't seem right. Classic codegen seems to only set it through a parameter to `getDirect` (which defaults to `true`). Why not handle it that way here?

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


More information about the llvm-commits mailing list