KhronosGroup / KhronosGroup/SPIRV-Tools

spirv-fuzz: Transformation to flatten struct fields

Open
#4,197 0 comments 0 reactions 0 assignees View on GitHub
component:fuzzer
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

If one struct contains another struct as a field, then we can probably flatten the latter and include all its fields into the outer struct.

Situations to consider:
- What if the inner struct is referenced directly in the module (e.g. extracted from the struct). It might be possible to apply the transformation in that case but it might not be worth it.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points, so begin by locating spirv-fuzz transformations and existing struct-handling tests. Use the nested-struct case and the directly referenced inner-struct case as the scenarios to clarify, then confirm the intended behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.