zig/src-self-hosted
Andrew Kelley aac6e8c418 self-hosted: AST flattening, astgen improvements, result locations, and more
* AST: flatten ControlFlowExpression into Continue, Break, and Return.
 * AST: unify identifiers and literals into the same AST type: OneToken
 * AST: ControlFlowExpression uses TrailerFlags to optimize storage
   space.
 * astgen: support `var` as well as `const` locals, and support
   explicitly typed locals. Corresponding Module and codegen code is not
   implemented yet.
 * astgen: support result locations.
 * ZIR: add the following instructions (see the corresponding doc
   comments for explanations of semantics):
   - alloc
   - alloc_inferred
   - bitcast_result_ptr
   - coerce_result_block_ptr
   - coerce_result_ptr
   - coerce_to_ptr_elem
   - ensure_result_used
   - ensure_result_non_error
   - ret_ptr
   - ret_type
   - store
   - param_type
 * the skeleton structure for result locations is set up. It's looking
   pretty clean so far.
 * add compile error for unused result and compile error for discarding
   errors.
 * astgen: split builtin calls up to implemented manually, and implement
   `@as`, `@bitCast` (and others) with respect to result locations.
 * add CLI support for hex and raw object formats. They are not
   supported by the self-hosted compiler yet, and emit errors.
 * rename `--c` CLI to `-ofmt=[objectformat]` which can be any of the
   object formats. Only ELF and C are supported so far. Also added missing
   help to the help text.
 * Remove hard tabs from C backend test cases. Shame on you Noam, you
   are grounded, you should know better, etc. Bad boy.
 * Delete C backend code and test case that relied on comptime_int
   incorrectly making it all the way to codegen.
2020-07-23 23:05:26 -07:00
..
codegen self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
Module.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
Package.zig self-hosted: link: global offset table support for decls 2020-05-12 20:11:47 -04:00
TypedValue.zig self-hosted: implement Decl lookup 2020-06-18 17:12:56 -04:00
astgen.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
cbe.h CBE: Only try to use GNU attribute when __GNUC__is set 2020-07-08 00:33:44 -04:00
clang.zig translate-c: fix decl statement regression 2020-05-23 17:50:35 -04:00
clang_options.zig zig cc: fix ambiguity with -MT 2020-04-02 21:15:36 -04:00
clang_options_data.zig zig cc looks for native include directories unless -nostdinc 2020-04-04 14:58:24 -04:00
codegen.zig stage2: add floatCast to zir and ir 2020-07-21 22:34:12 +03:00
dep_tokenizer.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
introspect.zig self-hosted: use fs.selfExePathAlloc 2020-03-25 18:40:28 -04:00
ir.zig stage2: add floatCast to zir and ir 2020-07-21 22:34:12 +03:00
libc_installation.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
link.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
liveness.zig stage2: register allocator processes operand deaths 2020-07-20 13:12:20 -07:00
llvm.zig fix stage2 build 2019-12-29 11:04:58 +02:00
main.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
print_targets.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
stage2.zig added custom format method for WindowsVersion 2020-07-05 22:43:10 +00:00
test.zig CBE: Make C an ObjectFormat instead of a special bool (#5849) 2020-07-12 22:56:31 -04:00
tracy.zig self-hosted: fix test regressions 2020-06-24 20:28:52 -04:00
translate_c.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00
type.zig stage2: implement enough for assert() function to codegen 2020-07-14 02:24:12 -07:00
value.zig stage2: actually implement float casting 2020-07-21 22:34:14 +03:00
windows_sdk.zig self-hosted libc detection 2020-02-16 13:25:30 -05:00
zir.zig self-hosted: AST flattening, astgen improvements, result locations, and more 2020-07-23 23:05:26 -07:00