Skip to content

Conversation

lsrcz
Copy link
Collaborator

@lsrcz lsrcz commented Sep 17, 2025

This pull request adds a flag to the DSLX-to-IR converter that forces all functions to use the implicit-token calling convention.
We need this to enable IR transformations that insert assertions into existing programs, which requires converting the function to the implicit-token convention.
Previously, this was impossible because the activation bit could not be inferred from the converted IR alone.
To support this behavior, we introduce a new flag that instructs the converter to generate implicit tokens for all functions.

This includes a breaking change to the C API to include the flag.

@lsrcz lsrcz requested a review from cdleary September 17, 2025 23:59
GetModuleMemberTypeName(*member.value()), node->identifier(),
node->span().ToString(file_table())));
}},
Visitor{[&](Function* f) { return DefAlias(f, /*to=*/node); },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did this change? hard to see

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