-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[CodegenC] Explicit forward function declarations #13522
[CodegenC] Explicit forward function declarations #13522
Conversation
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 |
tests/python/contrib/test_cmsisnn/test_forward_function_declarations.py
Outdated
Show resolved
Hide resolved
tests/python/contrib/test_cmsisnn/test_forward_function_declarations.py
Outdated
Show resolved
Hide resolved
b214f65
to
0f4898a
Compare
|
||
|
||
def skip_if_no_reference_system(func): | ||
return tvm.testing.skip_if_32bit(reason="Reference system unavailable in i386 container")(func) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use @tvm.testing.requires_corstone300
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
e46b0e7
to
4f3db7a
Compare
armclang 6.19 does not support implicit function declarations. This commit adds support for generating forward function declarations in the C file generated for __tvm_main__. All the non-pure extern functions called from __tvm_main__ will be declared explicitly in this file. Change-Id: I03b12e6c844911bd7edb6e42ddd2b17f066bd0fa
4f3db7a
to
23619e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @ashutosh-arm! Thanks for all the updates 😸
armclang 6.19 emits an error for implicit function declarations. This commit adds support for generating forward function declarations in the C file generated for __tvm_main__. All the non-pure extern functions called from __tvm_main__ will be declared explicitly in this file.
armclang 6.19 emits an error for implicit function declarations. This commit adds support for generating forward function declarations in the C file generated for __tvm_main__. All the non-pure extern functions called from __tvm_main__ will be declared explicitly in this file.
armclang 6.19 does not support implicit function declarations. This commit adds support for generating forward function declarations in the C file generated for tvm_main.
cc @Mousius @lhutton1