X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fcdep.h;h=c1edc7340d09de2d246e9fdf8fcaa47524d76fd2;hb=f7a0dee11313faad6f2ff54edc8eaadabd03e433;hp=88bf8023ecb338e706db069284ed4a992f3d18dc;hpb=0c206cf66ead39ebfc0e2fc3f310e8a26af4a82a;p=libfirm diff --git a/include/libfirm/cdep.h b/include/libfirm/cdep.h index 88bf8023e..c1edc7340 100644 --- a/include/libfirm/cdep.h +++ b/include/libfirm/cdep.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -31,10 +31,9 @@ /** * An entry in the control dependence list. */ -typedef struct cdep cdep; -struct cdep { +struct ir_cdep { ir_node *node; /**< A node on which the current block is control dependent on. */ - cdep *next; /**< Link to the next one if any. */ + ir_cdep *next; /**< Link to the next one if any. */ }; /** Compute the control dependence graph for a graph. */ @@ -46,8 +45,11 @@ void free_cdep(ir_graph *irg); /** * Return a list of all control dependences of a block. */ -cdep *find_cdep(const ir_node *block); +ir_cdep *find_cdep(const ir_node *block); +/** + * Replace the control dependence info of old by the info of nw. + */ void exchange_cdep(ir_node *old, const ir_node *nw); /** @@ -74,7 +76,7 @@ int is_iterated_cdep_on(ir_node *dependee, ir_node *candidate); ir_node *get_unique_cdep(const ir_node *block); /** - * check if the given block is control dependent of more than one node. + * Check if the given block is control dependent of more than one node. * * @param block the block to check */