Skip to content

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