Add operand type for extension instruction number
authorDavid Neto <dneto@google.com>
Thu, 15 Oct 2015 19:22:06 +0000 (15:22 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
commit445ce4401d2a2ad8873981266be06848f420db12
treed53b77a386eb619288472ff76d0143fd59146339
parent1bb8b70341f390c29be49d7e844020e44f542e49
Add operand type for extension instruction number

This is required to support extended instructions that
have literal numbers as operands.  An example is OpenCL's
vloadn.

The previous code in the assembler assumed that *any* literal
number argument in any part of an OpExtInst must be the name
of the extended instruction.  That's true only for the first
literal number argument.
include/libspirv/libspirv.h
source/binary.cpp
source/opcode.cpp
source/text.cpp