Andrew Kelley
ca3adb83b7
Merge pull request #12111 from ziglang/ci-stage3
...
CI: increase stage3 test coverage
2022-07-20 17:07:19 -07:00
Andrew Kelley
5b7e332b28
disable new behavior test in stage1
...
I regressed this in 379beceffd1b0a0b0d8f3163dc02eba1e53ffa39; sorry
about that.
2022-07-20 16:17:33 -07:00
Motiejus Jakštys
fd9b55a640
build.zig: teach --compress-debug-sections
...
Now that #11863 is landed, let's expose it to the zig programs that
build stuff via `build.zig`. "Benchmarks" with [turbonss](https://git.sr.ht/~motiejus/turbonss ):
Built with:
$ zig build -Dtarget=x86_64-linux-gnu.2.19 -Dcpu=x86_64_v3 -Drelease-small=true
*Debug, uncompressed*
174K turbonss-analyze
161K turbonss-getent
1.2M turbonss-unix2db
448K libnss_turbo.so.2.0.0
*Debug, compressed*
78K turbonss-analyze
86K turbonss-getent
572K turbonss-unix2db
190K libnss_turbo.so.2.0.0
*Stripped, for completeness*
17K turbonss-analyze
20K turbonss-getent
197K turbonss-unix2db
26K libnss_turbo.so.2.0.0
2022-07-20 18:26:17 -04:00
Andrew Kelley
c1f3aca602
Merge pull request #12177 from Vexu/packed-ptr
...
stage2 llvm: fix handling of pointer fields in packed structs
2022-07-20 18:22:25 -04:00
Andrew Kelley
379beceffd
improve test case from previous commit
...
Now it checks that the code is correctly compiled rather than only checking
that it does not crash the compiler.
2022-07-20 15:21:24 -07:00
Andrew Kelley
21064d9144
disable std lib test failing with self-hosted ReleaseSafe
...
I opened a corresponding issue #12178 which has the 0.10.0 milestone, so
this must be fixed before we release.
2022-07-20 12:50:58 -07:00
Andrew Kelley
1ec50613bf
CI: increase stage3 test coverage
...
* Use a debug build of stage3 instead of a debug build of stage2 for
our self-hosted compiler test coverage.
* Move coverage from stage1 to stage3 for:
- building self-hosted without LLVM
- building self-hosted for 32-bit arm
- test-compiler-rt
- test-behavior
- test-std
- test-compare-output
- test-asm-link
- test-fmt
2022-07-20 12:27:03 -07:00
Andrew Kelley
08f3c7960a
build.zig: remove deleted .cpp file
2022-07-20 11:10:46 -07:00
Veikka Tuominen
d41dd499a9
stage2 llvm: fix handling of pointer fields in packed structs
2022-07-20 17:07:12 +03:00
Cody Tapscott
de62bd0647
macho: Pass sections by pointer when slicing names
...
We were accidentally returning a pointer to stack memory, because these
arguments were passed by value. It's just an accident that stage 1 was
passing these by reference, so things were alright until stage 3.
2022-07-20 03:45:29 -04:00
Loris Cro
268edce862
Autodoc: fix int expr size for 32bit targets
2022-07-20 08:34:05 +02:00
Andrew Kelley
42b2fb4c5d
Autodoc: stage2 miscompilation workaround
...
There is no issue open for this yet; I will file one after pushing this
commit.
2022-07-19 19:55:12 -07:00
Andrew Kelley
aa1a06bf9b
Autodoc: small polish on the html
2022-07-19 19:10:12 -07:00
Loris Cro
572f9a5602
Autodoc: add warning banner to html
2022-07-19 19:10:12 -07:00
Andrew Kelley
7d636f0f9d
delete the stage1 implementation of autodoc
2022-07-19 19:10:12 -07:00
Andrew Kelley
8df1b91d17
Autodoc: clean up debug printing
...
use std.log.scoped
2022-07-19 19:10:12 -07:00
Andrew Kelley
e5d21e10bc
Autodoc: skip docs when compile errors occur
2022-07-19 19:10:12 -07:00
Andrew Kelley
84adbeb077
Autodoc: update to new array_type ZIR
2022-07-19 19:10:12 -07:00
Andrew Kelley
22d61faf17
Autodoc: update to new ZIR encoding
...
* error_to_int, int_to_error moved to extended
* struct field encodings are different
2022-07-19 19:10:12 -07:00
Loris Cro
ad7bc57919
autodoc: fix rendering of function arguments
2022-07-19 19:10:12 -07:00
Loris Cro
8ec34eb046
autodoc: handle result location instructions
2022-07-19 19:10:12 -07:00
Loris Cro
947eff6e39
autodoc: handle special case of autodoc for std
2022-07-19 19:10:12 -07:00
Loris Cro
54fe5ea4f3
autodoc: add support for new func-related Zir
2022-07-19 19:10:12 -07:00
Vallahor
fed9dcff24
autodoc: @as behavior in js
2022-07-19 19:10:12 -07:00
Vallahor
341431b15c
autodoc: handling more values sections
2022-07-19 19:10:12 -07:00
Loris Cro
24a79426ec
autodoc: update array analysis to new Zir
2022-07-19 19:10:12 -07:00
Vallahor
866bbb2e7a
autodoc: fiedRef type rendering
2022-07-19 19:10:12 -07:00
Vallahor
e7476fd81c
autodoc: handling refPath and fieldRef
2022-07-19 19:10:12 -07:00
Vallahor
81147dd101
autodoc: initial work in opaque_decl
2022-07-19 19:10:12 -07:00
Loris Cro
dd4bd55ef6
autodoc: rework json printing code
...
We're now using `std.json.writeStream`, which makes our prints correct
in terms of escapes and also reduces the amount of json-related code.
Unfortunately, we have to mess around with the json stream writer state
whenever we end up using `std.json.stringify` for convenience.
2022-07-19 19:10:12 -07:00
Loris Cro
45e3b1a23d
autodoc: remove type annotations from main.js
2022-07-19 19:10:12 -07:00
Vallahor
02bd5fe93a
autodoc: experiment get line info
2022-07-19 19:10:12 -07:00
Loris Cro
cd357fc767
autodoc: fix package issue when analyzing stdlib
2022-07-19 19:10:12 -07:00
Loris Cro
d2baf404a5
autodoc: enabled packages
2022-07-19 19:10:12 -07:00
Loris Cro
a5e7b0e4db
autodoc: restore support for zig version + cleanup & init work to fix packages
2022-07-19 19:10:12 -07:00
Vallahor
20b861d805
autodoc: fixing a bug in builtin functions when the typeRef is null
2022-07-19 19:10:12 -07:00
Vallahor
f189e46b8e
autodoc: add some tags
2022-07-19 19:10:12 -07:00
Vallahor
f13db1ce18
autodoc: add cmpxchg_strong/weak
2022-07-19 19:10:12 -07:00
Vallahor
4530b446b1
autodoc: @check array_cat and array_mul
2022-07-19 19:10:12 -07:00
Vallahor
5e52666c83
autodoc: add some builtin functions and float128
2022-07-19 19:10:12 -07:00
Vallahor
9613aca417
autodoc: refactoring binOp
2022-07-19 19:10:12 -07:00
Loris Cro
918475e2e2
autodoc: new design for function list
2022-07-19 19:10:12 -07:00
Loris Cro
06ee275295
autodoc: fix crash when handling siwtch_block instructions
2022-07-19 19:10:12 -07:00
Vallahor
dd9a018185
fix: slice_start, slice_end and slice_sentinel typeRef are now showing the slice type
2022-07-19 19:10:12 -07:00
Vallahor
1f5df0e034
add: slice_start, slice_end and slice_sentinel
2022-07-19 19:10:12 -07:00
Vallahor
b9fa91002e
add: builtins functions
2022-07-19 19:10:12 -07:00
Vallahor
a0ec87be71
add: merge_error_sets and @alignOf() need a checkin to confirm it's fully work
2022-07-19 19:10:12 -07:00
Loris Cro
d858f26139
autodoc: fixes to generic fn support plus linking support
2022-07-19 19:10:12 -07:00
Loris Cro
413cfd4066
autodoc: init generic function support
2022-07-19 19:10:12 -07:00
Loris Cro
51647c305e
autodoc: add buffering to the json writer
2022-07-19 19:10:12 -07:00