Home
last modified time | relevance | path

Searched refs:struct_type (Results 1 – 25 of 77) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/CodeGenPrepare/AArch64/
Dlarge-offset-gep.ll3 %struct_type = type { [10000 x i32], i32, i32 }
5 define void @test1(%struct_type** %s, i32 %n) {
8 %struct = load %struct_type*, %struct_type** %s
15 %gep0 = getelementptr %struct_type, %struct_type* %struct, i64 0, i32 1
16 %gep1 = getelementptr %struct_type, %struct_type* %struct, i64 0, i32 2
31 define void @test2(%struct_type* %struct, i32 %n) {
34 %cmp = icmp eq %struct_type* %struct, null
41 %gep0 = getelementptr %struct_type, %struct_type* %struct, i64 0, i32 1
42 %gep1 = getelementptr %struct_type, %struct_type* %struct, i64 0, i32 2
57 define void @test3(%struct_type* %s1, %struct_type* %s2, i1 %cond, i32 %n) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dalloca.ll137 %struct_type = type { i32, i32 }
138 declare void @test9_aux(<{ %struct_type }>* inalloca)
142 define void @test9(%struct_type* %a) {
146 %argmem = alloca inalloca <{ %struct_type }>
148 %0 = getelementptr inbounds <{ %struct_type }>, <{ %struct_type }>* %argmem, i32 0, i32 0
149 %1 = bitcast %struct_type* %0 to i8*
150 %2 = bitcast %struct_type* %a to i8*
152 call void @test9_aux(<{ %struct_type }>* inalloca %argmem)
/external/llvm/test/Transforms/InstCombine/
Dalloca.ll134 %struct_type = type { i32, i32 }
135 declare void @test9_aux(<{ %struct_type }>* inalloca)
139 define void @test9(%struct_type* %a) {
143 %argmem = alloca inalloca <{ %struct_type }>
145 %0 = getelementptr inbounds <{ %struct_type }>, <{ %struct_type }>* %argmem, i32 0, i32 0
146 %1 = bitcast %struct_type* %0 to i8*
147 %2 = bitcast %struct_type* %a to i8*
149 call void @test9_aux(<{ %struct_type }>* inalloca %argmem)
/external/mesa3d/src/compiler/glsl/
Dlower_buffer_access.cpp371 const glsl_type *struct_type = deref_record->record->type; in setup_buffer_access() local
374 for (unsigned int i = 0; i < struct_type->length; i++) { in setup_buffer_access()
375 const glsl_type *type = struct_type->fields.structure[i].type; in setup_buffer_access()
379 struct_type->fields.structure[i].name); in setup_buffer_access()
392 if (struct_type->fields.structure[i].offset != -1) { in setup_buffer_access()
393 intra_struct_offset = struct_type->fields.structure[i].offset; in setup_buffer_access()
401 *struct_field = &struct_type->fields.structure[i]; in setup_buffer_access()
/external/v8/src/torque/
Dclass-debug-reader-generator.cc47 if (auto struct_type = type_->StructSupertype()) { in operator *() local
48 const auto& field = (*struct_type)->fields()[index_]; in operator *()
90 base::Optional<const StructType*> struct_type = type_->StructSupertype(); in end() local
91 if (struct_type && *struct_type != TypeOracle::GetFloat64OrHoleType()) { in end()
92 index = (*struct_type)->fields().size(); in end()
Dcsa-generator.cc878 const Type* struct_type = instruction.bit_field_struct_type; in EmitInstruction() local
881 Type::MatchUnaryGeneric(struct_type, TypeOracle::GetSmiTaggedGeneric()); in EmitInstruction()
883 IsPointerSizeIntegralType(struct_type) || smi_tagged_type; in EmitInstruction()
884 DCHECK_IMPLIES(!struct_is_pointer_size, Is32BitIntegralType(struct_type)); in EmitInstruction()
906 << GetBitFieldSpecialization(struct_type, instruction.bit_field) in EmitInstruction()
920 const Type* struct_type = instruction.bit_field_struct_type; in EmitInstruction() local
923 Type::MatchUnaryGeneric(struct_type, TypeOracle::GetSmiTaggedGeneric()); in EmitInstruction()
925 IsPointerSizeIntegralType(struct_type) || smi_tagged_type; in EmitInstruction()
926 DCHECK_IMPLIES(!struct_is_pointer_size, Is32BitIntegralType(struct_type)); in EmitInstruction()
936 decls() << " " << struct_type->GetGeneratedTypeName() << " " << result_name in EmitInstruction()
[all …]
Dtype-visitor.cc195 StructType* struct_type = TypeOracle::GetStructType(decl, specialized_from); in ComputeType() local
196 CurrentScope::Scope struct_namespace_scope(struct_type->nspace()); in ComputeType()
209 struct_type, in ComputeType()
217 struct_type->RegisterField(f); in ComputeType()
234 return struct_type; in ComputeType()
469 StructType* struct_type, const StructDeclaration* struct_declaration) { in VisitStructMethods() argument
470 DeclareMethods(struct_type, struct_declaration->methods); in VisitStructMethods()
Dcc-generator.cc405 const Type* struct_type = instruction.bit_field_struct_type; in EmitInstruction() local
411 Type::MatchUnaryGeneric(struct_type, TypeOracle::GetSmiTaggedGeneric()); in EmitInstruction()
415 struct_type = *smi_tagged_type; in EmitInstruction()
419 << GetBitFieldSpecialization(struct_type, instruction.bit_field) in EmitInstruction()
434 } else if (auto struct_type = result.type()->StructSupertype()) { in EmitCCValue() local
437 for (auto& field : (*struct_type)->fields()) { in EmitCCValue()
Dtypes.cc124 if (auto* struct_type = StructType::DynamicCast(t)) { in StructSupertype() local
125 return struct_type; in StructSupertype()
595 if (auto struct_type = type->StructSupertype()) { in ComputeSlotKindsHelper() local
596 ComputeSlotKindsHelper(slots, offset, (*struct_type)->fields()); in ComputeSlotKindsHelper()
1174 base::Optional<const StructType*> struct_type = type->StructSupertype(); in ValidateAlignment() local
1175 if (struct_type && struct_type != TypeOracle::GetFloat64OrHoleType()) { in ValidateAlignment()
1176 for (const Field& field : (*struct_type)->fields()) { in ValidateAlignment()
1233 } else if (auto struct_type = type->StructSupertype()) { in SizeOf() local
1238 size = (*struct_type)->PackedSize(); in SizeOf()
1294 if (base::Optional<const StructType*> struct_type = StructSupertype()) { in GetRuntimeType() local
[all …]
/external/python/cffi/testing/cffi0/
Dtest_model.py101 struct_type = StructType("foo_s", None, None, None)
102 assert struct_type.get_c_name() == "struct foo_s"
103 assert struct_type.get_c_name("*x") == "struct foo_s *x"
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dtransformation_composite_construct.cpp229 const opt::analysis::Struct& struct_type) const { in ComponentsForStructConstructionAreOK()
231 struct_type.element_types().size()) { in ComponentsForStructConstructionAreOK()
238 field_index < struct_type.element_types().size(); field_index++) { in ComponentsForStructConstructionAreOK()
248 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp222 opt::IRContext* context, const opt::analysis::Struct& struct_type) const { in ComponentsForStructConstructionAreOK()
224 struct_type.element_types().size()) { in ComponentsForStructConstructionAreOK()
231 field_index < struct_type.element_types().size(); field_index++) { in ComponentsForStructConstructionAreOK()
241 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
Dfuzzer_pass_construct_composites.cpp115 } else if (auto struct_type = composite_type->AsStruct()) { in Apply() local
117 *struct_type, type_id_to_available_instructions); in Apply()
230 const opt::analysis::Struct& struct_type, in TryConstructingStructComposite() argument
234 for (auto element_type : struct_type.element_types()) { in TryConstructingStructComposite()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp229 const opt::analysis::Struct& struct_type) const { in ComponentsForStructConstructionAreOK()
231 struct_type.element_types().size()) { in ComponentsForStructConstructionAreOK()
238 field_index < struct_type.element_types().size(); field_index++) { in ComponentsForStructConstructionAreOK()
248 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
/external/tensorflow/tensorflow/compiler/xla/service/mlir_gpu/
Dmlir_compiler.cc308 auto struct_type = target_type.getPointerElementTy(); in InsertBufferLoadPreduleIntoKernel() local
313 loc, struct_type.getStructElementType(0), llvm::ArrayRef<Value>{ptr}); in InsertBufferLoadPreduleIntoKernel()
315 loc, struct_type.getStructElementType(0), descPtr, in InsertBufferLoadPreduleIntoKernel()
319 loc, struct_type.getStructElementType(1), llvm::ArrayRef<Value>{ptr}); in InsertBufferLoadPreduleIntoKernel()
321 loc, struct_type.getStructElementType(1), descPtr, in InsertBufferLoadPreduleIntoKernel()
326 loc, struct_type.getStructElementType(1), descPtr, in InsertBufferLoadPreduleIntoKernel()
334 struct_type.getStructElementType(3).getArrayElementType(); in InsertBufferLoadPreduleIntoKernel()
349 entry_type = struct_type.getStructElementType(4).getArrayElementType(); in InsertBufferLoadPreduleIntoKernel()
/external/llvm/test/CodeGen/X86/
Dpr17631.ll3 %struct_type = type { [64 x <8 x float>], <8 x float> }
12 %second_alloc = alloca %struct_type
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dpr17631.ll3 %struct_type = type { [64 x <8 x float>], <8 x float> }
12 %second_alloc = alloca %struct_type
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_llvm.hpp85 def needs_ctx(struct_type):
86 for m in struct_type.get('members', []):
/external/angle/third_party/spirv-tools/src/source/val/
Dvalidate_annotation.cpp246 const auto struct_type = _.FindDef(struct_type_id); in ValidateMemberDecorate() local
247 if (!struct_type || SpvOpTypeStruct != struct_type->opcode()) { in ValidateMemberDecorate()
254 static_cast<uint32_t>(struct_type->words().size() - 2); in ValidateMemberDecorate()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_annotation.cpp246 const auto struct_type = _.FindDef(struct_type_id); in ValidateMemberDecorate() local
247 if (!struct_type || SpvOpTypeStruct != struct_type->opcode()) { in ValidateMemberDecorate()
254 static_cast<uint32_t>(struct_type->words().size() - 2); in ValidateMemberDecorate()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_annotation.cpp246 const auto struct_type = _.FindDef(struct_type_id); in ValidateMemberDecorate() local
247 if (!struct_type || SpvOpTypeStruct != struct_type->opcode()) { in ValidateMemberDecorate()
254 static_cast<uint32_t>(struct_type->words().size() - 2); in ValidateMemberDecorate()
/external/vulkan-validation-layers/scripts/
Dhelper_file_generator.py559 struct_type = '%sExtensions' % type
563 struct_decl = 'struct %s {' % struct_type
564 instance_struct_type = struct_type
568 struct_decl = 'struct %s : public %s {' % (struct_type, instance_struct_type)
597 ' const bool %s::* enabled;' % struct_type,
602 …st %s requires_): state(state_), requires(requires_) {}' % ( info_type, struct_type, req_vec_type),
603 ' bool %s::* state;' % struct_type,
613 field_format = '&' + struct_type + '::%s'
645 ' %s() = default;' % struct_type,
646 …' %s(const %s& instance_ext) : %s(instance_ext) {}' % (struct_type, instance_struct_type, insta…
[all …]
/external/v8/src/wasm/
Dwasm-module-builder.h291 explicit Type(StructType* struct_type) in Type()
292 : kind(kStructType), struct_type(struct_type) {} in Type()
298 StructType* struct_type; member
/external/mesa3d/src/vulkan/util/
Dgen_enum_to_str.py373 for struct_type in xml.findall('./types/type[@category="struct"]'):
374 name = struct_type.attrib['name']
375 stype = struct_get_stype(struct_type)
/external/mesa3d/src/intel/tools/
Daubinator_viewer_decoder.cpp639 const char *struct_type, int count) in decode_dynamic_state_pointers() argument
659 struct_type, state_addr); in decode_dynamic_state_pointers()
663 struct gen_group *state = gen_spec_find_struct(ctx->spec, struct_type); in decode_dynamic_state_pointers()
664 if (strcmp(struct_type, "BLEND_STATE") == 0) { in decode_dynamic_state_pointers()
669 ImGui::Text("%s", struct_type); in decode_dynamic_state_pointers()
675 struct_type = "BLEND_STATE_ENTRY"; in decode_dynamic_state_pointers()
676 state = gen_spec_find_struct(ctx->spec, struct_type); in decode_dynamic_state_pointers()
680 ImGui::Text("%s %d", struct_type, i); in decode_dynamic_state_pointers()

1234