Home
last modified time | relevance | path

Searched refs:FindDef (Results 1 – 25 of 48) sorted by relevance

12

/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_memory.cpp48 auto elem_type = _.FindDef(type->word(2)); in IsAllowedTypeOrArrayOfSame()
88 auto def1 = _.FindDef(type1->word(operand)); in HaveLayoutCompatibleMembers()
89 auto def2 = _.FindDef(type2->word(operand)); in HaveLayoutCompatibleMembers()
183 elem_type = _.FindDef(elem_type_id); in ContainsInvalidBool()
191 auto member_type = _.FindDef(member_type_id); in ContainsInvalidBool()
206 auto load_pointer = _.FindDef(inst->GetOperandAs<uint32_t>(2)); in GetStorageClass()
207 auto load_pointer_type = _.FindDef(load_pointer->type_id()); in GetStorageClass()
212 auto store_pointer = _.FindDef(inst->GetOperandAs<uint32_t>(0)); in GetStorageClass()
213 auto store_pointer_type = _.FindDef(store_pointer->type_id()); in GetStorageClass()
219 auto dst = _.FindDef(inst->GetOperandAs<uint32_t>(0)); in GetStorageClass()
[all …]
Dvalidate_constants.cpp27 auto type = _.FindDef(inst->type_id()); in ValidateConstantBool()
41 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite()
62 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
71 const auto constituent = _.FindDef(constituent_id); in ValidateConstantComposite()
79 const auto constituent_result_type = _.FindDef(constituent->type_id()); in ValidateConstantComposite()
101 const auto column_type = _.FindDef(result_type->words()[2]); in ValidateConstantComposite()
108 _.FindDef(column_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
118 const auto constituent = _.FindDef(constituent_id); in ValidateConstantComposite()
130 const auto vector = _.FindDef(constituent->type_id()); in ValidateConstantComposite()
143 _.FindDef(vector->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
[all …]
Dvalidate_decorations.cpp113 const auto inst = vstate.FindDef(struct_id); in getStructMembers()
122 if (type == vstate.FindDef(id)->opcode()) { in getStructMembers()
166 const auto inst = vstate.FindDef(member_id); in getBaseAlignment()
193 const auto component_inst = vstate.FindDef(column_type); in getBaseAlignment()
231 const auto inst = vstate.FindDef(type_id); in getScalarAlignment()
269 const auto inst = vstate.FindDef(member_id); in getSize()
284 const auto sizeInst = vstate.FindDef(words[3]); in getSize()
306 const auto component_inst = vstate.FindDef(column_type); in getSize()
389 std::move(vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(struct_id)) in checkLayout()
450 const auto inst = vstate.FindDef(id); in checkLayout()
[all …]
Dvalidation_state.cpp267 const Instruction* ValidationState_t::FindDef(uint32_t id) const { in FindDef() function in spvtools::val::ValidationState_t
273 Instruction* ValidationState_t::FindDef(uint32_t id) { in FindDef() function in spvtools::val::ValidationState_t
523 Instruction* operand_inst = FindDef(operand_word); in RegisterInstruction()
570 const Instruction* inst = FindDef(id); in GetTypeId()
575 const Instruction* inst = FindDef(id); in GetIdOpcode()
580 const Instruction* inst = FindDef(id); in GetComponentType()
606 const Instruction* inst = FindDef(id); in GetDimension()
631 const Instruction* inst = FindDef(component_type_id); in GetBitWidth()
644 const Instruction* inst = FindDef(id); in IsFloatScalarType()
650 const Instruction* inst = FindDef(id); in IsFloatVectorType()
[all …]
Dvalidate_function.cpp29 const auto function_type = _.FindDef(function_type_id); in ValidateFunction()
93 const auto function_type = _.FindDef(function_type_id); in ValidateFunctionParameter()
106 _.FindDef(function_type->GetOperandAs<uint32_t>(param_index + 2)); in ValidateFunctionParameter()
120 const auto function = _.FindDef(function_id); in ValidateFunctionCall()
127 auto return_type = _.FindDef(function->type_id()); in ValidateFunctionCall()
137 const auto function_type = _.FindDef(function_type_id); in ValidateFunctionCall()
155 const auto argument = _.FindDef(argument_id); in ValidateFunctionCall()
161 const auto argument_type = _.FindDef(argument->type_id()); in ValidateFunctionCall()
170 const auto parameter_type = _.FindDef(parameter_type_id); in ValidateFunctionCall()
Dvalidate_type.cpp72 const auto component_type = _.FindDef(component_id); in ValidateTypeVector()
84 const auto column_type = _.FindDef(column_type_id); in ValidateTypeMatrix()
96 const auto element_type = _.FindDef(element_type_id); in ValidateTypeArray()
111 const auto length = _.FindDef(length_id); in ValidateTypeArray()
121 const auto const_result_type = _.FindDef(const_inst[const_result_type_index]); in ValidateTypeArray()
151 const auto element_type = _.FindDef(element_id); in ValidateTypeRuntimeArray()
172 auto member_type = _.FindDef(member_type_id); in ValidateTypeStruct()
197 auto type_pointing_to = _.FindDef(member_type->words()[3]); in ValidateTypeStruct()
236 const auto type = _.FindDef(type_id); in ValidateTypePointer()
248 const auto return_type = _.FindDef(return_type_id); in ValidateTypeFunction()
[all …]
Dvalidate_cfg.cpp51 const Instruction* type_inst = _.FindDef(inst->type_id()); in ValidatePhi()
127 const auto cond_op = _.FindDef(cond_id); in ValidateBranchConditional()
140 const auto true_target = _.FindDef(true_id); in ValidateBranchConditional()
148 const auto false_target = _.FindDef(false_id); in ValidateBranchConditional()
161 const auto value = _.FindDef(value_id); in ValidateReturnValue()
167 auto value_type = _.FindDef(value->type_id()); in ValidateReturnValue()
189 const auto return_type = _.FindDef(function->GetResultTypeId()); in ValidateReturnValue()
215 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in FirstBlockAssert()
225 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in MergeBlockAssert()
460 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(pair.first)) in StructuredSwitchChecks()
[all …]
Dvalidate_annotation.cpp30 const auto target = _.FindDef(target_id); in ValidateDecorate()
45 const auto struct_type = _.FindDef(struct_type_id); in ValidateMemberDecorate()
74 const auto decoration_group = _.FindDef(decoration_group_id); in ValidateDecorationGroup()
98 auto decoration_group = _.FindDef(decoration_group_id); in ValidateGroupDecorate()
107 auto target = _.FindDef(target_id); in ValidateGroupDecorate()
126 const auto decoration_group = _.FindDef(decoration_group_id); in ValidateGroupMemberDecorate()
138 auto struct_instr = _.FindDef(struct_id); in ValidateGroupMemberDecorate()
Dvalidate_composites.cpp61 const Instruction* const type_inst = _.FindDef(*member_type); in GetExtractInsertValueType()
86 auto size = _.FindDef(type_inst->word(3)); in GetExtractInsertValueType()
152 const auto index = _.FindDef(inst->GetOperandAs<uint32_t>(3)); in ValidateVectorExtractDynamic()
260 const Instruction* const array_inst = _.FindDef(result_type); in ValidateCompositeConstruct()
264 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
295 const Instruction* const struct_inst = _.FindDef(result_type); in ValidateCompositeConstruct()
423 auto resultType = _.FindDef(inst->type_id()); in ValidateVectorShuffle()
444 auto vector1Object = _.FindDef(inst->GetOperandAs<uint32_t>(2)); in ValidateVectorShuffle()
445 auto vector1Type = _.FindDef(vector1Object->type_id()); in ValidateVectorShuffle()
446 auto vector2Object = _.FindDef(inst->GetOperandAs<uint32_t>(3)); in ValidateVectorShuffle()
[all …]
Dvalidate_datarules.cpp132 auto col_type_instr = _.FindDef(type_id); in ValidateMatrixColumnType()
142 auto comp_type_instruction = _.FindDef(comp_type_id); in ValidateMatrixColumnType()
169 auto type_instruction = _.FindDef(type_id); in ValidateSpecConstNumerical()
183 auto type_instruction = _.FindDef(inst->type_id()); in ValidateSpecConstBoolean()
207 auto type_instruction = _.FindDef(type_id); in ValidateStruct()
Dvalidate_id.cpp45 if (auto def = _.FindDef(operand_id)) in UpdateIdUse()
94 return _.diag(SPV_ERROR_INVALID_ID, _.FindDef(func->id())) in CheckIdDefinitionDominateUse()
112 const Instruction* variable = _.FindDef(phi->word(i)); in CheckIdDefinitionDominateUse()
166 if (const auto def = _.FindDef(operand_word)) { in IdPass()
187 auto* def = _.FindDef(operand_word); in IdPass()
Dvalidate_debug.cpp28 const auto type = _.FindDef(type_id); in ValidateMemberName()
47 const auto file = _.FindDef(file_id); in ValidateLine()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_memory.cpp48 auto elem_type = _.FindDef(type->word(2)); in IsAllowedTypeOrArrayOfSame()
88 auto def1 = _.FindDef(type1->word(operand)); in HaveLayoutCompatibleMembers()
89 auto def2 = _.FindDef(type2->word(operand)); in HaveLayoutCompatibleMembers()
183 elem_type = _.FindDef(elem_type_id); in ContainsInvalidBool()
191 auto member_type = _.FindDef(member_type_id); in ContainsInvalidBool()
206 auto load_pointer = _.FindDef(inst->GetOperandAs<uint32_t>(2)); in GetStorageClass()
207 auto load_pointer_type = _.FindDef(load_pointer->type_id()); in GetStorageClass()
212 auto store_pointer = _.FindDef(inst->GetOperandAs<uint32_t>(0)); in GetStorageClass()
213 auto store_pointer_type = _.FindDef(store_pointer->type_id()); in GetStorageClass()
219 auto dst = _.FindDef(inst->GetOperandAs<uint32_t>(0)); in GetStorageClass()
[all …]
Dvalidate_constants.cpp27 auto type = _.FindDef(inst->type_id()); in ValidateConstantBool()
41 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite()
62 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
71 const auto constituent = _.FindDef(constituent_id); in ValidateConstantComposite()
79 const auto constituent_result_type = _.FindDef(constituent->type_id()); in ValidateConstantComposite()
101 const auto column_type = _.FindDef(result_type->words()[2]); in ValidateConstantComposite()
108 _.FindDef(column_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
118 const auto constituent = _.FindDef(constituent_id); in ValidateConstantComposite()
130 const auto vector = _.FindDef(constituent->type_id()); in ValidateConstantComposite()
143 _.FindDef(vector->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
[all …]
Dvalidate_decorations.cpp113 const auto inst = vstate.FindDef(struct_id); in getStructMembers()
122 if (type == vstate.FindDef(id)->opcode()) { in getStructMembers()
166 const auto inst = vstate.FindDef(member_id); in getBaseAlignment()
193 const auto component_inst = vstate.FindDef(column_type); in getBaseAlignment()
234 const auto inst = vstate.FindDef(type_id); in getScalarAlignment()
274 const auto inst = vstate.FindDef(member_id); in getSize()
289 const auto sizeInst = vstate.FindDef(words[3]); in getSize()
311 const auto component_inst = vstate.FindDef(column_type); in getSize()
396 std::move(vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(struct_id)) in checkLayout()
457 const auto inst = vstate.FindDef(id); in checkLayout()
[all …]
Dvalidate_function.cpp29 const auto function_type = _.FindDef(function_type_id); in ValidateFunction()
93 const auto function_type = _.FindDef(function_type_id); in ValidateFunctionParameter()
106 _.FindDef(function_type->GetOperandAs<uint32_t>(param_index + 2)); in ValidateFunctionParameter()
120 _.FindDef(param_nonarray_type_id)->GetOperandAs<uint32_t>(1u); in ValidateFunctionParameter()
123 auto param_nonarray_type = _.FindDef(param_nonarray_type_id); in ValidateFunctionParameter()
154 const auto pointee_type = _.FindDef(pointee_type_id); in ValidateFunctionParameter()
193 const auto function = _.FindDef(function_id); in ValidateFunctionCall()
200 auto return_type = _.FindDef(function->type_id()); in ValidateFunctionCall()
210 const auto function_type = _.FindDef(function_type_id); in ValidateFunctionCall()
228 const auto argument = _.FindDef(argument_id); in ValidateFunctionCall()
[all …]
Dvalidation_state.cpp268 const Instruction* ValidationState_t::FindDef(uint32_t id) const { in FindDef() function in spvtools::val::ValidationState_t
274 Instruction* ValidationState_t::FindDef(uint32_t id) { in FindDef() function in spvtools::val::ValidationState_t
540 Instruction* operand_inst = FindDef(operand_word); in RegisterInstruction()
587 const Instruction* inst = FindDef(id); in GetTypeId()
592 const Instruction* inst = FindDef(id); in GetIdOpcode()
597 const Instruction* inst = FindDef(id); in GetComponentType()
623 const Instruction* inst = FindDef(id); in GetDimension()
648 const Instruction* inst = FindDef(component_type_id); in GetBitWidth()
661 const Instruction* inst = FindDef(id); in IsFloatScalarType()
667 const Instruction* inst = FindDef(id); in IsFloatVectorType()
[all …]
Dvalidate_type.cpp73 const auto component_type = _.FindDef(component_id); in ValidateTypeVector()
85 const auto column_type = _.FindDef(column_type_id); in ValidateTypeMatrix()
97 const auto element_type = _.FindDef(element_type_id); in ValidateTypeArray()
122 const auto length = _.FindDef(length_id); in ValidateTypeArray()
132 const auto const_result_type = _.FindDef(const_inst[const_result_type_index]); in ValidateTypeArray()
162 const auto element_type = _.FindDef(element_id); in ValidateTypeRuntimeArray()
194 auto member_type = _.FindDef(member_type_id); in ValidateTypeStruct()
219 auto type_pointing_to = _.FindDef(member_type->words()[3]); in ValidateTypeStruct()
273 const auto type = _.FindDef(type_id); in ValidateTypePointer()
285 const auto return_type = _.FindDef(return_type_id); in ValidateTypeFunction()
[all …]
Dvalidate_cfg.cpp51 const Instruction* type_inst = _.FindDef(inst->type_id()); in ValidatePhi()
127 const auto cond_op = _.FindDef(cond_id); in ValidateBranchConditional()
140 const auto true_target = _.FindDef(true_id); in ValidateBranchConditional()
148 const auto false_target = _.FindDef(false_id); in ValidateBranchConditional()
161 const auto value = _.FindDef(value_id); in ValidateReturnValue()
167 auto value_type = _.FindDef(value->type_id()); in ValidateReturnValue()
189 const auto return_type = _.FindDef(function->GetResultTypeId()); in ValidateReturnValue()
215 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in FirstBlockAssert()
225 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in MergeBlockAssert()
460 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(pair.first)) in StructuredSwitchChecks()
[all …]
Dvalidate_annotation.cpp30 const auto target = _.FindDef(target_id); in ValidateDecorate()
45 const auto struct_type = _.FindDef(struct_type_id); in ValidateMemberDecorate()
74 const auto decoration_group = _.FindDef(decoration_group_id); in ValidateDecorationGroup()
98 auto decoration_group = _.FindDef(decoration_group_id); in ValidateGroupDecorate()
107 auto target = _.FindDef(target_id); in ValidateGroupDecorate()
126 const auto decoration_group = _.FindDef(decoration_group_id); in ValidateGroupMemberDecorate()
138 auto struct_instr = _.FindDef(struct_id); in ValidateGroupMemberDecorate()
Dvalidate_composites.cpp61 const Instruction* const type_inst = _.FindDef(*member_type); in GetExtractInsertValueType()
86 auto size = _.FindDef(type_inst->word(3)); in GetExtractInsertValueType()
152 const auto index = _.FindDef(inst->GetOperandAs<uint32_t>(3)); in ValidateVectorExtractDynamic()
260 const Instruction* const array_inst = _.FindDef(result_type); in ValidateCompositeConstruct()
264 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
295 const Instruction* const struct_inst = _.FindDef(result_type); in ValidateCompositeConstruct()
423 auto resultType = _.FindDef(inst->type_id()); in ValidateVectorShuffle()
444 auto vector1Object = _.FindDef(inst->GetOperandAs<uint32_t>(2)); in ValidateVectorShuffle()
445 auto vector1Type = _.FindDef(vector1Object->type_id()); in ValidateVectorShuffle()
446 auto vector2Object = _.FindDef(inst->GetOperandAs<uint32_t>(3)); in ValidateVectorShuffle()
[all …]
Dvalidate_datarules.cpp132 auto col_type_instr = _.FindDef(type_id); in ValidateMatrixColumnType()
142 auto comp_type_instruction = _.FindDef(comp_type_id); in ValidateMatrixColumnType()
169 auto type_instruction = _.FindDef(type_id); in ValidateSpecConstNumerical()
183 auto type_instruction = _.FindDef(inst->type_id()); in ValidateSpecConstBoolean()
207 auto type_instruction = _.FindDef(type_id); in ValidateStruct()
Dvalidate_id.cpp45 if (auto def = _.FindDef(operand_id)) in UpdateIdUse()
94 return _.diag(SPV_ERROR_INVALID_ID, _.FindDef(func->id())) in CheckIdDefinitionDominateUse()
112 const Instruction* variable = _.FindDef(phi->word(i)); in CheckIdDefinitionDominateUse()
166 if (const auto def = _.FindDef(operand_word)) { in IdPass()
197 auto* def = _.FindDef(operand_word); in IdPass()
Dvalidate_debug.cpp28 const auto type = _.FindDef(type_id); in ValidateMemberName()
47 const auto file = _.FindDef(file_id); in ValidateLine()
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_codec.cpp215 const val::Instruction* def_inst = FindDef(inst_.words[4]); in ProcessCurInstruction()
314 const val::Instruction* type_inst = FindDef(inst_.type_id); in ProcessCurInstruction()
557 const val::Instruction* pointer_inst = FindDef(pointer_type); in GetRuleBasedMtf()
604 const val::Instruction* composite_type_inst = FindDef(inst_.type_id); in GetRuleBasedMtf()
738 const val::Instruction* function_inst = FindDef(function_id); in GetRuleBasedMtf()
744 const val::Instruction* function_type_inst = FindDef(function_type_id); in GetRuleBasedMtf()

12