projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make new_type() static.
[libfirm]
/
ir
/
opt
/
combo.c
diff --git
a/ir/opt/combo.c
b/ir/opt/combo.c
index
505e24b
..
a56ec0a
100644
(file)
--- a/
ir/opt/combo.c
+++ b/
ir/opt/combo.c
@@
-544,7
+544,7
@@
static listmap_entry_t *listmap_find(listmap_t *map, void *id)
key.id = id;
key.list = NULL;
key.next = NULL;
key.id = id;
key.list = NULL;
key.next = NULL;
- entry = (listmap_entry_t*)set_insert(map->map, &key, sizeof(key),
HASH_PTR
(id));
+ entry = (listmap_entry_t*)set_insert(map->map, &key, sizeof(key),
hash_ptr
(id));
if (entry->list == NULL) {
/* a new entry, put into the list */
if (entry->list == NULL) {
/* a new entry, put into the list */
@@
-571,7
+571,7
@@
static unsigned opcode_hash(const opcode_key_t *entry)
unsigned hash = (unsigned)(PTR_TO_INT(mode) * 9 + code) + get_irn_arity(n);
if (code == iro_Const)
unsigned hash = (unsigned)(PTR_TO_INT(mode) * 9 + code) + get_irn_arity(n);
if (code == iro_Const)
- hash ^= (unsigned)
HASH_PTR
(get_Const_tarval(n));
+ hash ^= (unsigned)
hash_ptr
(get_Const_tarval(n));
else if (code == iro_Proj)
hash += (unsigned)get_Proj_proj(n);
return hash;
else if (code == iro_Proj)
hash += (unsigned)get_Proj_proj(n);
return hash;
@@
-3463,8
+3463,8
@@
static void set_compute_functions(void)
size_t i, n;
/* set the default compute function */
size_t i, n;
/* set the default compute function */
- for (i = 0, n =
get_irp
_n_opcodes(); i < n; ++i) {
- ir_op *op =
get_irp
_opcode(i);
+ for (i = 0, n =
ir_get
_n_opcodes(); i < n; ++i) {
+ ir_op *op =
ir_get
_opcode(i);
op->ops.generic = (op_func)default_compute;
}
op->ops.generic = (op_func)default_compute;
}