mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
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
|
|
|---|---|---|
| .. | ||
| codegen | ||
| astgen.zig | ||
| cbe.h | ||
| clang.zig | ||
| clang_options.zig | ||
| clang_options_data.zig | ||
| codegen.zig | ||
| dep_tokenizer.zig | ||
| introspect.zig | ||
| ir.zig | ||
| libc_installation.zig | ||
| link.zig | ||
| liveness.zig | ||
| llvm.zig | ||
| main.zig | ||
| Module.zig | ||
| Package.zig | ||
| print_targets.zig | ||
| stage2.zig | ||
| test.zig | ||
| tracy.zig | ||
| translate_c.zig | ||
| type.zig | ||
| TypedValue.zig | ||
| value.zig | ||
| windows_sdk.zig | ||
| zir.zig | ||
| zir_sema.zig | ||