Home
last modified time | relevance | path

Searched refs:result_id (Results 1 – 25 of 729) sorted by relevance

12345678910>>...30

/third_party/spirv-tools/source/opt/
Damd_ext_to_khr.cpp86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
128 new_operands.push_back({SPV_OPERAND_TYPE_ID, {min->result_id()}}); in ReplaceTrinaryMid()
129 new_operands.push_back({SPV_OPERAND_TYPE_ID, {max->result_id()}}); in ReplaceTrinaryMid()
243 id->result_id(), quad_mask); in ReplaceSwizzleInvocations()
247 uint_type_id, SpvOpBitwiseXor, id->result_id(), quad_idx->result_id()); in ReplaceSwizzleInvocations()
252 quad_idx->result_id()); in ReplaceSwizzleInvocations()
256 uint_type_id, SpvOpIAdd, quad_ldr->result_id(), my_offset->result_id()); in ReplaceSwizzleInvocations()
268 {subgroup_scope, ballot_value->result_id(), target_inv->result_id()}); in ReplaceSwizzleInvocations()
271 {subgroup_scope, data_id, target_inv->result_id()}); in ReplaceSwizzleInvocations()
281 new_operands.push_back({SPV_OPERAND_TYPE_ID, {is_active->result_id()}}); in ReplaceSwizzleInvocations()
[all …]
Dvalue_number_table.cpp26 assert(inst->result_id() != 0 && in GetValueNumber()
30 auto result_id_to_val = id_to_value_.find(inst->result_id()); in GetValueNumber()
55 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
64 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
78 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
86 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
90 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
98 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
109 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
118 inst->result_id(), {}); in AssignValueNumber()
[all …]
Ddead_variable_elimination.cpp41 uint32_t result_id = inst.result_id(); in Process() local
46 result_id, SpvDecorationLinkageAttributes, in Process()
59 get_def_use_mgr()->ForEachUser(result_id, [&count](Instruction* user) { in Process()
65 reference_count_[result_id] = count; in Process()
67 ids_to_remove.push_back(result_id); in Process()
75 for (auto result_id : ids_to_remove) { in Process() local
76 DeleteVariable(result_id); in Process()
82 void DeadVariableElimination::DeleteVariable(uint32_t result_id) { in DeleteVariable() argument
83 Instruction* inst = get_def_use_mgr()->GetDef(result_id); in DeleteVariable()
97 uint32_t initializer_id = initializer->result_id(); in DeleteVariable()
[all …]
Dir_builder.h62 uint32_t result_id = 0; in AddNullaryOp() local
64 result_id = GetContext()->TakeNextId(); in AddNullaryOp()
65 if (result_id == 0) { in AddNullaryOp()
70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp()
75 uint32_t result_id = 0; in AddUnaryOp() local
77 result_id = GetContext()->TakeNextId(); in AddUnaryOp()
78 if (result_id == 0) { in AddUnaryOp()
83 GetContext(), opcode, type_id, result_id, in AddUnaryOp()
90 uint32_t result_id = 0; in AddBinaryOp() local
92 result_id = GetContext()->TakeNextId(); in AddBinaryOp()
[all …]
Dinst_debug_printf_pass.cpp38 c_ty_id, SpvOpCompositeExtract, val_inst->result_id(), c); in GenOutputValues()
48 GetUintId(), SpvOpSelect, val_inst->result_id(), one_id, zero_id); in GenOutputValues()
49 val_ids->push_back(sel_inst->result_id()); in GenOutputValues()
58 GetFloatId(), SpvOpFConvert, val_inst->result_id()); in GenOutputValues()
65 GetUint64Id(), SpvOpBitcast, val_inst->result_id()); in GenOutputValues()
72 val_inst->result_id()); in GenOutputValues()
73 val_ids->push_back(bc_inst->result_id()); in GenOutputValues()
89 val_inst->result_id()); in GenOutputValues()
93 GetUintId(), SpvOpUConvert, ui64_inst->result_id()); in GenOutputValues()
95 GetUint64Id(), SpvOpShiftRightLogical, ui64_inst->result_id(), in GenOutputValues()
[all …]
Dfix_func_call_arguments.cpp74 op_type->result_id(), SpvStorageClassFunction); in ReplaceAccessChainFuncCallArguments()
81 uint32_t operand_id = operand_inst->result_id(); in ReplaceAccessChainFuncCallArguments()
82 Instruction* load = builder.AddLoad(op_type->result_id(), operand_id); in ReplaceAccessChainFuncCallArguments()
83 builder.AddStore(var->result_id(), load->result_id()); in ReplaceAccessChainFuncCallArguments()
86 load = builder.AddLoad(op_type->result_id(), var->result_id()); in ReplaceAccessChainFuncCallArguments()
87 builder.AddStore(operand_id, load->result_id()); in ReplaceAccessChainFuncCallArguments()
89 return var->result_id(); in ReplaceAccessChainFuncCallArguments()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Damd_ext_to_khr.cpp86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
128 new_operands.push_back({SPV_OPERAND_TYPE_ID, {min->result_id()}}); in ReplaceTrinaryMid()
129 new_operands.push_back({SPV_OPERAND_TYPE_ID, {max->result_id()}}); in ReplaceTrinaryMid()
243 id->result_id(), quad_mask); in ReplaceSwizzleInvocations()
247 uint_type_id, SpvOpBitwiseXor, id->result_id(), quad_idx->result_id()); in ReplaceSwizzleInvocations()
252 quad_idx->result_id()); in ReplaceSwizzleInvocations()
256 uint_type_id, SpvOpIAdd, quad_ldr->result_id(), my_offset->result_id()); in ReplaceSwizzleInvocations()
268 {subgroup_scope, ballot_value->result_id(), target_inv->result_id()}); in ReplaceSwizzleInvocations()
271 {subgroup_scope, data_id, target_inv->result_id()}); in ReplaceSwizzleInvocations()
281 new_operands.push_back({SPV_OPERAND_TYPE_ID, {is_active->result_id()}}); in ReplaceSwizzleInvocations()
[all …]
Dvalue_number_table.cpp26 assert(inst->result_id() != 0 && in GetValueNumber()
30 auto result_id_to_val = id_to_value_.find(inst->result_id()); in GetValueNumber()
55 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
64 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
78 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
86 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
90 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
98 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
109 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
118 inst->result_id(), {}); in AssignValueNumber()
[all …]
Ddead_variable_elimination.cpp41 uint32_t result_id = inst.result_id(); in Process() local
46 result_id, SpvDecorationLinkageAttributes, in Process()
59 get_def_use_mgr()->ForEachUser(result_id, [&count](Instruction* user) { in Process()
65 reference_count_[result_id] = count; in Process()
67 ids_to_remove.push_back(result_id); in Process()
75 for (auto result_id : ids_to_remove) { in Process() local
76 DeleteVariable(result_id); in Process()
82 void DeadVariableElimination::DeleteVariable(uint32_t result_id) { in DeleteVariable() argument
83 Instruction* inst = get_def_use_mgr()->GetDef(result_id); in DeleteVariable()
97 uint32_t initializer_id = initializer->result_id(); in DeleteVariable()
[all …]
Dir_builder.h62 uint32_t result_id = 0; in AddNullaryOp() local
64 result_id = GetContext()->TakeNextId(); in AddNullaryOp()
65 if (result_id == 0) { in AddNullaryOp()
70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp()
75 uint32_t result_id = 0; in AddUnaryOp() local
77 result_id = GetContext()->TakeNextId(); in AddUnaryOp()
78 if (result_id == 0) { in AddUnaryOp()
83 GetContext(), opcode, type_id, result_id, in AddUnaryOp()
90 uint32_t result_id = 0; in AddBinaryOp() local
92 result_id = GetContext()->TakeNextId(); in AddBinaryOp()
[all …]
Dinst_debug_printf_pass.cpp37 c_ty_id, SpvOpCompositeExtract, val_inst->result_id(), c); in GenOutputValues()
47 GetUintId(), SpvOpSelect, val_inst->result_id(), one_id, zero_id); in GenOutputValues()
48 val_ids->push_back(sel_inst->result_id()); in GenOutputValues()
57 GetFloatId(), SpvOpFConvert, val_inst->result_id()); in GenOutputValues()
64 GetUint64Id(), SpvOpBitcast, val_inst->result_id()); in GenOutputValues()
71 val_inst->result_id()); in GenOutputValues()
72 val_ids->push_back(bc_inst->result_id()); in GenOutputValues()
88 val_inst->result_id()); in GenOutputValues()
92 GetUintId(), SpvOpUConvert, ui64_inst->result_id()); in GenOutputValues()
94 GetUint64Id(), SpvOpShiftRightLogical, ui64_inst->result_id(), in GenOutputValues()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Damd_ext_to_khr.cpp86 new_operands.push_back({SPV_OPERAND_TYPE_ID, {temp->result_id()}}); in ReplaceTrinaryMinMax()
128 new_operands.push_back({SPV_OPERAND_TYPE_ID, {min->result_id()}}); in ReplaceTrinaryMid()
129 new_operands.push_back({SPV_OPERAND_TYPE_ID, {max->result_id()}}); in ReplaceTrinaryMid()
243 id->result_id(), quad_mask); in ReplaceSwizzleInvocations()
247 uint_type_id, SpvOpBitwiseXor, id->result_id(), quad_idx->result_id()); in ReplaceSwizzleInvocations()
252 quad_idx->result_id()); in ReplaceSwizzleInvocations()
256 uint_type_id, SpvOpIAdd, quad_ldr->result_id(), my_offset->result_id()); in ReplaceSwizzleInvocations()
268 {subgroup_scope, ballot_value->result_id(), target_inv->result_id()}); in ReplaceSwizzleInvocations()
271 {subgroup_scope, data_id, target_inv->result_id()}); in ReplaceSwizzleInvocations()
281 new_operands.push_back({SPV_OPERAND_TYPE_ID, {is_active->result_id()}}); in ReplaceSwizzleInvocations()
[all …]
Dvalue_number_table.cpp26 assert(inst->result_id() != 0 && in GetValueNumber()
30 auto result_id_to_val = id_to_value_.find(inst->result_id()); in GetValueNumber()
55 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
64 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
78 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
86 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
90 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
98 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
109 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
118 inst->result_id(), {}); in AssignValueNumber()
[all …]
Ddead_variable_elimination.cpp41 uint32_t result_id = inst.result_id(); in Process() local
46 result_id, SpvDecorationLinkageAttributes, in Process()
59 get_def_use_mgr()->ForEachUser(result_id, [&count](Instruction* user) { in Process()
65 reference_count_[result_id] = count; in Process()
67 ids_to_remove.push_back(result_id); in Process()
75 for (auto result_id : ids_to_remove) { in Process() local
76 DeleteVariable(result_id); in Process()
82 void DeadVariableElimination::DeleteVariable(uint32_t result_id) { in DeleteVariable() argument
83 Instruction* inst = get_def_use_mgr()->GetDef(result_id); in DeleteVariable()
97 uint32_t initializer_id = initializer->result_id(); in DeleteVariable()
[all …]
Dir_builder.h62 uint32_t result_id = 0; in AddNullaryOp() local
64 result_id = GetContext()->TakeNextId(); in AddNullaryOp()
65 if (result_id == 0) { in AddNullaryOp()
70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp()
75 uint32_t result_id = 0; in AddUnaryOp() local
77 result_id = GetContext()->TakeNextId(); in AddUnaryOp()
78 if (result_id == 0) { in AddUnaryOp()
83 GetContext(), opcode, type_id, result_id, in AddUnaryOp()
90 uint32_t result_id = 0; in AddBinaryOp() local
92 result_id = GetContext()->TakeNextId(); in AddBinaryOp()
[all …]
Dinst_debug_printf_pass.cpp37 c_ty_id, SpvOpCompositeExtract, val_inst->result_id(), c); in GenOutputValues()
47 GetUintId(), SpvOpSelect, val_inst->result_id(), one_id, zero_id); in GenOutputValues()
48 val_ids->push_back(sel_inst->result_id()); in GenOutputValues()
57 GetFloatId(), SpvOpFConvert, val_inst->result_id()); in GenOutputValues()
64 GetUint64Id(), SpvOpBitcast, val_inst->result_id()); in GenOutputValues()
71 val_inst->result_id()); in GenOutputValues()
72 val_ids->push_back(bc_inst->result_id()); in GenOutputValues()
88 val_inst->result_id()); in GenOutputValues()
92 GetUintId(), SpvOpUConvert, ui64_inst->result_id()); in GenOutputValues()
94 GetUint64Id(), SpvOpShiftRightLogical, ui64_inst->result_id(), in GenOutputValues()
[all …]
/third_party/spirv-tools/source/
Dname_mapper.cpp172 const auto result_id = inst.result_id; in ParseInstruction() local
189 SaveName(result_id, "void"); in ParseInstruction()
192 SaveName(result_id, "bool"); in ParseInstruction()
217 SaveName(result_id, signedness + root); in ParseInstruction()
223 SaveName(result_id, "half"); in ParseInstruction()
226 SaveName(result_id, "float"); in ParseInstruction()
229 SaveName(result_id, "double"); in ParseInstruction()
232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
237 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
241 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
Dname_mapper.cpp172 const auto result_id = inst.result_id; in ParseInstruction() local
189 SaveName(result_id, "void"); in ParseInstruction()
192 SaveName(result_id, "bool"); in ParseInstruction()
217 SaveName(result_id, signedness + root); in ParseInstruction()
223 SaveName(result_id, "half"); in ParseInstruction()
226 SaveName(result_id, "float"); in ParseInstruction()
229 SaveName(result_id, "double"); in ParseInstruction()
232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
237 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
241 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/
Dname_mapper.cpp172 const auto result_id = inst.result_id; in ParseInstruction() local
189 SaveName(result_id, "void"); in ParseInstruction()
192 SaveName(result_id, "bool"); in ParseInstruction()
217 SaveName(result_id, signedness + root); in ParseInstruction()
223 SaveName(result_id, "half"); in ParseInstruction()
226 SaveName(result_id, "float"); in ParseInstruction()
229 SaveName(result_id, "double"); in ParseInstruction()
232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
237 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
241 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_add_parameters.cpp38 GetIRContext(), type_inst->result_id())) { in Apply()
39 type_candidates.push_back(type_inst->result_id()); in Apply()
52 function.result_id())) { in Apply()
86 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
88 auto function_id = block->GetParent()->result_id(); in Apply()
91 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
99 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
104 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
115 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
120 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_parameters.cpp38 GetIRContext(), type_inst->result_id())) { in Apply()
39 type_candidates.push_back(type_inst->result_id()); in Apply()
52 function.result_id())) { in Apply()
86 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
88 auto function_id = block->GetParent()->result_id(); in Apply()
91 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
99 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
104 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
115 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
120 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_add_parameters.cpp38 GetIRContext(), type_inst->result_id())) { in Apply()
39 type_candidates.push_back(type_inst->result_id()); in Apply()
52 function.result_id())) { in Apply()
86 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
88 auto function_id = block->GetParent()->result_id(); in Apply()
91 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
99 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
104 call_parameter_ids[instr->result_id()] = variable_id; in Apply()
115 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
120 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
68 if (!data_synonym_and_id_equation_facts.GetSynonymsForId(fact.result_id()) in MaybeAddFact()
74 irrelevant_ids_.insert(fact.result_id()); in MaybeAddFact()
83 uint32_t result_id, const DeadBlockFacts& dead_block_facts) const { in IdIsIrrelevant() argument
85 if (irrelevant_ids_.count(result_id)) { in IdIsIrrelevant()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
123 irrelevant_ids.emplace(inst->result_id()); in GetIrrelevantIds()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
68 if (!data_synonym_and_id_equation_facts.GetSynonymsForId(fact.result_id()) in MaybeAddFact()
74 irrelevant_ids_.insert(fact.result_id()); in MaybeAddFact()
83 uint32_t result_id, const DeadBlockFacts& dead_block_facts) const { in IdIsIrrelevant() argument
85 if (irrelevant_ids_.count(result_id)) { in IdIsIrrelevant()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
123 irrelevant_ids.emplace(inst->result_id()); in GetIrrelevantIds()
/third_party/spirv-tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
68 if (!data_synonym_and_id_equation_facts.GetSynonymsForId(fact.result_id()) in MaybeAddFact()
74 irrelevant_ids_.insert(fact.result_id()); in MaybeAddFact()
83 uint32_t result_id, const DeadBlockFacts& dead_block_facts) const { in IdIsIrrelevant() argument
85 if (irrelevant_ids_.count(result_id)) { in IdIsIrrelevant()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
123 irrelevant_ids.emplace(inst->result_id()); in GetIrrelevantIds()

12345678910>>...30