llvm-project
33d00600 - [CIR] Copy trivially copyable non-byval indirect arguments (#244487)

Commit
1 day ago
[CIR] Copy trivially copyable non-byval indirect arguments (#244487) The AArch64 ABI passes trivially copyable records and _BitInts larger than 16 bytes as indirect values that require a copy on the caller side. This was hitting an unimplemented case in the CIRABIRewriteContext. This change updates the rewrite context to generalize the handling of indirect arguments, removing some target-specific assumptions. The record layout for some types must be examined to get correct handling with the new implementation. CIRCodeGen was already producing the record layout in these cases, but it was omitted from several hand-written CIR tests, so those tests had to be updated to add it. Assisted-by: Cursor / claude-opus-5.5
Author
Parents
Loading