refactor GetRegistersForValue to take OpInfo as an argument instead of various