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

rewriter: switch from hardcoded --enable-dav1d_get_picture-post-condition to IA2_{PRE,POST}_CONDITION() attribute annotation macros #510

Open
wants to merge 2 commits into
base: kkysen/fix-test_runner-no-expected-signal
Choose a base branch
from

Conversation

kkysen
Copy link
Contributor

@kkysen kkysen commented Feb 18, 2025

This is much more robust and flexible and is much closer to the end state for how this API will look. It also makes the tests much simpler by encoding the options in the source code to be detected, rather than needing to specify them in the CLI or hardcoded like before.

Will the full gamut of the attribute API is implemented here, we still only support a single post-condition function, and no pre-condition functions yet. Those will come next.

I also tested this more thoroughly in another branch with mostly complete multiple pre- and post-condition functions, but that implementation is more complex, so I wanted to put this in a separate PR.

@kkysen kkysen force-pushed the kkysen/pre-post-condition-attribute branch from 154db2d to a34c1e9 Compare February 18, 2025 10:49
@kkysen kkysen changed the base branch from main to kkysen/fix-test_runner-no-expected-signal February 18, 2025 10:50
@kkysen kkysen force-pushed the kkysen/fix-test_runner-no-expected-signal branch from 3e27278 to f451293 Compare February 19, 2025 02:23
@kkysen kkysen force-pushed the kkysen/pre-post-condition-attribute branch from a34c1e9 to 4e4b367 Compare February 19, 2025 02:23
kkysen added 2 commits March 2, 2025 23:45
…ition` to `IA2_{PRE,POST}_CONDITION()` attribute annotation macros

This is much more robust and flexible
and is much closer to the end state for how this API will look.
It also makes the tests much simpler by encoding the options in the source code to be detected,
rather than needing to specify them in the CLI or hardcoded like before.

Will the full gamut of the attribute API is implemented here,
we still only support a single post-condition function,
and no pre-condition functions yet.
Those will come next.

I also tested this more thoroughly in another branch
with mostly complete multiple pre- and post-condition functions,
but that implementation is more complex,
so I wanted to put this in a separate PR.
@kkysen kkysen force-pushed the kkysen/fix-test_runner-no-expected-signal branch from f451293 to 1d2b357 Compare March 3, 2025 07:47
@kkysen kkysen force-pushed the kkysen/pre-post-condition-attribute branch from 4e4b367 to 1c5b9f6 Compare March 3, 2025 07:47
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.

1 participant