RFC: support for multiple CFGs (necessary for the tree-profiling branch)
Richard Henderson
rth@redhat.com
Mon May 24 16:38:00 GMT 2004
On Sun, May 23, 2004 at 11:00:29PM +0200, Steven Bosscher wrote:
> +#define ENTRY_BLOCK_PTR(FN) ((FN)->cfg->entry_block_ptr)
> +#define EXIT_BLOCK_PTR(FN) ((FN)->cfg->exit_block_ptr)
> +#define BASIC_BLOCK_INFO(FN) ((FN)->cfg->basic_block_info)
> +#define N_BASIC_BLOCKS(FN) ((FN)->cfg->n_basic_blocks)
> +#define N_EDGES(FN) ((FN)->cfg->n_edges)
> +#define LAST_BASIC_BLOCK(FN) ((FN)->cfg->last_basic_block)
> +#define LABEL_TO_BLOCK_MAP(FN) ((FN)->cfg->label_to_block_map)
It would seem to be an easier change to imply cfun in these macros
and to use a separate set (or none at all) for the rare case of
having to access a different function's cfg.
r~
More information about the Gcc
mailing list