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);
155 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
159 type = "op_pin_state",
160 initname = ".exc.pin_state",
161 init = "op_pin_state_pinned"
164 type = "ir_builtin_kind",
173 assert((get_unknown_type() == type) || is_Method_type(type));
176 # TODO: No firm_alloc_frag_arr??
180 ins = [ "mem", "ptr" ],
182 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
186 type = "op_pin_state",
187 initname = ".exc.pin_state",
188 init = "op_pin_state_pinned"
196 assert((get_unknown_type() == type) || is_Method_type(type));
199 #if PRECISE_EXC_CONTEXT
200 firm_alloc_frag_arr(res, op_Call, &res->attr.call.exc.frag_arr);
211 mode = "get_irn_mode(irn_op)",
218 init = "assert(is_atomic_type(type));"
223 outs = [ "False", "Eq", "Lt", "Le", "Gt", "Ge", "Lg", "Leg", "Uo", "Ue", "Ul", "Ule", "Ug", "Uge", "Ne", "True" ],
227 ins = [ "selector" ],
228 outs = [ "false", "true" ],
236 name = "default_proj",
242 type = "cond_jmp_predicate",
243 init = "COND_JMP_PRED_NONE"
249 ins = [ "value", "bound" ],
250 mode = "get_irn_mode(irn_value)",
287 ins = [ "mem", "dst", "src" ],
288 outs = [ "M", "X_regular", "X_except" ],
298 ins = [ "mem", "dividend", "divisor" ],
299 outs = [ "M", "X_regular", "X_except", "res" ],
300 attrs_name = "divmod",
308 type = "op_pin_state",
309 initname = ".exc.pin_state"
312 name = "no_remainder",
322 #if PRECISE_EXC_CONTEXT
323 firm_alloc_frag_arr(res, op_Div, &res->attr.except.frag_arr);
329 ins = [ "mem", "dividend", "divisor" ],
330 outs = [ "M", "X_regular", "X_except", "res_div", "res_mod" ],
331 attrs_name = "divmod",
339 type = "op_pin_state",
340 initname = ".exc.pin_state"
344 #if PRECISE_EXC_CONTEXT
345 firm_alloc_frag_arr(res, op_DivMod, &res->attr.except.frag_arr);
352 op_flags = "cfopcode",
364 ins = [ "mem", "ptr", "size" ],
373 type = "ir_where_alloc"
384 op_flags = "cfopcode",
391 op_flags = "cfopcode",
397 ins = [ "mem", "ptr" ],
398 outs = [ "M", "X_regular", "X_except", "res" ],
403 java_name = "load_mode"
408 type = "ir_cons_flags",
413 #if PRECISE_EXC_CONTEXT
414 firm_alloc_frag_arr(res, op_Load, &res->attr.load.exc.frag_arr);
424 ins = [ "mem", "dividend", "divisor" ],
425 outs = [ "M", "X_regular", "X_except", "res" ],
426 attrs_name = "divmod",
434 type = "op_pin_state",
435 initname = ".exc.pin_state"
439 #if PRECISE_EXC_CONTEXT
440 firm_alloc_frag_arr(res, op_Mod, &res->attr.except.frag_arr);
454 ins = [ "sel", "false", "true" ]
478 mode = "get_irn_mode(irn_op)"
493 ins = [ "mem", "dividend", "divisor" ],
494 outs = [ "M", "X_regular", "X_except", "res" ],
495 attrs_name = "divmod",
503 type = "op_pin_state",
504 initname = ".exc.pin_state"
508 #if PRECISE_EXC_CONTEXT
509 firm_alloc_frag_arr(res, op_Quot, &res->attr.except.frag_arr);
525 ins = [ "mem", "ptr" ],
527 mode = "is_Method_type(get_entity_type(entity)) ? mode_P_code : mode_P_data",
550 op_flags = "cfopcode",
557 ins = [ "mem", "ptr", "value" ],
558 outs = [ "M", "X_regular", "X_except" ],
561 type = "ir_cons_flags",
566 #if PRECISE_EXC_CONTEXT
567 firm_alloc_frag_arr(res, op_Store, &res->attr.store.exc.frag_arr);
601 block = "get_irg_start_block(irg)",