X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firnode.h;h=7fca367605e100de871ba879704d12e3e36de54b;hb=3d61544bd177bdb8c880ee87f5cdad2b7d1606e5;hp=7d7ca76ab2fecfbf33d0c17bd9f352631c083cb1;hpb=b4841b96869c6fbd61f4ae3931d3c69c6b33c2e0;p=libfirm diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index 7d7ca76ab..7fca36760 100644 --- a/include/libfirm/irnode.h +++ b/include/libfirm/irnode.h @@ -89,16 +89,12 @@ FIRM_API ir_node *get_irn_n(const ir_node *node, int n); FIRM_API void set_irn_in(ir_node *node, int arity, ir_node *in[]); /** - * Add a artificial dependency to the node. - * The dependency is only inserted if it is not there already. - * This is only allowed in phase_backend! + * Add an artificial dependency to the node. * * @param node The node. * @param dep The dependency target. - * - * @return The index in the array (get_irn_dep with that index returns @p dep). */ -FIRM_API int add_irn_dep(ir_node *node, ir_node *dep); +FIRM_API void add_irn_dep(ir_node *node, ir_node *dep); /** * Copy all dependencies from a node to another. @@ -132,6 +128,15 @@ FIRM_API ir_node *get_irn_dep(const ir_node *node, int pos); */ FIRM_API void set_irn_dep(ir_node *node, int pos, ir_node *dep); +/** + * Deletes the entry of the dependency array, that points to dep. Does nothing + * if no dependency exists. + * + * @param node the node to delete the dependency at + * @param dep the target of the dependency to delete + */ +FIRM_API void delete_irn_dep(ir_node *node, ir_node *dep); + /** Replaces the n-th predecessor of a node with a new one. */ FIRM_API void set_irn_n(ir_node *node, int n, ir_node *in); /** @@ -834,13 +839,6 @@ FIRM_API void set_irn_dbg_info(ir_node *n, dbg_info *db); */ FIRM_API dbg_info *get_irn_dbg_info(const ir_node *n); -/** - * Calculate a hash value of a node. Only inputs, mode and opcode are used. - * - * @param node the node to hash - */ -FIRM_API unsigned firm_default_hash(const ir_node *node); - /** * Returns a descriptive name of a node (containing type+number) */