Searched refs:deref_var (Results 1 - 25 of 25) sorted by relevance

/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
H A Dast_array_index.cpp52 if (ir_dereference_variable *deref_var = ir->as_dereference_variable()) { local in function:update_max_array_access
53 ir_variable *var = deref_var->var;
75 ir_dereference_variable *deref_var = local in function:update_max_array_access
77 if (deref_var == NULL) {
86 deref_var = deref_array_prev->array->as_dereference_variable();
89 if (deref_var != NULL) {
90 if (deref_var->var->is_interface_instance()) {
92 assert(field_idx < deref_var->var->get_interface_type()->length);
95 deref_var->var->get_max_ifc_array_access();
H A Dir_set_program_inouts.cpp348 if (ir_dereference_variable * const deref_var = local in function:ir_set_program_inouts_visitor::visit_enter
350 if (is_multiple_vertices(this->shader_stage, deref_var->var)) {
354 if (try_mark_partial_variable(deref_var->var, ir->array_index))
365 } else if (ir_dereference_variable * const deref_var = local in function:ir_set_program_inouts_visitor::visit_enter
368 if (is_multiple_vertices(this->shader_stage, deref_var->var)) {
372 mark_whole_variable(deref_var->var);
379 } else if (is_shader_inout(deref_var->var)) {
383 if (try_mark_partial_variable(deref_var->var, ir->array_index))
H A Dlower_named_interface_blocks.cpp85 ir_rvalue *deref_var)
91 return new(mem_ctx) ir_dereference_array(deref_var,
96 deref_var);
303 ir_dereference_variable *deref_var = local in function:flatten_named_interface_blocks_declarations::handle_rvalue
310 (ir_rvalue *)deref_var);
312 *rvalue = deref_var;
83 process_array_ir(void * const mem_ctx,ir_dereference_array * deref_array_prev,ir_rvalue * deref_var) argument
H A Dopt_dead_code_local.cpp203 ir_dereference_variable *deref_var = ir->lhs->as_dereference_variable(); local in function:process_assignment
208 if (deref_var && (deref_var->var->type->is_scalar() ||
209 deref_var->var->type->is_vector())) {
H A Dopt_copy_propagation_elements.cpp410 ir_dereference_variable *deref_var; local in function:ir_copy_propagation_elements_visitor::handle_rvalue
421 deref_var = swizzle->val->as_dereference_variable();
422 if (!deref_var)
431 deref_var = (*ir)->as_dereference_variable();
432 if (!deref_var)
439 chans = deref_var->type->vector_elements;
445 ir_variable *var = deref_var->var;
474 shader_mem_ctx = ralloc_parent(deref_var);
487 deref_var = new(shader_mem_ctx) ir_dereference_variable(source[0]);
488 *ir = new(shader_mem_ctx) ir_swizzle(deref_var,
[all...]
H A Dopt_array_splitting.cpp351 ir_dereference_variable *deref_var = deref_array->array->as_dereference_variable(); local in function:ir_array_splitting_visitor::split_deref
352 if (!deref_var)
354 ir_variable *var = deref_var->var;
H A Dopt_function_inlining.cpp375 ir_dereference_variable *deref_var = (*deref)->as_dereference_variable(); local in function:ir_variable_replacement_visitor::replace_deref
376 if (deref_var && deref_var->var == this->orig) {
H A Dopt_structure_splitting.cpp228 ir_dereference_variable *deref_var = deref_record->record->as_dereference_variable(); local in function:__anon9e3ff8b80110::ir_structure_splitting_visitor::split_deref
229 if (!deref_var)
232 variable_entry *entry = get_splitting_entry(deref_var->var);
H A Dlower_ubo_reference.cpp688 ir_dereference_variable *deref_var = (ir_dereference_variable *)deref; local in function:__anonf648b2340110::lower_ubo_reference_visitor::calculate_unsized_array_stride
694 unsized_array_type = deref_var->var->type->fields.array;
701 is_dereferenced_thing_row_major(deref_var);
H A Dast_function.cpp276 if (const ir_dereference_variable *deref_var = val->as_dereference_variable()) local in function:verify_parameter_modes
277 var = deref_var->variable_referenced();
H A Dast_to_hir.cpp1046 ir_dereference_variable *deref_var = local in function:do_assignment
1048 instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var));
/xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
H A Dast_array_index.cpp52 if (ir_dereference_variable *deref_var = ir->as_dereference_variable()) { local in function:update_max_array_access
53 ir_variable *var = deref_var->var;
75 ir_dereference_variable *deref_var = local in function:update_max_array_access
77 if (deref_var == NULL) {
86 deref_var = deref_array_prev->array->as_dereference_variable();
89 if (deref_var != NULL) {
90 if (deref_var->var->is_interface_instance()) {
92 assert(field_idx < deref_var->var->get_interface_type()->length);
95 deref_var->var->get_max_ifc_array_access();
H A Dir_set_program_inouts.cpp348 if (ir_dereference_variable * const deref_var = local in function:ir_set_program_inouts_visitor::visit_enter
350 if (is_multiple_vertices(this->shader_stage, deref_var->var)) {
354 if (try_mark_partial_variable(deref_var->var, ir->array_index))
365 } else if (ir_dereference_variable * const deref_var = local in function:ir_set_program_inouts_visitor::visit_enter
368 if (is_multiple_vertices(this->shader_stage, deref_var->var)) {
372 mark_whole_variable(deref_var->var);
379 } else if (is_shader_inout(deref_var->var)) {
383 if (try_mark_partial_variable(deref_var->var, ir->array_index))
H A Dlower_named_interface_blocks.cpp85 ir_rvalue *deref_var)
91 return new(mem_ctx) ir_dereference_array(deref_var,
96 deref_var);
298 ir_dereference_variable *deref_var = local in function:flatten_named_interface_blocks_declarations::handle_rvalue
305 (ir_rvalue *)deref_var);
307 *rvalue = deref_var;
83 process_array_ir(void * const mem_ctx,ir_dereference_array * deref_array_prev,ir_rvalue * deref_var) argument
H A Dopt_dead_code_local.cpp201 ir_dereference_variable *deref_var = ir->lhs->as_dereference_variable(); local in function:process_assignment
206 if (deref_var && (deref_var->var->type->is_scalar() ||
207 deref_var->var->type->is_vector())) {
H A Dopt_copy_propagation_elements.cpp410 ir_dereference_variable *deref_var; local in function:ir_copy_propagation_elements_visitor::handle_rvalue
421 deref_var = swizzle->val->as_dereference_variable();
422 if (!deref_var)
431 deref_var = (*ir)->as_dereference_variable();
432 if (!deref_var)
439 chans = deref_var->type->vector_elements;
445 ir_variable *var = deref_var->var;
474 shader_mem_ctx = ralloc_parent(deref_var);
487 deref_var = new(shader_mem_ctx) ir_dereference_variable(source[0]);
488 *ir = new(shader_mem_ctx) ir_swizzle(deref_var,
[all...]
H A Dopt_array_splitting.cpp351 ir_dereference_variable *deref_var = deref_array->array->as_dereference_variable(); local in function:ir_array_splitting_visitor::split_deref
352 if (!deref_var)
354 ir_variable *var = deref_var->var;
H A Dopt_function_inlining.cpp375 ir_dereference_variable *deref_var = (*deref)->as_dereference_variable(); local in function:ir_variable_replacement_visitor::replace_deref
376 if (deref_var && deref_var->var == this->orig) {
H A Dopt_structure_splitting.cpp228 ir_dereference_variable *deref_var = deref_record->record->as_dereference_variable(); local in function:__anon37572d050110::ir_structure_splitting_visitor::split_deref
229 if (!deref_var)
232 variable_entry *entry = get_splitting_entry(deref_var->var);
H A Dlower_ubo_reference.cpp686 ir_dereference_variable *deref_var = (ir_dereference_variable *)deref; local in function:__anon515fc8010110::lower_ubo_reference_visitor::calculate_unsized_array_stride
692 unsized_array_type = deref_var->var->type->fields.array;
699 is_dereferenced_thing_row_major(deref_var);
H A Dast_function.cpp241 if (const ir_dereference_variable *deref_var = val->as_dereference_variable()) local in function:verify_parameter_modes
242 var = deref_var->variable_referenced();
H A Dast_to_hir.cpp1034 ir_dereference_variable *deref_var = local in function:do_assignment
1036 instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var));
/xsrc/external/mit/MesaLib/dist/src/compiler/spirv/
H A Dvtn_opencl.c816 nir_deref_instr *deref_var = nir_build_deref_var(&b->nb, var); local in function:handle_printf
820 nir_build_deref_struct(&b->nb, deref_var, i - 1);
835 nir_ssa_def *ret = nir_printf(&b->nb, fmt_idx, &deref_var->dest.ssa);
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_serialize.c630 unsigned modes:14; /* deref_var redefines this */
631 unsigned packed_src_ssa_16bit:1; /* deref_var redefines this */
632 unsigned _pad:1; /* deref_var redefines this */
641 } deref_var; member in union:packed_instr
990 header.deref_var.object_idx = var_idx;
1004 if (!header.deref_var.object_idx)
1058 if (header.deref_var.object_idx)
1059 deref->var = read_lookup_object(ctx, header.deref_var.object_idx);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/
H A Dzink_compiler.c741 nir_variable *deref_var = nir_intrinsic_get_var(intr, 0); local in function:rewrite_and_discard_read
742 if (deref_var != var)

Completed in 48 milliseconds