Skip to content

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
@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