Home
last modified time | relevance | path

Searched refs:switch_inst (Results 1 – 5 of 5) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp373 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()
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp373 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()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dloop_unswitch_pass.cpp115 Instruction* GetValueForDefaultPathForSwitch(Instruction* switch_inst) { in GetValueForDefaultPathForSwitch() argument
116 assert(switch_inst->opcode() == SpvOpSwitch && in GetValueForDefaultPathForSwitch()
124 for (uint32_t i = 2; i < switch_inst->NumInOperands(); i += 2) { in GetValueForDefaultPathForSwitch()
125 existing_values.push_back(switch_inst->GetSingleWordInOperand(i)); in GetValueForDefaultPathForSwitch()
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.cc204 SwitchInst *switch_inst = B.CreateSwitch(pop_expr(), label_default); in visit_switch_stmt_node() local
208 SwitchStack sstack(this, switch_inst); in visit_switch_stmt_node()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader.c5701 LLVMValueRef switch_inst; in si_generate_gs_copy_shader() local
5704 switch_inst = LLVMBuildSwitch(builder, stream_id, end_bb, 4); in si_generate_gs_copy_shader()
5717 LLVMAddCase(switch_inst, LLVMConstInt(ctx.i32, stream, 0), bb); in si_generate_gs_copy_shader()