To see how this numbering is defined for a particular architecture, you can read the GenRegisterNames.inc file for that architecture.
By inspecting lib/Target/X86/X86GenRegisterNames.inc we see that the 32-bit register EAX is denoted by 15, and the MMX register MM0 is mapped to 48.