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

[TVMScript] Handle parsing of PrimFunc calls with non-void return #15239

Merged

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, the return type of all internal function calls was hard-coded as "void". After this commit, the GlobalVar representing the internal function has type annotation based on the callee's signature, which is then used as the return type of the internal call.

Prior to this commit, the return type of all internal function calls
was hard-coded as `"void"`.  After this commit, the `GlobalVar`
representing the internal function has type annotation based on the
callee's signature, which is then used as the return type of the
internal call.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Jul 5, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@Lunderberg
Copy link
Contributor Author

@tvm-bot rerun

@Hzfengsy Hzfengsy merged commit 3a33771 into apache:main Jul 7, 2023
6 checks passed
@Lunderberg Lunderberg deleted the tvmscript_subroutine_call_returning_nonvoid branch July 7, 2023 17:53
junrushao pushed a commit to junrushao/tvm that referenced this pull request Jul 15, 2023
…ache#15239)

* [TVMScript] Handle parsing of PrimFunc calls with non-void return

Prior to this commit, the return type of all internal function calls
was hard-coded as `"void"`.  After this commit, the `GlobalVar`
representing the internal function has type annotation based on the
callee's signature, which is then used as the return type of the
internal call.

* Update CallNode return type in MakeUnpackedAPI
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.

3 participants