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.