-
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.
[TVMScript] Distinguish between void* and handle (#14488)
Prior to this PR, the type annotations `PrimType(DataType::Handle())` and `PointerType(PrimType(DataType::Void()))` are both represented as `T.handle` in TVMScript, which can cause failures to round-trip between TIR and TVMScript. This PR keeps `PrimType(DataType::Handle())` as `T.handle`, but updates the representation of `PointerType(PrimType(DataType::Void()))` to `T.handle("void")` in order to distinguish between these two cases.
- Loading branch information
1 parent
4e07a8e
commit 6ef73e0
Showing
3 changed files
with
45 additions
and
6 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