Skip to content

Incremental compilation progress #21063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
895267c
frontend: incremental progress
mlugg Aug 11, 2024
b65865b
tools: improve incr-check
mlugg Aug 12, 2024
6faa4cc
Zcu: construct full reference graph
mlugg Aug 12, 2024
aa6c1c4
frontend: yet more incremental work
mlugg Aug 13, 2024
936a79f
tools,test: improve incr-check and add new incremental tests
mlugg Aug 13, 2024
434ad90
Sema: disable comptime call memoization under -fincremental
mlugg Aug 13, 2024
93f2d9a
Zcu: typo
mlugg Aug 13, 2024
8f8fe89
Zcu: panic on usingnamespace with -fincremental
mlugg Aug 13, 2024
4e5834a
Compilation: don't queue std analysis twice when testing std
mlugg Aug 13, 2024
50960fa
compiler: be more cautious about source locations
mlugg Aug 13, 2024
3fb5cad
Sema: don't delete reified enum type with error in field
mlugg Aug 13, 2024
1ccbc6c
test: add new incremental test
mlugg Aug 13, 2024
978fe68
Compilation: actually do codegen on non-initial updates
mlugg Aug 14, 2024
46388d3
InternPool: don't remove outdated types
mlugg Aug 14, 2024
5a87808
Sema: don't set union tag type if it's not an enum
mlugg Aug 14, 2024
65cbdef
tools: add CBE option to incr-check
mlugg Aug 16, 2024
84c2ebd
frontend: incremental compilation progress
mlugg Aug 16, 2024
89f02d1
std.zig.Zir: fix declaration traversal
mlugg Aug 16, 2024
90116d9
Compilation: don't call `resolveReferences` unnecessarily
mlugg Aug 17, 2024
04b1354
Zcu: avoid unnecessary re-analysis in some dependency loop situations
mlugg Aug 17, 2024
d63d9b9
compiler: use incremental cache mode with -fincremental
mlugg Aug 17, 2024
9c33241
compiler: merge conflicts and typos
mlugg Aug 17, 2024
7f2466e
std.BoundedArray: add clear()
mlugg Aug 17, 2024
9e6318a
compiler: add some doc comments
mlugg Aug 17, 2024
f0374fe
Compilation: simplify `totalErrorCount`
mlugg Aug 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/std/bounded_array.zig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ pub fn BoundedArrayAligned(
self.len = @intCast(len);
}

/// Remove all elements from the slice.
pub fn clear(self: *Self) void {
self.len = 0;
}

/// Copy the content of an existing slice.
pub fn fromSlice(m: []const T) error{Overflow}!Self {
var list = try init(m.len);
Expand Down
Loading
Loading