Lines Matching refs:switch_inst
508 const Instruction* switch_inst, in StructuredSwitchChecks() argument
512 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
513 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
520 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
522 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
523 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
529 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
530 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
584 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
585 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
591 if ((switch_inst->operands().size() < j + 2) || in StructuredSwitchChecks()
592 (case_fall_through != switch_inst->GetOperandAs<uint32_t>(j + 2))) { in StructuredSwitchChecks()
593 return _.diag(SPV_ERROR_INVALID_CFG, switch_inst) in StructuredSwitchChecks()