diff options
author | Dejan Mircevski <deki@google.com> | 2016-01-22 14:27:00 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2016-01-27 16:20:10 -0500 |
commit | a4342f3f442178e79e79a8c7bbbfba0c8ca851a7 (patch) | |
tree | b1fa13b4ea665b3f552fb8576f8f1acff4b75e14 /source/validate.h | |
parent | 61a627586b7f47d39b0e19caabc9bd880aa3832a (diff) | |
download | spirv-tools-a4342f3f442178e79e79a8c7bbbfba0c8ca851a7.tar.gz |
Remove spvOpcodeIsObject().
Also
- Add type_id to spv_id_info_t.
- Use spv_id_info_t::type_id instead of words[1].
Triggered some asserts on tests, where the code incorrectly assumed
words[1] had a type. Remove the asserts and handle gracefully.
- Add tests for OpStore of a label, a void, and a function.
Diffstat (limited to 'source/validate.h')
-rw-r--r-- | source/validate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/validate.h b/source/validate.h index d0c053e7..b94fed25 100644 --- a/source/validate.h +++ b/source/validate.h @@ -47,6 +47,8 @@ typedef struct spv_id_info_t { // Id value. uint32_t id; + // Type id, or 0 if no type. + uint32_t type_id; // Opcode of the instruction defining the id. SpvOp opcode; // Binary words of the instruction defining the id. |