* Default implementation for finding a pointer type for a given element type.
* Simple create a new one.
*/
* Default implementation for finding a pointer type for a given element type.
* Simple create a new one.
*/
/* Mode and alignment are always identical in all calls to def_find_pointer_type(), so
we simply can use a map from the element type to the pointer type. */
/* Mode and alignment are always identical in all calls to def_find_pointer_type(), so
we simply can use a map from the element type to the pointer type. */
set_type_alignment_bytes(res, alignment);
pmap_insert(type_map, e_type, res);
}
set_type_alignment_bytes(res, alignment);
pmap_insert(type_map, e_type, res);
}
int arg_shift; /**< The Argument index shift for parameters. */
int first_hidden; /**< The index of the first hidden argument. */
struct obstack obst; /**< An obstack to allocate the data on. */
int arg_shift; /**< The Argument index shift for parameters. */
int first_hidden; /**< The index of the first hidden argument. */
struct obstack obst; /**< An obstack to allocate the data on. */
-static cl_entry *get_Call_entry(ir_node *call, wlk_env *env) {
- cl_entry *res = get_irn_link(call);
+static cl_entry *get_Call_entry(ir_node *call, wlk_env *env)
+{
+ cl_entry *res = (cl_entry*)get_irn_link(call);
if (res == NULL) {
cl_entry *res = OALLOC(&env->obst, cl_entry);
res->next = env->cl_list;
if (res == NULL) {
cl_entry *res = OALLOC(&env->obst, cl_entry);
res->next = env->cl_list;
ir_storage_class_class_t sc;
ir_entity *ent;
/* still alias free */
ptr = find_base_adr(ptr, &ent);
ir_storage_class_class_t sc;
ir_entity *ent;
/* still alias free */
ptr = find_base_adr(ptr, &ent);
* return values) to be 1 (C, C++) in almost all cases, so ignore the
* linear search complexity here.
*/
* return values) to be 1 (C, C++) in almost all cases, so ignore the
* linear search complexity here.
*/
/* use a map the check if we already create such an entity */
e = pmap_find(env->dummy_map, tp);
if (e)
/* use a map the check if we already create such an entity */
e = pmap_find(env->dummy_map, tp);
if (e)
- arg = new_r_Proj(get_nodes_block(arg), arg, mode_P_data, env.first_hidden + k);
+ arg = new_r_Proj(arg, mode_P_data, env.first_hidden + k);
irg_walk_graph(irg, NULL, do_copy_return_opt, cr_opt);
for (i = ARR_LEN(cr_opt) - 1; i >= 0; --i) {
irg_walk_graph(irg, NULL, do_copy_return_opt, cr_opt);
for (i = ARR_LEN(cr_opt) - 1; i >= 0; --i) {