KhronosGroup / KhronosGroup/SPIRV-Tools

spirv-fuzz: TransformationAddSynonym: add support for OpBitwiseAnd

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

The TransformationAddSynonym transformation can do things like:

add an instruction %c = OpAdd %b %zero
add a fact that %c and %b are "synonymous" (i.e., they will have the same value)

It could be extended to be able to:

add an instruction %c = OpBitwiseAnd %b %FFFF
add a fact that %c and %b are synonymous

Here %FFFF would be a constant all whose bits are 1.

Contributor guide

Open the contributing guide

Research direction

Start by locating TransformationAddSynonym and its existing handling of OpAdd, then inspect how the transformation represents the all-ones constant and records synonym facts. Done means OpBitwiseAnd with an all-bits-one constant is supported and covered by the project's existing transformation tests.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.