GlobalISel: Move splitToValueTypes to generic code
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 28 Feb 2021 16:12:08 +0000 (11:12 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Mar 2021 13:58:18 +0000 (08:58 -0500)
commit6c260d3bc059b29aa62b91378be4afa2d98d8067
tree388308ffc89e9a9c9f6a06c5f648687237604321
parentb4bfe29415ba9524f56d4ea57eb3adbdb4a82fc9
GlobalISel: Move splitToValueTypes to generic code

I copied the nearly identical function from AArch64 into AMDGPU, so
fix this duplication.

Mips and X86 have their own more exotic versions which should be
removed. However replacing those is better left for a separate patch
since it requires other changes to avoid regressions.
llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
llvm/lib/Target/AArch64/GISel/AArch64CallLowering.h
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.h
llvm/lib/Target/ARM/ARMCallLowering.cpp
llvm/lib/Target/ARM/ARMCallLowering.h
llvm/lib/Target/Mips/MipsCallLowering.cpp
llvm/lib/Target/X86/X86CallLowering.cpp