/external/angle/third_party/spirv-tools/src/source/opt/ |
D | instrument_pass.cpp | 407 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 409 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 411 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 412 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() 446 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetOutputBufferId() local 449 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetOutputBufferId() 451 analysis::Type* reg_buf_ty = type_mgr->GetRegisteredType(&buf_ty); in GetOutputBufferId() 452 uint32_t obufTyId = type_mgr->GetTypeInstruction(reg_buf_ty); in GetOutputBufferId() 467 type_mgr->FindPointerToType(obufTyId, SpvStorageClassStorageBuffer); in GetOutputBufferId() 494 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetInputBufferId() local [all …]
|
D | graphics_robust_access_pass.cpp | 269 auto* type_mgr = context()->get_type_mgr(); in ClampIndicesForAccessChain() local 288 auto clamp_index = [&inst, type_mgr, this, &replace_index]( in ClampIndicesForAccessChain() 292 MakeSClampInst(*type_mgr, old_value, min_value, max_value, &inst); in ClampIndicesForAccessChain() 300 [&inst, this, &constant_mgr, &type_mgr, have_int64_cap, &replace_index, in ClampIndicesForAccessChain() 305 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 325 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 407 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 412 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 414 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 449 &inst, SpvOpISub, type_mgr->GetId(wider_type), TakeNextId(), in ClampIndicesForAccessChain() [all …]
|
D | pass.cpp | 78 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetNullId() local 80 const analysis::Type* type = type_mgr->GetType(type_id); in GetNullId() 89 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenerateCopy() local 101 analysis::Type* original_type = type_mgr->GetType(original_type_id); in GenerateCopy() 102 analysis::Type* new_type = type_mgr->GetType(new_type_id); in GenerateCopy() 106 type_mgr->GetId(original_array_type->element_type()); in GenerateCopy() 111 type_mgr->GetId(new_array_type->element_type()); in GenerateCopy() 138 type_mgr->GetId(original_types[i]), object_to_copy->result_id(), {i}); in GenerateCopy() 139 element_ids.push_back(GenerateCopy(extract, type_mgr->GetId(new_types[i]), in GenerateCopy()
|
D | reduce_load_size.cpp | 57 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()
|
D | copy_prop_arrays.cpp | 359 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 361 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 465 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 466 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 476 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 480 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 498 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 523 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 544 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | amd_ext_to_khr.cpp | 214 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocations() local 262 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocations() 267 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocations() 274 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocations() 326 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocationsMasked() local 377 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocationsMasked() 382 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocationsMasked() 389 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocationsMasked() 479 analysis::TypeManager* type_mgr = context->get_type_mgr(); in ReplaceMbcnt() local 496 uint32_t shuffle_type_id = type_mgr->GetTypeInstruction(shuffle_type); in ReplaceMbcnt() [all …]
|
D | wrap_opkill.cpp | 92 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 94 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 99 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 102 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 105 return type_mgr->GetTypeInstruction(&func_type); in GetVoidFunctionTypeId()
|
D | copy_prop_arrays.h | 105 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()
|
D | vector_dce.cpp | 176 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()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | instrument_pass.cpp | 407 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 409 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 411 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 412 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() 446 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetOutputBufferId() local 449 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetOutputBufferId() 451 analysis::Type* reg_buf_ty = type_mgr->GetRegisteredType(&buf_ty); in GetOutputBufferId() 452 uint32_t obufTyId = type_mgr->GetTypeInstruction(reg_buf_ty); in GetOutputBufferId() 467 type_mgr->FindPointerToType(obufTyId, SpvStorageClassStorageBuffer); in GetOutputBufferId() 494 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetInputBufferId() local [all …]
|
D | graphics_robust_access_pass.cpp | 269 auto* type_mgr = context()->get_type_mgr(); in ClampIndicesForAccessChain() local 288 auto clamp_index = [&inst, type_mgr, this, &replace_index]( in ClampIndicesForAccessChain() 292 MakeSClampInst(*type_mgr, old_value, min_value, max_value, &inst); in ClampIndicesForAccessChain() 300 [&inst, this, &constant_mgr, &type_mgr, have_int64_cap, &replace_index, in ClampIndicesForAccessChain() 305 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 325 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 407 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 412 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 414 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 449 &inst, SpvOpISub, type_mgr->GetId(wider_type), TakeNextId(), in ClampIndicesForAccessChain() [all …]
|
D | pass.cpp | 78 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetNullId() local 80 const analysis::Type* type = type_mgr->GetType(type_id); in GetNullId() 89 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenerateCopy() local 101 analysis::Type* original_type = type_mgr->GetType(original_type_id); in GenerateCopy() 102 analysis::Type* new_type = type_mgr->GetType(new_type_id); in GenerateCopy() 106 type_mgr->GetId(original_array_type->element_type()); in GenerateCopy() 111 type_mgr->GetId(new_array_type->element_type()); in GenerateCopy() 138 type_mgr->GetId(original_types[i]), object_to_copy->result_id(), {i}); in GenerateCopy() 139 element_ids.push_back(GenerateCopy(extract, type_mgr->GetId(new_types[i]), in GenerateCopy()
|
D | reduce_load_size.cpp | 57 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()
|
D | copy_prop_arrays.cpp | 359 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 361 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 465 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 466 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 476 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 480 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 498 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 523 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 544 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | amd_ext_to_khr.cpp | 214 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocations() local 262 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocations() 267 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocations() 274 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocations() 326 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocationsMasked() local 377 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocationsMasked() 382 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocationsMasked() 389 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocationsMasked() 479 analysis::TypeManager* type_mgr = context->get_type_mgr(); in ReplaceMbcnt() local 496 uint32_t shuffle_type_id = type_mgr->GetTypeInstruction(shuffle_type); in ReplaceMbcnt() [all …]
|
D | wrap_opkill.cpp | 92 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 94 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 99 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 102 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 105 return type_mgr->GetTypeInstruction(&func_type); in GetVoidFunctionTypeId()
|
D | copy_prop_arrays.h | 105 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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | instrument_pass.cpp | 405 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 407 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 409 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 410 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() 444 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetOutputBufferId() local 447 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetOutputBufferId() 449 analysis::Type* reg_buf_ty = type_mgr->GetRegisteredType(&buf_ty); in GetOutputBufferId() 450 uint32_t obufTyId = type_mgr->GetTypeInstruction(reg_buf_ty); in GetOutputBufferId() 465 type_mgr->FindPointerToType(obufTyId, SpvStorageClassStorageBuffer); in GetOutputBufferId() 492 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetInputBufferId() local [all …]
|
D | graphics_robust_access_pass.cpp | 269 auto* type_mgr = context()->get_type_mgr(); in ClampIndicesForAccessChain() local 288 auto clamp_index = [&inst, type_mgr, this, &replace_index]( in ClampIndicesForAccessChain() 292 MakeSClampInst(*type_mgr, old_value, min_value, max_value, &inst); in ClampIndicesForAccessChain() 300 [&inst, this, &constant_mgr, &type_mgr, have_int64_cap, &replace_index, in ClampIndicesForAccessChain() 305 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 325 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 407 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 412 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 414 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 449 &inst, SpvOpISub, type_mgr->GetId(wider_type), TakeNextId(), in ClampIndicesForAccessChain() [all …]
|
D | pass.cpp | 78 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetNullId() local 80 const analysis::Type* type = type_mgr->GetType(type_id); in GetNullId() 89 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenerateCopy() local 101 analysis::Type* original_type = type_mgr->GetType(original_type_id); in GenerateCopy() 102 analysis::Type* new_type = type_mgr->GetType(new_type_id); in GenerateCopy() 106 type_mgr->GetId(original_array_type->element_type()); in GenerateCopy() 111 type_mgr->GetId(new_array_type->element_type()); in GenerateCopy() 138 type_mgr->GetId(original_types[i]), object_to_copy->result_id(), {i}); in GenerateCopy() 139 element_ids.push_back(GenerateCopy(extract, type_mgr->GetId(new_types[i]), in GenerateCopy()
|
D | reduce_load_size.cpp | 57 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()
|
D | copy_prop_arrays.cpp | 359 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 361 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 465 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 466 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 476 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 480 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 498 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 523 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 544 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | amd_ext_to_khr.cpp | 214 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocations() local 262 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocations() 267 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocations() 274 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocations() 326 analysis::TypeManager* type_mgr = ctx->get_type_mgr(); in ReplaceSwizzleInvocationsMasked() local 377 type_mgr->GetUIntVectorType(4), in ReplaceSwizzleInvocationsMasked() 382 type_mgr->GetBoolTypeId(), SpvOpGroupNonUniformBallotBitExtract, in ReplaceSwizzleInvocationsMasked() 389 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocationsMasked() 479 analysis::TypeManager* type_mgr = context->get_type_mgr(); in ReplaceMbcnt() local 496 uint32_t shuffle_type_id = type_mgr->GetTypeInstruction(shuffle_type); in ReplaceMbcnt() [all …]
|
D | wrap_opkill.cpp | 92 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 94 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 99 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 102 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 105 return type_mgr->GetTypeInstruction(&func_type); in GetVoidFunctionTypeId()
|
D | copy_prop_arrays.h | 105 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()
|