[PATCH v4 04/17] x86/insn-eval: Add utility functions to get register offsets