Lines Matching refs:existing
420 ir_variable *const existing = variables.get_variable(var->name); in cross_validate_globals() local
421 if (existing != NULL) { in cross_validate_globals()
422 if (var->type != existing->type) { in cross_validate_globals()
429 && existing->type->is_array() in cross_validate_globals()
430 && (var->type->fields.array == existing->type->fields.array) in cross_validate_globals()
432 || (existing->type->length == 0))) { in cross_validate_globals()
434 existing->type = var->type; in cross_validate_globals()
441 existing->type->name); in cross_validate_globals()
447 if (existing->explicit_location in cross_validate_globals()
448 && (var->location != existing->location)) { in cross_validate_globals()
455 existing->location = var->location; in cross_validate_globals()
456 existing->explicit_location = true; in cross_validate_globals()
473 var->depth_layout != existing->depth_layout; in cross_validate_globals()
508 if (existing->constant_initializer != NULL) { in cross_validate_globals()
509 if (!var->constant_initializer->has_value(existing->constant_initializer)) { in cross_validate_globals()
528 existing->constant_initializer = in cross_validate_globals()
529 var->constant_initializer->clone(ralloc_parent(existing), in cross_validate_globals()
535 if (existing->has_initializer in cross_validate_globals()
537 || existing->constant_initializer == NULL)) { in cross_validate_globals()
550 existing->has_initializer = true; in cross_validate_globals()
553 if (existing->invariant != var->invariant) { in cross_validate_globals()
559 if (existing->centroid != var->centroid) { in cross_validate_globals()
814 ir_variable *const existing = in remap_variables() local
816 if (existing != NULL) in remap_variables()
817 ir->var = existing; in remap_variables()