Skip to content

Allow dynamic constant values to coerce to static across callable boundaries in RCA#3502

Open
swernli wants to merge 1 commit into
mainfrom
swernli/rca-coerce-dynamic-constant
Open

Allow dynamic constant values to coerce to static across callable boundaries in RCA#3502
swernli wants to merge 1 commit into
mainfrom
swernli/rca-coerce-dynamic-constant

Conversation

@swernli

@swernli swernli commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This adds functionality to RCA that coerces some dynamic constants into static during calculation of callable arguments, mimicking functionality added to partial eval in #3491. This allows APIs like Std.TableLookup.Select to pass RCA, but notably only fixes generation of body implementation; calls to Adjoint Select invoke a code path that passes RCA but fails in partial eval due to missing support for emitting arrays with dynamic contents into QIR.

…ndaries in RCA

This adds functionality to RCA that coerces some dynamic constants into static during calculation of callable arguments, mimicking functionality added to partial eval in #3491. This allows APIs like `Std.TableLookup.Select` to pass RCA, but notably only fixes generation of body implementation; calls to `Adjoint Select` invoke a code path that passes RCA but fails in partial eval due to missing support for emitting arrays with dynamic contents into QIR.
@swernli
swernli requested review from amcasey and idavis as code owners July 22, 2026 21:25
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