KhronosGroup / KhronosGroup/SPIRV-Tools

Generalize GetPtr method in SSA passes to handl SPV_KHR_variable_pointers.

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

Description

Currently they assume a pointer argument is an non-ptr-access-chain, variable, or CopyObject.

Need to generalize algorithms around them too.

Contributor guide

Open the contributing guide

Research direction

Start by locating the GetPtr method and the SSA passes that currently assume pointers are non-ptr-access-chain variables or CopyObject results. Trace the surrounding algorithms for those assumptions and verify that they also handle SPV_KHR_variable_pointers; done means the SSA passes support the extension's pointer forms consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.