0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Veikka Tuominen e323cf1264 stage2: change how defers are stored in Zir
Storing defers this way has the benefits that the defer doesn't get
analyzed multiple times in AstGen, it takes up less space, and it
makes Sema aware of defers allowing for 'unreachable else prong'
error on error sets in generic code.

The disadvantage is that it is a bit more complex and errdefers with
payloads now emit a placeholder instruction (but those are rare).

Sema.zig before:
  Total ZIR bytes:    3.7794370651245117MiB
  Instructions:       238996 (2.051319122314453MiB)
  String Table Bytes: 89.2802734375KiB
  Extra Data Items:   430144 (1.640869140625MiB)
Sema.zig after:
  Total ZIR bytes:    3.3344192504882812MiB
  Instructions:       211829 (1.8181428909301758MiB)
  String Table Bytes: 89.2802734375KiB
  Extra Data Items:   374611 (1.4290275573730469MiB)
History 2022-09-12 01:52:44 -04:00
..
behavior stage2: change how defers are stored in Zir 2022-09-12 01:52:44 -04:00
c_abi stage2 llvm: implement aarch64 C ABI 2022-09-04 18:46:56 +03:00
cases stage2: change how defers are stored in Zir 2022-09-12 01:52:44 -04:00
link test/link: add test for extern resolution 2022-08-30 18:32:08 +02:00
src std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
stage2 Sema: allow empty enums and unions 2022-08-17 23:03:04 +03:00
standalone Sema: do not emit dbg_inline_end after NoReturn 2022-09-02 17:57:10 +03:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig llvm: handle pointers in packed structs in more places 2022-09-08 12:51:40 +03:00
cases.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +02:00
cli.zig init-exe template: align cli tests to new template 2022-08-05 00:42:53 +02:00
compare_output.zig std: compile error on invalid testing allocator usage 2022-07-24 11:57:00 +03:00
compile_errors.zig Sema: check for astgen failures in semaStructFields 2022-08-22 11:16:36 +03:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
link.zig wasm: temporarily save curr file pointer before pwriting on Win 2022-09-08 14:29:54 +02:00
run_translated_c.zig translate-c: do not translate packed C structs as packed Zig structs in stage2 2022-09-03 03:42:42 +03:00
stack_traces.zig test-stack-traces: restore test coverage 2022-08-24 12:57:31 -07:00
standalone.zig stage2 llvm: implement aarch64 C ABI 2022-09-04 18:46:56 +03:00
tests.zig tests: force LLD off for stage2 backends until auto-select deems worthy 2022-09-07 23:16:42 +02:00
translate_c.zig translate-c: do not translate packed C structs as packed Zig structs in stage2 2022-09-03 03:42:42 +03:00