[M3devel] cg.declare_subrange should pass on cgtype
Jay
jay.krell at cornell.edu
Tue Mar 5 07:21:25 CET 2013
Close, but also signedness.
- Jay
On Mar 4, 2013, at 9:56 PM, Tony Hosking <hosking at cs.purdue.edu> wrote:
> Isn’t it already there (implicitly) in the bitsize to be used to represent the range?
> The representation CG.Type chosen in the front-end dictates exactly what is needed in terms of bits (8, 16, 32, 64).
> The backend is supposed to respect the bitsize.
> So, why do you need to duplicate that information?
>
> On Mar 5, 2013, at 4:33 PM, Jay K <jay.krell at cornell.edu> wrote:
>
>> cg.declare_subrange should include the cgtype the frontend
>> is going to use for the type.
>>
>>
>> I'm pretty darn certain of this.
>>
>>
>> Otherwise a backend very might want/need to duplicate
>> the logic in m3front/types/SubrangeType.m3 SetRep.
>>
>> The logic isn't that complicated, but really, declare_subrange
>> should take the information.
>>
>> I intend to write and commit that either tonight or within a week.
>> I assume this is ok..as I'm pretty certain of it..
>>
>>
>> - Jay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130304/704e6fce/attachment-0001.html>
More information about the M3devel
mailing list