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

spirv-fuzz: Create a helper in fuzzerutil to reuse function type #3572

Merged
merged 4 commits into from Jul 23, 2020

Conversation

Vasniktel
Copy link
Collaborator

Fixes #3534.

Copy link
Contributor

@afd afd left a comment

Choose a reason for hiding this comment

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

Looks good! Some changes requested.

source/fuzz/fuzzer_util.cpp Outdated Show resolved Hide resolved
source/fuzz/fuzzer_util.h Outdated Show resolved Hide resolved
source/fuzz/fuzzer_util.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@afd afd left a comment

Choose a reason for hiding this comment

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

The changes look good. I left a couple of comments on variable naming that I recommend making but don't insist on.

There's one thing I don't like about this: suppose that f's current type has only 1 user, but the new type for f already exists. In that case we add the new type to the module and change f so it has that type, but we leave the old type in the module even though it has no users.

I feel like it would be more natural to remove the old type in that case. What do you think @Vasniktel ? Perhaps I am over-thinking it - it would be unlikely to arise.

@Vasniktel Vasniktel requested a review from afd July 22, 2020 14:53
Copy link
Contributor

@afd afd left a comment

Choose a reason for hiding this comment

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

LGTM!

@afd afd added the kokoro:run label Jul 23, 2020
@afd afd merged commit 1aaf5c6 into KhronosGroup:master Jul 23, 2020
@Vasniktel Vasniktel deleted the reuse_function_type branch July 24, 2020 08:50
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.

spirv-fuzz: Refactor boilerplate in TransformationReplaceParameter*
4 participants