Lines Matching refs:ir_rvalue
31 static ir_rvalue *
32 convert_component(ir_rvalue *src, const glsl_type *desired_type);
48 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
193 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes()
213 const ir_rvalue *val = actual; in verify_parameter_modes()
319 const ir_rvalue *const actual = in verify_parameter_modes()
320 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes()
337 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type, in fix_parameter()
405 ir_rvalue *rhs = new(mem_ctx) ir_dereference_variable(tmp); in fix_parameter()
409 ir_rvalue *lhs = actual; in fix_parameter()
428 static ir_rvalue *
432 ir_rvalue *array_idx, in generate_call()
446 ir_rvalue *actual = (ir_rvalue *) actual_node; in generate_call()
453 ir_rvalue *converted in generate_call()
639 static ir_rvalue *
647 ir_rvalue *outer_array = generate_array_index(mem_ctx, instructions, in generate_array_index()
653 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
666 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
729 static ir_rvalue *
730 convert_component(ir_rvalue *src, const glsl_type *desired_type) in convert_component()
839 return (constant != NULL) ? (ir_rvalue *) constant : (ir_rvalue *) result; in convert_component()
863 implicitly_convert_component(ir_rvalue * &from, const glsl_base_type to, in implicitly_convert_component()
866 ir_rvalue *result = from; in implicitly_convert_component()
884 ir_rvalue *const constant = result->constant_expression_value(); in implicitly_convert_component()
901 static ir_rvalue *
902 dereference_component(ir_rvalue *src, unsigned component) in dereference_component()
940 static ir_rvalue *
959 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
974 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
980 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_vec_mat_constructor()
996 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1003 return ir_rvalue::error_value(ctx); in process_vec_mat_constructor()
1016 foreach_in_list(ir_rvalue, rhs, &actual_parameters) { in process_vec_mat_constructor()
1020 ir_rvalue *lhs = in process_vec_mat_constructor()
1041 static ir_rvalue *
1082 return ir_rvalue::error_value(ctx); in process_array_constructor()
1097 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_array_constructor()
1125 return ir_rvalue::error_value(ctx); in process_array_constructor()
1132 return ir_rvalue::error_value(ctx); in process_array_constructor()
1154 foreach_in_list(ir_rvalue, rhs, &actual_parameters) { in process_array_constructor()
1155 ir_rvalue *lhs = new(ctx) ir_dereference_array(var, in process_array_constructor()
1174 const ir_rvalue *const p = (ir_rvalue *) parameters->get_head_raw(); in single_scalar_parameter()
1175 assert(((ir_rvalue *)p)->as_rvalue() != NULL); in single_scalar_parameter()
1192 ir_rvalue *
1218 ir_rvalue *first_param = (ir_rvalue *)parameters->get_head_raw(); in emit_inline_vector_constructor()
1219 ir_rvalue *rhs = new(ctx) ir_swizzle(first_param, 0, 0, 0, 0, in emit_inline_vector_constructor()
1236 foreach_in_list(ir_rvalue, param, parameters) { in emit_inline_vector_constructor()
1288 ir_rvalue *rhs = new(ctx) ir_constant(rhs_type, &data); in emit_inline_vector_constructor()
1296 foreach_in_list(ir_rvalue, param, parameters) { in emit_inline_vector_constructor()
1321 ir_rvalue *rhs = in emit_inline_vector_constructor()
1353 ir_rvalue *src, unsigned src_base, unsigned count, in assign_to_matrix_column()
1391 ir_rvalue *
1416 ir_rvalue *const first_param = (ir_rvalue *) parameters->get_head_raw(); in emit_inline_matrix_constructor()
1466 ir_rvalue *const col_ref = new(ctx) ir_dereference_array(var, in emit_inline_matrix_constructor()
1469 ir_rvalue *const rhs_ref = new(ctx) ir_dereference_variable(rhs_var); in emit_inline_matrix_constructor()
1470 ir_rvalue *const rhs = new(ctx) ir_swizzle(rhs_ref, rhs_swiz[i], in emit_inline_matrix_constructor()
1479 ir_rvalue *const col_ref = new(ctx) ir_dereference_array(var, in emit_inline_matrix_constructor()
1482 ir_rvalue *const rhs_ref = new(ctx) ir_dereference_variable(rhs_var); in emit_inline_matrix_constructor()
1483 ir_rvalue *const rhs = new(ctx) ir_swizzle(rhs_ref, 1, 1, 1, 1, in emit_inline_matrix_constructor()
1500 ir_rvalue *const src_matrix = first_param; in emit_inline_matrix_constructor()
1535 ir_rvalue *const rhs = new(ctx) ir_constant(col_type, &ident); in emit_inline_matrix_constructor()
1537 ir_rvalue *const lhs = in emit_inline_matrix_constructor()
1575 ir_rvalue *const rhs_col = in emit_inline_matrix_constructor()
1587 ir_rvalue *rhs; in emit_inline_matrix_constructor()
1605 foreach_in_list(ir_rvalue, rhs, parameters) { in emit_inline_matrix_constructor()
1661 ir_rvalue *
1682 ir_rvalue *const rhs = ((ir_instruction *) node)->as_rvalue(); in emit_inline_record_constructor()
1696 static ir_rvalue *
1732 return ir_rvalue::error_value(ctx); in process_record_constructor()
1739 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in process_record_constructor()
1762 return ir_rvalue::error_value(ctx); in process_record_constructor()
1776 ir_rvalue *
1781 ir_rvalue *op; in handle_method()
1782 ir_rvalue *result; in handle_method()
1844 return ir_rvalue::error_value(ctx); in handle_method()
1847 ir_rvalue *
1874 return ir_rvalue::error_value(ctx); in hir()
1883 return ir_rvalue::error_value(ctx); in hir()
1890 return ir_rvalue::error_value(ctx); in hir()
1896 return ir_rvalue::error_value(ctx); in hir()
1925 return ir_rvalue::error_value(ctx); in hir()
1940 ir_rvalue *result = ast->hir(instructions, state); in hir()
1951 return ir_rvalue::error_value(ctx); in hir()
1958 return ir_rvalue::error_value(ctx); in hir()
1983 return ir_rvalue::error_value(ctx); in hir()
1997 return ir_rvalue::error_value(ctx); in hir()
2011 return ir_rvalue::error_value(ctx); in hir()
2019 foreach_in_list_safe(ir_rvalue, matrix, &actual_parameters) { in hir()
2045 foreach_in_list_safe(ir_rvalue, ir, &actual_parameters) { in hir()
2050 ir_rvalue *result = convert_component(ir, desired_type); in hir()
2056 ir_rvalue *const constant = result->constant_expression_value(); in hir()
2074 return dereference_component((ir_rvalue *) in hir()
2097 ir_rvalue *array_idx = NULL; in hir()
2115 return ir_rvalue::error_value(ctx); in hir()
2120 ir_rvalue *value = NULL; in hir()
2129 value = ir_rvalue::error_value(ctx); in hir()
2134 value = ir_rvalue::error_value(ctx); in hir()
2193 ir_rvalue *
2202 return ir_rvalue::error_value(ctx); in hir()
2209 return ir_rvalue::error_value(ctx); in hir()