Andrew Kelley 8ebfdc14f6 stage2: implement structs in the frontend
New ZIR instructions:
 * struct_decl_packed
 * struct_decl_extern

New TZIR instruction: struct_field_ptr

Introduce `Module.Struct`. It uses `Value` to store default values and
abi alignments.

Implemented Sema.analyzeStructFieldPtr and zirStructDecl.

Some stuff I changed from `@panic("TODO")` to `log.warn("TODO")`.
It's becoming more clear that we need the lazy value mechanism soon;
Type is becoming unruly, and some of these functions have too much logic
given that they don't have any context for memory management or error
reporting.
2021-04-01 22:39:09 -07:00
..
2021-03-17 22:58:52 -07:00
2021-02-10 11:50:55 -08:00
2020-12-17 19:32:40 +01:00
2021-03-08 00:33:56 +02:00
2020-09-21 18:38:55 -07:00
2021-01-23 18:18:07 -07:00
2021-01-23 18:18:07 -07:00