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

[CodegenC] Explicit forward function declarations #13522

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

ashutosh-arm
Copy link
Contributor

@ashutosh-arm ashutosh-arm commented Nov 30, 2022

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

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 30, 2022

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.

  • No users to tag found in teams: codegenc See #10317 for details
  • Built docs for commit 4f3db7a can be found here.

Generated by tvm-bot

@github-actions github-actions bot requested review from Mousius and lhutton1 November 30, 2022 14:34
@ashutosh-arm ashutosh-arm force-pushed the explicit_function_declaration branch 3 times, most recently from b214f65 to 0f4898a Compare December 2, 2022 17:06


def skip_if_no_reference_system(func):
return tvm.testing.skip_if_32bit(reason="Reference system unavailable in i386 container")(func)
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@ashutosh-arm ashutosh-arm force-pushed the explicit_function_declaration branch 2 times, most recently from e46b0e7 to 4f3db7a Compare December 6, 2022 17:11
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
@ashutosh-arm ashutosh-arm force-pushed the explicit_function_declaration branch from 4f3db7a to 23619e7 Compare December 7, 2022 09:28
Copy link
Member

@Mousius Mousius left a 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 😸

@Mousius Mousius self-assigned this Dec 7, 2022
@Mousius Mousius merged commit eda84e7 into apache:main Dec 7, 2022
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
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.
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
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.
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