Typing the API appropriately.
CopiedPReg should be a MCRegister instead. Looking at the documentation of contains it seems there is a desire that it only takes MCRegisters
Seems like PhyR should be a MCRegister and getPhysRegBitWidth should only take MCRegisters.
getMinimalPhysRegClass takes an MCRegister so I think we should not be converting it to a Register
Seems like this should be a MCRegister