Walter's talk on D backend

claptrap clap at trap.com
Sun Sep 22 10:55:51 UTC 2024


On Sunday, 22 September 2024 at 08:35:14 UTC, Walter Bright wrote:
> On 9/18/2024 5:34 AM, Dibyendu Majumdar wrote:
>> I watched the talk on D backend; I thought it could have been 
>> very interesting but actually was very scant in details.
>
> Can't really do a deep dive on what should be a semester-length 
> course in 40 minutes. I was hoping to simply provide a roadmap 
> to where in the code generator the important things were done, 
> as otherwise it's just a confusing mass of code.
>
>
>> Just because expressions are in a tree, how does it make the 
>> backend SSA? It wasn't clear if the D backend uses virtual 
>> registers, and if these can be assigned only once. If that is 
>> the case then are their Phi instructions?
>
> It's like SSA in that the elem node is "assigned" a single 
> value that never changes.

Can more than one elem reference the same (lvalue) variable? Eg..

int x = 100;
x = x+1;
x = y+1;

That's three different elem, but do they all have the same 'x' as 
their target?



More information about the Digitalmars-d mailing list