[PATCH] Add a way to define the bit range covered by a SubRegIndex.

Ahmed Bougacha ahmed.bougacha at gmail.com
Sun May 26 15:45:49 PDT 2013


Hi Jakob,

This patch adds offset/size information to SubRegIndex, makes it
available through MCRegisterInfo, and provides it for ARM and X86.

I'm not sure how solid the offset calculation is; at first I tried to
make it smart to handle all synthesized indices, but for some (ARM
register tuples), no offsets (and sometimes sizes) can be easily
computed, and most of these subregs aren't even contiguous anyway, so
it's not really a problem. In that case, the MCRegisterInfo method
returns false.

Thanks!

-- Ahmed Bougacha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subreg-covered-range.diff
Type: application/octet-stream
Size: 13003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130526/963c3e15/attachment.obj>


More information about the llvm-commits mailing list