Home
last modified time | relevance | path

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

12345678

/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/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/deqp-deps/SPIRV-Tools/source/opt/
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 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
102 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
111 inst->result_id(), {}); in AssignValueNumber()
132 value = id_to_value_[value_iterator->first.result_id()]; in AssignValueNumber()
133 id_to_value_[inst->result_id()] = value; 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 …]
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()
283 values_[inst->result_id()] = kVaryingSSAId; in PropagateConstants()
310 values_[inst.result_id()] = inst.result_id(); in Initialize()
312 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::__anon45f1f1470111::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()
Dinline_pass.cpp125 const uint32_t pid = cpi->result_id(); in MapParams()
140 get_decoration_mgr()->CloneDecorations(callee_var_itr->result_id(), newId); in CloneAndMapLocals()
142 (*callee2caller)[callee_var_itr->result_id()] = newId; in CloneAndMapLocals()
167 get_decoration_mgr()->CloneDecorations(calleeFn->result_id(), returnVarId); in CreateReturnVar()
190 const uint32_t rid = sb_inst->result_id(); in CloneSameBlockOps()
227 auto fi = early_return_funcs_.find(calleeFn->result_id()); in GenInlineCode()
243 const uint32_t rid = cpi->result_id(); in GenInlineCode()
292 assert(callee2caller.count(cpi->result_id()) && in GenInlineCode()
294 uint32_t new_var_id = callee2caller.at(cpi->result_id()); in GenInlineCode()
327 const uint32_t rid = cpi->result_id(); in GenInlineCode()
[all …]
Dremove_duplicates_pass.cpp77 i->result_id()); in RemoveDuplicatesExtInstImports()
83 context()->ReplaceAllUsesWith(i->result_id(), res.first->second); in RemoveDuplicatesExtInstImports()
114 id_to_keep = j->result_id(); in RemoveDuplicateTypes()
124 context()->KillNamesAndDecorates(i->result_id()); in RemoveDuplicateTypes()
125 context()->ReplaceAllUsesWith(i->result_id(), id_to_keep); in RemoveDuplicateTypes()
187 context->get_type_mgr()->GetType(inst1.result_id()); in AreTypesEqual()
189 context->get_type_mgr()->GetType(inst2.result_id()); in AreTypesEqual()
Dloop_peeling.cpp125 exit_value_.at(phi->result_id())->result_id())}); in DuplicateAndConnectLoop()
144 original_loop_canonical_induction_variable_->result_id())); in InsertCanonicalInductionVariable()
161 uint_1_cst->type_id(), uint_1_cst->result_id(), uint_1_cst->result_id()); in InsertCanonicalInductionVariable()
167 {builder.GetIntConstant<uint32_t>(0, int_type_->IsSigned())->result_id(), in InsertCanonicalInductionVariable()
168 GetClonedLoop()->GetPreHeaderBlock()->id(), iv_inc->result_id(), in InsertCanonicalInductionVariable()
171 iv_inc->SetInOperand(0, {canonical_induction_variable_->result_id()}); in InsertCanonicalInductionVariable()
255 [this](Instruction* phi) { exit_value_[phi->result_id()] = nullptr; }); in GetIteratingExitValues()
277 exit_value_[phi->result_id()] = in GetIteratingExitValues()
305 exit_value_[phi->result_id()] = phi; in GetIteratingExitValues()
407 builder.AddConditionalBranch(condition->result_id(), in ProtectLoop()
[all …]
Dssa_rewrite_pass.cpp109 if (arg == phi_to_remove.result_id()) { in ReplacePhiUsersWith()
117 if (it.second == phi_to_remove.result_id()) { in ReplacePhiUsersWith()
128 if (arg_id == same_id || arg_id == phi_candidate->result_id()) { in TryRemoveTrivialPhi()
137 return phi_candidate->result_id(); in TryRemoveTrivialPhi()
214 defining_phi->AddUser(phi_candidate->result_id()); in AddPhiOperands()
224 return phi_candidate->result_id(); in AddPhiOperands()
229 if (repl_id == phi_candidate->result_id()) { in AddPhiOperands()
262 WriteVariable(var_id, bb, phi_candidate.result_id()); in GetReachingDef()
295 var_id = inst->result_id(); in ProcessStore()
319 const uint32_t load_id = inst->result_id(); in ProcessLoad()
[all …]
Dreduce_load_size.cpp109 ids.push_back(const_mgr->GetDefiningInstruction(index_const)->result_id()); in ReplaceExtract()
116 ir_builder.AddLoad(inst->type_id(), new_access_chain->result_id()); in ReplaceExtract()
118 context()->ReplaceAllUsesWith(inst->result_id(), new_laod->result_id()); in ReplaceExtract()
132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()
176 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
Ddead_insert_elim_pass.cpp101 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
109 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
117 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
145 if (visited_phis->count(insInst->result_id()) != 0) return; in MarkInsertChain()
146 visited_phis->insert(insInst->result_id()); in MarkInsertChain()
193 liveInserts_.insert(ii->result_id()); in EliminateDeadInsertsOnePass()
197 const uint32_t id = ii->result_id(); in EliminateDeadInsertsOnePass()
229 const uint32_t id = ii->result_id(); in EliminateDeadInsertsOnePass()
Dscalar_replacement_pass.cpp147 new Instruction(context(), SpvOpLoad, type->result_id(), loadId, in ReplaceWholeLoad()
149 {SPV_OPERAND_TYPE_ID, {var->result_id()}}})); in ReplaceWholeLoad()
169 std::initializer_list<uint32_t>{l->result_id()}); in ReplaceWholeLoad()
175 context()->ReplaceAllUsesWith(load->result_id(), compositeId); in ReplaceWholeLoad()
196 context(), SpvOpCompositeExtract, type->result_id(), extractId, in ReplaceWholeStore()
208 {SPV_OPERAND_TYPE_ID, {var->result_id()}}, in ReplaceWholeStore()
241 {SPV_OPERAND_TYPE_ID, {var->result_id()}}})); in ReplaceAccessChain()
250 context()->ReplaceAllUsesWith(chain->result_id(), replacementId); in ReplaceAccessChain()
253 context()->ReplaceAllUsesWith(chain->result_id(), var->result_id()); in ReplaceAccessChain()
312 get_decoration_mgr()->GetDecorationsFor(source->result_id(), false)) { in TransferAnnotations()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
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 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
102 id_to_value_[inst->result_id()] = value; in AssignValueNumber()
111 inst->result_id(), {}); in AssignValueNumber()
132 value = id_to_value_[value_iterator->first.result_id()]; in AssignValueNumber()
133 id_to_value_[inst->result_id()] = value; 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 …]
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()
283 values_[inst->result_id()] = kVaryingSSAId; in PropagateConstants()
310 values_[inst.result_id()] = inst.result_id(); in Initialize()
312 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::__anon19ac89410111::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()
Dinline_pass.cpp135 const uint32_t pid = cpi->result_id(); in MapParams()
153 get_decoration_mgr()->CloneDecorations(callee_var_itr->result_id(), newId); in CloneAndMapLocals()
155 (*callee2caller)[callee_var_itr->result_id()] = newId; in CloneAndMapLocals()
191 get_decoration_mgr()->CloneDecorations(calleeFn->result_id(), returnVarId); in CreateReturnVar()
217 const uint32_t rid = sb_inst->result_id(); in CloneSameBlockOps()
258 auto fi = early_return_funcs_.find(calleeFn->result_id()); in GenInlineCode()
284 const uint32_t rid = cpi->result_id(); in GenInlineCode()
332 assert(callee2caller.count(cpi->result_id()) && in GenInlineCode()
334 uint32_t new_var_id = callee2caller.at(cpi->result_id()); in GenInlineCode()
377 const uint32_t rid = cpi->result_id(); in GenInlineCode()
[all …]
Dremove_duplicates_pass.cpp77 i->result_id()); in RemoveDuplicatesExtInstImports()
83 context()->ReplaceAllUsesWith(i->result_id(), res.first->second); in RemoveDuplicatesExtInstImports()
114 id_to_keep = j->result_id(); in RemoveDuplicateTypes()
124 context()->KillNamesAndDecorates(i->result_id()); in RemoveDuplicateTypes()
125 context()->ReplaceAllUsesWith(i->result_id(), id_to_keep); in RemoveDuplicateTypes()
187 context->get_type_mgr()->GetType(inst1.result_id()); in AreTypesEqual()
189 context->get_type_mgr()->GetType(inst2.result_id()); in AreTypesEqual()
Dloop_peeling.cpp125 exit_value_.at(phi->result_id())->result_id())}); in DuplicateAndConnectLoop()
144 original_loop_canonical_induction_variable_->result_id())); in InsertCanonicalInductionVariable()
161 uint_1_cst->type_id(), uint_1_cst->result_id(), uint_1_cst->result_id()); in InsertCanonicalInductionVariable()
167 {builder.GetIntConstant<uint32_t>(0, int_type_->IsSigned())->result_id(), in InsertCanonicalInductionVariable()
168 GetClonedLoop()->GetPreHeaderBlock()->id(), iv_inc->result_id(), in InsertCanonicalInductionVariable()
171 iv_inc->SetInOperand(0, {canonical_induction_variable_->result_id()}); in InsertCanonicalInductionVariable()
255 [this](Instruction* phi) { exit_value_[phi->result_id()] = nullptr; }); in GetIteratingExitValues()
277 exit_value_[phi->result_id()] = in GetIteratingExitValues()
305 exit_value_[phi->result_id()] = phi; in GetIteratingExitValues()
407 builder.AddConditionalBranch(condition->result_id(), in ProtectLoop()
[all …]
Dssa_rewrite_pass.cpp109 if (arg == phi_to_remove.result_id()) { in ReplacePhiUsersWith()
117 if (it.second == phi_to_remove.result_id()) { in ReplacePhiUsersWith()
128 if (arg_id == same_id || arg_id == phi_candidate->result_id()) { in TryRemoveTrivialPhi()
137 return phi_candidate->result_id(); in TryRemoveTrivialPhi()
214 defining_phi->AddUser(phi_candidate->result_id()); in AddPhiOperands()
224 return phi_candidate->result_id(); in AddPhiOperands()
229 if (repl_id == phi_candidate->result_id()) { in AddPhiOperands()
262 WriteVariable(var_id, bb, phi_candidate.result_id()); in GetReachingDef()
295 var_id = inst->result_id(); in ProcessStore()
319 const uint32_t load_id = inst->result_id(); in ProcessLoad()
[all …]
Dreduce_load_size.cpp109 ids.push_back(const_mgr->GetDefiningInstruction(index_const)->result_id()); in ReplaceExtract()
116 ir_builder.AddLoad(inst->type_id(), new_access_chain->result_id()); in ReplaceExtract()
118 context()->ReplaceAllUsesWith(inst->result_id(), new_laod->result_id()); in ReplaceExtract()
132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()
177 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
Ddead_insert_elim_pass.cpp101 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
109 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
117 liveInserts_.insert(insInst->result_id()); in MarkInsertChain()
145 if (visited_phis->count(insInst->result_id()) != 0) return; in MarkInsertChain()
146 visited_phis->insert(insInst->result_id()); in MarkInsertChain()
193 liveInserts_.insert(ii->result_id()); in EliminateDeadInsertsOnePass()
197 const uint32_t id = ii->result_id(); in EliminateDeadInsertsOnePass()
229 const uint32_t id = ii->result_id(); in EliminateDeadInsertsOnePass()
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_codec.cpp195 if (inst_.result_id) { in ProcessCurInstruction()
196 id_to_def_instruction_.emplace(inst_.result_id, instructions_.back().get()); in ProcessCurInstruction()
200 ids_local_to_cur_function_.push_back(inst_.result_id); in ProcessCurInstruction()
205 cur_function_id_ = inst_.result_id; in ProcessCurInstruction()
210 inst_.result_id); in ProcessCurInstruction()
232 if (!inst_.result_id) return; in ProcessCurInstruction()
241 inst_.result_id, spvOpcodeGeneratesType(SpvOp(inst_.opcode)) in ProcessCurInstruction()
242 ? inst_.result_id in ProcessCurInstruction()
261 multi_mtf_.Insert(GetMtfIdGeneratedByOpcode(opcode), inst_.result_id); in ProcessCurInstruction()
268 multi_mtf_.Insert(kMtfTypeComposite, inst_.result_id); in ProcessCurInstruction()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmarkv_codec.cpp195 if (inst_.result_id) { in ProcessCurInstruction()
196 id_to_def_instruction_.emplace(inst_.result_id, instructions_.back().get()); in ProcessCurInstruction()
200 ids_local_to_cur_function_.push_back(inst_.result_id); in ProcessCurInstruction()
205 cur_function_id_ = inst_.result_id; in ProcessCurInstruction()
210 inst_.result_id); in ProcessCurInstruction()
232 if (!inst_.result_id) return; in ProcessCurInstruction()
241 inst_.result_id, spvOpcodeGeneratesType(SpvOp(inst_.opcode)) in ProcessCurInstruction()
242 ? inst_.result_id in ProcessCurInstruction()
261 multi_mtf_.Insert(GetMtfIdGeneratedByOpcode(opcode), inst_.result_id); in ProcessCurInstruction()
268 multi_mtf_.Insert(kMtfTypeComposite, inst_.result_id); in ProcessCurInstruction()
[all …]

12345678