CodeGen: Move function to get subregister indexes to cover a LaneMask

Return the best covering index, and additional needed to complete the
mask. This logically belongs in TargetRegisterInfo, although I ended
up not needing it for why I originally split this out.

GitOrigin-RevId: 1b3d8ddeb9653caef0d208f85564d3f4e6c359f4
3 files changed