[PATCH] D60348: [COFF, ARM64] Fix ABI implementation of struct returns
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 11:50:46 PDT 2019
mgrang marked 6 inline comments as done.
mgrang added inline comments.
================
Comment at: lib/Target/AArch64/AArch64MachineFunctionInfo.h:94-98
+ /// SRetReturnReg - sret lowering includes returning the value of the
+ /// returned struct in a register. This field holds the virtual register into
+ /// which the sret argument is passed.
+ unsigned SRetReturnReg = 0;
+
----------------
kristof.beyls wrote:
> It seems this is also present in X86MachineFunctionInfo.
> I wonder if it wouldn't be better to move this to the MachineFunctionInfo base class so we don't need to add an identical interface in 2 derived classes?
MachineFunctionInfo base only has a factory function for creating objects. All fields/methods are in derived classes. So not sure if we should move SRetReturnReg to the base.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60348/new/
https://reviews.llvm.org/D60348
More information about the llvm-commits
mailing list