This required two substantial changes:
- Moving a getRegBitWidth(TargetRegisterClass) overload out of Utils and into CodeGen
- Passing the string function name to AMDGPUPALMetadata instead of the MachineFunction
Other changes are minor or updates to accommodate the first two.
See issue #64166 for more information on the layering issue.
Should go in SIRegisterInfo.h,, not AMDGPURegisterBankInfo (though I'm wondering why we need this in the first place, the MCRegisterClass one should work well enough?)