KhronosGroup / KhronosGroup/SPIRV-Tools
spirv-fuzz: Support more types in transformations of function parameters
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
`FuzzerPassAddParameters` only supports a limited number of type instructions. The limitation is due to the `FindOrCreateZeroConstant` function being used to initialize new parameters. It would be beneficial to add support for some additional types (e.g. `OpTypePointer`).
This is a generic issue for `TransformationAddParameter`, `TransformationReplaceParameterWithGlobal`, `TransformationReplaceParamsWithStruct`.
Contributor guide
Research direction
Start by reading FuzzerPassAddParameters and the FindOrCreateZeroConstant path that initializes new parameters. Trace how this affects TransformationAddParameter, TransformationReplaceParameterWithGlobal, and TransformationReplaceParamsWithStruct. Done means supporting additional parameter types, including examples such as OpTypePointer, across these transformations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100