/third_party/spirv-tools/source/opt/ |
H A D | dead_branch_elim_pass.cpp | 271 Instruction* inst = &*iter; in FixPhiNodesInLiveBlocks() local 275 operands.push_back(inst->GetOperand(0u)); in FixPhiNodesInLiveBlocks() 276 operands.push_back(inst->GetOperand(1u)); in FixPhiNodesInLiveBlocks() 284 for (uint32_t i = 1; i < inst->NumInOperands(); i += 2) { in FixPhiNodesInLiveBlocks() 285 BasicBlock* inc = GetParentBlock(inst->GetSingleWordInOperand(i)); in FixPhiNodesInLiveBlocks() 288 cont_iter->second == &block && inst->NumInOperands() > 4) { in FixPhiNodesInLiveBlocks() 290 ->GetDef(inst->GetSingleWordInOperand(i - 1)) in FixPhiNodesInLiveBlocks() 293 operands.push_back(inst->GetInOperand(i - 1)); in FixPhiNodesInLiveBlocks() 294 operands.push_back(inst->GetInOperand(i)); in FixPhiNodesInLiveBlocks() 303 std::initializer_list<uint32_t>{Type2Undef(inst in FixPhiNodesInLiveBlocks() [all...] |
H A D | folding_rules.h | 34 // |inst| - the instruction to be simplified. 40 // A folding rule returns true if |inst| can be simplified using this rule. If 41 // the instruction can be simplified, then |inst| is changed to the simplified 42 // instruction. Otherwise, |inst| remains the same. 45 // important to note that if |inst| can be folded to the result of an 46 // instruction that feed it, then |inst| should be changed to an OpCopyObject 56 IRContext* context, Instruction* inst, 66 const FoldingRuleSet& GetRulesForInstruction(Instruction* inst) const { in GetRulesForInstruction() 67 if (inst->opcode() != spv::Op::OpExtInst) { in GetRulesForInstruction() 68 auto it = rules_.find(inst in GetRulesForInstruction() [all...] |
H A D | if_conversion.cpp | 143 for (auto inst : to_kill) { in Process() 144 context()->KillInst(inst); in Process() 236 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument 238 BasicBlock* inst_block = context()->get_instr_block(inst); in HoistInstruction() 249 assert(inst->IsOpcodeCodeMotionSafe() && in HoistInstruction() 254 inst->ForEachInId( in HoistInstruction() 264 inst->RemoveFromList(); in HoistInstruction() 265 insertion_pos->InsertBefore(std::unique_ptr<Instruction>(inst)); in HoistInstruction() 266 context()->set_instr_block(inst, target_block); in HoistInstruction() 269 bool IfConversion::CanHoistInstruction(Instruction* inst, in CanHoistInstruction() argument [all...] |
H A D | convert_to_sampled_image_pass.cpp | 71 Instruction* inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() local 72 while (inst->opcode() == spv::Op::OpCopyObject) { in GetNonCopyObjectDef() 73 inst_id = inst->GetSingleWordInOperand(0u); in GetNonCopyObjectDef() 74 inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() 76 return inst; in GetNonCopyObjectDef() 82 const Instruction& inst, in GetDescriptorSetBinding() 88 decoration_manager->GetDecorationsFor(inst.result_id(), false)) { in GetDescriptorSetBinding() 141 for (auto& inst : context()->types_values()) { in CollectResourcesToConvert() 142 const auto* variable_type = GetVariableType(inst); in CollectResourcesToConvert() 146 if (!GetDescriptorSetBinding(inst, in CollectResourcesToConvert() 81 GetDescriptorSetBinding( const Instruction& inst, DescriptorSetAndBinding* descriptor_set_binding) const GetDescriptorSetBinding() argument 206 FindUses(const Instruction* inst, std::vector<Instruction*>* uses, spv::Op user_opcode) const FindUses() argument 317 MoveInstructionNextToType(Instruction* inst, uint32_t type_id) MoveInstructionNextToType() argument [all...] |
H A D | const_folding_rules.cpp | 109 return [](IRContext* context, Instruction* inst, in FoldExtractWithConstants() 117 for (uint32_t i = 1; i < inst->NumInOperands(); ++i) { in FoldExtractWithConstants() 118 uint32_t element_index = inst->GetSingleWordInOperand(i); in FoldExtractWithConstants() 123 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants() 140 return [](IRContext* context, Instruction* inst, in FoldInsertWithConstants() 155 const uint32_t final_index = (inst->NumInOperands() - 1); in FoldInsertWithConstants() 158 for (uint32_t i = 2; i < inst->NumInOperands(); ++i) { in FoldInsertWithConstants() 182 const uint32_t index = inst->GetSingleWordInOperand(i); in FoldInsertWithConstants() 187 const uint32_t final_operand = inst->GetSingleWordInOperand(final_index); in FoldInsertWithConstants() 202 // Can't compare with location of inst becaus in FoldInsertWithConstants() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_lowering.c | 198 struct tgsi_full_instruction *inst) in transform_dst() 201 struct tgsi_full_dst_register *dst = &inst->Dst[0]; in transform_dst() 202 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dst() 203 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dst() 279 struct tgsi_full_instruction *inst) in transform_lrp() 282 struct tgsi_full_dst_register *dst = &inst->Dst[0]; in transform_lrp() 283 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_lrp() 284 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_lrp() 285 struct tgsi_full_src_register *src2 = &inst->Src[2]; in transform_lrp() 329 struct tgsi_full_instruction *inst) in transform_frc() 197 transform_dst(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_dst() argument 278 transform_lrp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_lrp() argument 328 transform_frc(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_frc() argument 373 transform_pow(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_pow() argument 433 transform_lit(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_lit() argument 558 transform_exp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_exp() argument 681 transform_log(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_log() argument 819 transform_dotp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_dotp() argument 905 transform_flr_ceil(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_flr_ceil() argument 959 transform_trunc(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_trunc() argument 1032 transform_samp(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_samp() argument 1303 rename_color_inputs(struct tgsi_lowering_context *ctx, struct tgsi_full_instruction *inst) rename_color_inputs() argument 1323 transform_instr(struct tgsi_transform_context *tctx, struct tgsi_full_instruction *inst) transform_instr() argument [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_dead_control_flow.cpp | 51 backend_instruction *const inst = block->start(); in dead_control_flow_eliminate() local 57 if (inst->opcode == BRW_OPCODE_ENDIF && in dead_control_flow_eliminate() 64 } else if (inst->opcode == BRW_OPCODE_ENDIF && in dead_control_flow_eliminate() 68 backend_instruction *const endif_inst = inst; in dead_control_flow_eliminate() 101 } else if (inst->opcode == BRW_OPCODE_ELSE && in dead_control_flow_eliminate() 105 backend_instruction *const else_inst = inst; in dead_control_flow_eliminate()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | folding_rules.h | 34 // |inst| - the instruction to be simplified. 40 // A folding rule returns true if |inst| can be simplified using this rule. If 41 // the instruction can be simplified, then |inst| is changed to the simplified 42 // instruction. Otherwise, |inst| remains the same. 45 // important to note that if |inst| can be folded to the result of an 46 // instruction that feed it, then |inst| should be changed to an OpCopyObject 56 IRContext* context, Instruction* inst, 66 const FoldingRuleSet& GetRulesForInstruction(Instruction* inst) const { in GetRulesForInstruction() 67 if (inst->opcode() != SpvOpExtInst) { in GetRulesForInstruction() 68 auto it = rules_.find(inst in GetRulesForInstruction() [all...] |
H A D | if_conversion.cpp | 143 for (auto inst : to_kill) { in Process() 144 context()->KillInst(inst); in Process() 226 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument 228 BasicBlock* inst_block = context()->get_instr_block(inst); in HoistInstruction() 239 assert(inst->IsOpcodeCodeMotionSafe() && in HoistInstruction() 244 inst->ForEachInId( in HoistInstruction() 254 inst->RemoveFromList(); in HoistInstruction() 255 insertion_pos->InsertBefore(std::unique_ptr<Instruction>(inst)); in HoistInstruction() 256 context()->set_instr_block(inst, target_block); in HoistInstruction() 259 bool IfConversion::CanHoistInstruction(Instruction* inst, in CanHoistInstruction() argument [all...] |
H A D | convert_to_sampled_image_pass.cpp | 72 Instruction* inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() local 73 while (inst->opcode() == SpvOpCopyObject) { in GetNonCopyObjectDef() 74 inst_id = inst->GetSingleWordInOperand(0u); in GetNonCopyObjectDef() 75 inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() 77 return inst; in GetNonCopyObjectDef() 83 const Instruction& inst, in GetDescriptorSetBinding() 89 decoration_manager->GetDecorationsFor(inst.result_id(), false)) { in GetDescriptorSetBinding() 141 for (auto& inst : context()->types_values()) { in CollectResourcesToConvert() 142 const auto* variable_type = GetVariableType(inst); in CollectResourcesToConvert() 146 if (!GetDescriptorSetBinding(inst, in CollectResourcesToConvert() 82 GetDescriptorSetBinding( const Instruction& inst, DescriptorSetAndBinding* descriptor_set_binding) const GetDescriptorSetBinding() argument 206 FindUses(const Instruction* inst, std::vector<Instruction*>* uses, uint32_t user_opcode) const FindUses() argument 317 MoveInstructionNextToType(Instruction* inst, uint32_t type_id) MoveInstructionNextToType() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | folding_rules.h | 34 // |inst| - the instruction to be simplified. 40 // A folding rule returns true if |inst| can be simplified using this rule. If 41 // the instruction can be simplified, then |inst| is changed to the simplified 42 // instruction. Otherwise, |inst| remains the same. 45 // important to note that if |inst| can be folded to the result of an 46 // instruction that feed it, then |inst| should be changed to an OpCopyObject 56 IRContext* context, Instruction* inst, 66 const FoldingRuleSet& GetRulesForInstruction(Instruction* inst) const { in GetRulesForInstruction() 67 if (inst->opcode() != SpvOpExtInst) { in GetRulesForInstruction() 68 auto it = rules_.find(inst in GetRulesForInstruction() [all...] |
H A D | if_conversion.cpp | 143 for (auto inst : to_kill) { in Process() 144 context()->KillInst(inst); in Process() 226 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument 228 BasicBlock* inst_block = context()->get_instr_block(inst); in HoistInstruction() 239 assert(inst->IsOpcodeCodeMotionSafe() && in HoistInstruction() 244 inst->ForEachInId( in HoistInstruction() 254 inst->RemoveFromList(); in HoistInstruction() 255 insertion_pos->InsertBefore(std::unique_ptr<Instruction>(inst)); in HoistInstruction() 256 context()->set_instr_block(inst, target_block); in HoistInstruction() 259 bool IfConversion::CanHoistInstruction(Instruction* inst, in CanHoistInstruction() argument [all...] |
H A D | convert_to_sampled_image_pass.cpp | 72 Instruction* inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() local 73 while (inst->opcode() == SpvOpCopyObject) { in GetNonCopyObjectDef() 74 inst_id = inst->GetSingleWordInOperand(0u); in GetNonCopyObjectDef() 75 inst = def_use_mgr->GetDef(inst_id); in GetNonCopyObjectDef() 77 return inst; in GetNonCopyObjectDef() 83 const Instruction& inst, in GetDescriptorSetBinding() 89 decoration_manager->GetDecorationsFor(inst.result_id(), false)) { in GetDescriptorSetBinding() 141 for (auto& inst : context()->types_values()) { in CollectResourcesToConvert() 142 const auto* variable_type = GetVariableType(inst); in CollectResourcesToConvert() 146 if (!GetDescriptorSetBinding(inst, in CollectResourcesToConvert() 82 GetDescriptorSetBinding( const Instruction& inst, DescriptorSetAndBinding* descriptor_set_binding) const GetDescriptorSetBinding() argument 206 FindUses(const Instruction* inst, std::vector<Instruction*>* uses, uint32_t user_opcode) const FindUses() argument 317 MoveInstructionNextToType(Instruction* inst, uint32_t type_id) MoveInstructionNextToType() argument [all...] |
/third_party/vulkan-loader/tests/framework/ |
H A D | test_environment.cpp | 170 InstWrapper::InstWrapper(VulkanFunctions& functions, VkInstance inst, VkAllocationCallbacks* callbacks) noexcept 171 : functions(&functions), inst(inst), callbacks(callbacks) {} 173 if (inst != VK_NULL_HANDLE) functions->vkDestroyInstance(inst, callbacks); 178 inst = other.inst; 181 other.inst = VK_NULL_HANDLE; 184 functions->vkDestroyInstance(inst, callbacks); 186 inst 804 create_surface_helper(VulkanFunctions* functions, VkInstance inst, VkSurfaceKHR& surface, const char* load_func_name) global() argument 810 create_surface(VulkanFunctions* functions, VkInstance inst, VkSurfaceKHR& surface, [[maybe_unused]] const char* api_selection) global() argument 869 create_surface(InstWrapper& inst, VkSurfaceKHR& surface, const char* api_selection) global() argument [all...] |
/third_party/mesa3d/src/mesa/program/ |
H A D | prog_print.h | 78 const struct prog_instruction *inst, 84 _mesa_print_alu_instruction(const struct prog_instruction *inst, 88 _mesa_print_instruction(const struct prog_instruction *inst); 92 const struct prog_instruction *inst, 98 _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | fuzzer_pass_split_blocks.cpp | 73 for (auto& inst : *block) { in Apply() 74 if (inst.HasResultId()) { in Apply() 78 base = inst.result_id(); in Apply() 81 const SpvOp opcode = inst.opcode(); in Apply() 84 if (!inst.HasResultId()) { in Apply()
|
H A D | fuzzer_pass_add_composite_extract.cpp | 45 GetIRContext(), [](opt::IRContext* ir_context, opt::Instruction* inst) { in Apply() 46 return inst->type_id() && inst->result_id() && in Apply() 48 ir_context->get_type_mgr()->GetType(inst->type_id())); in Apply() 86 const auto* inst = in Apply() 89 composite_id = inst->result_id(); in Apply() 91 auto type_id = inst->type_id(); in Apply()
|
/third_party/skia/third_party/externals/spirv-tools/source/reduce/ |
H A D | operand_to_undef_reduction_opportunity_finder.cpp | 30 for (auto& inst : block) { in GetAvailableOpportunities() 32 auto type_id = inst.type_id(); in GetAvailableOpportunities() 43 for (uint32_t index = 0; index < inst.NumOperands(); index++) { in GetAvailableOpportunities() 44 const auto& operand = inst.GetOperand(index); in GetAvailableOpportunities() 77 context, &inst, index)); in GetAvailableOpportunities()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | fuzzer_pass_split_blocks.cpp | 73 for (auto& inst : *block) { in Apply() 74 if (inst.HasResultId()) { in Apply() 78 base = inst.result_id(); in Apply() 81 const SpvOp opcode = inst.opcode(); in Apply() 84 if (!inst.HasResultId()) { in Apply()
|
H A D | fuzzer_pass_add_composite_extract.cpp | 45 GetIRContext(), [](opt::IRContext* ir_context, opt::Instruction* inst) { in Apply() 46 return inst->type_id() && inst->result_id() && in Apply() 48 ir_context->get_type_mgr()->GetType(inst->type_id())); in Apply() 86 const auto* inst = in Apply() 89 composite_id = inst->result_id(); in Apply() 91 auto type_id = inst->type_id(); in Apply()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
H A D | operand_to_undef_reduction_opportunity_finder.cpp | 30 for (auto& inst : block) { in GetAvailableOpportunities() 32 auto type_id = inst.type_id(); in GetAvailableOpportunities() 43 for (uint32_t index = 0; index < inst.NumOperands(); index++) { in GetAvailableOpportunities() 44 const auto& operand = inst.GetOperand(index); in GetAvailableOpportunities() 77 context, &inst, index)); in GetAvailableOpportunities()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | fuzzer_pass_split_blocks.cpp | 73 for (auto& inst : *block) { in Apply() 74 if (inst.HasResultId()) { in Apply() 78 base = inst.result_id(); in Apply() 81 const spv::Op opcode = inst.opcode(); in Apply() 84 if (!inst.HasResultId()) { in Apply()
|
H A D | fuzzer_pass_add_composite_extract.cpp | 45 GetIRContext(), [](opt::IRContext* ir_context, opt::Instruction* inst) { in Apply() 46 return inst->type_id() && inst->result_id() && in Apply() 48 ir_context->get_type_mgr()->GetType(inst->type_id())); in Apply() 86 const auto* inst = in Apply() 89 composite_id = inst->result_id(); in Apply() 91 auto type_id = inst->type_id(); in Apply()
|
/third_party/spirv-tools/source/reduce/ |
H A D | operand_to_undef_reduction_opportunity_finder.cpp | 30 for (auto& inst : block) { in GetAvailableOpportunities() 32 auto type_id = inst.type_id(); in GetAvailableOpportunities() 43 for (uint32_t index = 0; index < inst.NumOperands(); index++) { in GetAvailableOpportunities() 44 const auto& operand = inst.GetOperand(index); in GetAvailableOpportunities() 77 context, &inst, index)); in GetAvailableOpportunities()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_inline_literals.c | 88 struct rc_instruction * inst; in rc_inline_literals() local 90 for(inst = c->Program.Instructions.Next; in rc_inline_literals() 91 inst != &c->Program.Instructions; in rc_inline_literals() 92 inst = inst->Next) { in rc_inline_literals() 94 rc_get_opcode_info(inst->U.I.Opcode); in rc_inline_literals() 112 &inst->U.I.SrcReg[src_idx]; in rc_inline_literals()
|