Add subreg_memory_offset helper functions