Home
last modified time | relevance | path

Searched refs:type_id (Results 1 – 25 of 827) sorted by relevance

12345678910>>...34

/external/deqp-deps/SPIRV-Tools/source/opt/
Deliminate_dead_members_pass.cpp64 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
132 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
136 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
137 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
145 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
164 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
166 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
167 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
180 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local
183 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkMembersAsLiveForExtract()
[all …]
Dfix_storage_class.cpp44 PropagateType(use.first, inst->type_id(), use.second, &seen); in Process()
131 Instruction* result_type_inst = get_def_use_mgr()->GetDef(inst->type_id()); in ChangeResultStorageClass()
141 if (inst->type_id() == 0) { in IsPointerResultType()
145 context()->get_type_mgr()->GetType(inst->type_id()); in IsPointerResultType()
152 analysis::Type* pType = type_mgr->GetType(inst->type_id()); in IsPointerToStorageClass()
164 if (inst->type_id() == new_type_id) { in ChangeResultType()
174 bool FixStorageClass::PropagateType(Instruction* inst, uint32_t type_id, in PropagateType() argument
176 assert(type_id != 0 && "Not given a valid type in PropagateType"); in PropagateType()
188 new_type_id = WalkAccessChainType(inst, type_id); in PropagateType()
192 new_type_id = type_id; in PropagateType()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Deliminate_dead_members_pass.cpp64 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
132 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
136 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
137 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
145 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
164 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
166 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
167 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
180 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local
183 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkMembersAsLiveForExtract()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Deliminate_dead_members_pass.cpp64 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
132 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
136 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
137 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
145 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
164 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
166 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
167 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
180 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local
183 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkMembersAsLiveForExtract()
[all …]
Dfix_storage_class.cpp44 PropagateType(use.first, inst->type_id(), use.second, &seen); in Process()
131 Instruction* result_type_inst = get_def_use_mgr()->GetDef(inst->type_id()); in ChangeResultStorageClass()
141 if (inst->type_id() == 0) { in IsPointerResultType()
145 context()->get_type_mgr()->GetType(inst->type_id()); in IsPointerResultType()
152 analysis::Type* pType = type_mgr->GetType(inst->type_id()); in IsPointerToStorageClass()
164 if (inst->type_id() == new_type_id) { in ChangeResultType()
174 bool FixStorageClass::PropagateType(Instruction* inst, uint32_t type_id, in PropagateType() argument
176 assert(type_id != 0 && "Not given a valid type in PropagateType"); in PropagateType()
188 new_type_id = WalkAccessChainType(inst, type_id); in PropagateType()
192 new_type_id = type_id; in PropagateType()
[all …]
Dconstants.cpp155 return context()->get_type_mgr()->GetType(inst->type_id()); in GetType()
175 uint32_t type_id) const { in FindDeclaredConstant()
185 if (type_id == 0 || const_def->type_id() == type_id) { in FindDeclaredConstant()
206 const Constant* new_const, Module::inst_iterator* pos, uint32_t type_id) { in BuildInstructionAndAddToModule() argument
213 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule()
226 const Constant* c, uint32_t type_id, Module::inst_iterator* pos) { in GetDefiningInstruction() argument
227 uint32_t decl_id = FindDeclaredConstant(c, type_id); in GetDefiningInstruction()
231 return BuildInstructionAndAddToModule(c, pos, type_id); in GetDefiningInstruction()
235 assert((type_id == 0 || def->type_id() == type_id) && in GetDefiningInstruction()
326 uint32_t id, const Constant* c, uint32_t type_id) const { in CreateInstruction()
[all …]
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp87 function->type_id()); in Apply()
181 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply()
192 if (ids_available_after_entry_block.count(function->type_id())) { in Apply()
194 ids_available_after_entry_block[function->type_id()]; in Apply()
199 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply()
202 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply()
225 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
226 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
227 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
229 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp62 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
63 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
76 uint32_t type_id = pair.second->type_id(); in Apply() local
77 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply()
78 types_to_ids.count(type_id)) { in Apply()
79 types_to_ids[type_id].push_back(pair.first); in Apply()
92 uint32_t type_id = in Apply() local
93 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
96 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply()
127 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
Dfuzzer_pass_add_function_calls.cpp133 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
140 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
144 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
147 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
149 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
154 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
156 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
170 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
175 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
180 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments()
[all …]
Dtransformation_add_opphi_synonym.cpp83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local
84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable()
94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable()
129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local
145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply()
170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp65 ->type_id(); in IsApplicable()
83 auto type_id = in Apply() local
84 ir_context->get_def_use_mgr()->GetDef(message_.result_id())->type_id(); in Apply()
85 auto type = ir_context->get_type_mgr()->GetType(type_id); in Apply()
127 ->type_id(); in Apply()
152 ir_context, SpvOpCompositeExtract, original_instruction->type_id(), in Apply()
183 ->type_id(); in IsInstructionSuitable()
189 ->type_id(); in IsInstructionSuitable()
191 uint32_t result_type_id = instruction.type_id(); in IsInstructionSuitable()
202 auto type = ir_context->get_type_mgr()->GetType(instruction.type_id()); in IsInstructionSuitable()
Dtransformation_replace_linear_algebra_instruction.cpp123 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
127 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
141 ->type_id()) in GetRequiredFreshIdCount()
151 ir_context->get_type_mgr()->GetType(matrix_instruction->type_id()); in GetRequiredFreshIdCount()
169 ->GetType(vector_instruction->type_id()) in GetRequiredFreshIdCount()
174 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
189 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
193 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
211 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
216 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp87 function->type_id()); in Apply()
181 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply()
192 if (ids_available_after_entry_block.count(function->type_id())) { in Apply()
194 ids_available_after_entry_block[function->type_id()]; in Apply()
199 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply()
202 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply()
225 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
226 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
227 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
229 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp62 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
63 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
76 uint32_t type_id = pair.second->type_id(); in Apply() local
77 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply()
78 types_to_ids.count(type_id)) { in Apply()
79 types_to_ids[type_id].push_back(pair.first); in Apply()
92 uint32_t type_id = in Apply() local
93 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
96 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply()
127 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
Dfuzzer_pass_add_function_calls.cpp133 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
140 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
144 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
147 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
149 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
154 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
156 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
170 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
175 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
180 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments()
[all …]
Dtransformation_add_opphi_synonym.cpp83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local
84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable()
94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable()
129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local
145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply()
170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp65 ->type_id(); in IsApplicable()
83 auto type_id = in Apply() local
84 ir_context->get_def_use_mgr()->GetDef(message_.result_id())->type_id(); in Apply()
85 auto type = ir_context->get_type_mgr()->GetType(type_id); in Apply()
127 ->type_id(); in Apply()
152 ir_context, SpvOpCompositeExtract, original_instruction->type_id(), in Apply()
183 ->type_id(); in IsInstructionSuitable()
189 ->type_id(); in IsInstructionSuitable()
191 uint32_t result_type_id = instruction.type_id(); in IsInstructionSuitable()
202 auto type = ir_context->get_type_mgr()->GetType(instruction.type_id()); in IsInstructionSuitable()
Dtransformation_replace_linear_algebra_instruction.cpp123 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
127 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
141 ->type_id()) in GetRequiredFreshIdCount()
151 ir_context->get_type_mgr()->GetType(matrix_instruction->type_id()); in GetRequiredFreshIdCount()
169 ->GetType(vector_instruction->type_id()) in GetRequiredFreshIdCount()
174 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
189 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
193 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
211 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
216 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp85 function->type_id()); in Apply()
180 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply()
191 if (ids_available_after_entry_block.count(function->type_id())) { in Apply()
193 ids_available_after_entry_block[function->type_id()]; in Apply()
198 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply()
201 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply()
224 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock()
225 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock()
226 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock()
228 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp60 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
61 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
74 uint32_t type_id = pair.second->type_id(); in Apply() local
75 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply()
76 types_to_ids.count(type_id)) { in Apply()
77 types_to_ids[type_id].push_back(pair.first); in Apply()
90 uint32_t type_id = in Apply() local
91 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
94 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply()
125 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
Dfuzzer_pass_add_function_calls.cpp131 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
138 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
142 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
145 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
147 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
152 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
154 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
168 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
173 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
178 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments()
[all …]
Dtransformation_add_opphi_synonym.cpp83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local
84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable()
94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable()
129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local
145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply()
170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp64 ->type_id(); in IsApplicable()
82 auto type_id = in Apply() local
83 ir_context->get_def_use_mgr()->GetDef(message_.result_id())->type_id(); in Apply()
84 auto type = ir_context->get_type_mgr()->GetType(type_id); in Apply()
126 ->type_id(); in Apply()
151 ir_context, SpvOpCompositeExtract, original_instruction->type_id(), in Apply()
182 ->type_id(); in IsInstructionSuitable()
188 ->type_id(); in IsInstructionSuitable()
190 uint32_t result_type_id = instruction.type_id(); in IsInstructionSuitable()
201 auto type = ir_context->get_type_mgr()->GetType(instruction.type_id()); in IsInstructionSuitable()
Dtransformation_replace_linear_algebra_instruction.cpp122 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
126 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
140 ->type_id()) in GetRequiredFreshIdCount()
150 ir_context->get_type_mgr()->GetType(matrix_instruction->type_id()); in GetRequiredFreshIdCount()
168 ->GetType(vector_instruction->type_id()) in GetRequiredFreshIdCount()
173 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
188 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
192 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount()
210 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
215 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount()
[all …]
/external/google-fruit/src/
Dbinding_normalization.cpp46 if (entry.type_id == last_entry.type_id && in printLazyComponentInstallationLoop()
55 if (entry.type_id == last_entry.type_id && in printLazyComponentInstallationLoop()
60 std::cerr << std::string(entry.type_id) << std::endl; in printLazyComponentInstallationLoop()
74 std::cerr << std::string(last_entry.type_id) << std::endl; in printLazyComponentInstallationLoop()
147 << " with signature " << std::string(replaced_component_entry.type_id) in printIncompatibleComponentReplacementsError()
150 … << std::string(replacement_component_entry1.type_id) << " and the component function at " in printIncompatibleComponentReplacementsError()
152 << std::string(replacement_component_entry2.type_id) << " ." << std::endl; in printIncompatibleComponentReplacementsError()
155 << std::string(replaced_component_entry.type_id) in printIncompatibleComponentReplacementsError()
157 …<< std::string(replacement_component_entry1.type_id) << " and another component function with sign… in printIncompatibleComponentReplacementsError()
158 << std::string(replacement_component_entry2.type_id) << " ." << std::endl; in printIncompatibleComponentReplacementsError()
[all …]

12345678910>>...34