X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firextbb.h;h=101a68a265940a16e49dd1a238baefe4d122cf59;hb=1b7d2c0224fb8403a7a0a76d5f6e4fe2b07adfef;hp=98d001f68f92d760d19f0f448308e66e7a593ff3;hpb=c021732d2f0c04113e6afd153a7a9be38e40ca6f;p=libfirm diff --git a/include/libfirm/irextbb.h b/include/libfirm/irextbb.h index 98d001f68..101a68a26 100644 --- a/include/libfirm/irextbb.h +++ b/include/libfirm/irextbb.h @@ -22,7 +22,6 @@ * @brief Extended basis block support. * @author Michael Beck * @date 5.2005 - * @version $Id$ */ #ifndef FIRM_ANA_IREXTBB_H #define FIRM_ANA_IREXTBB_H @@ -31,13 +30,6 @@ #include "execfreq.h" #include "begin.h" -/** Flags for extended basic block state. */ -typedef enum { - ir_extblk_info_none = 0, /**< No extended basic block information is constructed. Default. */ - ir_extblk_info_valid = 1, /**< Extended basic block information is valid. */ - ir_extblk_info_invalid = 2 /**< Extended basic block information is constructed but invalid. */ -} irg_extblk_info_state; - /* type of callback function for ir_graph walk */ #ifndef _EXTBB_WALK_FUNC_TYPEDEF_ #define _EXTBB_WALK_FUNC_TYPEDEF_ @@ -54,36 +46,36 @@ typedef void extbb_walk_func(ir_extblk *blk, void *env); * Checks whether a pointer points to a extended basic block. * Intern version for libFirm. */ -FIRM_DLL int is_ir_extbb(const void *thing); +FIRM_API int is_ir_extbb(const void *thing); /** * Compute the extended basic blocks for a graph. */ -FIRM_DLL void compute_extbb(ir_graph *irg); +FIRM_API void compute_extbb(ir_graph *irg); /** * Compute the extended basic blocks for a graph based on execution frequencies. */ -FIRM_DLL void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs); +FIRM_API void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs); /** * free all extended block info. */ -FIRM_DLL void free_extbb(ir_graph *irg); +FIRM_API void free_extbb(ir_graph *irg); /** * Return the extended block of a node. * * @param node the node */ -FIRM_DLL ir_extblk *get_nodes_extbb(const ir_node *node); +FIRM_API ir_extblk *get_nodes_extbb(const ir_node *node); /** * Gets the visited counter of an extended block. * * @param blk the extended basic block */ -FIRM_DLL ir_visited_t get_extbb_visited(const ir_extblk *blk); +FIRM_API ir_visited_t get_extbb_visited(const ir_extblk *blk); /** * Sets the visited counter of an extended block. @@ -91,7 +83,7 @@ FIRM_DLL ir_visited_t get_extbb_visited(const ir_extblk *blk); * @param blk the extended basic block * @param visited new value for the visited counter */ -FIRM_DLL void set_extbb_visited(ir_extblk *blk, ir_visited_t visited); +FIRM_API void set_extbb_visited(ir_extblk *blk, ir_visited_t visited); /** * Mark an extended block as visited in a graph. @@ -99,7 +91,7 @@ FIRM_DLL void set_extbb_visited(ir_extblk *blk, ir_visited_t visited); * * @param blk the extended basic block */ -FIRM_DLL void mark_extbb_visited(ir_extblk *blk); +FIRM_API void mark_extbb_visited(ir_extblk *blk); /** * Returns non-zero if an extended was visited. @@ -107,7 +99,7 @@ FIRM_DLL void mark_extbb_visited(ir_extblk *blk); * * @param blk the extended basic block */ -FIRM_DLL int extbb_visited(const ir_extblk *blk); +FIRM_API int extbb_visited(const ir_extblk *blk); /** * Returns non-zero if an extended block was NOT visited. @@ -115,14 +107,14 @@ FIRM_DLL int extbb_visited(const ir_extblk *blk); * * @param blk the extended basic block */ -FIRM_DLL int extbb_not_visited(const ir_extblk *blk); +FIRM_API int extbb_not_visited(const ir_extblk *blk); /** * Returns the link field of an extended block. * * @param blk the extended basic block */ -FIRM_DLL void *get_extbb_link(const ir_extblk *blk); +FIRM_API void *get_extbb_link(const ir_extblk *blk); /** * Sets the link field of an extended block. @@ -130,14 +122,14 @@ FIRM_DLL void *get_extbb_link(const ir_extblk *blk); * @param blk the extended basic block * @param link the new link value */ -FIRM_DLL void set_extbb_link(ir_extblk *blk, void *link); +FIRM_API void set_extbb_link(ir_extblk *blk, void *link); /** * Return the number of basic blocks of an extended block. * * @param blk the extended basic block */ -FIRM_DLL int get_extbb_n_blocks(const ir_extblk *blk); +FIRM_API int get_extbb_n_blocks(const ir_extblk *blk); /** * Return the i'th basic block of an extended block. @@ -145,14 +137,14 @@ FIRM_DLL int get_extbb_n_blocks(const ir_extblk *blk); * @param blk the extended basic block * @param pos the position */ -FIRM_DLL ir_node *get_extbb_block(const ir_extblk *blk, int pos); +FIRM_API ir_node *get_extbb_block(const ir_extblk *blk, int pos); /** * Return the leader basic block of an extended block. * * @param blk the extended basic block */ -FIRM_DLL ir_node *get_extbb_leader(const ir_extblk *blk); +FIRM_API ir_node *get_extbb_leader(const ir_extblk *blk); /** * Return the node number of an extended block. @@ -160,7 +152,7 @@ FIRM_DLL ir_node *get_extbb_leader(const ir_extblk *blk); * * @param blk the extended basic block */ -FIRM_DLL long get_extbb_node_nr(const ir_extblk *blk); +FIRM_API long get_extbb_node_nr(const ir_extblk *blk); /** * Walks only over Extended Basic Block nodes in the graph. @@ -172,12 +164,12 @@ FIRM_DLL long get_extbb_node_nr(const ir_extblk *blk); * visited * @param env - environment, passed to pre and post * - * This function Walks only over Block nodes in the graph. Has it's own visited + * This function Walks only over Block nodes in the graph. Has its own visited * flag, so that it can be interleaved with the other walker. * If a none block is passed, starts at the block this node belongs to. * If end is passed also visits kept alive blocks. Does not use the link field. */ -FIRM_DLL void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, +FIRM_API void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env); /** @@ -192,7 +184,7 @@ FIRM_DLL void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, * are visited * @param env - environment, passed to pre and post */ -FIRM_DLL void irg_extblock_walk_graph(ir_graph *irg, extbb_walk_func *pre, +FIRM_API void irg_extblock_walk_graph(ir_graph *irg, extbb_walk_func *pre, extbb_walk_func *post, void *env); #include "end.h"