google / google/clspv

Constant generation produces potentially invalid OpConstantNull

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
LLVM
Stars
729
Forks
110
Avg merge
17h 51m
Merged PRs (30d)
23

Description

Constant generation in SPIRProducerPass has a case for a constant being a null value `Cst->isNullValue()`. SPIR-V does not allow all types to be used with OpConstantNull (e.g. samplers and images). A different opcode must be generated for those cases (maybe OpUndef).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.