[PATCH] D40023: [RISCV] Implement ABI lowering

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 15 11:35:08 PST 2017


efriedma added inline comments.


================
Comment at: lib/CodeGen/TargetInfo.cpp:8913
+  }
+  return getNaturalAlignIndirect(Ty, /*ByVal=*/true);
+}
----------------
The spec says "Aggregates larger than 2✕XLEN bits are passed by reference and are replaced in the argument list with the address".  That's not byval.


https://reviews.llvm.org/D40023





More information about the cfe-commits mailing list