Veikka Tuominen
d0edaabf9d
Value: fix elemValueAdvanced for optional payloads
...
Closes #13707
2022-12-01 11:49:06 +02:00
Veikka Tuominen
98037a0238
compiler-rt: disable some exports for ofmt=c
2022-11-30 17:20:34 +02:00
Veikka Tuominen
f8b779c114
cbe: write more instructions inline
2022-11-30 17:13:56 +02:00
Veikka Tuominen
11ec7109c3
cbe: do not memcpy identical integer types when bitcasting
2022-11-30 17:11:06 +02:00
Veikka Tuominen
15cc83e27a
cbe: reduce amount of temporary locals
2022-11-30 17:11:06 +02:00
Veikka Tuominen
f4afeb3ffd
AstGen: fix incorrect handling of source cursor with shift builtins
...
Closes #13714
2022-11-30 17:11:06 +02:00
Veikka Tuominen
7be6f352e3
cbe: fix asm return values
2022-11-30 15:14:34 +02:00
Veikka Tuominen
3281494dc5
cbe: prevent access of inactive union field in unimplemented instructions
2022-11-30 15:14:34 +02:00
Veikka Tuominen
a67ea4a4ae
cbe: include hash in tuple type name
...
Different (simple) tuple types do not necessarily print out as different strings.
This is issue would be caused by passing std.fmt.Formatter to std.fmt.format.
2022-11-30 15:14:33 +02:00
Veikka Tuominen
2dcac348e5
cbe: implement packed unions
2022-11-30 15:14:33 +02:00
Veikka Tuominen
1a1a5702ab
cbe: correctly handle pointers to zero bit error union payloads
2022-11-30 15:14:33 +02:00
Veikka Tuominen
4def9c4a9b
cbe: operand of address of operator must be an lvalue
2022-11-30 15:14:33 +02:00
Veikka Tuominen
6310186d52
cbe: cast pointer switch target to int
2022-11-30 15:14:33 +02:00
Veikka Tuominen
8af5648015
Sema: make inferred allocs always mutable
...
Const allocs don't make any sense, make_ptr_const handles making
the pointers not mutable.
2022-11-30 15:14:33 +02:00
Veikka Tuominen
63ae7899ae
cbe: ensure test and tagName function names are unique
2022-11-30 15:14:33 +02:00
Andrew Kelley
71038c42f5
Merge pull request #13513 from ziglang/faster-wasm-gpa
...
WebAssembly-only fast allocator
2022-11-30 01:46:37 -05:00
Andrew Kelley
7f063b2c52
WasmAllocator: simplify thanks to new Allocator interface
...
Now it can refuse to resize when it would disturb the metadata tracking
strategy, resulting in smaller code size, a simpler implementation, and
less fragmentation.
2022-11-29 23:46:02 -07:00
Andrew Kelley
931261752d
rename a couple variables
2022-11-29 23:46:02 -07:00
Andrew Kelley
e2e60f5ff9
std.heap.WasmAllocator: redo
...
The previous version had a fatal flaw: it did ensureCapacity(1) on the
freelist when allocating, but I neglected to consider that you could
free() twice in a row. Silly!
This strategy allocates an intrusive freelist node with every
allocation, big or small. It also does not have the problems with resize
because in this case we can push the upper areas of freed stuff into the
corresponding freelist.
2022-11-29 23:46:02 -07:00
Andrew Kelley
3dcea95ffe
std.heap.WasmAllocator: implement resizing
2022-11-29 23:46:02 -07:00
Andrew Kelley
d4a1ae474a
std.heap.WasmAllocator: resize in place without force shrinking
2022-11-29 23:46:02 -07:00
Andrew Kelley
0c0c70ee82
std.heap.WasmAllocator: large allocations
2022-11-29 23:46:02 -07:00
Andrew Kelley
3ea04ed64c
introduce std.heap.WasmAllocator
...
fast allocator for WebAssembly
eventually this is intended to be merged into
`std.heap.GeneralPurposeAllocator`
2022-11-29 23:46:02 -07:00
Andrew Kelley
9f8c19210b
std.heap: extract PageAllocator, WasmPageAllocator
2022-11-29 23:46:02 -07:00
Andrew Kelley
e35f297aeb
Merge pull request #13666 from ziglang/allocator-interface
...
std.mem.Allocator: allow shrink to fail
2022-11-30 01:44:34 -05:00
Andrew Kelley
f466667888
stage2: fix crash on comptime lazy @ctz and @clz
2022-11-29 23:30:38 -07:00
Andrew Kelley
ceb0a632cf
std.mem.Allocator: allow shrink to fail
...
closes #13535
2022-11-29 23:30:38 -07:00
Andrew Kelley
deda6b5146
LLVM: fix canElideLoad behavior with loops
...
closes #13546
2022-11-30 00:20:49 -05:00
Andrew Kelley
b8473ae7d3
Merge pull request #13693 from Vexu/safety
...
Safety panic improvements & some bug fixes
2022-11-29 19:59:55 -05:00
Jakub Konka
648579b330
libstd: skip problematic tests on aarch64-windows
2022-11-30 00:26:40 +01:00
Jakub Konka
37a9b78bc1
Merge pull request #13701 from ziglang/arm-win-more-features
...
Improve aarch64 feature detection based on the readouts from privileged system registers
2022-11-30 00:20:38 +01:00
Loris Cro
52e1be9c68
Revert "ci: add markers for collapsing log sections in GH web UI"
...
This reverts commit 6028adda4bc456d95dada6d1b9b91756ae6b5377.
2022-11-29 22:55:04 +01:00
Loris Cro
6028adda4b
ci: add markers for collapsing log sections in GH web UI
2022-11-29 22:03:30 +01:00
Veikka Tuominen
b2b1d421c3
Sema: add missing failWithBadMemberAccess to zirExport
...
The assumption that AstGen would error only holds when exporting
a identifier not a namespace member.
2022-11-29 21:44:08 +02:00
Veikka Tuominen
4b0ef6a409
Sema: make non-existent field error point to field name
...
Closes #13698
2022-11-29 21:44:08 +02:00
Veikka Tuominen
6f5a438946
AstGen: unstack block scope when creating opaque type
...
Closes #13697
2022-11-29 21:44:08 +02:00
Veikka Tuominen
e60db701d1
Sema: add option to disable formatted panics
...
Closes #13174
2022-11-29 21:44:08 +02:00
Veikka Tuominen
ed73429926
Sema: explain why parameter must be declared comptime
...
Closes #13692
2022-11-29 21:44:08 +02:00
Veikka Tuominen
17ff002bc0
Sema: improve safety panic for access of inactive union field
2022-11-29 21:44:08 +02:00
Jakub Konka
9d0ea0e3f1
arm: implement CPU feature detection by parsing system registers
...
Also add an incomplete table implementing instruction fusions according
to official optimisation programming manuals.
2022-11-29 19:24:42 +01:00
Jakub Konka
988fff260e
windows: map CP 40xx registry values to system ID registers
2022-11-29 19:24:42 +01:00
Jakub Konka
152202da77
windows: if detecting CPU feature set and model fails, use generic with overrides
2022-11-29 19:24:42 +01:00
Veikka Tuominen
6337c04244
Sema: improve panic for slice start index being greater than end index
...
Closes #13689
2022-11-29 15:47:02 +02:00
Veikka Tuominen
6f9c7e33b9
llvm: implement union_init for packed unions
...
Closes #13664
2022-11-29 15:47:02 +02:00
Veikka Tuominen
34be5784a3
parser: disallow defer and variable declaration as else branch
...
Closes #13658
2022-11-29 15:47:02 +02:00
Jakub Konka
1829b6eab8
Merge pull request #13625 from kcbanner/windows_disable_symlink_tests
...
Skip linker tests requiring symlinks on Windows
2022-11-29 02:57:37 +01:00
Jakub Konka
033aa1d761
aarch64-windows: skip failing standalone tests
2022-11-28 19:45:53 -05:00
Jakub Konka
870872dd63
aarch64-windows: skip failing floatop behavior test
2022-11-28 18:10:51 -05:00
Jakub Konka
07bf4de6a9
aarch64-windows: skip failing align behavior test
2022-11-28 18:10:51 -05:00
Jakub Konka
7bcc1282e2
Update build.zig
2022-11-28 22:04:42 +01:00