0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src-self-hosted
Andrew Kelley 0965724e31 self-hosted: refactor some code out of Module.zig into zir_sema.zig
This makes sense from an organizational point of view, as explained by
this new doc comment at the top of the new file:

//! Semantic analysis of ZIR instructions.
//! This file operates on a `Module` instance, transforming untyped ZIR
//! instructions into semantically-analyzed IR instructions. It does type
//! checking, comptime control flow, and safety-check generation. This is the
//! the heart of the Zig compiler.
//! When deciding if something goes into this file or into Module, here is a
//! guiding principle: if it has to do with (untyped) ZIR instructions, it goes
//! here. If the analysis operates on typed IR instructions, it goes in Module.

Before:
   4009 src-self-hosted/Module.zig

After:
   2776 src-self-hosted/Module.zig
   1128 src-self-hosted/zir_sema.zig

This should be sufficient to avoid the situation we have in stage1 where
ir.cpp is 32,516 lines.
History 2020-07-27 22:44:18 -07:00
..
codegen stage2: implement integer return values 2020-07-27 18:59:13 -07:00
astgen.zig self-hosted: refactor some code out of Module.zig into zir_sema.zig 2020-07-27 22:44:18 -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: implement integer return values 2020-07-27 18:59:13 -07: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 stage2: remove superfluous else => unreachable 2020-07-25 23:32:30 -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
Module.zig self-hosted: refactor some code out of Module.zig into zir_sema.zig 2020-07-27 22:44:18 -07:00
Package.zig self-hosted: link: global offset table support for decls 2020-05-12 20:11:47 -04:00
print_targets.zig run zig fmt on std lib and self hosted 2020-07-11 20:41:19 +03:00
stage2.zig macOS: macho ld64.lld fixes 2020-07-24 20:01:18 +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 translate-c: use ArrayList for macro tokens 2020-07-27 15:38:56 +03:00
type.zig stage2: implement enough for assert() function to codegen 2020-07-14 02:24:12 -07:00
TypedValue.zig self-hosted: implement Decl lookup 2020-06-18 17:12:56 -04: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 stage2: astgen for all arithmetic and assignments 2020-07-27 17:09:47 -07:00
zir_sema.zig self-hosted: refactor some code out of Module.zig into zir_sema.zig 2020-07-27 22:44:18 -07:00