[llvm-commits] [PATCH] TargetRegisterInfo method to get native register indices

Charles Davis cdavis at mymail.mines.edu
Mon May 23 19:58:22 PDT 2011


Hi,

This patch adds a method to TargetRegisterInfo to get the native
register index corresponding to a LLVM register index. I've implemented
it for x86. Note that it returns 8-15 for r8-r15 (and xmm8-xmm15).

I need this for my SEH directive-parsing methods, since the Win64 EH
streamer methods expect a native register number.

OK to commit? (NOTE: I won't commit this patch without approval.)

Chip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: native-reg-index.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110523/71cd53d0/attachment.ksh>


More information about the llvm-commits mailing list