zig/src-self-hosted
Andrew Kelley 7e58c56ca7 self-hosted: implement Decl lookup
* Take advantage of coercing anonymous struct literals to struct types.
 * Reworks Module to favor Zig source as the primary use case.
   Breaks ZIR compilation, which will have to be restored in a future commit.
 * Decl uses src_index rather then src, pointing to an AST Decl node
   index, or ZIR Module Decl index, rather than a byte offset.
 * ZIR instructions have an `analyzed_inst` field instead of Module
   having a hash table.
 * Module.Fn loses the `fn_type` field since it is redundant with
   its `owner_decl` `TypedValue` type.
 * Implement Type and Value copying. A ZIR Const instruction's TypedValue
   is copied to the Decl arena during analysis, which allows freeing the
   ZIR text instructions post-analysis.
 * Don't flush the ELF file if there are compilation errors.
 * Function return types allow arbitrarily complex expressions.
 * AST->ZIR for function calls and return statements.
2020-06-18 17:12:56 -04:00
..
2020-06-18 17:12:56 -04:00
2020-06-18 17:12:56 -04:00
2020-06-18 17:12:56 -04:00
2019-12-29 11:04:58 +02:00
2020-06-18 17:12:56 -04:00
2020-06-18 17:12:56 -04:00
2020-06-15 21:47:42 -04:00
2020-06-18 17:12:56 -04:00
2020-06-18 17:12:56 -04:00
2020-02-16 13:25:30 -05:00
2020-06-18 17:12:56 -04:00