Lines Matching refs:switch_inst
523 const Instruction* switch_inst, in StructuredSwitchChecks() argument
527 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
528 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
535 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
537 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
538 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
544 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
545 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
600 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
601 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
607 if ((switch_inst->operands().size() < j + 2) || in StructuredSwitchChecks()
608 (case_fall_through != switch_inst->GetOperandAs<uint32_t>(j + 2))) { in StructuredSwitchChecks()
609 return _.diag(SPV_ERROR_INVALID_CFG, switch_inst) in StructuredSwitchChecks()