zig/lib/compiler
mlugg 9cf8a7661f
compiler: handle eval branch quota in memoized calls
In a `memoized_call`, store how many backwards braches the call
performs. Add this to `sema.branch_count` when using a memoized call. If
this exceeds the quota, perform a non-memoized call to get a correct
"exceeded X backwards branches" error.

Also, do not memoize calls which do `@setEvalBranchQuota` or similar, as
this affects global state which must apply to the caller.

Change some eval branch quotas so that the compiler itself still builds correctly.

This commit manually changes a file in Aro which is automatically
generated. The sources which generate the file are not in this repo.
Upstream Aro should make the suitable changes on their end before the
next sync of Aro sources into the Zig repo.
2024-08-21 01:26:55 +01:00
..
aro compiler: handle eval branch quota in memoized calls 2024-08-21 01:26:55 +01:00
aro_translate_c fix(fmt): pointer type syntax to index (take 2) (#20336) 2024-07-21 01:55:52 -07:00
reduce reduce: fix compile errors 2024-03-24 17:29:39 +01:00
resinator Condense and extend std.Treap's traversal functionalities. (#20002) 2024-07-28 19:47:55 -07:00
aro_translate_c.zig aro_translate_c: fix formatting 2024-07-31 10:33:44 -07:00
build_runner.zig build runner: --fuzz not yet supported on Windows 2024-08-07 00:48:32 -07:00
fmt.zig std.posix: read on timerfd can return error.Canceled 2024-08-08 01:12:26 -07:00
libc.zig
objcopy.zig fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
reduce.zig Rename Dir.writeFile2 -> Dir.writeFile and update all callsites 2024-05-03 13:29:22 -07:00
std-docs.zig std.tar: add writer (#19603) 2024-08-15 22:05:53 -07:00
test_runner.zig fuzzer web ui: introduce entry points 2024-08-07 00:48:32 -07:00