Lines Matching defs:actual

73  *                    formal (\c ir_variable) or actual (\c ir_rvalue)
102 const ir_variable *formal, const ir_variable *actual)
113 if (actual->data.memory_coherent && !formal->data.memory_coherent) {
120 if (actual->data.memory_volatile && !formal->data.memory_volatile) {
127 if (actual->data.memory_restrict && !formal->data.memory_restrict) {
134 if (actual->data.memory_read_only && !formal->data.memory_read_only) {
141 if (actual->data.memory_write_only && !formal->data.memory_write_only) {
179 * Verify that 'out' and 'inout' actual parameters are lvalues. Also, verify
181 * ir_constant actual parameters.
197 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node;
208 actual->ir_type != ir_type_constant) {
217 const ir_rvalue *val = actual;
254 /* Verify that 'out' and 'inout' actual parameters are lvalues. */
265 * is_lvalue() is insufficient because the actual parameter at the
276 ir_variable *var = actual->variable_referenced();
296 actual->variable_referenced()->name);
298 } else if (!actual->is_lvalue(state)) {
307 ir_variable *var = actual->variable_referenced();
320 actual->variable_referenced()) {
322 actual->variable_referenced()))
334 const ir_rvalue *const actual =
343 actual->variable_referenced())) {
393 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type,
397 ir_expression *const expr = actual->as_expression();
402 if (formal_type == actual->type
404 && actual->as_dereference_variable())
410 if (!actual->as_dereference_variable()) {
415 visit_tree(actual, copy_index_derefs_to_temps, &data);
444 /* If the parameter is an inout parameter, copy the value of the actual
453 assert (actual->type == formal_type);
458 new(mem_ctx) ir_assignment(deref_tmp_1, actual->clone(mem_ctx, NULL));
467 actual->replace_with(deref_tmp_2);
470 /* Copy the temporary variable to the actual parameter with optional
474 if (actual->type != formal_type)
475 rhs = convert_component(rhs, actual->type);
477 ir_rvalue *lhs = actual;
513 ir_rvalue *actual = (ir_rvalue *) actual_node;
521 = convert_component(actual, formal->type);
522 actual->replace_with(converted);
527 fix_parameter(ctx, actual, formal->type,