Adding validation code for OpTypeStruct.
authorEhsan Nasiri <ehsann@google.com>
Thu, 10 Nov 2016 20:12:26 +0000 (15:12 -0500)
committerDavid Neto <dneto@google.com>
Wed, 16 Nov 2016 21:41:56 +0000 (16:41 -0500)
commit8c414eb5798768f09d20f98df53bb15428ef2083
treebd426b707566e08861111ac28da71f29f68b2be3
parent5c19de25107d496a15c7869b3e1dab0a0f85913d
Adding validation code for OpTypeStruct.

According to the Data Rules section of 2.16.1. Universal Validation
Rules of the SPIR-V Spec:

Forward reference operands in an OpTypeStruct
* must be later declared with OpTypePointer
* the type pointed to must be an OpTypeStruct
* had an earlier OpTypeForwardPointer forward reference to the same <id>
source/val/validation_state.cpp
source/val/validation_state.h
source/validate.cpp
source/validate_datarules.cpp
source/validate_id.cpp
test/val/val_data_test.cpp