[PATCH v7 08/26] x86/insn-eval: Add a utility function to get register offsets