X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firnode.h;h=ec26feb53a42cd1bf3cdc90a35ef0c1bfea08d1d;hb=2807bb5b1ed34c23dc30d228ab0686c6fc9d6ae3;hp=ad75c6366b09f0a7eb9052dafc214394f0b40bf8;hpb=abbf9492df1993d211412ba520feb81de0688c2a;p=libfirm diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index ad75c6366..ec26feb53 100644 --- a/include/libfirm/irnode.h +++ b/include/libfirm/irnode.h @@ -499,9 +499,6 @@ void set_Const_type(ir_node *node, ir_type *tp); /** Returns non-zero if s symconst kind has a type attribute */ #define SYMCONST_HAS_TYPE(kind) ((kind) <= symconst_type_align) -/** Returns non-zero if s symconst kind has an ident attribute */ -#define SYMCONST_HAS_ID(kind) ((kind) == symconst_addr_name) - /** Returns non-zero if s symconst kind has an entity attribute */ #define SYMCONST_HAS_ENT(kind) ((kind) == symconst_addr_ent || (kind) == symconst_ofs_ent) @@ -517,10 +514,6 @@ void set_SymConst_kind(ir_node *node, symconst_kind num); ir_type *get_SymConst_type(const ir_node *node); void set_SymConst_type(ir_node *node, ir_type *tp); -/** Only to access SymConst of kind addr_name. Else assertion: */ -ident *get_SymConst_name(const ir_node *node); -void set_SymConst_name(ir_node *node, ident *name); - /** Only to access SymConst of kind addr_ent. Else assertion: */ ir_entity *get_SymConst_entity(const ir_node *node); void set_SymConst_entity(ir_node *node, ir_entity *ent); @@ -976,8 +969,8 @@ typedef enum { ir_node *get_Alloc_mem(const ir_node *node); void set_Alloc_mem(ir_node *node, ir_node *mem); -ir_node *get_Alloc_size(const ir_node *node); -void set_Alloc_size(ir_node *node, ir_node *size); +ir_node *get_Alloc_count(const ir_node *node); +void set_Alloc_count(ir_node *node, ir_node *count); ir_type *get_Alloc_type(ir_node *node); void set_Alloc_type(ir_node *node, ir_type *tp); @@ -1311,8 +1304,9 @@ int is_irn_forking(const ir_node *node); /** * Copies all attributes stored in the old node to the new node. * Assumes both have the same opcode and sufficient size. + * @param irg The irg of the new_node (get_irn_irg on it might not work yet) */ -void copy_node_attr(const ir_node *old_node, ir_node *new_node); +void copy_node_attr(ir_graph *irg, const ir_node *old_node, ir_node *new_node); /** Return the type associated with the value produced by n * if the node remarks this type as it is the case for