Richard Smith
5b884ae14d
Improve lowering for global variables. ( #5492 )
...
- Track the `VarPattern` instruction on the `VarStorage` instruction so
that it's available for name mangling.
- Mangle global variables based on the first binding name within their
pattern.
- Give global variables external rather than internal linkage, except if
they have no bindings whatsoever in their pattern.
- To support lowering references to bindings nested within a global var,
such as for `var (x: i32, b: i32)`, add some basic initial support for
reference constant expressions. Treat a global `var` as a reference
constant, and treat an aggregate access into a reference constant as a
reference constant.
2025-05-21 00:09:10 +00:00
..
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-04-10 20:53:42 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-04-30 22:32:41 +00:00
2025-05-16 22:50:28 +00:00
2025-05-01 00:08:43 +00:00
2025-04-10 20:53:42 +00:00
2025-04-10 20:53:42 +00:00
2025-04-23 15:20:18 +00:00
2025-04-10 20:53:42 +00:00
2025-04-10 20:53:42 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 00:08:43 +00:00
2025-04-22 17:15:53 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-04-10 20:53:42 +00:00
2025-04-30 22:32:41 +00:00
2025-04-30 22:32:41 +00:00
2025-04-10 20:53:42 +00:00
2025-04-10 20:53:42 +00:00
2025-04-10 20:53:42 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-16 22:50:28 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 20:24:15 +00:00
2025-02-12 21:24:51 +00:00
2025-05-21 00:09:10 +00:00
2025-04-10 20:53:42 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-04-10 20:53:42 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-21 00:09:10 +00:00