Home
last modified time | relevance | path

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

12345678910>>...18

/external/deqp-deps/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()
54 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
63 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
77 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
85 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
89 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
97 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
108 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
117 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 …]
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 …]
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_buff_addr_check_pass.cpp29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
94 rshift_uptr_inst->result_id()); in GenCheckCode()
97 {error_id, lo_uptr_inst->result_id(), hi_uptr_inst->result_id()}, in GenCheckCode()
110 null_id = null_ptr_inst->result_id(); in GenCheckCode()
127 context()->ReplaceAllUsesWith(ref_inst->result_id(), phi_inst->result_id()); in GenCheckCode()
266 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, uptr_ac_inst->result_id()); in GetSearchAndTestFuncId()
271 uptr_load_inst->result_id(), param_vec[0]); in GetSearchAndTestFuncId()
272 (void)builder.AddConditionalBranch(uptr_test_inst->result_id(), in GetSearchAndTestFuncId()
289 cand_idx_inst->result_id()); in GetSearchAndTestFuncId()
291 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, cand_ac_inst->result_id()); in GetSearchAndTestFuncId()
[all …]
Dccp_pass.cpp45 assert(instr->result_id() != 0 && in MarkInstructionVarying()
47 values_[instr->result_id()] = kVaryingSSAId; in MarkInstructionVarying()
101 values_[phi->result_id()] = meet_val_id; in VisitPhi()
106 assert(instr->result_id() != 0 && in VisitAssignment()
118 values_[instr->result_id()] = it->second; in VisitAssignment()
145 values_[instr->result_id()] = folded_inst->result_id(); in VisitAssignment()
262 } else if (instr->result_id()) { in VisitInstruction()
284 values_[inst->result_id()] = kVaryingSSAId; in PropagateConstants()
311 values_[inst.result_id()] = inst.result_id(); in Initialize()
313 values_[inst.result_id()] = kVaryingSSAId; in Initialize()
/external/angle/third_party/spirv-tools/src/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()
54 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
63 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
77 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
85 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
89 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
97 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
108 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
117 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 …]
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 …]
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_buff_addr_check_pass.cpp29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
94 rshift_uptr_inst->result_id()); in GenCheckCode()
97 {error_id, lo_uptr_inst->result_id(), hi_uptr_inst->result_id()}, in GenCheckCode()
110 null_id = null_ptr_inst->result_id(); in GenCheckCode()
127 context()->ReplaceAllUsesWith(ref_inst->result_id(), phi_inst->result_id()); in GenCheckCode()
266 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, uptr_ac_inst->result_id()); in GetSearchAndTestFuncId()
271 uptr_load_inst->result_id(), param_vec[0]); in GetSearchAndTestFuncId()
272 (void)builder.AddConditionalBranch(uptr_test_inst->result_id(), in GetSearchAndTestFuncId()
289 cand_idx_inst->result_id()); in GetSearchAndTestFuncId()
291 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, cand_ac_inst->result_id()); in GetSearchAndTestFuncId()
[all …]
Dccp_pass.cpp45 assert(instr->result_id() != 0 && in MarkInstructionVarying()
47 values_[instr->result_id()] = kVaryingSSAId; in MarkInstructionVarying()
101 values_[phi->result_id()] = meet_val_id; in VisitPhi()
106 assert(instr->result_id() != 0 && in VisitAssignment()
118 values_[instr->result_id()] = it->second; in VisitAssignment()
145 values_[instr->result_id()] = folded_inst->result_id(); in VisitAssignment()
262 } else if (instr->result_id()) { in VisitInstruction()
284 values_[inst->result_id()] = kVaryingSSAId; in PropagateConstants()
311 values_[inst.result_id()] = inst.result_id(); in Initialize()
313 values_[inst.result_id()] = kVaryingSSAId; in Initialize()
Dunify_const_pass.cpp50 if (node->result_id() == 0) { in LookupEquivalentResultFor()
51 node->SetResultId(inst.result_id()); in LookupEquivalentResultFor()
53 return node->result_id(); in LookupEquivalentResultFor()
63 uint32_t result_id() const { return result_id_; } in result_id() function in spvtools::opt::__anon33b0447d0111::ResultIdTrie::Node
119 if (get_def_use_mgr()->GetAnnotations(inst->result_id()).size() != 0) { in Process()
160 if (id != inst->result_id()) { in Process()
163 context()->ReplaceAllUsesWith(inst->result_id(), id); in Process()
/external/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()
54 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
63 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
77 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
85 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
89 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
97 dec_mgr->HaveTheSameDecorations(inst->result_id(), in AssignValueNumber()
108 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
117 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_buff_addr_check_pass.cpp29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
94 rshift_uptr_inst->result_id()); in GenCheckCode()
97 {error_id, lo_uptr_inst->result_id(), hi_uptr_inst->result_id()}, in GenCheckCode()
110 null_id = null_ptr_inst->result_id(); in GenCheckCode()
127 context()->ReplaceAllUsesWith(ref_inst->result_id(), phi_inst->result_id()); in GenCheckCode()
266 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, uptr_ac_inst->result_id()); in GetSearchAndTestFuncId()
271 uptr_load_inst->result_id(), param_vec[0]); in GetSearchAndTestFuncId()
272 (void)builder.AddConditionalBranch(uptr_test_inst->result_id(), in GetSearchAndTestFuncId()
289 cand_idx_inst->result_id()); in GetSearchAndTestFuncId()
291 builder.AddUnaryOp(ibuf_type_id, SpvOpLoad, cand_ac_inst->result_id()); in GetSearchAndTestFuncId()
[all …]
Dccp_pass.cpp45 assert(instr->result_id() != 0 && in MarkInstructionVarying()
47 values_[instr->result_id()] = kVaryingSSAId; in MarkInstructionVarying()
101 values_[phi->result_id()] = meet_val_id; in VisitPhi()
106 assert(instr->result_id() != 0 && in VisitAssignment()
118 values_[instr->result_id()] = it->second; in VisitAssignment()
145 values_[instr->result_id()] = folded_inst->result_id(); in VisitAssignment()
262 } else if (instr->result_id()) { in VisitInstruction()
284 values_[inst->result_id()] = kVaryingSSAId; in PropagateConstants()
311 values_[inst.result_id()] = inst.result_id(); in Initialize()
313 values_[inst.result_id()] = kVaryingSSAId; in Initialize()
/external/deqp-deps/SPIRV-Tools/source/
Dname_mapper.cpp171 const auto result_id = inst.result_id; in ParseInstruction() local
188 SaveName(result_id, "void"); in ParseInstruction()
191 SaveName(result_id, "bool"); in ParseInstruction()
216 SaveName(result_id, signedness + root); in ParseInstruction()
222 SaveName(result_id, "half"); in ParseInstruction()
225 SaveName(result_id, "float"); in ParseInstruction()
228 SaveName(result_id, "double"); in ParseInstruction()
231 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
236 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
240 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/
Dname_mapper.cpp171 const auto result_id = inst.result_id; in ParseInstruction() local
188 SaveName(result_id, "void"); in ParseInstruction()
191 SaveName(result_id, "bool"); in ParseInstruction()
216 SaveName(result_id, signedness + root); in ParseInstruction()
222 SaveName(result_id, "half"); in ParseInstruction()
225 SaveName(result_id, "float"); in ParseInstruction()
228 SaveName(result_id, "double"); in ParseInstruction()
231 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
236 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
240 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/external/angle/third_party/spirv-tools/src/source/
Dname_mapper.cpp171 const auto result_id = inst.result_id; in ParseInstruction() local
188 SaveName(result_id, "void"); in ParseInstruction()
191 SaveName(result_id, "bool"); in ParseInstruction()
216 SaveName(result_id, signedness + root); in ParseInstruction()
222 SaveName(result_id, "half"); in ParseInstruction()
225 SaveName(result_id, "float"); in ParseInstruction()
228 SaveName(result_id, "double"); in ParseInstruction()
231 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
236 SaveName(result_id, std::string("v") + to_string(inst.words[3]) + in ParseInstruction()
240 SaveName(result_id, std::string("mat") + to_string(inst.words[3]) + in ParseInstruction()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_function_calls.cpp66 GetIRContext(), other_function.result_id())) { in Apply()
79 candidate_function->result_id())) { in Apply()
83 if (call_graph.GetIndirectCallees(candidate_function->result_id()) in Apply()
84 .count(function->result_id())) { in Apply()
100 GetFuzzerContext()->GetFreshId(), chosen_function->result_id(), in Apply()
137 inst->result_id())) { in GetAvailableInstructionsSuitableForActualParameters()
183 ->result_id(); in ChooseFunctionCallArguments()
193 ->result_id()); in ChooseFunctionCallArguments()
218 fresh_variable_id, arg_type_id, caller_function->result_id(), in ChooseFunctionCallArguments()

12345678910>>...18