Home
last modified time | relevance | path

Searched refs:ptr_type (Results 1 – 25 of 32) sorted by relevance

12

/third_party/spirv-tools/source/opt/
Deliminate_dead_input_components_pass.cpp51 analysis::Pointer* ptr_type = var_type->AsPointer(); in Process() local
52 if (ptr_type == nullptr) { in Process()
55 if (ptr_type->storage_class() != SpvStorageClassInput) { in Process()
58 const analysis::Array* arr_type = ptr_type->pointee_type()->AsArray(); in Process()
76 const analysis::Struct* struct_type = ptr_type->pointee_type()->AsStruct(); in Process()
133 analysis::Pointer* ptr_type = in ChangeArrayLength() local
135 const analysis::Array* arr_ty = ptr_type->pointee_type()->AsArray(); in ChangeArrayLength()
158 analysis::Pointer* ptr_type = in ChangeStructLength() local
160 const analysis::Struct* struct_ty = ptr_type->pointee_type()->AsStruct(); in ChangeStructLength()
Dinterface_var_sroa.cpp794 analysis::Pointer ptr_type(type, storage_class); in GetPointerType() local
795 return context()->get_type_mgr()->GetTypeInstruction(&ptr_type); in GetPointerType()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_variables.c415 base->ptr_type->stride); in vtn_pointer_dereference()
429 if (base->ptr_type && base->ptr_type->type) { in vtn_pointer_dereference()
431 glsl_get_vector_elements(base->ptr_type->type); in vtn_pointer_dereference()
432 tail->dest.ssa.bit_size = glsl_get_bit_size(base->ptr_type->type); in vtn_pointer_dereference()
441 tail->type, base->ptr_type->stride); in vtn_pointer_dereference()
1729 struct vtn_type *ptr_type) in vtn_pointer_from_ssa() argument
1731 vtn_assert(ptr_type->base_type == vtn_base_type_pointer); in vtn_pointer_from_ssa()
1735 vtn_type_without_array(ptr_type->deref); in vtn_pointer_from_ssa()
1738 ptr->mode = vtn_storage_class_to_mode(b, ptr_type->storage_class, in vtn_pointer_from_ssa()
1740 ptr->type = ptr_type->deref; in vtn_pointer_from_ssa()
[all …]
Dvtn_private.h533 struct vtn_type *ptr_type; member
758 struct vtn_type *ptr_type);
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_struct.c81 LLVMTypeRef ptr_type, in lp_build_struct_get_ptr2() argument
93 member_ptr = LLVMBuildGEP2(gallivm->builder, ptr_type, ptr, indices, ARRAY_SIZE(indices), ""); in lp_build_struct_get_ptr2()
100 LLVMTypeRef ptr_type, in lp_build_struct_get2() argument
109 member_ptr = lp_build_struct_get_ptr2(gallivm, ptr_type, ptr, member, name); in lp_build_struct_get2()
Dlp_bld_struct.h80 LLVMTypeRef ptr_type,
91 LLVMTypeRef ptr_type,
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Din_class_typedef.hpp5 typedef T* ptr_type; typedef in Foo
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_msl.cpp451 auto &ptr_type = set<SPIRType>(type_ptr_id, vec4_type_ptr); in build_implicit_builtins() local
452 ptr_type.self = type_id; in build_implicit_builtins()
473 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); in build_implicit_builtins() local
474 ptr_type.self = get_uint_type_id(); in build_implicit_builtins()
495 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); in build_implicit_builtins() local
496 ptr_type.self = get_uint_type_id(); in build_implicit_builtins()
518 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); in build_implicit_builtins() local
519 ptr_type.self = get_uint_type_id(); in build_implicit_builtins()
538 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); in build_implicit_builtins() local
539 ptr_type.self = get_uint_type_id(); in build_implicit_builtins()
[all …]
Dspirv_cross.cpp2505 auto &ptr_type = compiler.set<SPIRType>(ptr_type_id); in register_combined_image_sampler() local
2514 ptr_type = type; in register_combined_image_sampler()
2515 ptr_type.pointer = true; in register_combined_image_sampler()
2516 ptr_type.storage = StorageClassUniformConstant; in register_combined_image_sampler()
2517 ptr_type.parent_type = type_id; in register_combined_image_sampler()
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl.cc1286 const auto* ptr_type = def_use_mgr_->GetDef(var.type_id()); in RegisterTypes() local
1287 if (ptr_type->opcode() != SpvOpTypePointer) { in RegisterTypes()
1292 def_use_mgr_->GetDef(ptr_type->GetSingleWordInOperand(1)); in RegisterTypes()
1583 auto* ptr_type = def_use_mgr_->GetDef(var->type_id()); in GetArraySize() local
1584 if (!ptr_type || ptr_type->opcode() != SpvOpTypePointer) { in GetArraySize()
1587 auto* array_type = def_use_mgr_->GetDef(ptr_type->GetSingleWordInOperand(1)); in GetArraySize()
2349 const auto* ptr_type = def_use_mgr_->GetDef(var.type_id()); in GetSpirvTypeForHandleMemoryObjectDeclaration() local
2350 if (!ptr_type || (ptr_type->opcode() != SpvOpTypePointer)) { in GetSpirvTypeForHandleMemoryObjectDeclaration()
2356 def_use_mgr_->GetDef(ptr_type->GetSingleWordInOperand(1)); in GetSpirvTypeForHandleMemoryObjectDeclaration()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_interfaces.cpp226 auto ptr_type = _.FindDef(ptr_type_id); in GetLocationsForVariable() local
227 auto type_id = ptr_type->GetOperandAs<uint32_t>(2); in GetLocationsForVariable()
Dvalidate_decorations.cpp1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1373 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2); in CheckFPRoundingModeForShaders()
1384 const auto storage = ptr_type->GetOperandAs<uint32_t>(1); in CheckFPRoundingModeForShaders()
Dvalidate_image.cpp1059 const auto ptr_type = result_type->GetOperandAs<uint32_t>(2); in ValidateImageTexelPointer() local
1060 const auto ptr_opcode = _.GetIdOpcode(ptr_type); in ValidateImageTexelPointer()
1086 if (info.sampled_type != ptr_type) { in ValidateImageTexelPointer()
/third_party/spirv-tools/source/val/
Dvalidate_interfaces.cpp226 auto ptr_type = _.FindDef(ptr_type_id); in GetLocationsForVariable() local
227 auto type_id = ptr_type->GetOperandAs<uint32_t>(2); in GetLocationsForVariable()
Dvalidate_decorations.cpp1467 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1469 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2); in CheckFPRoundingModeForShaders()
1480 const auto storage = ptr_type->GetOperandAs<uint32_t>(1); in CheckFPRoundingModeForShaders()
Dvalidate_image.cpp1072 const auto ptr_type = result_type->GetOperandAs<uint32_t>(2); in ValidateImageTexelPointer() local
1073 const auto ptr_opcode = _.GetIdOpcode(ptr_type); in ValidateImageTexelPointer()
1099 if (info.sampled_type != ptr_type) { in ValidateImageTexelPointer()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_interfaces.cpp226 auto ptr_type = _.FindDef(ptr_type_id); in GetLocationsForVariable() local
227 auto type_id = ptr_type->GetOperandAs<uint32_t>(2); in GetLocationsForVariable()
Dvalidate_decorations.cpp1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1373 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2); in CheckFPRoundingModeForShaders()
1384 const auto storage = ptr_type->GetOperandAs<uint32_t>(1); in CheckFPRoundingModeForShaders()
Dvalidate_image.cpp1059 const auto ptr_type = result_type->GetOperandAs<uint32_t>(2); in ValidateImageTexelPointer() local
1060 const auto ptr_opcode = _.GetIdOpcode(ptr_type); in ValidateImageTexelPointer()
1086 if (info.sampled_type != ptr_type) { in ValidateImageTexelPointer()
/third_party/skia/third_party/externals/tint/src/resolver/
Dfunction_validation_test.cc779 auto* ptr_type = ty.pointer(Source{{12, 34}}, ty.i32(), param.storage_class); in TEST_P() local
780 auto* arg = Param(Source{{12, 34}}, "p", ptr_type); in TEST_P()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c466 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, in create_shared_block() local
469 … ctx->shared_block_var = spirv_builder_emit_var(&ctx->builder, ptr_type, SpvStorageClassWorkgroup); in create_shared_block()
2382 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, in emit_store_deref() local
2390 SpvId member = spirv_builder_emit_access_chain(&ctx->builder, ptr_type, in emit_store_deref()
2419 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, in emit_load_shared() local
2426 SpvId member = spirv_builder_emit_access_chain(&ctx->builder, ptr_type, in emit_load_shared()
2449 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, in emit_store_shared() local
2462 SpvId member = spirv_builder_emit_access_chain(&ctx->builder, ptr_type, in emit_store_shared()
3781 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, in emit_deref_array() local
3786 ptr_type, in emit_deref_array()
[all …]
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c1762 LLVMTypeRef ptr_type = get_def_type(ctx, &instr->dest.ssa); in visit_load_push_constant() local
1763 ptr = ac_cast_ptr(&ctx->ac, ptr, ptr_type); in visit_load_push_constant()
1765 return LLVMBuildLoad2(ctx->ac.builder, ptr_type, ptr, ""); in visit_load_push_constant()
2161 LLVMTypeRef ptr_type = LLVMPointerType(type, AC_ADDR_SPACE_GLOBAL); in get_global_address() local
2173 return type == ctx->ac.i8 ? addr : LLVMBuildBitCast(ctx->ac.builder, addr, ptr_type, ""); in get_global_address()
2175 return LLVMBuildIntToPtr(ctx->ac.builder, addr, ptr_type, ""); in get_global_address()
3199 LLVMTypeRef ptr_type = in visit_var_atomic() local
3201 ptr = LLVMBuildBitCast(ctx->ac.builder, ptr, ptr_type, ""); in visit_var_atomic()
3256 LLVMTypeRef ptr_type = in visit_var_atomic() local
3258 ptr = LLVMBuildBitCast(ctx->ac.builder, ptr, ptr_type, ""); in visit_var_atomic()
[all …]
Dac_llvm_build.c4501 LLVMTypeRef ptr_type; in arg_llvm_type() local
4504 ptr_type = ctx->i8; in arg_llvm_type()
4507 ptr_type = ctx->f32; in arg_llvm_type()
4510 ptr_type = ac_array_in_const32_addr_space(ctx->i8); in arg_llvm_type()
4513 ptr_type = ctx->v4i32; in arg_llvm_type()
4516 ptr_type = ctx->v8i32; in arg_llvm_type()
4522 return ac_array_in_const32_addr_space(ptr_type); in arg_llvm_type()
4525 return ac_array_in_const_addr_space(ptr_type); in arg_llvm_type()
/third_party/cef/tools/
Dcef_parser.py1613 self.ptr_type = None
1716 self.ptr_type = basic['ptr_type']
1804 return self.ptr_type
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_module.c696 const struct dxil_type *ptr_type = dxil_module_get_pointer_type(m, int8_type); in dxil_module_get_handle_type() local
697 if (!ptr_type) in dxil_module_get_handle_type()
700 return dxil_module_get_struct_type(m, "dx.types.Handle", &ptr_type, 1); in dxil_module_get_handle_type()
2342 const struct dxil_type *ptr_type = in dxil_get_metadata_func() local
2344 return dxil_get_metadata_value(m, ptr_type, &func->value); in dxil_get_metadata_func()

12