Lines Matching refs:ir_rvalue
32 static ir_rvalue *
33 convert_component(ir_rvalue *src, const glsl_type *desired_type);
50 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
197 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes()
217 const ir_rvalue *val = actual; in verify_parameter_modes()
334 const ir_rvalue *const actual = in verify_parameter_modes()
335 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes()
352 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type, in fix_parameter()
420 ir_rvalue *rhs = new(mem_ctx) ir_dereference_variable(tmp); in fix_parameter()
424 ir_rvalue *lhs = actual; in fix_parameter()
443 static ir_rvalue *
447 ir_rvalue *array_idx, in generate_call()
460 ir_rvalue *actual = (ir_rvalue *) actual_node; in generate_call()
467 ir_rvalue *converted in generate_call()
655 static ir_rvalue *
663 ir_rvalue *outer_array = generate_array_index(mem_ctx, instructions, in generate_array_index()
669 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
687 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
750 static ir_rvalue *
751 convert_component(ir_rvalue *src, const glsl_type *desired_type) in convert_component()
961 return (constant != NULL) ? (ir_rvalue *) constant : (ir_rvalue *) result; in convert_component()
985 implicitly_convert_component(ir_rvalue * &from, const glsl_base_type to, in implicitly_convert_component()
989 ir_rvalue *result = from; in implicitly_convert_component()
1007 ir_rvalue *const constant = result->constant_expression_value(mem_ctx); in implicitly_convert_component()
1024 static ir_rvalue *
1025 dereference_component(ir_rvalue *src, unsigned component) in dereference_component()
1063 static ir_rvalue *
1082 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1097 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1103 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_vec_mat_constructor()
1119 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1126 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1139 foreach_in_list(ir_rvalue, rhs, &actual_parameters) { in process_vec_mat_constructor()
1143 ir_rvalue *lhs = in process_vec_mat_constructor()
1164 static ir_rvalue *
1205 return ir_rvalue::error_value(ctx); in process_array_constructor()
1220 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_array_constructor()
1248 return ir_rvalue::error_value(ctx); in process_array_constructor()
1255 return ir_rvalue::error_value(ctx); in process_array_constructor()
1277 foreach_in_list(ir_rvalue, rhs, &actual_parameters) { in process_array_constructor()
1278 ir_rvalue *lhs = new(ctx) ir_dereference_array(var, in process_array_constructor()
1297 const ir_rvalue *const p = (ir_rvalue *) parameters->get_head_raw(); in single_scalar_parameter()
1298 assert(((ir_rvalue *)p)->as_rvalue() != NULL); in single_scalar_parameter()
1315 static ir_rvalue *
1341 ir_rvalue *first_param = (ir_rvalue *)parameters->get_head_raw(); in emit_inline_vector_constructor()
1342 ir_rvalue *rhs = new(ctx) ir_swizzle(first_param, 0, 0, 0, 0, in emit_inline_vector_constructor()
1359 foreach_in_list(ir_rvalue, param, parameters) { in emit_inline_vector_constructor()
1416 ir_rvalue *rhs = new(ctx) ir_constant(rhs_type, &data); in emit_inline_vector_constructor()
1424 foreach_in_list(ir_rvalue, param, parameters) { in emit_inline_vector_constructor()
1449 ir_rvalue *rhs = in emit_inline_vector_constructor()
1481 ir_rvalue *src, unsigned src_base, unsigned count, in assign_to_matrix_column()
1519 static ir_rvalue *
1544 ir_rvalue *const first_param = (ir_rvalue *) parameters->get_head_raw(); in emit_inline_matrix_constructor()
1592 ir_rvalue *const col_ref = new(ctx) ir_dereference_array(var, in emit_inline_matrix_constructor()
1595 ir_rvalue *const rhs_ref = new(ctx) ir_dereference_variable(rhs_var); in emit_inline_matrix_constructor()
1596 ir_rvalue *const rhs = new(ctx) ir_swizzle(rhs_ref, rhs_swiz[i], in emit_inline_matrix_constructor()
1605 ir_rvalue *const col_ref = new(ctx) ir_dereference_array(var, in emit_inline_matrix_constructor()
1608 ir_rvalue *const rhs_ref = new(ctx) ir_dereference_variable(rhs_var); in emit_inline_matrix_constructor()
1609 ir_rvalue *const rhs = new(ctx) ir_swizzle(rhs_ref, 1, 1, 1, 1, in emit_inline_matrix_constructor()
1626 ir_rvalue *const src_matrix = first_param; in emit_inline_matrix_constructor()
1661 ir_rvalue *const rhs = new(ctx) ir_constant(col_type, &ident); in emit_inline_matrix_constructor()
1663 ir_rvalue *const lhs = in emit_inline_matrix_constructor()
1701 ir_rvalue *const rhs_col = in emit_inline_matrix_constructor()
1713 ir_rvalue *rhs; in emit_inline_matrix_constructor()
1731 foreach_in_list(ir_rvalue, rhs, parameters) { in emit_inline_matrix_constructor()
1787 static ir_rvalue *
1808 ir_rvalue *const rhs = ((ir_instruction *) node)->as_rvalue(); in emit_inline_record_constructor()
1821 static ir_rvalue *
1857 return ir_rvalue::error_value(ctx); in process_record_constructor()
1864 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_record_constructor()
1887 return ir_rvalue::error_value(ctx); in process_record_constructor()
1901 ir_rvalue *
1906 ir_rvalue *op; in handle_method()
1907 ir_rvalue *result; in handle_method()
1969 return ir_rvalue::error_value(ctx); in handle_method()
1979 ir_rvalue *
2006 return ir_rvalue::error_value(ctx); in hir()
2027 return ir_rvalue::error_value(ctx); in hir()
2034 return ir_rvalue::error_value(ctx); in hir()
2040 return ir_rvalue::error_value(ctx); in hir()
2069 return ir_rvalue::error_value(ctx); in hir()
2084 ir_rvalue *result = ast->hir(instructions, state); in hir()
2095 return ir_rvalue::error_value(ctx); in hir()
2102 return ir_rvalue::error_value(ctx); in hir()
2127 return ir_rvalue::error_value(ctx); in hir()
2141 return ir_rvalue::error_value(ctx); in hir()
2155 return ir_rvalue::error_value(ctx); in hir()
2163 foreach_in_list_safe(ir_rvalue, matrix, &actual_parameters) { in hir()
2189 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in hir()
2235 ir_rvalue *result = convert_component(ir, desired_type); in hir()
2241 ir_rvalue *const constant = result->constant_expression_value(ctx); in hir()
2259 return dereference_component((ir_rvalue *) in hir()
2282 ir_rvalue *array_idx = NULL; in hir()
2300 return ir_rvalue::error_value(ctx); in hir()
2305 ir_rvalue *value = NULL; in hir()
2314 value = ir_rvalue::error_value(ctx); in hir()
2319 value = ir_rvalue::error_value(ctx); in hir()
2378 ir_rvalue *
2387 return ir_rvalue::error_value(ctx); in hir()
2394 return ir_rvalue::error_value(ctx); in hir()