Re: [Tinycc-devel] confused about reg_classes

2024-04-16 Thread Ekaitz Zarraga
Hi On 2024-04-16 20:21, Paul Moore wrote: I hope this helps, Ekaitz My original confusion stemmed from R_RET, I read it as returning what type of register to use for return values. Plus the fact that the upper level tccgen code deals in register types not registers (gv(rc), not gv(r)).

Re: [Tinycc-devel] confused about reg_classes

2024-04-16 Thread Paul Moore
>>I hope this helps, >>Ekaitz My original confusion stemmed from R_RET, I read it as returning what type of register to use for return values. Plus the fact that the upper level tccgen code deals in register types not registers (gv(rc), not gv(r)). Now I get it: R_RET says "use this

Re: [Tinycc-devel] confused about reg_classes

2024-04-16 Thread Ekaitz Zarraga
Hi, On 2024-04-16 01:50, Paul Moore wrote: Writing my own backend. I am trying to understand reg_classes On the face of it, it looks like a list of registers with flags saying what classes they are in (int , float..) So get_reg works down the table looking for registers of the right class,

[Tinycc-devel] confused about reg_classes

2024-04-15 Thread Paul Moore
Writing my own backend. I am trying to understand reg_classes On the face of it, it looks like a list of registers with flags saying what classes they are in (int , float..) So get_reg works down the table looking for registers of the right class, fine, got it. But the RC_RET function uses a