Ok, fine. The two remaining questions: - can you use sizeof(user_regs_struct) instead of RegisterCount()? - why do you need to extract SP separately here? http://llvm-reviews.chandlerc.com/D593