Include memory and semantics IDs when iterating over inbound IDs
authorDavid Neto <dneto@google.com>
Tue, 4 Jul 2017 20:24:46 +0000 (16:24 -0400)
committerDavid Neto <dneto@google.com>
Wed, 5 Jul 2017 14:36:57 +0000 (10:36 -0400)
commit35a06958441b68a74c9a817b33bba110b385d5f4
treea6225d62cef1dbdd787958c834880de61d39198d
parentabc6f5a67288b50846b9ef5f21a8100edd36d7c8
Include memory and semantics IDs when iterating over inbound IDs

Fixes Instruction::ForEachInId so it covers
SPV_OPERAND_TYPE_MEMORY_SEMANTICS_ID and SPV_OPERAND_TYPE_SCOPE_ID.
Future proof a bit by using the common spvIsIdType routine.

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/697
CHANGES
source/opt/instruction.h
test/opt/instruction_test.cpp