KhronosGroup / SPIRV-LLVM

This project is no longer active. Please join us at
https://github.com/KhronosGroup/SPIRV-LLVM-Translator
Other
262 stars 60 forks source link

llvm-spirv does not output optional literals in OpExecutionMode #199

Open ex-rzr opened 7 years ago

ex-rzr commented 7 years ago

When Execution Mode is SubgroupsPerWorkgroup (36) it outputs 4 ExecutionMode 4 36 It should output: 4 ExecutionMode 4 36 <integer literal>. I haven't try all other Execution Modes, but it works correctly for LocalSize, LocalSizeHint, VecTypeHint.

(spirv-dis from SPIRV-Tools shows “OpExecutionMode %4 SubgroupsPerWorkgroup 12” as expected)

AlexeySotkin commented 6 years ago

Possibly will be fixed in the new repo by switching to SPIRV-Tools format