Skip to content

BVI inline - #1445

Merged
tanyongkiam merged 7 commits into
masterfrom
bvi-inline
Aug 12, 2026
Merged

BVI inline#1445
tanyongkiam merged 7 commits into
masterfrom
bvi-inline

Conversation

@tanyongkiam

Copy link
Copy Markdown
Contributor

Add a BVI inlining pass (which currently is effectively a no-op).

tanyongkiam and others added 7 commits August 7, 2026 06:30
The new pass substitutes calls to worker-wrapper functions whose shape it
recognises, keeping a cache of eligible wrappers in the compiler config so the
substitution also applies across incremental compilation units. It runs at the
end of the bvl_to_bvi stage, is name preserving, and recognises a deliberately
narrow set of wrappers so that supporting a new worker-wrapper protocol is a
one-place change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The bvl_to_bvi compile function now calls the pass, so the bootstrap
translator and cv_compute both need to cover it, and the configuration
serialiser has to encode BVI expressions for the inliner's cache.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tanyongkiam
tanyongkiam merged commit 0fe74ee into master Aug 12, 2026
1 check was pending
@tanyongkiam
tanyongkiam deleted the bvi-inline branch August 12, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants