iropt.c */
res->ent = NULL;
res->frame_type = NULL;
- res->initial_mem = new_Proj (res->start, mode_M, pn_Start_M);
res->start_block = new_immBlock ();
res->end_block = new_immBlock ();
res->end = new_End ();
mature_immBlock(get_cur_block()); /* mature the end block */
res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL);
res->start = new_Start ();
+ res->initial_mem = new_Proj (res->start, mode_M, pn_Start_M);
/* Proj results of start node */
projX = new_Proj (res->start, mode_X, pn_Start_X_initial_exec);
(inc_irg_block_visited)(ir_graph *irg) {
__inc_irg_block_visited(irg);
}
+
+/* is irg a pseudo graph for analysis? */
+int is_pseudo_ir_graph(ir_graph *irg)
+{
+ int res = false;
+ entity *ent;
+
+ assert(irg && "nothing here");
+ assert(is_ir_graph(irg) && "no ir_graph given");
+
+ ent = get_irg_entity(irg);
+ if(visibility_external_allocated == get_entity_visibility(ent)
+ && peculiarity_existent == get_entity_peculiarity(ent)) {
+ res = true;
+ }
+ return(res);
+}