Remove SPV_OPERAND_TYPE_VARIABLE_MEMORY_ACCESS
authorDavid Neto <dneto@google.com>
Thu, 17 Sep 2015 21:39:45 +0000 (17:39 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
commit3fca4cddee4b77f0f04bdcc1c79f3221679aa99d
tree35d6b2f998ee735e9dafae60a122665fe4c58406
parent5bf88fcc95b996c34c14a58e6149368dd52669bb
Remove SPV_OPERAND_TYPE_VARIABLE_MEMORY_ACCESS

If a memory mask operand is present, it is a mask.  The mask appears
only once, so just use SPV_OPERAND_TYPE_OPTIONAL_MEMORY_MASK.

The "variable literals" aspect comes into play as follows: if the
Aligned bit is set in the mask, then the parser will be made to
expect the alignment value as a literal number operand that follows
the mask.  That is done through mask operand expansion.
include/libspirv/libspirv.h
source/opcode.cpp
source/operand.cpp