Home
last modified time | relevance | path

Searched refs:type_id (Results 1 - 25 of 877) sorted by relevance

12345678910>>...36

/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Deliminate_dead_members_pass.cpp65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
137 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
141 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
142 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
149 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
173 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
175 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
176 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
189 uint32_t type_id in MarkMembersAsLiveForExtract() local
222 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForAccessChain() local
271 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForArrayLength() local
368 uint32_t type_id = inst->GetSingleWordInOperand(0); UpdateOpMemberNameOrDecorate() local
398 uint32_t type_id = inst->GetSingleWordInOperand(i); UpdateOpGroupMemberDecorate() local
435 uint32_t type_id = inst->type_id(); UpdateConstantComposite() local
462 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateAccessChain() local
525 GetNewMemberIndex(uint32_t type_id, uint32_t member_idx) GetNewMemberIndex() argument
553 uint32_t type_id = object_inst->type_id(); UpdateCompsiteExtract() local
609 uint32_t type_id = composite_inst->type_id(); UpdateCompositeInsert() local
662 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateOpArrayLength() local
[all...]
H A Dir_builder.h61 Instruction* AddNullaryOp(uint32_t type_id, SpvOp opcode) { in AddNullaryOp() argument
63 if (type_id != 0) { in AddNullaryOp()
70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp()
74 Instruction* AddUnaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1) { in AddUnaryOp() argument
76 if (type_id != 0) { in AddUnaryOp()
83 GetContext(), opcode, type_id, result_id, in AddUnaryOp()
88 Instruction* AddBinaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, in AddBinaryOp() argument
91 if (type_id != 0) { in AddBinaryOp()
98 GetContext(), opcode, type_id, opcode == SpvOpStore ? 0 : result_id, in AddBinaryOp()
104 Instruction* AddTernaryOp(uint32_t type_id, SpvO argument
121 AddQuadOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, uint32_t operand2, uint32_t operand3, uint32_t operand4) AddQuadOp() argument
140 AddIdLiteralOp(uint32_t type_id, SpvOp opcode, uint32_t id, uint32_t uliteral) AddIdLiteralOp() argument
160 AddNaryOp(uint32_t type_id, SpvOp opcode, const std::vector<uint32_t>& operands, uint32_t result = 0) AddNaryOp() argument
415 uint32_t type_id = GetIntConstant() local
463 AddAccessChain(uint32_t type_id, uint32_t base_ptr_id, std::vector<uint32_t> ids) AddAccessChain() argument
479 AddLoad(uint32_t type_id, uint32_t base_ptr_id) AddLoad() argument
[all...]
H A 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()
213 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule()
227 const Constant* c, uint32_t type_id, Module::inst_iterator* pos) { in GetDefiningInstruction()
228 uint32_t decl_id = FindDeclaredConstant(c, type_id); in GetDefiningInstruction()
232 return BuildInstructionAndAddToModule(c, pos, type_id); in GetDefiningInstruction()
205 BuildInstructionAndAddToModule( const Constant* new_const, Module::inst_iterator* pos, uint32_t type_id) BuildInstructionAndAddToModule() argument
226 GetDefiningInstruction( const Constant* c, uint32_t type_id, Module::inst_iterator* pos) GetDefiningInstruction() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Deliminate_dead_members_pass.cpp65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
137 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
141 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
142 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
149 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
173 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
175 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
176 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
189 uint32_t type_id in MarkMembersAsLiveForExtract() local
222 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForAccessChain() local
271 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForArrayLength() local
368 uint32_t type_id = inst->GetSingleWordInOperand(0); UpdateOpMemberNameOrDecorate() local
398 uint32_t type_id = inst->GetSingleWordInOperand(i); UpdateOpGroupMemberDecorate() local
435 uint32_t type_id = inst->type_id(); UpdateConstantComposite() local
462 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateAccessChain() local
525 GetNewMemberIndex(uint32_t type_id, uint32_t member_idx) GetNewMemberIndex() argument
553 uint32_t type_id = object_inst->type_id(); UpdateCompsiteExtract() local
609 uint32_t type_id = composite_inst->type_id(); UpdateCompositeInsert() local
662 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateOpArrayLength() local
[all...]
H A Dir_builder.h61 Instruction* AddNullaryOp(uint32_t type_id, SpvOp opcode) { in AddNullaryOp() argument
63 if (type_id != 0) { in AddNullaryOp()
70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp()
74 Instruction* AddUnaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1) { in AddUnaryOp() argument
76 if (type_id != 0) { in AddUnaryOp()
83 GetContext(), opcode, type_id, result_id, in AddUnaryOp()
88 Instruction* AddBinaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, in AddBinaryOp() argument
91 if (type_id != 0) { in AddBinaryOp()
98 GetContext(), opcode, type_id, opcode == SpvOpStore ? 0 : result_id, in AddBinaryOp()
104 Instruction* AddTernaryOp(uint32_t type_id, SpvO argument
121 AddQuadOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, uint32_t operand2, uint32_t operand3, uint32_t operand4) AddQuadOp() argument
140 AddIdLiteralOp(uint32_t type_id, SpvOp opcode, uint32_t id, uint32_t uliteral) AddIdLiteralOp() argument
160 AddNaryOp(uint32_t type_id, SpvOp opcode, const std::vector<uint32_t>& operands, uint32_t result = 0) AddNaryOp() argument
415 uint32_t type_id = GetIntConstant() local
463 AddAccessChain(uint32_t type_id, uint32_t base_ptr_id, std::vector<uint32_t> ids) AddAccessChain() argument
479 AddLoad(uint32_t type_id, uint32_t base_ptr_id) AddLoad() argument
[all...]
H A 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()
213 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule()
227 const Constant* c, uint32_t type_id, Module::inst_iterator* pos) { in GetDefiningInstruction()
228 uint32_t decl_id = FindDeclaredConstant(c, type_id); in GetDefiningInstruction()
232 return BuildInstructionAndAddToModule(c, pos, type_id); in GetDefiningInstruction()
205 BuildInstructionAndAddToModule( const Constant* new_const, Module::inst_iterator* pos, uint32_t type_id) BuildInstructionAndAddToModule() argument
226 GetDefiningInstruction( const Constant* c, uint32_t type_id, Module::inst_iterator* pos) GetDefiningInstruction() argument
[all...]
/third_party/spirv-tools/source/opt/
H A Deliminate_dead_members_pass.cpp64 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
70 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
136 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore()
140 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument
141 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed()
148 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed()
172 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory()
174 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local
175 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory()
189 uint32_t type_id in MarkMembersAsLiveForExtract() local
222 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForAccessChain() local
271 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); MarkMembersAsLiveForArrayLength() local
368 uint32_t type_id = inst->GetSingleWordInOperand(0); UpdateOpMemberNameOrDecorate() local
398 uint32_t type_id = inst->GetSingleWordInOperand(i); UpdateOpGroupMemberDecorate() local
435 uint32_t type_id = inst->type_id(); UpdateConstantComposite() local
462 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateAccessChain() local
525 GetNewMemberIndex(uint32_t type_id, uint32_t member_idx) GetNewMemberIndex() argument
553 uint32_t type_id = object_inst->type_id(); UpdateCompsiteExtract() local
609 uint32_t type_id = composite_inst->type_id(); UpdateCompositeInsert() local
662 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); UpdateOpArrayLength() local
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_non_uniform.cpp31 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformElect()
41 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformAnyAll()
56 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformAllEqual()
75 const auto type_id = inst->type_id(); in ValidateGroupNonUniformBroadcastShuffle() local
76 if (!_.IsFloatScalarOrVectorType(type_id) && in ValidateGroupNonUniformBroadcastShuffle()
77 !_.IsIntScalarOrVectorType(type_id) && in ValidateGroupNonUniformBroadcastShuffle()
78 !_.IsBoolScalarOrVectorType(type_id)) { in ValidateGroupNonUniformBroadcastShuffle()
85 if (value_type_id != type_id) { in ValidateGroupNonUniformBroadcastShuffle()
143 const auto type_id in ValidateGroupNonUniformBroadcastFirst() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp86 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()] in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp61 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
62 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
75 uint32_t type_id = pair.second->type_id(); in Apply() local
76 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply()
77 types_to_ids.count(type_id)) { in Apply()
78 types_to_ids[type_id].push_back(pair.first); in Apply()
91 uint32_t type_id = in Apply() local
92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
95 irrelevant_id, [this, &irrelevant_id, &type_id, in Apply()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
139 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
143 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
146 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
148 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
153 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
155 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
169 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
174 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
179 fresh_variable_id, param->type_id(), caller_functio in ChooseFunctionCallArguments()
[all...]
H A 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()
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
169 CheckTypeIsAllowed( opt::IRContext* ir_context, uint32_t type_id) CheckTypeIsAllowed() argument
[all...]
H A 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()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp86 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()] in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp61 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
62 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
75 uint32_t type_id = pair.second->type_id(); in Apply() local
76 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply()
77 types_to_ids.count(type_id)) { in Apply()
78 types_to_ids[type_id].push_back(pair.first); in Apply()
91 uint32_t type_id = in Apply() local
92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
95 irrelevant_id, [this, &irrelevant_id, &type_id, in Apply()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
139 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
143 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
146 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
148 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
153 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
155 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
169 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
174 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
179 fresh_variable_id, param->type_id(), caller_functio in ChooseFunctionCallArguments()
[all...]
H A 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()
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
169 CheckTypeIsAllowed( opt::IRContext* ir_context, uint32_t type_id) CheckTypeIsAllowed() argument
[all...]
H A 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()
[all...]
/third_party/spirv-tools/source/fuzz/
H A Dfuzzer_pass_merge_function_returns.cpp86 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()] in GetTypesToIdsAvailableAfterEntryBlock()
[all...]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp61 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply()
62 types_to_ids.insert({declaration->type_id(), {}}); in Apply()
75 uint32_t type_id = pair.second->type_id(); in Apply() local
76 if (pair.second->opcode() != spv::Op::OpFunction && type_id && in Apply()
77 types_to_ids.count(type_id)) { in Apply()
78 types_to_ids[type_id].push_back(pair.first); in Apply()
91 uint32_t type_id = in Apply() local
92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
95 irrelevant_id, [this, &irrelevant_id, &type_id, in Apply()
[all...]
H A Dfuzzer_pass_add_function_calls.cpp132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments()
139 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments()
143 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments()
146 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments()
148 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments()
153 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments()
155 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments()
169 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments()
174 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments()
179 fresh_variable_id, param->type_id(), caller_functio in ChooseFunctionCallArguments()
[all...]
H A 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
146 type_id, message_.fresh_id(), in Apply()
170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed()
171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
169 CheckTypeIsAllowed( opt::IRContext* ir_context, uint32_t type_id) CheckTypeIsAllowed() argument
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dobject.c29 pa_object *pa_object_new_internal(size_t size, const char *type_id, bool (*check_type)(const char *type_id)) { in pa_object_new_internal() argument
33 pa_assert(type_id); in pa_object_new_internal()
38 pa_assert(check_type(type_id)); in pa_object_new_internal()
43 o->type_id = type_id; in pa_object_new_internal()
66 bool pa_object_check_type(const char *type_id) { in pa_object_check_type() argument
67 pa_assert(type_id); in pa_object_check_type()
69 return type_id == pa_object_type_id; in pa_object_check_type()
H A Dobject.h34 const char *type_id; member
39 pa_object *pa_object_new_internal(size_t size, const char *type_id, bool (*check_type)(const char *type_id));
44 bool pa_object_check_type(const char *type_id);
96 bool c##_check_type(const char *type_id)
100 bool c##_check_type(const char *type_id) { \
101 if (type_id == c##_type_id) \
103 return parent##_check_type(type_id); \
110 static bool c##_check_type(const char *type_id) { \
111 if (type_id
[all...]
/third_party/skia/third_party/externals/spirv-cross/tests-other/
H A Dtyped_id_test.cpp9 TypeID type_id = 20; in main() local
14 type_id = 40; in main()
19 ID generic_type_id = type_id; in main()
24 generic_type_id = type_id; in main()
29 type_id = generic_type_id; in main()
35 a = type_id; in main()
43 type_id = TypeID(10); in main()
47 //var_id = type_id; in main()

Completed in 12 milliseconds

12345678910>>...36