Jon Ross-Perkins and Richard Smith
962defd1e8
Associate a name with ClassDecl ( #3447 )
...
Note generics will probably need different behavior.
---------
Co-authored-by: Richard Smith <richard@metafoo.co.uk >
2023-12-02 00:44:57 +00:00
Richard Smith
ca53c18ddc
Rename MemberIndex -> ElementIndex, ClassFieldAccess -> ClassElementAccess, UnboundFieldType -> UnboundElementType. ( #3446 )
...
In preparation for base class support, where these types will be used
for bases as well as fields.
As discussed [on
discord](https://discord.com/channels/655572317891461132/963846118964350976/1180267686316478575 ).
2023-12-02 00:29:48 +00:00
Jon Ross-Perkins
aa5bfa564f
Add a distinct semir file separator. ( #3438 )
...
This removes the filename from the file-scoped block, and places it
above to make it clear where the full SemIR begins (with multifile,
providing a barrier between).
2023-12-01 00:53:45 +00:00
josh11b
c89c452579
Abbreviate "Reference" -> "Ref", "Dereference" -> "Deref" ( #3425 )
...
Part of switching to the [abbreviations we've decided to
use](https://docs.google.com/document/d/1RRYMm42osyqhI2LyjrjockYCutQ5dOf8Abu50kTrkX0/edit?resourcekey=0-kHyqOESbOHmzZphUbtLrTw#heading=h.pph7i5m5un7q ).
File renames will be done separately.
2023-11-27 23:30:31 +00:00
josh11b
5020fdb3be
Use abbreviation "decl" instead of "declaration" ( #3382 )
...
Part of switching to the [abbreviations we've decided to
use](https://docs.google.com/document/d/1RRYMm42osyqhI2LyjrjockYCutQ5dOf8Abu50kTrkX0/edit?resourcekey=0-kHyqOESbOHmzZphUbtLrTw#heading=h.pph7i5m5un7q ).
I will rename files in a follow-up PR.
2023-11-10 10:43:25 +00:00
Richard Smith
6d5e62974c
Add SemIR instruction to track that a conversion was performed. ( #3363 )
...
Instead of ad-hoc conversion tracking on some kinds of nodes that
conversion creates, consolidate tracking into a single node kind. This
frees up an operand on `Init` instructions that can be used to store the
destination.
2023-11-09 23:58:54 +00:00
Richard Smith
71aa4a45be
Distinguish between name IDs and string IDs in the type system. ( #3341 )
...
Add a `NameId` that is effectively just a wrapper around a `StringId`,
with
some additional predefined values for names that don't correspond to
strings, such as the name of `self` or the function's return slot.
2023-11-09 16:51:36 +00:00
Richard Smith
184eafd521
Add a separate store for computed constant values. ( #3362 )
...
This moves the instructions generated for type values out of the block
in which they happen to first be referenced, and into shared storage.
2023-11-04 23:48:13 +00:00
Richard Smith and Jon Ross-Perkins
545a5b3679
Support initializing a class from a struct. ( #3358 )
...
Co-authored-by: Jon Ross-Perkins <jperkins@google.com >
2023-11-02 20:27:01 +00:00