GlobalISel: pack various parameters for lowerCall into a struct.
authorTim Northover <tnorthover@apple.com>
Fri, 9 Aug 2019 08:26:38 +0000 (08:26 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 9 Aug 2019 08:26:38 +0000 (08:26 +0000)
commite1a5f668b3b517cea34b389c505264510b45ecf9
tree4d51ea98647c7585f3800845678405a0e5d087e0
parent474d70b2204ee082854049ad691ccf435863709a
GlobalISel: pack various parameters for lowerCall into a struct.

I've now needed to add an extra parameter to this call twice recently. Not only
is the signature getting extremely unwieldy, but just updating all of the
callsites and implementations is a pain. Putting the parameters in a struct
sidesteps both issues.

llvm-svn: 368408
llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/AArch64/AArch64CallLowering.cpp
llvm/lib/Target/AArch64/AArch64CallLowering.h
llvm/lib/Target/ARM/ARMCallLowering.cpp
llvm/lib/Target/ARM/ARMCallLowering.h
llvm/lib/Target/Mips/MipsCallLowering.cpp
llvm/lib/Target/Mips/MipsCallLowering.h
llvm/lib/Target/X86/X86CallLowering.cpp
llvm/lib/Target/X86/X86CallLowering.h