================
@@ -193,6 +193,16 @@ class SparcV8TargetCodeGenInfo : public TargetCodeGenInfo {
// the inreg arguments. All other arguments are allocated a multiple of 8
// bytes.
//
+// Zero-sized structs have a special treatment:
+// - The first six occupies a full i64 argument slot.
+// - The next ten occupies a f64 register (but *not* reserve a shadow space in
+// the stack).
+// - Further arguments won't occupy any space.
+// This is represented as i64 with the LLVM IR inreg attribute:
----------------
s-barannikov wrote:
It is unclear what is "this" in this context.
```suggestion
// An empty struct is represented as i64 with the LLVM IR inreg attribute:
```
https://github.com/llvm/llvm-project/pull/217065
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits