Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relax] Expose name_hint field for BlockBuilder.match_cast #16600

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, while a relax.VarBinding created using BlockBuilder.emit could have its name explicitly specified by the user, a relax.MatchCast created using BlockBuilder.match_cast could not. This commit updates BlockBuilder.match_cast to accept an optional name_hint parameter, which is then provided to the C++ BlockBuilder::EmitMatchCast method.

Prior to this commit, while a `relax.VarBinding` created using
`BlockBuilder.emit` could have its name explicitly specified by the
user, a `relax.MatchCast` created using `BlockBuilder.match_cast`
could not.  This commit updates `BlockBuilder.match_cast` to accept an
optional `name_hint` parameter, which is then provided to the C++
`BlockBuilder::EmitMatchCast` method.
@Hzfengsy Hzfengsy merged commit 1e6482c into apache:main Feb 19, 2024
19 checks passed
@Lunderberg Lunderberg deleted the relax_allow_explicit_match_cast_name branch February 20, 2024 14:19
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