Home
last modified time | relevance | path

Searched refs:type_mgr (Results 1 – 25 of 29) sorted by relevance

12

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinstrument_pass.cpp306 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetOutputBufferId() local
308 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetOutputBufferId()
311 type_mgr->GetRegisteredType(&uint_rarr_ty); in GetOutputBufferId()
312 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(reg_uint_rarr_ty); in GetOutputBufferId()
315 analysis::Type* reg_obuf_ty = type_mgr->GetRegisteredType(&obuf_ty); in GetOutputBufferId()
316 uint32_t obufTyId = type_mgr->GetTypeInstruction(reg_obuf_ty); in GetOutputBufferId()
323 type_mgr->FindPointerToType(obufTyId, SpvStorageClassStorageBuffer); in GetOutputBufferId()
353 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVec4FloatId() local
355 analysis::Type* reg_float_ty = type_mgr->GetRegisteredType(&float_ty); in GetVec4FloatId()
357 analysis::Type* reg_v4float_ty = type_mgr->GetRegisteredType(&v4float_ty); in GetVec4FloatId()
[all …]
Dcopy_prop_arrays.cpp360 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local
362 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert()
467 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local
468 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType()
478 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local
482 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses()
493 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses()
500 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses()
525 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses()
543 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses()
[all …]
Dreduce_load_size.cpp57 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ReplaceExtract() local
68 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract()
98 type_mgr->FindPointerToType(inst->type_id(), storage_class); in ReplaceExtract()
103 const analysis::Type* uint32_type = type_mgr->GetRegisteredType(&int_type); in ReplaceExtract()
155 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ShouldReplaceExtract() local
156 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
Dconst_folding_rules.cpp51 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldExtractWithConstants() local
52 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
115 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldVectorShuffleWithConstants() local
116 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
126 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldVectorTimesScalar() local
129 if (HasFloatingPoint(type_mgr->GetType(inst->type_id()))) { in FoldVectorTimesScalar()
144 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
152 const analysis::Type* result_type = type_mgr->GetType(inst->type_id()); in FoldVectorTimesScalar()
202 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldCompositeWithConstants() local
203 const analysis::Type* new_type = type_mgr->GetType(inst->type_id()); in FoldCompositeWithConstants()
[all …]
Dvector_dce.cpp176 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in MarkVectorShuffleUsesAsLive() local
178 type_mgr->GetType(first_operand.instruction->type_id())->AsVector(); in MarkVectorShuffleUsesAsLive()
202 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in MarkCompositeContructUsesAsLive() local
224 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
266 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in HasVectorResult() local
271 const analysis::Type* current_type = type_mgr->GetType(inst->type_id()); in HasVectorResult()
281 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in HasScalarResult() local
286 const analysis::Type* current_type = type_mgr->GetType(inst->type_id()); in HasScalarResult()
Dcopy_prop_arrays.h105 analysis::TypeManager* type_mgr = in GetPointerTypeId() local
114 uint32_t member_pointer_type_id = type_mgr->FindPointerToType( in GetPointerTypeId()
122 analysis::TypeManager* type_mgr = in GetStorageClass() local
125 type_mgr->GetType(GetVariable()->type_id())->AsPointer(); in GetStorageClass()
Dreplace_invalid_opc.cpp173 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetSpecialConstant() local
183 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
191 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
Dir_context.cpp665 analysis::TypeManager* type_mgr = get_type_mgr(); in GetBuiltinVarId() local
670 analysis::Type* reg_float_ty = type_mgr->GetRegisteredType(&float_ty); in GetBuiltinVarId()
672 reg_type = type_mgr->GetRegisteredType(&v4float_ty); in GetBuiltinVarId()
681 reg_type = type_mgr->GetRegisteredType(&uint_ty); in GetBuiltinVarId()
689 uint32_t type_id = type_mgr->GetTypeInstruction(reg_type); in GetBuiltinVarId()
691 type_mgr->FindPointerToType(type_id, SpvStorageClassInput); in GetBuiltinVarId()
Dcombine_access_chains.cpp90 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetIndexedType() local
93 const analysis::Type* type = type_mgr->GetType(base_ptr->type_id()); in GetIndexedType()
116 type = type_mgr->GetMemberType(type, element_indices); in GetIndexedType()
Dprivate_to_local_pass.cpp117 auto type_mgr = context()->get_type_mgr(); in GetNewType() local
122 type_mgr->FindPointerToType(pointee_type_id, SpvStorageClassFunction); in GetNewType()
Dfolding_rules.cpp1276 analysis::TypeManager* type_mgr = context->get_type_mgr(); in CompositeConstructFeedingExtract() local
1285 analysis::Type* composite_type = type_mgr->GetType(cinst->type_id()); in CompositeConstructFeedingExtract()
1311 type_mgr->GetType(element_def->type_id())->AsVector(); in CompositeConstructFeedingExtract()
1485 analysis::TypeManager* type_mgr = context->get_type_mgr(); in VectorShuffleFeedingExtract() local
1497 type_mgr->GetType(first_input->type_id()); in VectorShuffleFeedingExtract()
2050 analysis::TypeManager* type_mgr = context->get_type_mgr(); in VectorShuffleFeedingShuffle() local
2055 type_mgr->GetType(feeding_shuffle_inst->type_id())->AsVector(); in VectorShuffleFeedingShuffle()
2072 type_mgr->GetType(feeder2->type_id())->AsVector(); in VectorShuffleFeedingShuffle()
2135 type_mgr->GetType(feeding_shuffle_inst->type_id()); in VectorShuffleFeedingShuffle()
2146 type_mgr->GetType(new_feeder_inst->type_id()); in VectorShuffleFeedingShuffle()
Dmerge_return_pass.cpp539 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in AddReturnFlag() local
543 uint32_t bool_id = type_mgr->GetTypeInstruction(&temp); in AddReturnFlag()
544 analysis::Bool* bool_type = type_mgr->GetType(bool_id)->AsBool(); in AddReturnFlag()
552 type_mgr->FindPointerToType(bool_id, SpvStorageClassFunction); in AddReturnFlag()
Dinline_pass.cpp166 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CreateReturnVar() local
167 assert(type_mgr->GetType(calleeTypeId)->AsVoid() == nullptr && in CreateReturnVar()
171 type_mgr->FindPointerToType(calleeTypeId, SpvStorageClassFunction); in CreateReturnVar()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dinstrument_pass.cpp306 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetOutputBufferId() local
308 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetOutputBufferId()
311 type_mgr->GetRegisteredType(&uint_rarr_ty); in GetOutputBufferId()
313 analysis::Type* reg_obuf_ty = type_mgr->GetRegisteredType(&obuf_ty); in GetOutputBufferId()
314 uint32_t obufTyId = type_mgr->GetTypeInstruction(reg_obuf_ty); in GetOutputBufferId()
321 type_mgr->FindPointerToType(obufTyId, SpvStorageClassStorageBuffer); in GetOutputBufferId()
351 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVec4FloatId() local
353 analysis::Type* reg_float_ty = type_mgr->GetRegisteredType(&float_ty); in GetVec4FloatId()
355 analysis::Type* reg_v4float_ty = type_mgr->GetRegisteredType(&v4float_ty); in GetVec4FloatId()
356 v4float_id_ = type_mgr->GetTypeInstruction(reg_v4float_ty); in GetVec4FloatId()
[all …]
Dcopy_prop_arrays.cpp360 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local
362 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert()
467 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local
468 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType()
478 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local
482 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses()
493 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses()
500 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses()
525 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses()
543 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses()
[all …]
Dreduce_load_size.cpp57 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ReplaceExtract() local
68 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract()
98 type_mgr->FindPointerToType(inst->type_id(), storage_class); in ReplaceExtract()
103 const analysis::Type* uint32_type = type_mgr->GetRegisteredType(&int_type); in ReplaceExtract()
154 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ShouldReplaceExtract() local
155 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
Dconst_folding_rules.cpp51 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldExtractWithConstants() local
52 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
115 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldVectorShuffleWithConstants() local
116 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
126 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldVectorTimesScalar() local
129 if (HasFloatingPoint(type_mgr->GetType(inst->type_id()))) { in FoldVectorTimesScalar()
144 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
152 const analysis::Type* result_type = type_mgr->GetType(inst->type_id()); in FoldVectorTimesScalar()
202 analysis::TypeManager* type_mgr = context->get_type_mgr(); in FoldCompositeWithConstants() local
203 const analysis::Type* new_type = type_mgr->GetType(inst->type_id()); in FoldCompositeWithConstants()
[all …]
Dvector_dce.cpp156 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in MarkVectorShuffleUsesAsLive() local
158 type_mgr->GetType(first_operand.instruction->type_id())->AsVector(); in MarkVectorShuffleUsesAsLive()
182 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in MarkCompositeContructUsesAsLive() local
204 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
246 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in HasVectorResult() local
251 const analysis::Type* current_type = type_mgr->GetType(inst->type_id()); in HasVectorResult()
261 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in HasScalarResult() local
266 const analysis::Type* current_type = type_mgr->GetType(inst->type_id()); in HasScalarResult()
Dcopy_prop_arrays.h104 analysis::TypeManager* type_mgr = in GetPointerTypeId() local
113 uint32_t member_pointer_type_id = type_mgr->FindPointerToType( in GetPointerTypeId()
121 analysis::TypeManager* type_mgr = in GetStorageClass() local
124 type_mgr->GetType(GetVariable()->type_id())->AsPointer(); in GetStorageClass()
Dreplace_invalid_opc.cpp173 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetSpecialConstant() local
183 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
191 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
Dir_context.cpp649 analysis::TypeManager* type_mgr = get_type_mgr(); in GetBuiltinVarId() local
654 analysis::Type* reg_float_ty = type_mgr->GetRegisteredType(&float_ty); in GetBuiltinVarId()
656 reg_type = type_mgr->GetRegisteredType(&v4float_ty); in GetBuiltinVarId()
665 reg_type = type_mgr->GetRegisteredType(&uint_ty); in GetBuiltinVarId()
673 uint32_t type_id = type_mgr->GetTypeInstruction(reg_type); in GetBuiltinVarId()
675 type_mgr->FindPointerToType(type_id, SpvStorageClassInput); in GetBuiltinVarId()
Dcombine_access_chains.cpp90 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetIndexedType() local
93 const analysis::Type* type = type_mgr->GetType(base_ptr->type_id()); in GetIndexedType()
116 type = type_mgr->GetMemberType(type, element_indices); in GetIndexedType()
Dprivate_to_local_pass.cpp117 auto type_mgr = context()->get_type_mgr(); in GetNewType() local
122 type_mgr->FindPointerToType(pointee_type_id, SpvStorageClassFunction); in GetNewType()
Dmerge_return_pass.cpp523 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in AddReturnFlag() local
527 uint32_t bool_id = type_mgr->GetTypeInstruction(&temp); in AddReturnFlag()
528 analysis::Bool* bool_type = type_mgr->GetType(bool_id)->AsBool(); in AddReturnFlag()
536 type_mgr->FindPointerToType(bool_id, SpvStorageClassFunction); in AddReturnFlag()
Dfolding_rules.cpp1276 analysis::TypeManager* type_mgr = context->get_type_mgr(); in CompositeConstructFeedingExtract() local
1285 analysis::Type* composite_type = type_mgr->GetType(cinst->type_id()); in CompositeConstructFeedingExtract()
1311 type_mgr->GetType(element_def->type_id())->AsVector(); in CompositeConstructFeedingExtract()
1485 analysis::TypeManager* type_mgr = context->get_type_mgr(); in VectorShuffleFeedingExtract() local
1497 type_mgr->GetType(first_input->type_id()); in VectorShuffleFeedingExtract()
2050 analysis::TypeManager* type_mgr = context->get_type_mgr(); in VectorShuffleFeedingShuffle() local
2055 type_mgr->GetType(feeding_shuffle_inst->type_id())->AsVector(); in VectorShuffleFeedingShuffle()
2072 type_mgr->GetType(feeder2->type_id())->AsVector(); in VectorShuffleFeedingShuffle()
2135 type_mgr->GetType(feeding_shuffle_inst->type_id()); in VectorShuffleFeedingShuffle()
2146 type_mgr->GetType(new_feeder_inst->type_id()); in VectorShuffleFeedingShuffle()

12