-
Notifications
You must be signed in to change notification settings - Fork 566
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
Add C Interface for Optimizer #5030
Conversation
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.
This looks good.
But it needs at least one test to cover the new functionality.
Please add a test/opt/c_interface_test.cpp
And remember to update both |
I agree. Looks good. It just needs a test. Than the CI will let you know if you missed any build files. |
@daniel-story Are you still working on this? |
Apologies for the lack of movement on this. Yes, I am still intending to work on this, but more time sensitive work has been taking precedence. It was less time-consuming to propose the PR in its current form as the C interface code was already written and being used in our fork, but I'll need to find time to implement the test code. As an aside, looking over this again I think it may also make sense to make two small tweaks to the
I feel pretty strongly in favor of the first change, and more in favor than not about the second. Do you have any thoughts? Assuming you're on board with these, I'll try to make both changes and push them along with the tests sometime within the next 2 weeks. |
For consistency, I think that is a good idea.
Sure. |
576d62a
to
20ea00c
Compare
I’ve added a set of tests for the newly added functionality. I also updated the CMakeLists.txt and verified that a full test run passes successfully. Regarding the Android tests, I couldn’t find anywhere to add these tests to the Android.mk miles as none of the Android.mk files in the project include seem to include any of the tests currently. I don’t think it’s realistic to expect this PR to port all the tests in SPIRV-Tools to Android, not just because it seems very out of scope but also because I’m not set up to build or run anything on Android. Please let me know if you have any more comments, or if I missed or misunderstood something. Otherwise, this PR should be ready to merge. |
20ea00c
to
5cc5a5e
Compare
5cc5a5e
to
691fa5d
Compare
The windows 2019 bots probably failed because you need to rebase. I'll merge anyway. Other windows tests passed. |
This PR implements a C interface for the Optimizer class. It follows the same pattern established by the existing C interfaces for other classes in SPIRV-Tools.