/* If the entity is a leave in the inheritance tree,
we can replace the Sel by a constant. */
/* If the entity is a leave in the inheritance tree,
we can replace the Sel by a constant. */
/* In dead code, we might call a leave entity that is a description.
Do not turn the Sel to a SymConst. */
if (get_entity_peculiarity(ent) == peculiarity_description) {
/* In dead code, we might call a leave entity that is a description.
Do not turn the Sel to a SymConst. */
if (get_entity_peculiarity(ent) == peculiarity_description) {
set_cur_block(get_nodes_block(node));
new_node = copy_const_value(get_atomic_ent_value(ent));
set_cur_block(rem_block);
set_cur_block(get_nodes_block(node));
new_node = copy_const_value(get_atomic_ent_value(ent));
set_cur_block(rem_block);
- ir_node *ptr = get_Sel_ptr(node); /* The address we select from. */
- type *dyn_tp = get_dynamic_type(ptr); /* The runtime type of ptr. */
+ ptr = get_Sel_ptr(node); /* The address we select from. */
+ dyn_tp = get_dynamic_type(ptr); /* The runtime type of ptr. */
/* We know which method will be called, no dispatch necessary. */
called_ent = resolve_ent_polymorphy(dyn_tp, ent);
/* called_ent may not be description: has no Address/Const to Call! */
assert(get_entity_peculiarity(called_ent) != peculiarity_description);
/* We know which method will be called, no dispatch necessary. */
called_ent = resolve_ent_polymorphy(dyn_tp, ent);
/* called_ent may not be description: has no Address/Const to Call! */
assert(get_entity_peculiarity(called_ent) != peculiarity_description);
set_cur_block(get_nodes_block(node));
new_node = copy_const_value(get_atomic_ent_value(called_ent));
set_cur_block(rem_block);
set_cur_block(get_nodes_block(node));
new_node = copy_const_value(get_atomic_ent_value(called_ent));
set_cur_block(rem_block);
* This function returns a node replacing the Proj(Load)[Value].
* If this is actually called in transform_node, we must build
* a tuple, or replace the Projs of the load.
* This function returns a node replacing the Proj(Load)[Value].
* If this is actually called in transform_node, we must build
* a tuple, or replace the Projs of the load.
if ((get_entity_allocation(ent) != allocation_static) ||
(get_entity_variability(ent) != variability_constant) )
return n;
if ((get_entity_allocation(ent) != allocation_static) ||
(get_entity_variability(ent) != variability_constant) )
return n;
we can replace the Sel by a constant. */
if ((get_irp_phase_state() != phase_building) && (get_entity_n_overwrittenby(ent) == 0)) {
new_node = copy_const_value(get_atomic_ent_value(ent));
we can replace the Sel by a constant. */
if ((get_irp_phase_state() != phase_building) && (get_entity_n_overwrittenby(ent) == 0)) {
new_node = copy_const_value(get_atomic_ent_value(ent));
- ir_node *ptr = get_Sel_ptr(field_ptr); /* The address we select from. */
- type *dyn_tp = get_dynamic_type(ptr); /* The runtime type of ptr. */
+ ptr = get_Sel_ptr(field_ptr); /* The address we select from. */
+ dyn_tp = get_dynamic_type(ptr); /* The runtime type of ptr. */
assert(get_entity_peculiarity(loaded_ent) != peculiarity_description);
new_node = copy_const_value(get_atomic_ent_value(loaded_ent));
assert(get_entity_peculiarity(loaded_ent) != peculiarity_description);
new_node = copy_const_value(get_atomic_ent_value(loaded_ent));