X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbejavacoal.h;h=28d1305676eaaac9654c1cfd05cb13c88bddfd41;hb=4ed245f5007168dab7850942a7ee6b6b29a19817;hp=f6f9c7a07a61117ce19def189f8870c704b0549a;hpb=904ce4d595c733b7fdfe19a3245fa115f5c1d97f;p=libfirm diff --git a/ir/be/bejavacoal.h b/ir/be/bejavacoal.h index f6f9c7a07..28d130567 100644 --- a/ir/be/bejavacoal.h +++ b/ir/be/bejavacoal.h @@ -2,8 +2,8 @@ #ifndef _BEJAVACOAL_H #define _BEJAVACOAL_H -struct _java_coal_t; -typedef struct _java_coal_t java_coal_t; +struct _be_java_coal_t; +typedef struct _be_java_coal_t be_java_coal_t; #ifdef WITH_LIBCORE @@ -15,7 +15,7 @@ typedef struct _java_coal_t java_coal_t; /** * Register libcore options. */ -void java_coal_register_options(lc_opt_entry_t *grp); +void be_java_coal_register_options(lc_opt_entry_t *grp); #endif /* WITH_LIBCORE */ @@ -24,7 +24,7 @@ void java_coal_register_options(lc_opt_entry_t *grp); * @param n first node id. * @param m second node id. */ -void java_coal_add_int_edge(java_coal_t *c, int n, int m); +void be_java_coal_add_int_edge(be_java_coal_t *c, int n, int m); /** * Add an affinity edge. @@ -32,14 +32,14 @@ void java_coal_add_int_edge(java_coal_t *c, int n, int m); * @param m second node id. * @param costs Costs for the edge. */ -void java_coal_add_aff_edge(java_coal_t *c, int n, int m, int costs); +void be_java_coal_add_aff_edge(be_java_coal_t *c, int n, int m, int costs); /** * Set the color of a node. * @param n The node. * @param col The color. */ -void java_coal_set_color(java_coal_t *c, int n, int col); +void be_java_coal_set_color(be_java_coal_t *c, int n, int col); /** * Forbid a color for a node. @@ -47,25 +47,25 @@ void java_coal_set_color(java_coal_t *c, int n, int col); * @param n The node. * @param col The color. */ -void java_coal_forbid_color(java_coal_t *c, int n, int col); +void be_java_coal_forbid_color(be_java_coal_t *c, int n, int col); /** * Start the coalescing. */ -void java_coal_coalesce(java_coal_t *c); +void be_java_coal_coalesce(be_java_coal_t *c); /** * Dump the graph into a dot file. * @param fn Filename to dump to. */ -void java_coal_dump(java_coal_t *c, const char *fn); +void be_java_coal_dump(be_java_coal_t *c, const char *fn); /** * Get the color of a node. * @param n The node. * @return The color of the node. */ -int java_coal_get_color(java_coal_t *c, int n); +int be_java_coal_get_color(be_java_coal_t *c, int n); /** * Init the JAVA coalescer. @@ -75,12 +75,11 @@ int java_coal_get_color(java_coal_t *c, int n); * @param dbg_level Te debug level for the coalescer. 0 means quiet. >0 more verbose. * @return The coalescing object. */ -java_coal_t *java_coal_init(const char *graph_name, int n_nodes, int n_regs, int dbg_level); +be_java_coal_t *be_java_coal_init(const char *graph_name, int n_nodes, int n_regs, int dbg_level); /** * Destroy the coalescing object. */ -void java_coal_destroy(java_coal_t *c); - +void be_java_coal_destroy(be_java_coal_t *c); #endif