Lines Matching refs:switch_inst
373 const Instruction* switch_inst, in StructuredSwitchChecks() argument
377 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
378 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
385 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
387 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
388 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
436 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
437 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
443 if ((switch_inst->operands().size() < j + 2) || in StructuredSwitchChecks()
444 (case_fall_through != switch_inst->GetOperandAs<uint32_t>(j + 2))) { in StructuredSwitchChecks()
445 return _.diag(SPV_ERROR_INVALID_CFG, switch_inst) in StructuredSwitchChecks()