Andrew Kelley
f45ba7d0c1
Merge pull request #19562 from Snektron/spirv-remove-cache
...
spirv: remove cache
2024-04-06 13:03:22 -07:00
Jacob Young
f668c8bfd6
x86_64: fix abi of nested structs
2024-04-06 13:02:55 -07:00
Igor Anić
34bb670bb6
package manager: set executable bit
...
Based on file content. Detects elf magic header or shebang line.
Executable bit is ignored in hash calculation, as it was before this. So
packages hashes are not changed.
Reference:
https://github.com/ziglang/zig/issues/17463#issuecomment-1984798880
Fixes: 17463
Test is here:
7c4600d7bb/src/main.zig (L307)
(if #19500 got accepted I'll move this test to the Fetch.zig)
2024-04-06 13:00:57 -07:00
Jacob Young
4a8121c1ab
Sema: fix non-pub usingnamespace in @typeInfo
2024-04-06 12:57:51 -07:00
Jacob Young
4e85536604
Builder: fix encoding big integers in bitcode
...
Closes #19543
2024-04-06 12:53:09 -07:00
antlilja
637b1d606d
LLVM Builder: Emit binary op optional flags for exact and no wrap
2024-04-06 14:57:46 -04:00
Robin Voetter
cbf2ee72e3
spirv: fix some recursive pointers edge cases in dedup pass
2024-04-06 13:37:41 +02:00
Robin Voetter
125d3324d9
spirv: add link progression
2024-04-06 13:37:41 +02:00
Robin Voetter
3e388faecd
spirv: yeet cache
2024-04-06 13:37:40 +02:00
Robin Voetter
ef638502d4
spirv: remove cache usage from assembler
2024-04-06 13:37:40 +02:00
Robin Voetter
97a67762ba
spirv: remove cache usage for types
2024-04-06 13:37:39 +02:00
Robin Voetter
188922a544
spirv: remove cache usage for constants
2024-04-06 13:37:39 +02:00
Robin Voetter
42c7e752e1
spirv: id range helper
...
This allows us to more sanely allocate a continuous
range of result-ids, and avoids a bunch of nasty
casting code in a few places. Its currently not used
very often, but will be useful in the future.
2024-04-06 13:37:37 +02:00
Robin Voetter
3942083806
Merge pull request #18984 from alichraghi/vector
...
spirv: implement `@divFloor`, `@floor`, `@mod` and `@mulWithOverflow`
2024-04-06 13:37:25 +02:00
Josh Wolfe
3eeb70540d
fix number of arguments preallocation in zig jit subcommand
...
crash repo: `zig std 1 2 3 4 5` (in a debug build)
2024-04-06 04:24:00 -04:00
Ali Chraghi
436f53f55d
spirv: implement @mulWithOverflow
2024-04-06 09:01:46 +03:30
Ali Chraghi
9785014938
spirv: OpExtInstImport in assembler
2024-04-06 08:52:38 +03:30
Ali Chraghi
0f75143c62
spirv: implement @divFloor, @floor and @mod
2024-04-06 08:50:02 +03:30
Jakub Konka
23f729aec9
Merge pull request #19260 from mikdusan/macos-zippered
...
macos: add zippered support
2024-04-05 23:37:51 +02:00
Ali Chraghi
14e3718723
spirv: make behavior tests passing
2024-04-05 00:13:48 +03:30
Igor Anić
a60b7af2c1
fetch: fix manifest included paths filtering
...
Filter should be applied on path where package root folder (if
there is any) is stripped. Manifest is inside package root and has paths
relative to package root not temporary directory root.
2024-04-04 01:59:15 +02:00
Igor Anić
8545cb0147
fetch: use package root detection pipeToFileSystem
...
Based on:
https://github.com/ziglang/zig/pull/19111#discussion_r1548620985
In pipeToFileSystem we are already iterating over all files in tarball.
Inspecting them there for existence of single root folder saves two
syscalls later.
2024-04-03 21:20:39 +02:00
Igor Anić
363acf4991
fetch: update comments
2024-04-03 21:17:57 +02:00
Igor Anić
1431e34cb9
fetch: remove one openDir in runResource
...
Based on comment:
https://github.com/ziglang/zig/pull/19111#discussion_r1548640939
computeHash finds all files in temporary directory. There is no
difference on what path are they. When calculating hash normalized_path
must be set relative to package root. That's the place where we strip
root if needed.
2024-04-03 21:01:29 +02:00
Igor Anić
24304a4385
fetch: save syscall, and add comment
...
From review comments: https://github.com/ziglang/zig/pull/19111
2024-04-03 17:08:41 +02:00
Igor Anić
c4261bf562
fetch: find package root only for archives
2024-04-03 17:06:20 +02:00
Igor Anić
15ca0c9471
fix typo
2024-04-03 17:06:20 +02:00
Igor Anić
a5a928b966
package manager: don't strip components in tar
...
Unpack tar without removing leading root folder. Then find package root
in unpacked tmp folder.
2024-04-03 17:06:20 +02:00
Igor Anić
bc5076715b
fetch: fix failing test
...
Prior to
[this](ef9966c985 (diff-08c935ef8c633bb630641d44230597f1cff5afb0e736d451e2ba5569fa53d915R805) )
commit tar was not a valid extension. After that this one is valid case.
2024-04-03 17:06:20 +02:00
Jacob Young
4794c6a526
Sema: fix crash accessing array of opv types
...
Closes #19499
2024-04-02 13:45:07 -07:00
Robin Voetter
d2be725e4b
Merge pull request #19490 from Snektron/spirv-dedup
...
spirv: deduplication pass
2024-04-01 09:51:04 +02:00
Jacob Young
fb192df4f2
cbe: fix uncovered bugs
2024-03-30 20:50:48 -04:00
Jacob Young
7580879e8b
x86_64: cleanup comptime mutable memory change
2024-03-30 20:50:48 -04:00
Jacob Young
eb723a4070
Update uses of @fieldParentPtr to use RLS
2024-03-30 20:50:48 -04:00
Jacob Young
17673dcd6e
AstGen: use RLS to infer the first argument of @fieldParentPtr
2024-03-30 20:50:48 -04:00
Jacob Young
e409afb79b
Update uses of @fieldParentPtr to pass a pointer type
2024-03-30 20:50:48 -04:00
Jacob Young
9b2345e182
Sema: rework @fieldParentPtr to accept a pointer type
...
There is no way to know the expected parent pointer attributes (most
notably alignment) from the type of the field pointer, so provide them
in the first argument.
2024-03-30 20:50:48 -04:00
Jacob Young
5a41704f7e
cbe: rewrite CType
...
Closes #14904
2024-03-30 20:50:48 -04:00
Jacob Young
6f10b11658
cbe: fix bugs revealed by an upcoming commit
...
Closes #18023
2024-03-30 20:50:48 -04:00
Robin Voetter
12350f53bf
spirv: clz, ctz for opencl
...
This instruction seems common in compiler_rt.
2024-03-30 19:47:55 +01:00
Robin Voetter
f5ab3c93c9
spirv: handle annotations in deduplication pass
2024-03-30 19:47:55 +01:00
Robin Voetter
b4960394ef
spirv: avoid copying operands in dedup pass
2024-03-30 19:47:52 +01:00
Robin Voetter
393a805741
spirv: deduplicate prototype
2024-03-30 10:16:18 +01:00
Veikka Tuominen
2d443cdabf
Sema: allow .ptr on pointer to array
2024-03-29 07:10:57 +02:00
Jakub Konka
fda9a32fef
macho: fix double free
2024-03-28 20:17:36 -07:00
Andrew Kelley
3661133f98
Merge pull request #19399 from ypsvlq/mingw
...
mingw: support -municode
2024-03-28 14:16:30 -07:00
Veikka Tuominen
9106fdffaf
Sema: check error union payload types in @errorCast
2024-03-28 15:39:47 +02:00
HydroH
7aa42f47b7
allow @errorcast to cast error sets to error unions
2024-03-28 10:23:32 +00:00
Ian Johnson
424dd17b6c
Autodoc: add all modules to sources.tar
...
Closes #19403
This commit adds all modules in the compilation to the generated
`sources.tar` when using `-femit-docs` (including `std` and `builtin`).
Additionally, it considers the main module when doing so, rather than
the root module, so the behavior when running `zig test -femit-docs
test.zig` is now correct.
2024-03-28 00:30:29 -04:00
Jakub Konka
9dac8db2df
Merge pull request #19430 from ziglang/dwarf-ub
...
link: fix undefined memory being written out in dwarf and codegen
2024-03-27 17:29:30 +01:00