int32_t spvOpcodeIsValue(SpvOp opcode) { if (spvOpcodeIsPointer(opcode)) return true; if (spvOpcodeIsConstant(opcode)) return true; switch (opcode) { case SpvOpLoad: // TODO: Other Opcode's resulting in a value return true; default: return false; } }
bool spvOpcodeIsConstantOrUndef(const SpvOp opcode) { return opcode == SpvOpUndef || spvOpcodeIsConstant(opcode); }