[AMDGPU] Save WWM registers in functions
The values of registers in inactive lanes needs to be saved during
Save all registers used for whole wave mode, similar to how it is done
for VGPRs that are used for SGPR spilling.
Differential Revision: https://reviews.llvm.org/D99429
Reapply with fixed tests on window.