X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firnode.h;h=7fca367605e100de871ba879704d12e3e36de54b;hb=3d61544bd177bdb8c880ee87f5cdad2b7d1606e5;hp=b96dd3986a40795634573e98351e2eaf359a6cd1;hpb=d217f68a9e53ec6e800ae31ca3af8ed8b6f9ece9;p=libfirm diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index b96dd3986..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); /** @@ -259,10 +264,6 @@ FIRM_API void set_Block_cfgpred(ir_node *block, int pos, ir_node *pred); * @param pred a predecessor block of block * * @return the position of pred in block or -1 - * - * @note When using the old extended basic block form for blocks - * with exception exists, a predecessor block might have more - * than one position. In that case it is not specified, with is returned. */ FIRM_API int get_Block_cfgpred_pos(const ir_node *block, const ir_node *pred); @@ -295,10 +296,6 @@ FIRM_API void mark_Block_block_visited(ir_node *node); /** Returns 1 if a block is marked as visited */ FIRM_API int Block_block_visited(const ir_node *node); -/** Returns the extended basic block a block belongs to. */ -FIRM_API ir_extblk *get_Block_extbb(const ir_node *block); -/** Sets the extended basic block a block belongs to. */ -FIRM_API void set_Block_extbb(ir_node *block, ir_extblk *extblk); /** Returns the ir_graph this Block belongs to. */ FIRM_API ir_graph *get_Block_irg(const ir_node *block); /** Returns the entity for a Block (creating it if necessary) */ @@ -602,11 +599,6 @@ FIRM_API int is_Cast_downcast(ir_node *node); * @{ */ -/** - * Returns 1 if irg in phase phase_building and the Phi has zero - * predecessors. It's a "Phi0" then. - */ -FIRM_API int is_Phi0(const ir_node *n); /** * Returns all phi predecessors as array */ @@ -847,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) */