Home
last modified time | relevance | path

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

/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp491 const Instruction* switch_inst, in StructuredSwitchChecks() argument
495 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
496 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
503 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
505 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
506 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
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()
567 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
568 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp482 const Instruction* switch_inst, in StructuredSwitchChecks() argument
486 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
487 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
494 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
496 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
497 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
503 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
504 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
558 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
559 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
[all …]
/external/angle/third_party/spirv-tools/src/source/val/
Dvalidate_cfg.cpp491 const Instruction* switch_inst, in StructuredSwitchChecks() argument
495 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
496 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
503 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
505 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
506 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
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()
567 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
568 target == switch_inst->GetOperandAs<uint32_t>(j + 2)) { in StructuredSwitchChecks()
[all …]
/external/angle/third_party/spirv-tools/src/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/deqp-deps/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/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/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_gs.c481 LLVMValueRef switch_inst; in si_generate_gs_copy_shader() local
484 switch_inst = LLVMBuildSwitch(builder, stream_id, end_bb, 4); in si_generate_gs_copy_shader()
497 LLVMAddCase(switch_inst, LLVMConstInt(ctx.ac.i32, stream, 0), bb); in si_generate_gs_copy_shader()
/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/amd/vulkan/
Dradv_nir_to_llvm.c4222 LLVMValueRef switch_inst; in ac_gs_copy_shader_emit() local
4226 switch_inst = LLVMBuildSwitch(ctx->ac.builder, stream_id, end_bb, 4); in ac_gs_copy_shader_emit()
4241 LLVMAddCase(switch_inst, LLVMConstInt(ctx->ac.i32, stream, 0), bb); in ac_gs_copy_shader_emit()