Skip to content

refactor(veryl)!: pass lowering state and dependency collectors explicitly - #1531

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc
Oct 19, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc

Conversation

@tignear

@tignear tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Own loop bounds in each lowering arena and pass file dependency collectors
through frontend configuration, simulator builders, worker lowering and testbench
sources. Scratch arenas copy bounds without sharing mutations; nested scopes
restore their bounds on unwind. Remove both production thread-local stores.

Expose collector-aware direct Veryl and mixed compilation variants so callers
can capture readmem dependencies without changing existing compile APIs.

BREAKING CHANGE: capture_file_dependencies now supplies a collector argument to
its callback. Pass that collector through SimulatorBuilder::file_dependency_collector
or BuildConfig::file_dependencies. BuildConfig gains the collector field.

Validation: 89 frontend unit tests, 330 readmem/loop consumer tests and the
Heliodor file-cache invalidation regression pass. Frontend/bench all-target
Clippy and formatting pass; existing unsupported backend exclusions remain.

Direct API validation: both new collector regressions and 44 initial/readmem
tests pass with systemverilog enabled. Focused Clippy, rustdoc and formatting
pass.

Depends-On: #1530

@tignear

tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 docs(sv): separate the getting-started guide from the language reference #1522
2 fix(sv): handle Veryl-emitted interface declarations and calls #1525
3 fix(sv): preserve parameter overrides with explicit analysis state #1526
4 refactor(native): own emission state in the assembler #1530
5 refactor(veryl)!: pass lowering state and dependency collectors explicitly #1531 👈
6 refactor(vpi)!: own runtime state in an explicit VPI session #1532
7 chore(lint): prohibit thread-local state outside unit tests #1533

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T08:38:53.368323Z 87c8f5e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fcd71e81d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox/src/simulator/builder.rs Resolved
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc branch from fcd71e8 to 4aa94ef Compare October 19, 2026 06:42
@tignear

tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial fcd71e8 2026-10-19 06:42 UTC
2 content fcd71e8 → 4aa94ef Address review r4310912082: expose dependency collectors through direct compilation APIs and add regressions. 2026-10-19 06:42 UTC
3 rebase 4aa94ef → 23b440b (rebase only) Replay unchanged descendant after the CI catalogue assertion fix in #1525. 2026-10-19 07:08 UTC
4 rebase 23b440b → a6397b5 (rebase only) Replay unchanged descendant after the package call-site identity fix in #1526. 2026-10-19 07:35 UTC
5 content a6397b5 → 87c8f5e (raw) Replay unchanged collector change onto the resolved stack. 2026-10-19 08:34 UTC

@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/own-emission-state-assembler--41d8a35b branch from aef3c90 to bad3c8a Compare October 19, 2026 07:08
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc branch 2 times, most recently from 23b440b to a6397b5 Compare October 19, 2026 07:35
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/own-emission-state-assembler--41d8a35b branch from bad3c8a to 1a2c5f8 Compare October 19, 2026 07:35
…citly

Own loop bounds in each lowering arena and pass file dependency collectors
through frontend configuration, simulator builders, worker lowering and testbench
sources. Scratch arenas copy bounds without sharing mutations; nested scopes
restore their bounds on unwind. Remove both production thread-local stores.

Expose collector-aware direct Veryl and mixed compilation variants so callers
can capture readmem dependencies without changing existing compile APIs.

BREAKING CHANGE: capture_file_dependencies now supplies a collector argument to
its callback. Pass that collector through SimulatorBuilder::file_dependency_collector
or BuildConfig::file_dependencies. BuildConfig gains the collector field.

Validation: 89 frontend unit tests, 330 readmem/loop consumer tests and the
Heliodor file-cache invalidation regression pass. Frontend/bench all-target
Clippy and formatting pass; existing unsupported backend exclusions remain.

Direct API validation: both new collector regressions and 44 initial/readmem
tests pass with systemverilog enabled. Focused Clippy, rustdoc and formatting
pass.

Change-Id: Ie622a8fc4f6faf3456a2dd28d1fbb301c8f3b4ae
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc branch from a6397b5 to 87c8f5e Compare October 19, 2026 08:35
@tignear
tignear force-pushed the stack/tignear/fix/sv-conformance-gaps/own-emission-state-assembler--41d8a35b branch from 1a2c5f8 to 8609a84 Compare October 19, 2026 08:35
@mergify mergify Bot added the queued Mergify queue entry label Oct 19, 2026
@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 3 hours 18 minutes 5 seconds in the queue, including 4 hours 34 minutes 50 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1530 [⛓️ refactor(native): own emission state in the assembler #1530]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

Base automatically changed from stack/tignear/fix/sv-conformance-gaps/own-emission-state-assembler--41d8a35b to master October 19, 2026 12:46
@mergify
mergify Bot merged commit 02e5bcf into master Oct 19, 2026
35 of 56 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-conformance-gaps/pass-lowering-state-dep-collectors-explicitly--e622a8fc branch October 19, 2026 13:37
@mergify mergify Bot removed the queued Mergify queue entry label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant