MachineRegisterInfo already knows the MF so there is no need to pass it in as an argument.
CodeGenTypes
CodeGen