13 ins = [ "left", "right" ]
28 ins = [ "mem", "size" ],
29 outs = [ "M", "X_regular", "X_except", "res" ],
33 type = "op_pin_state",
34 initname = ".exc.pin_state",
35 init = "op_pin_state_pinned"
43 type = "ir_where_alloc"
47 #if PRECISE_EXC_CONTEXT
48 firm_alloc_frag_arr(res, op_Alloc, &res->attr.alloc.exc.frag_arr);
55 ins = [ "end_block", "start_block", "end", "start",
56 "end_reg", "end_except", "initial_exec",
57 "frame", "tls", "initial_mem", "args",
81 /* macroblock header */
84 res->attr.block.is_dead = 0;
85 res->attr.block.is_mb_head = 1;
86 res->attr.block.has_label = 0;
87 res->attr.block.irg = irg;
88 res->attr.block.backedge = new_backedge_arr(irg->obst, arity);
89 res->attr.block.in_cg = NULL;
90 res->attr.block.cg_backedge = NULL;
91 res->attr.block.extblk = NULL;
92 res->attr.block.mb_depth = 0;
93 res->attr.block.label = 0;
95 set_Block_matured(res, 1);
96 set_Block_block_visited(res, 0);
105 /* Create and initialize array for Phi-node construction. */
106 if (get_irg_phase_state(current_ir_graph) == phase_building) {
107 res->attr.block.graph_arr = NEW_ARR_D(ir_node *, current_ir_graph->obst,
108 current_ir_graph->n_loc);
109 memset(res->attr.block.graph_arr, 0, sizeof(ir_node *)*current_ir_graph->n_loc);
112 for (i = arity - 1; i >= 0; i--)
113 if (is_Unknown(in[i])) {
118 if (!has_unknown) res = optimize_node(res);
120 current_ir_graph->current_block = res;
122 IRN_VRFY_IRG(res, current_ir_graph);
126 public void addPred(Node node) {
127 binding_cons.add_immBlock_pred(ptr, node.ptr);
130 public void mature() {
131 binding_cons.mature_immBlock(ptr);
135 public Block getBlock() {
139 public boolean blockVisited() {
140 return 0 != binding.Block_block_visited(ptr);
143 public void markBlockVisited() {
144 binding.mark_Block_block_visited(ptr);
159 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
163 type = "op_pin_state",
164 initname = ".exc.pin_state",
165 init = "op_pin_state_pinned"
168 type = "ir_builtin_kind",
177 assert((get_unknown_type() == type) || is_Method_type(type));
180 # TODO: No firm_alloc_frag_arr??
184 ins = [ "mem", "ptr" ],
186 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
190 type = "op_pin_state",
191 initname = ".exc.pin_state",
192 init = "op_pin_state_pinned"
200 assert((get_unknown_type() == type) || is_Method_type(type));
203 #if PRECISE_EXC_CONTEXT
204 firm_alloc_frag_arr(res, op_Call, &res->attr.call.exc.frag_arr);
215 mode = "get_irn_mode(irn_op)",
222 init = "assert(is_atomic_type(type));"
227 outs = [ "False", "Eq", "Lt", "Le", "Gt", "Ge", "Lg", "Leg", "Uo", "Ue", "Ul", "Ule", "Ug", "Uge", "Ne", "True" ],
231 ins = [ "selector" ],
232 outs = [ "false", "true" ],
240 name = "default_proj",
246 type = "cond_jmp_predicate",
247 init = "COND_JMP_PRED_NONE"
253 ins = [ "value", "bound" ],
254 mode = "get_irn_mode(irn_value)",
291 ins = [ "mem", "dst", "src" ],
292 outs = [ "M", "X_regular", "X_except" ],
296 type = "op_pin_state",
297 initname = ".exc.pin_state",
298 init = "op_pin_state_pinned"
308 ins = [ "mem", "dividend", "divisor" ],
309 outs = [ "M", "X_regular", "X_except", "res" ],
310 attrs_name = "divmod",
318 type = "op_pin_state",
319 initname = ".exc.pin_state"
322 name = "no_remainder",
332 #if PRECISE_EXC_CONTEXT
333 firm_alloc_frag_arr(res, op_Div, &res->attr.except.frag_arr);
339 ins = [ "mem", "dividend", "divisor" ],
340 outs = [ "M", "X_regular", "X_except", "res_div", "res_mod" ],
341 attrs_name = "divmod",
349 type = "op_pin_state",
350 initname = ".exc.pin_state"
354 #if PRECISE_EXC_CONTEXT
355 firm_alloc_frag_arr(res, op_DivMod, &res->attr.except.frag_arr);
362 op_flags = "cfopcode",
382 # TODO: Broken asserts in original:
383 # assert(get_Proj_pred(res));
384 # assert(get_nodes_block(get_Proj_pred(res)));
388 ins = [ "mem", "ptr", "size" ],
397 type = "ir_where_alloc"
408 op_flags = "cfopcode",
415 op_flags = "cfopcode",
421 ins = [ "mem", "ptr" ],
422 outs = [ "M", "X_regular", "X_except", "res" ],
427 java_name = "load_mode"
432 type = "ir_cons_flags",
437 #if PRECISE_EXC_CONTEXT
438 firm_alloc_frag_arr(res, op_Load, &res->attr.load.exc.frag_arr);
448 ins = [ "mem", "dividend", "divisor" ],
449 outs = [ "M", "X_regular", "X_except", "res" ],
450 attrs_name = "divmod",
458 type = "op_pin_state",
459 initname = ".exc.pin_state"
463 #if PRECISE_EXC_CONTEXT
464 firm_alloc_frag_arr(res, op_Mod, &res->attr.except.frag_arr);
478 ins = [ "sel", "false", "true" ]
502 mode = "get_irn_mode(irn_op)"
517 ins = [ "mem", "dividend", "divisor" ],
518 outs = [ "M", "X_regular", "X_except", "res" ],
519 attrs_name = "divmod",
527 type = "op_pin_state",
528 initname = ".exc.pin_state"
532 #if PRECISE_EXC_CONTEXT
533 firm_alloc_frag_arr(res, op_Quot, &res->attr.except.frag_arr);
549 ins = [ "mem", "ptr" ],
551 mode = "is_Method_type(get_entity_type(entity)) ? mode_P_code : mode_P_data",
574 op_flags = "cfopcode",
581 ins = [ "mem", "ptr", "value" ],
582 outs = [ "M", "X_regular", "X_except" ],
585 type = "ir_cons_flags",
590 #if PRECISE_EXC_CONTEXT
591 firm_alloc_frag_arr(res, op_Store, &res->attr.store.exc.frag_arr);
625 block = "get_irg_start_block(irg)",