port X86InstrInfo::determineREX over to the new encoder.