#include <stdbool.h>
#include "beinfo.h"
+#include "beirg.h"
#include "bearch.h"
#include "benode.h"
#include "besched.h"
*/
static void sched_edge_hook(FILE *F, const ir_node *irn)
{
- if (is_Proj(irn))
- return;
if (get_irn_irg(irn)->be_data == NULL)
return;
- if (sched_is_scheduled(irn) && sched_has_prev(irn) && !is_Block(irn)) {
- ir_node *prev = sched_prev(irn);
- fprintf(F, "edge:{sourcename: ");
- print_nodeid(F, irn);
- fprintf(F, " targetname: ");
- print_nodeid(F, prev);
- fprintf(F, " color:magenta}\n");
+ if (sched_is_scheduled(irn) && !is_Block(irn)) {
+ ir_node *const prev = sched_prev(irn);
+ if (!sched_is_begin(prev)) {
+ fprintf(F, "edge:{sourcename: ");
+ print_nodeid(F, irn);
+ fprintf(F, " targetname: ");
+ print_nodeid(F, prev);
+ fprintf(F, " color:magenta}\n");
+ }
}
}
void be_info_free(void)
{
if (!initialized)
- panic("be_info_free called without prior init");
+ panic("called without prior init");
assert(op_Phi->ops.copy_attr == new_phi_copy_attr);
op_Phi->ops.copy_attr = old_phi_copy_attr;
assert(op_Phi->ops.dump_node == be_dump_phi_reg_reqs);
op_Phi->ops.dump_node = NULL;
}
-
-int be_info_initialized(const ir_graph *irg)
-{
- (void) irg;
- return initialized;
-}