/third_party/spirv-tools/source/opt/ |
D | instrument_pass.cpp | 94 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in Gen32BitCvtCode() local 96 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in Gen32BitCvtCode() 100 analysis::Type* val_32b_reg_ty = type_mgr->GetRegisteredType(&val_32b_ty); in Gen32BitCvtCode() 101 uint32_t val_32b_reg_ty_id = type_mgr->GetId(val_32b_reg_ty); in Gen32BitCvtCode() 115 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenUintCastCode() local 117 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in GenUintCastCode() 461 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 463 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 465 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 466 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() [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() 326 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 411 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 416 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 418 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 453 &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() 156 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ShouldReplaceExtract() local 157 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
|
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 | copy_prop_arrays.cpp | 367 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 369 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 473 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 474 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 484 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 488 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 499 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 508 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 533 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 554 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | wrap_opkill.cpp | 102 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 104 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 109 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 112 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 115 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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | instrument_pass.cpp | 94 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in Gen32BitCvtCode() local 96 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in Gen32BitCvtCode() 100 analysis::Type* val_32b_reg_ty = type_mgr->GetRegisteredType(&val_32b_ty); in Gen32BitCvtCode() 101 uint32_t val_32b_reg_ty_id = type_mgr->GetId(val_32b_reg_ty); in Gen32BitCvtCode() 115 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenUintCastCode() local 117 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in GenUintCastCode() 461 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 463 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 465 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 466 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() [all …]
|
D | graphics_robust_access_pass.cpp | 269 auto* type_mgr = context()->get_type_mgr(); in ClampIndicesForAccessChain() local 289 auto clamp_index = [&inst, type_mgr, this, &replace_index]( in ClampIndicesForAccessChain() 293 MakeSClampInst(*type_mgr, old_value, min_value, max_value, &inst); in ClampIndicesForAccessChain() 301 [&inst, this, &constant_mgr, &type_mgr, have_int64_cap, &replace_index, in ClampIndicesForAccessChain() 306 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 327 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 412 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 417 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 419 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 454 &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 | 56 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ReplaceExtract() local 67 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract() 97 type_mgr->FindPointerToType(inst->type_id(), storage_class); in ReplaceExtract() 102 const analysis::Type* uint32_type = type_mgr->GetRegisteredType(&int_type); in ReplaceExtract() 157 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ShouldReplaceExtract() local 158 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
|
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 | copy_prop_arrays.cpp | 371 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 373 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 477 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 478 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 488 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 492 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 503 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 512 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 537 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 558 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | wrap_opkill.cpp | 102 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 104 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 109 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 112 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 115 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()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | instrument_pass.cpp | 94 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in Gen32BitCvtCode() local 96 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in Gen32BitCvtCode() 100 analysis::Type* val_32b_reg_ty = type_mgr->GetRegisteredType(&val_32b_ty); in Gen32BitCvtCode() 101 uint32_t val_32b_reg_ty_id = type_mgr->GetId(val_32b_reg_ty); in Gen32BitCvtCode() 115 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GenUintCastCode() local 117 analysis::Integer* val_ty = type_mgr->GetType(val_ty_id)->AsInteger(); in GenUintCastCode() 461 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetUintXRuntimeArrayType() local 463 analysis::Type* reg_uint_ty = type_mgr->GetRegisteredType(&uint_ty); in GetUintXRuntimeArrayType() 465 *rarr_ty = type_mgr->GetRegisteredType(&uint_rarr_ty_tmp); in GetUintXRuntimeArrayType() 466 uint32_t uint_arr_ty_id = type_mgr->GetTypeInstruction(*rarr_ty); in GetUintXRuntimeArrayType() [all …]
|
D | graphics_robust_access_pass.cpp | 269 auto* type_mgr = context()->get_type_mgr(); in ClampIndicesForAccessChain() local 289 auto clamp_index = [&inst, type_mgr, this, &replace_index]( in ClampIndicesForAccessChain() 293 MakeSClampInst(*type_mgr, old_value, min_value, max_value, &inst); in ClampIndicesForAccessChain() 301 [&inst, this, &constant_mgr, &type_mgr, have_int64_cap, &replace_index, in ClampIndicesForAccessChain() 306 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 327 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 412 &type_mgr](uint32_t operand_index, in ClampIndicesForAccessChain() 417 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 419 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 454 &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 | 56 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ReplaceExtract() local 67 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract() 97 type_mgr->FindPointerToType(inst->type_id(), storage_class); in ReplaceExtract() 102 const analysis::Type* uint32_type = type_mgr->GetRegisteredType(&int_type); in ReplaceExtract() 157 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in ShouldReplaceExtract() local 158 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
|
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 | copy_prop_arrays.cpp | 371 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in BuildMemoryObjectFromInsert() local 373 const analysis::Type* result_type = type_mgr->GetType(insert_inst->type_id()); in BuildMemoryObjectFromInsert() 477 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in IsPointerToArrayType() local 478 analysis::Pointer* pointer_type = type_mgr->GetType(type_id)->AsPointer(); in IsPointerToArrayType() 488 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in CanUpdateUses() local 492 analysis::Type* type = type_mgr->GetType(type_id); in CanUpdateUses() 503 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses() 512 uint32_t new_type_id = type_mgr->GetId(pointer_type->pointee_type()); in CanUpdateUses() 537 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses() 558 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses() [all …]
|
D | wrap_opkill.cpp | 102 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidTypeId() local 104 void_type_id_ = type_mgr->GetTypeInstruction(&void_type); in GetVoidTypeId() 109 analysis::TypeManager* type_mgr = context()->get_type_mgr(); in GetVoidFunctionTypeId() local 112 type_mgr->GetRegisteredType(&void_type); in GetVoidFunctionTypeId() 115 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()
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | storage_texture_type.cc | 49 sem::Manager& type_mgr) { in SubtypeFor() argument 60 return type_mgr.Get<sem::U32>(); in SubtypeFor() 72 return type_mgr.Get<sem::I32>(); in SubtypeFor() 92 return type_mgr.Get<sem::F32>(); in SubtypeFor()
|