Lines Matching defs:actual
80 * formal (\c ir_variable) or actual (\c ir_rvalue)
109 const ir_variable *formal, const ir_variable *actual)
120 if (actual->data.memory_coherent && !formal->data.memory_coherent) {
127 if (actual->data.memory_volatile && !formal->data.memory_volatile) {
134 if (actual->data.memory_restrict && !formal->data.memory_restrict) {
141 if (actual->data.memory_read_only && !formal->data.memory_read_only) {
148 if (actual->data.memory_write_only && !formal->data.memory_write_only) {
217 * Verify that 'out' and 'inout' actual parameters are lvalues. Also, verify
219 * ir_constant actual parameters.
235 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node;
243 actual->ir_type != ir_type_constant) {
252 const ir_rvalue *val = actual;
289 /* Verify that 'out' and 'inout' actual parameters are lvalues. */
300 * is_lvalue() is insufficient because the actual parameter at the
311 ir_variable *var = actual->variable_referenced();
331 actual->variable_referenced()->name);
333 } else if (!actual->is_lvalue(state)) {
342 ir_variable *var = actual->variable_referenced();
355 actual->variable_referenced()) {
357 actual->variable_referenced()))
369 const ir_rvalue *const actual =
378 actual->variable_referenced())) {
382 const ir_rvalue *const actual =
391 actual->variable_referenced())) {
441 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type,
445 ir_expression *const expr = actual->as_expression();
450 if (formal_type == actual->type
452 && actual->as_dereference_variable())
458 if (!actual->as_dereference_variable()) {
463 visit_tree(actual, copy_index_derefs_to_temps, &data);
492 /* If the parameter is an inout parameter, copy the value of the actual
501 assert (actual->type == formal_type);
506 new(mem_ctx) ir_assignment(deref_tmp_1, actual->clone(mem_ctx, NULL));
515 actual->replace_with(deref_tmp_2);
518 /* Copy the temporary variable to the actual parameter with optional
522 if (actual->type != formal_type)
523 rhs = convert_component(rhs, actual->type);
525 ir_rvalue *lhs = actual;
561 ir_rvalue *actual = (ir_rvalue *) actual_node;
569 = convert_component(actual, formal->type);
570 actual->replace_with(converted);
575 fix_parameter(ctx, actual, formal->type,
2056 /* When actual size is known at link-time, this will be