Skip to content

ZJIT: Inline well-known C functions into HIR#14679

Merged
tekknolagi merged 6 commits intoruby:masterfrom
tekknolagi:mb-inline-cfunc-2
Oct 14, 2025
Merged

ZJIT: Inline well-known C functions into HIR#14679
tekknolagi merged 6 commits intoruby:masterfrom
tekknolagi:mb-inline-cfunc-2

Conversation

@tekknolagi
Copy link
Contributor

@tekknolagi tekknolagi commented Sep 30, 2025

Add the ability to create a Rust function that "open-codes" HIR
implementations of specific well-known C functions, starting with
String#to_s. It supports emitting multiple instructions into a
temporary block, but does not support emitting new blocks (yet?).

Fix Shopify#792

@tekknolagi tekknolagi force-pushed the mb-inline-cfunc-2 branch 2 times, most recently from 4fafe7e to 34d9eaf Compare October 1, 2025 14:32
@tekknolagi tekknolagi marked this pull request as ready for review October 1, 2025 15:01
@matzbot matzbot requested a review from a team October 1, 2025 15:01
Add the ability to create a Rust function that "open-codes" HIR
implementations of specific well-known C functions, starting with
`String#to_s`. It supports emitting multiple instructions into a
temporary block, but does not support emitting *new blocks* (yet?).
@tekknolagi tekknolagi enabled auto-merge (squash) October 14, 2025 14:58
@tekknolagi tekknolagi merged commit de31017 into ruby:master Oct 14, 2025
86 checks passed
@tekknolagi tekknolagi deleted the mb-inline-cfunc-2 branch October 14, 2025 15:13
tekknolagi added a commit to tekknolagi/ruby that referenced this pull request Oct 14, 2025
tekknolagi added a commit to tekknolagi/ruby that referenced this pull request Oct 15, 2025
tekknolagi added a commit that referenced this pull request Oct 15, 2025
@tekknolagi tekknolagi linked an issue Oct 16, 2025 that may be closed by this pull request
4 tasks
aidenfoxivey pushed a commit to aidenfoxivey/ruby that referenced this pull request Oct 17, 2025
Add the ability to create a Rust function that "open-codes" HIR
implementations of specific well-known C functions, starting with
`String#to_s`. It supports emitting multiple instructions into a
temporary block, but does not support emitting *new blocks* (yet?).

Fix Shopify#792
aidenfoxivey pushed a commit to aidenfoxivey/ruby that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants