[llvm] [SPIR-V] Always reject OpTypeVector with a non-standard width (PR #212685)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 02:57:52 PDT 2026


aobolensk wrote:

> https://github.khronos.org/SPIRV-Registry/extensions/EXT/SPV_EXT_long_vector.html adds only one new rule for OpTypeVector, which is:
> 
> > Modify OpTypeVector to allow a Component Count of 1.
> 
> SPIR-V module still can not declare OpTypeVector with a Component Count of, lets say, 5. For this OpTypeVectorIdEXT is introduced.

Removed unconditional SPV_EXT_long_vector dependency, unified the check for supported num elements 

https://github.com/llvm/llvm-project/pull/212685


More information about the llvm-commits mailing list