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

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri May 31 16:19:51 PDT 2013


On May 31, 2013, at 4:08 PM, Ahmed Bougacha <ahmed.bougacha at gmail.com> wrote:

> OK so here's an update with a mandatory size:
> 
> - for synthesized tuples, the size is accumulated, and, if the
> elements are contiguous, the offset is set to be that of the first
> element.
> - for .td indices that are used in a "sketchy" way (an index to
> represent an element of a tuple, without a fixed offset), the offset
> is kept at -1.
> - the getter was split in two; the size getter returns:
>  * the sum of the size of the parts when they are not contiguous
>  * -1 when the index is used to access different kinds of registers

Looks good!

Please send an email to llvmdev explaining the changes so people with out-of-tree targets will know how to update their .td files.

Thanks,
/jakob 




More information about the llvm-commits mailing list