Skip to content

Prevent parameter names of top functions from being changed during ir conversion.#3889

Open
meheff wants to merge 2 commits intogoogle:mainfrom
xlsynth:meheff/2026-02-25-param-name
Open

Prevent parameter names of top functions from being changed during ir conversion.#3889
meheff wants to merge 2 commits intogoogle:mainfrom
xlsynth:meheff/2026-02-25-param-name

Conversation

@meheff
Copy link
Collaborator

@meheff meheff commented Feb 25, 2026

The parameter names of top functions become part of the exposed interface in the generated code. These names need to be preserved. This change raises an error if the legalized name during IR conversion differs from the original name.

A potentially more flexible change would be allow keywords as identifiers, but that is pretty invasive and I don't know if there are hidden problems here. This change at lease prevents silently renaming the visible interface of functions/modules.

The parameter names of top functions become part of the exposed interface in the generated code. These names need to be preserved. This change raises an error if the legalized name during IR conversion differs from the original name.
@meheff meheff changed the title Disallow parameter names of top functions to be changed during ir conversion. Prevent parameter names of top functions from being changed during ir conversion. Feb 25, 2026
`block` is an IR keyword.
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.

1 participant