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/
H A Deliminate_dead_io_components_pass.cpp70 analysis::Pointer* ptr_type = var_type->AsPointer(); in Process() local
71 if (ptr_type == nullptr) { in Process()
74 const auto sclass = ptr_type->storage_class(); in Process()
83 auto core_type = ptr_type->pointee_type(); in Process()
194 analysis::Pointer* ptr_type = in ChangeArrayLength() local
196 const analysis::Array* arr_ty = ptr_type->pointee_type()->AsArray(); in ChangeArrayLength()
202 analysis::Pointer new_ptr_ty(reg_new_arr_ty, ptr_type->storage_class()); in ChangeArrayLength()
212 analysis::Pointer* ptr_type = in ChangeIOVarStructLength() local
214 auto core_type = ptr_type->pointee_type(); in ChangeIOVarStructLength()
H A Deliminate_dead_output_stores_pass.cpp95 auto ptr_type = type_mgr->GetType(var->type_id())->AsPointer(); in KillAllDeadStoresOfLocRef() local
96 assert(ptr_type && "unexpected var type"); in KillAllDeadStoresOfLocRef()
97 auto var_type = ptr_type->pointee_type(); in KillAllDeadStoresOfLocRef()
141 analysis::Pointer* ptr_type = var_type->AsPointer(); in KillAllDeadStoresOfBuiltinRef() local
142 auto curr_type = ptr_type->pointee_type(); in KillAllDeadStoresOfBuiltinRef()
193 analysis::Pointer* ptr_type = var_type->AsPointer(); in DoDeadOutputStoreElimination() local
194 if (ptr_type->storage_class() != spv::StorageClass::Output) { in DoDeadOutputStoreElimination()
205 auto curr_type = ptr_type->pointee_type(); in DoDeadOutputStoreElimination()
H A Dliveness.cpp255 auto ptr_type = type_mgr->GetType(var->type_id())->AsPointer(); in MarkRefLive() local
256 assert(ptr_type && "unexpected var type"); in MarkRefLive()
257 auto var_type = ptr_type->pointee_type(); in MarkRefLive()
287 analysis::Pointer* ptr_type = var_type->AsPointer(); in ComputeLiveness() local
288 if (ptr_type->storage_class() != spv::StorageClass::Input) { in ComputeLiveness()
298 auto pte_type = ptr_type->pointee_type(); in ComputeLiveness()
H A Dinterface_var_sroa.cpp794 analysis::Pointer ptr_type(type, storage_class); in GetPointerType()
795 return context()->get_type_mgr()->GetTypeInstruction(&ptr_type); in GetPointerType()
/third_party/mesa3d/src/compiler/spirv/
H A 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()
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 in vtn_pointer_from_ssa()
1728 vtn_pointer_from_ssa(struct vtn_builder *b, nir_ssa_def *ssa, struct vtn_type *ptr_type) vtn_pointer_from_ssa() argument
1843 vtn_create_variable(struct vtn_builder *b, struct vtn_value *val, struct vtn_type *ptr_type, SpvStorageClass storage_class, struct vtn_value *initializer) vtn_create_variable() argument
2387 struct vtn_type *ptr_type = vtn_get_type(b, w[1]); vtn_handle_variables() local
2419 struct vtn_type *ptr_type = rzalloc(b, struct vtn_type); vtn_handle_variables() local
2464 struct vtn_type *ptr_type = vtn_get_type(b, w[1]); vtn_handle_variables() local
2663 struct vtn_type *ptr_type = vtn_get_value_type(b, w[3]); vtn_handle_variables() local
2682 struct vtn_type *ptr_type = vtn_get_type(b, w[1]); vtn_handle_variables() local
[all...]
H A Dvtn_private.h533 struct vtn_type *ptr_type; member
758 struct vtn_type *ptr_type);
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_struct.c81 LLVMTypeRef ptr_type, in lp_build_struct_get_ptr2()
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()
109 member_ptr = lp_build_struct_get_ptr2(gallivm, ptr_type, ptr, member, name); in lp_build_struct_get2()
80 lp_build_struct_get_ptr2(struct gallivm_state *gallivm, LLVMTypeRef ptr_type, LLVMValueRef ptr, unsigned member, const char *name) lp_build_struct_get_ptr2() argument
99 lp_build_struct_get2(struct gallivm_state *gallivm, LLVMTypeRef ptr_type, LLVMValueRef ptr, unsigned member, const char *name) lp_build_struct_get2() argument
H A Dlp_bld_struct.h80 LLVMTypeRef ptr_type,
91 LLVMTypeRef ptr_type,
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Din_class_typedef.hpp5 typedef T* ptr_type; typedef in Foo
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A 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 in GetSpirvTypeForHandleMemoryObjectDeclaration()
[all...]
/third_party/skia/third_party/externals/spirv-cross/
H A 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 in build_implicit_builtins()
630 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); build_implicit_builtins() local
690 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); build_implicit_builtins() local
712 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); build_implicit_builtins() local
794 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); build_implicit_builtins() local
816 auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); build_implicit_builtins() local
932 auto &ptr_type = set<SPIRType>(type_ptr_id, vec4_type_ptr); build_implicit_builtins() local
3119 auto ptr_type = mbr_type; add_variable_to_interface_block() local
3638 auto &ptr_type = set<SPIRType>(ptr_type_id, type); add_interface_block() local
3779 auto &ptr_type = set<SPIRType>(ptr_type_id); ensure_correct_builtin_type() local
6747 auto &ptr_type = expression_type(ptr); emit_tessellation_io_load() local
7170 auto &ptr_type = expression_type(ptr); emit_tessellation_access_chain() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A 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()
H A Dvalidate_decorations.cpp1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0));
1373 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2);
1384 const auto storage = ptr_type->GetOperandAs<uint32_t>(1);
H A 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/swiftshader/third_party/SPIRV-Tools/source/val/
H A 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()
H A Dvalidate_decorations.cpp1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0));
1373 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2);
1384 const auto storage = ptr_type->GetOperandAs<uint32_t>(1);
H A 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/
H A Dvalidate_interfaces.cpp248 auto ptr_type = _.FindDef(ptr_type_id); in GetLocationsForVariable() local
249 auto type_id = ptr_type->GetOperandAs<uint32_t>(2); in GetLocationsForVariable()
H A Dvalidate_decorations.cpp1514 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0));
1516 const auto half_float_id = ptr_type->GetOperandAs<uint32_t>(2);
1527 const auto storage = ptr_type->GetOperandAs<spv::StorageClass>(1);
H A Dvalidate_image.cpp1118 const auto ptr_type = result_type->GetOperandAs<uint32_t>(2); in ValidateImageTexelPointer() local
1119 const auto ptr_opcode = _.GetIdOpcode(ptr_type); in ValidateImageTexelPointer()
1145 if (info.sampled_type != ptr_type) { in ValidateImageTexelPointer()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
H A 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()
3813 SpvId ptr_type = spirv_builder_type_pointer(&ctx->builder, emit_deref_struct() local
[all...]
/third_party/skia/third_party/externals/tint/src/resolver/
H A 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/amd/llvm/
H A 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()
3730 LLVMTypeRef ptr_type = ac_array_in_const_addr_space(ctx->ac.v3i32); visit_intrinsic() local
4341 LLVMTypeRef ptr_type = LLVMPointerType(result_type, AC_ADDR_SPACE_CONST); visit_intrinsic() local
[all...]
H A 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/mesa3d/src/microsoft/compiler/
H A 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()

Completed in 73 milliseconds

12