Skip to content

[interpreter] Add func.new to IR - #5

Merged
titzer merged 5 commits into
mainfrom
add_ir
Dec 10, 2025
Merged

[interpreter] Add func.new to IR#5
titzer merged 5 commits into
mainfrom
add_ir

Conversation

@titzer

@titzer titzer commented Dec 9, 2025

Copy link
Copy Markdown

No description provided.

@titzer

titzer commented Dec 9, 2025

Copy link
Copy Markdown
Author

@rossberg PTAL; this just adds the instruction to the IR to get the ball rolling. I added cases to the validator and encoder as they are required for exhaustive pattern matching. For the opcode, I chose the next opcode after those from the custom-descriptors proposal.

Comment thread interpreter/text/arrange.ml Outdated

@rossberg rossberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with comments/question

Comment thread interpreter/text/parser.mly Outdated
Comment thread interpreter/syntax/ast.ml Outdated
@titzer
titzer merged commit 022b130 into main Dec 10, 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

Development

Successfully merging this pull request may close these issues.

3 participants