Home
last modified time | relevance | path

Searched refs:strct (Results 1 – 25 of 47) sorted by relevance

12

/third_party/rust/crates/cxx/macro/src/
Dderive.rs7 pub fn expand_struct(strct: &Struct, actual_derives: &mut Option<TokenStream>) -> TokenStream { in expand_struct()
11 for derive in &strct.derives { in expand_struct()
14 Trait::Copy => expanded.extend(struct_copy(strct, span)), in expand_struct()
15 Trait::Clone => expanded.extend(struct_clone(strct, span)), in expand_struct()
16 Trait::Debug => expanded.extend(struct_debug(strct, span)), in expand_struct()
17 Trait::Default => expanded.extend(struct_default(strct, span)), in expand_struct()
21 Trait::Ord => expanded.extend(struct_ord(strct, span)), in expand_struct()
23 Trait::PartialOrd => expanded.extend(struct_partial_ord(strct, span)), in expand_struct()
97 fn struct_copy(strct: &Struct, span: Span) -> TokenStream { in struct_copy()
98 let ident = &strct.name.rust; in struct_copy()
[all …]
Dexpand.rs66 Api::Struct(strct) => { in expand()
67 expanded.extend(expand_struct(strct)); in expand()
68 hidden.extend(expand_struct_operators(strct)); in expand()
69 forbid.extend(expand_struct_forbid_drop(strct)); in expand()
154 fn expand_struct(strct: &Struct) -> TokenStream { in expand_struct()
155 let ident = &strct.name.rust; in expand_struct()
156 let doc = &strct.doc; in expand_struct()
157 let attrs = &strct.attrs; in expand_struct()
158 let generics = &strct.generics; in expand_struct()
159 let type_id = type_id(&strct.name); in expand_struct()
[all …]
/third_party/rust/crates/cxx/gen/src/
Dwrite.rs53 Api::Struct(strct) => write_struct_decl(out, &strct.name), in write_forward_declarations()
86 Api::Struct(strct) if !structs_written.contains(&strct.name.rust) => { in write_data_structures()
88 if !out.types.cxx.contains(&strct.name.rust) { in write_data_structures()
91 .get(&strct.name.rust) in write_data_structures()
97 if next.name.rust == strct.name.rust { in write_data_structures()
142 Api::Struct(strct) => write_struct_operator_decls(out, strct), in write_functions()
155 Api::Struct(strct) => write_struct_operators(out, strct), in write_functions()
171 if let Api::Struct(strct) = api { in write_std_specializations()
172 if derive::contains(&strct.derives, Trait::Hash) { in write_std_specializations()
176 let qualified = strct.name.to_fully_qualified(); in write_std_specializations()
[all …]
Dcfg.rs29 Api::Struct(strct) => strct in strip()
115 Api::Struct(strct) => &strct.cfg, in cfg()
Dnamespace.rs10 Api::Struct(strct) => &strct.name.namespace, in namespace()
/third_party/rust/crates/cxx/syntax/
Dtoposort.rs14 if let Api::Struct(strct) = api { in sort()
15 let _ = visit(cx, strct, &mut sorted, marks, types); in sort()
23 strct: &'a Struct, in visit()
28 match marks.entry(strct) { in visit()
38 for field in &strct.fields { in visit()
48 marks.insert(strct, Mark::Visited); in visit()
49 sorted.push(strct); in visit()
Dtypes.rs72 Api::Struct(strct) => { in collect()
73 let ident = &strct.name.rust; in collect()
82 duplicate_name(cx, strct, ident); in collect()
84 structs.insert(&strct.name.rust, strct); in collect()
85 for field in &strct.fields { in collect()
88 add_resolution(&strct.name, &strct.generics); in collect()
Dpod.rs15 } else if let Some(strct) = self.structs.get(ident) { in is_guaranteed_pod()
16 derive::contains(&strct.derives, Trait::Copy) in is_guaranteed_pod()
17 || strct in is_guaranteed_pod()
Dident.rs31 Api::Struct(strct) => { in check_all()
32 check(cx, &strct.name); in check_all()
33 for field in &strct.fields { in check_all()
Dtrivial.rs41 Api::Struct(strct) => { in required_trivial_reasons()
42 for field in &strct.fields { in required_trivial_reasons()
44 let reason = TrivialReason::StructField(strct); in required_trivial_reasons()
146 TrivialReason::StructField(strct) => { in as_what()
147 field_of.insert(&strct.name.rust); in as_what()
Dcheck.rs66 Api::Struct(strct) => check_api_struct(cx, strct), in do_typecheck()
311 fn check_api_struct(cx: &mut Check, strct: &Struct) { in check_api_struct()
312 let name = &strct.name; in check_api_struct()
314 check_lifetimes(cx, &strct.generics); in check_api_struct()
316 if strct.fields.is_empty() { in check_api_struct()
317 let span = span_for_struct_error(strct); in check_api_struct()
328 for derive in &strct.derives { in check_api_struct()
335 for field in &strct.fields { in check_api_struct()
664 fn span_for_struct_error(strct: &Struct) -> TokenStream { in span_for_struct_error()
665 let struct_token = strct.struct_token; in span_for_struct_error()
[all …]
Dimproper.rs19 } else if let Some(strct) = self.structs.get(ident) { in determine_improper_ctype()
20 Depends(&strct.name.rust) // iterate to fixed-point in determine_improper_ctype()
/third_party/skia/third_party/externals/tint/test/unittest/reader/spirv/
DSpvParserFunctionVarTest_EmitFunctionVariables_MemberDecorate_RelaxedPrecision.spvasm12 OpName %strct "strct"
13 OpMemberDecorate %strct 0 RelaxedPrecision
15 %strct = OpTypeStruct %float
16 %_ptr_Function_strct = OpTypePointer Function %strct
/third_party/mesa3d/src/intel/common/
Dintel_batch_decoder.c279 struct intel_group *strct = in dump_binding_table() local
281 if (strct == NULL) { in dump_binding_table()
331 uint32_t size = strct->dw_length * 4; in dump_binding_table()
340 ctx_print_group(ctx, strct, addr, bo.map + (addr - bo.addr)); in dump_binding_table()
347 struct intel_group *strct = intel_spec_find_struct(ctx->spec, "SAMPLER_STATE"); in dump_samplers() local
365 const unsigned sampler_state_size = strct->dw_length * 4; in dump_samplers()
375 ctx_print_group(ctx, strct, state_addr, state_map); in dump_samplers()
1132 struct intel_group *strct = in decode_vs_state() local
1134 if (strct == NULL) { in decode_vs_state()
1147 ctx_print_group(ctx, strct, offset, bind_bo.map); in decode_vs_state()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_vars_to_ssa.c170 assert(deref->strct.index < glsl_get_length(parent->type)); in get_deref_node_recur()
172 if (parent->children[deref->strct.index] == NULL) { in get_deref_node_recur()
173 parent->children[deref->strct.index] = in get_deref_node_recur()
178 return parent->children[deref->strct.index]; in get_deref_node_recur()
264 if (node->children[(*path)->strct.index]) { in foreach_deref_node_worker()
265 foreach_deref_node_worker(node->children[(*path)->strct.index], in foreach_deref_node_worker()
327 if (node->children[(*path)->strct.index]) { in path_may_be_aliased_node()
328 return path_may_be_aliased_node(node->children[(*path)->strct.index], in path_may_be_aliased_node()
Dnir_lower_locals_to_regs.c60 hash = XXH32(&deref->strct.index, sizeof(deref->strct.index), hash); in hash_deref()
87 if (a->strct.index != b->strct.index) in derefs_equal()
Dnir_opt_find_array_copies.c131 idx = instr->strct.index; in node_for_deref()
217 struct match_node *child = node->children[(*deref)->strct.index]; in _foreach_aliasing()
379 if (b->strct.index != d->strct.index) in try_match_deref()
Dnir_deref.c321 (*p)->strct.index); in nir_deref_instr_get_const_offset()
359 (*p)->strct.index); in nir_build_deref_offset()
548 if (a[*i]->strct.index != b[*i]->strct.index) in compare_deref_paths()
781 new_deref->strct.index = deref->strct.index; in rematerialize_deref_in_block()
889 child->strct.index); in nir_deref_instr_fixup_child_types()
Dnir_lower_io_to_temporaries.c152 (*old_interp_deref)->strct.index); in emit_interp()
155 (*old_interp_deref)->strct.index); in emit_interp()
Dnir_lower_const_arrays_to_uniforms.c73 ret = ret->elements[(*p)->strct.index]; in set_const_initialiser()
398 (*p)->strct.index); in nir_lower_const_arrays_to_uniforms()
Dnir_opt_constant_folding.c162 if (p->strct.index >= c->num_elements) in const_value_for_deref()
164 c = c->elements[p->strct.index]; in const_value_for_deref()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c88 assert(path->path[idx]->strct.index < desc->num_elements); in get_element()
90 return &desc->elements[path->path[idx]->strct.index ]; in get_element()
/third_party/mesa3d/src/intel/tools/
Daubinator_viewer_decoder.cpp200 struct intel_group *strct = in dump_binding_table() local
202 if (strct == NULL) { in dump_binding_table()
232 uint32_t size = strct->dw_length * 4; in dump_binding_table()
244 aub_viewer_print_group(ctx, strct, addr, state); in dump_binding_table()
253 struct intel_group *strct = intel_spec_find_struct(ctx->spec, "SAMPLER_STATE"); in dump_samplers() local
270 const unsigned sampler_state_size = strct->dw_length * 4; in dump_samplers()
280 aub_viewer_print_group(ctx, strct, state_addr, state_map); in dump_samplers()
/third_party/mesa3d/src/compiler/
Dglsl_types.cpp3072 } strct; member
3182 encoded.strct.length = MIN2(type->length, 0xfffff); in encode_type_to_blob()
3183 encoded.strct.explicit_alignment = in encode_type_to_blob()
3186 encoded.strct.interface_packing_or_packed = type->interface_packing; in encode_type_to_blob()
3187 encoded.strct.interface_row_major = type->interface_row_major; in encode_type_to_blob()
3189 encoded.strct.interface_packing_or_packed = type->packed; in encode_type_to_blob()
3195 if (encoded.strct.length == 0xfffff) in encode_type_to_blob()
3197 if (encoded.strct.explicit_alignment == 0xf) in encode_type_to_blob()
3289 unsigned num_fields = encoded.strct.length; in decode_type_from_blob()
3292 unsigned explicit_alignment = encoded.strct.explicit_alignment; in decode_type_from_blob()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_lower_samplers_as_deref.c107 *location += glsl_get_struct_location_offset(cur->type, next->strct.index); in remove_struct_derefs_prep()
109 glsl_get_struct_elem_name(cur->type, next->strct.index)); in remove_struct_derefs_prep()

12