mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 22:49:26 -06:00
SPIR-V is like LLVM in there are "Blocks" used for Control Flow, `OpLabel` has a special text in the SPIR-V spec > A block always starts with an [OpLabel](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpLabel) instruction. This may be immediately preceded by an [OpLine](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpLine) instruction, but the OpLabel is considered as the beginning of the block. But currently the coloring is off-by-1  This change now moves it up a line so it is the start of the block  This can be better seen why looking at the [SPIR-V Visualizer](spirv-visualizer) tool output 