Lines Matching refs:FindDef
48 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()
220 auto dst_type = _.FindDef(dst->type_id()); in GetStorageClass()
222 auto src = _.FindDef(inst->GetOperandAs<uint32_t>(1)); in GetStorageClass()
223 auto src_type = _.FindDef(src->type_id()); in GetStorageClass()
345 auto result_type = _.FindDef(inst->type_id()); in ValidateVariable()
356 const auto initializer = _.FindDef(initializer_id); in ValidateVariable()
378 const auto storage = _.FindDef(storage_id); in ValidateVariable()
412 auto pointee = _.FindDef(result_type->word(3)); in ValidateVariable()
509 const auto result_type = _.FindDef(inst->type_id()); in ValidateLoad()
521 const auto pointer = _.FindDef(pointer_id); in ValidateLoad()
533 const auto pointer_type = _.FindDef(pointer->type_id()); in ValidateLoad()
540 const auto pointee_type = _.FindDef(pointer_type->GetOperandAs<uint32_t>(2)); in ValidateLoad()
563 const auto pointer = _.FindDef(pointer_id); in ValidateStore()
574 const auto pointer_type = _.FindDef(pointer->type_id()); in ValidateStore()
581 const auto type = _.FindDef(type_id); in ValidateStore()
609 const auto object = _.FindDef(object_id); in ValidateStore()
615 const auto object_type = _.FindDef(object->type_id()); in ValidateStore()
652 const auto target = _.FindDef(target_id); in ValidateCopyMemory()
661 const auto source = _.FindDef(source_id); in ValidateCopyMemory()
668 const auto target_pointer_type = _.FindDef(target->type_id()); in ValidateCopyMemory()
676 const auto source_pointer_type = _.FindDef(source->type_id()); in ValidateCopyMemory()
686 _.FindDef(target_pointer_type->GetOperandAs<uint32_t>(2)); in ValidateCopyMemory()
694 _.FindDef(source_pointer_type->GetOperandAs<uint32_t>(2)); in ValidateCopyMemory()
715 const auto size = _.FindDef(size_id); in ValidateCopyMemory()
722 const auto size_type = _.FindDef(size->type_id()); in ValidateCopyMemory()
771 auto result_type = _.FindDef(inst->type_id()); in ValidateAccessChain()
782 const auto result_type_pointee = _.FindDef(result_type->word(3)); in ValidateAccessChain()
787 const auto base = _.FindDef(base_id); in ValidateAccessChain()
788 const auto base_type = _.FindDef(base->type_id()); in ValidateAccessChain()
807 auto type_pointee = _.FindDef(base_type->word(3)); in ValidateAccessChain()
841 auto cur_word_instr = _.FindDef(cur_word); in ValidateAccessChain()
843 auto index_type = _.FindDef(cur_word_instr->type_id()); in ValidateAccessChain()
856 type_pointee = _.FindDef(type_pointee->word(2)); in ValidateAccessChain()
889 type_pointee = _.FindDef(structMemberId); in ValidateAccessChain()
936 auto result_type = state.FindDef(inst->type_id()); in ValidateArrayLength()
948 auto pointer = state.FindDef(inst->GetOperandAs<uint32_t>(2)); in ValidateArrayLength()
949 auto pointer_type = state.FindDef(pointer->type_id()); in ValidateArrayLength()
957 auto structure_type = state.FindDef(pointer_type->GetOperandAs<uint32_t>(2)); in ValidateArrayLength()
967 state.FindDef(structure_type->GetOperandAs<uint32_t>(num_of_members)); in ValidateArrayLength()