KhronosGroup / KhronosGroup/SPIRV-Tools

Spirv-fuzz: Support adding precision decorations in TransformationWrapVectorSynonym

Open
#4,370 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

Currently, TransformationWrapVectorSynonym (#4322) wrap the operands of a scalar operations into two vectors, perform the same scalar operation between two vectors and add synonym facts between the original scalar instruction id and id from the result vector at corresponding position. However, if operands in the original instruction have RelaxedPrecision decorations, the result id of the corresponding vector operation will not have that.

It would be nice to support adding decoration to the result of added vector operation depending on the type of decorations the original instruction has.

Contributor guide

Open the contributing guide

Research direction

Start by reading the implementation and tests for TransformationWrapVectorSynonym, introduced in issue #4322. Trace how scalar operands are wrapped into vectors and how synonym facts are added. Done means the generated vector result receives the appropriate precision decoration when the original instruction has RelaxedPrecision.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.