Skip to content

Adding vm.optimization_barrier and on-demand ordinal analysis. - #23115

Merged
benvanik merged 1 commit into
mainfrom
users/benvanik/vm-jit-13
Jan 14, 2026
Merged

benvanik merged 1 commit into
mainfrom
users/benvanik/vm-jit-13

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

Moves the optimization barrier into the VM dialect so that VM modules are self-contained and don't need to pull in util dialect ops. A new VM DropOptimizationBarriers pass strips them prior to serialization. OrdinalAnalysis now computes function/global/rodata ordinals on-demand during bytecode emission instead of storing them as attributes on ops to keep the IR cleaner/prevent drift (avoids needing to keep attributes in sync across passes).

EmitC has issues but (always has, it's been silently folding for ages).

ci-extra: all

@benvanik benvanik added compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) cleanup 🧹 labels Jan 13, 2026
@benvanik
benvanik force-pushed the users/benvanik/vm-jit-13 branch 4 times, most recently from 8b598d3 to e68ce4f Compare January 14, 2026 05:13
Moves the optimization barrier into the VM dialect so that VM modules
are self-contained and don't need to pull in util dialect ops. A new
DropOptimizationBarriers pass strips them prior to serialization.
OrdinalAnalysis now computes function/global/rodata ordinals on-demand
during bytecode emission instead of storing them as attributes on ops.
This simplifies the IR and avoids needing to keep attributes in sync.

EmitC has issues but (always has, it's been silently folding for ages).
@benvanik
benvanik force-pushed the users/benvanik/vm-jit-13 branch from e68ce4f to 17cbdb8 Compare January 14, 2026 05:51
@benvanik
benvanik marked this pull request as ready for review January 14, 2026 07:47
@benvanik
benvanik requested a review from ScottTodd as a code owner January 14, 2026 07:47
@benvanik
benvanik merged commit aa776b3 into main Jan 14, 2026
@benvanik
benvanik deleted the users/benvanik/vm-jit-13 branch January 14, 2026 16:09
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
Moves the optimization barrier into the VM dialect so that VM modules
are self-contained and don't need to pull in util dialect ops. A new VM
DropOptimizationBarriers pass strips them prior to serialization.
OrdinalAnalysis now computes function/global/rodata ordinals on-demand
during bytecode emission instead of storing them as attributes on ops to
keep the IR cleaner/prevent drift (avoids needing to keep attributes in
sync across passes).

EmitC has issues but (always has, it's been silently folding for ages).

ci-extra: all
Signed-off-by: Keshav Vinayak Jha <[email protected]>
MaheshRavishankar pushed a commit to MaheshRavishankar/iree that referenced this pull request Feb 24, 2026
…org#23115)

Moves the optimization barrier into the VM dialect so that VM modules
are self-contained and don't need to pull in util dialect ops. A new VM
DropOptimizationBarriers pass strips them prior to serialization.
OrdinalAnalysis now computes function/global/rodata ordinals on-demand
during bytecode emission instead of storing them as attributes on ops to
keep the IR cleaner/prevent drift (avoids needing to keep attributes in
sync across passes).

EmitC has issues but (always has, it's been silently folding for ages).

ci-extra: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant