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

Make Callable::call_argv_fast public #7315

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

twesterhout
Copy link
Contributor

Addresses #7314.

I'm wondering, is the argv-based calling convention is documented somewhere? If so, I can add a reference to the doc string.

@steven-johnson
Copy link
Contributor

is the argv-based calling convention is documented somewhere

Probably not, at least not as well as it should be. Basically:

  • All scalar arguments are passed by pointer, not by value, regardless of size
  • All buffer arguments (input or output) are passed as halide_buffer_t*
  • All arguments are passed in the same order as they appear in the C function argument list

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

LGTM pending green buildbots.

@twesterhout
Copy link
Contributor Author

One of the Windows builds is failing. It can't have anything to do with the latest commits, can it? I've only changed the wording in the comments...

@steven-johnson
Copy link
Contributor

One of the Windows builds is failing. It can't have anything to do with the latest commits, can it? I've only changed the wording in the comments...

Yes, unfortunately our Windows buildbots are in need of some love and that's one of the flakes. This is fine to land.

@steven-johnson steven-johnson merged commit 0782d80 into halide:main Feb 1, 2023
@twesterhout twesterhout deleted the expose-argv-call branch February 1, 2023 18:59
steven-johnson pushed a commit that referenced this pull request Feb 28, 2023
* Make Callable::call_argv_fast public

* Add rough specification of the calling convention

* Fix a typo
steven-johnson added a commit that referenced this pull request Mar 1, 2023
* Make Callable::call_argv_fast public (#7315)

* Make Callable::call_argv_fast public

* Add rough specification of the calling convention

* Fix a typo

* Add Callable default ctor + `defined()` method (#7380)

* Add Callable default ctor + `defined()` method

This allows it to behave like

* Add user_assert + test

---------

Co-authored-by: Tom Westerhout <14264576+twesterhout@users.noreply.github.com>
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Make Callable::call_argv_fast public

* Add rough specification of the calling convention

* Fix a typo
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.

2 participants