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.cpp508 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()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_cfg.cpp508 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()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp508 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()
[all …]
/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/angle/third_party/vulkan-deps/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/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()