Warn about !<integer> opcode in assignment format.

This commit is contained in:
Dejan Mircevski 2015-08-31 16:19:07 -04:00 коммит произвёл David Neto
Родитель 73d7082245
Коммит 95ec7284f7
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -105,6 +105,7 @@ OpReturn
OpFunctionEnd
```
<a name="assignment-format"></a>
In order to improve the text's readability, the `<result-id>` generated by an
instruction can be moved to the beginning of that instruction and followed by
an `=` sign. This allows us to distinguish between variable defs and uses and
@ -240,6 +241,11 @@ Note that this has some interesting consequences, including:
that named ID being output. This may be valid SPIR-V, contrary to the
presumed intention of the writer.
* If the next instruction after a `!<integer>` has the assignment format
(described [above](#assignment-format)), then its OpCode cannot also be a
`!<integer>`. The alternate parsing mode cannot handle the assignment format
and will complain that `=` is not a valid operand.
### Disassembler
The standalone disassembler is the binary called `spirv-dis` and is located in