-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Relax] Expose name_hint field for BlockBuilder.match_cast (#16600)
* [Relax] Expose name_hint field for BlockBuilder.match_cast 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. * Fix lint error
- Loading branch information
1 parent
36ebcd0
commit 1e6482c
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters