Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_cfg.cpp520 const Instruction* switch_inst, in StructuredSwitchChecks()
524 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
525 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
532 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
534 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
535 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
541 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
542 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
596 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
597 target == switch_inst in StructuredSwitchChecks()
519 StructuredSwitchChecks(ValidationState_t& _, Function* function, const Instruction* switch_inst, const BasicBlock* header, const BasicBlock* merge) StructuredSwitchChecks() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_cfg.cpp520 const Instruction* switch_inst, in StructuredSwitchChecks()
524 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
525 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
532 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
534 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
535 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
541 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
542 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
596 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
597 target == switch_inst in StructuredSwitchChecks()
519 StructuredSwitchChecks(ValidationState_t& _, Function* function, const Instruction* switch_inst, const BasicBlock* header, const BasicBlock* merge) StructuredSwitchChecks() argument
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_cfg.cpp526 const Instruction* switch_inst, in StructuredSwitchChecks()
530 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
531 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
538 uint32_t default_target = switch_inst->GetOperandAs<uint32_t>(1u); in StructuredSwitchChecks()
540 for (uint32_t i = 3; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
541 if (default_target == switch_inst->GetOperandAs<uint32_t>(i)) { in StructuredSwitchChecks()
547 for (uint32_t i = 1; i < switch_inst->operands().size(); i += 2) { in StructuredSwitchChecks()
548 uint32_t target = switch_inst->GetOperandAs<uint32_t>(i); in StructuredSwitchChecks()
603 while ((j + 2 < switch_inst->operands().size()) && in StructuredSwitchChecks()
604 target == switch_inst in StructuredSwitchChecks()
525 StructuredSwitchChecks(ValidationState_t& _, Function* function, const Instruction* switch_inst, const BasicBlock* header, const BasicBlock* merge) StructuredSwitchChecks() argument
[all...]
/third_party/spirv-tools/source/opt/
H A Dblock_merge_util.cpp135 const auto* switch_inst = in CanMergeWithSuccessor() local
137 for (uint32_t i = 1; i < switch_inst->NumInOperands(); i += 2) { in CanMergeWithSuccessor()
138 auto target_id = switch_inst->GetSingleWordInOperand(i); in CanMergeWithSuccessor()
H A Dloop_unswitch_pass.cpp108 Instruction* GetValueForDefaultPathForSwitch(Instruction* switch_inst) { in GetValueForDefaultPathForSwitch() argument
109 assert(switch_inst->opcode() == spv::Op::OpSwitch && in GetValueForDefaultPathForSwitch()
117 for (uint32_t i = 2; i < switch_inst->NumInOperands(); i += 2) { in GetValueForDefaultPathForSwitch()
118 existing_values.push_back(switch_inst->GetSingleWordInOperand(i)); in GetValueForDefaultPathForSwitch()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A 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()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A 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()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_shader_llvm_gs.c459 LLVMValueRef switch_inst; in si_generate_gs_copy_shader() local
462 switch_inst = LLVMBuildSwitch(builder, stream_id, end_bb, 4); in si_generate_gs_copy_shader()
475 LLVMAddCase(switch_inst, LLVMConstInt(ctx.ac.i32, stream, 0), bb); in si_generate_gs_copy_shader()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_nir_to_llvm.c1641 LLVMValueRef switch_inst; in ac_gs_copy_shader_emit() local
1644 switch_inst = LLVMBuildSwitch(ctx->ac.builder, stream_id, end_bb, 4); in ac_gs_copy_shader_emit()
1658 LLVMAddCase(switch_inst, LLVMConstInt(ctx->ac.i32, stream, 0), bb); in ac_gs_copy_shader_emit()

Completed in 11 milliseconds