13 ins = [ "left", "right" ]
28 ins = [ "mem", "size" ],
29 outs = [ "M", "X_regular", "X_except", "res" ],
37 type = "ir_where_alloc"
41 pinned_init = "pinned",
43 #if PRECISE_EXC_CONTEXT
44 firm_alloc_frag_arr(res, op_Alloc, &res->attr.alloc.exc.frag_arr);
74 /* macroblock header */
77 res->attr.block.is_dead = 0;
78 res->attr.block.is_mb_head = 1;
79 res->attr.block.has_label = 0;
80 res->attr.block.irg = irg;
81 res->attr.block.backedge = new_backedge_arr(irg->obst, arity);
82 res->attr.block.in_cg = NULL;
83 res->attr.block.cg_backedge = NULL;
84 res->attr.block.extblk = NULL;
85 res->attr.block.mb_depth = 0;
86 res->attr.block.label = 0;
88 set_Block_matured(res, 1);
89 set_Block_block_visited(res, 0);
98 /* Create and initialize array for Phi-node construction. */
99 if (get_irg_phase_state(current_ir_graph) == phase_building) {
100 res->attr.block.graph_arr = NEW_ARR_D(ir_node *, current_ir_graph->obst,
101 current_ir_graph->n_loc);
102 memset(res->attr.block.graph_arr, 0, sizeof(ir_node *)*current_ir_graph->n_loc);
105 for (i = arity - 1; i >= 0; i--)
106 if (is_Unknown(in[i])) {
111 if (!has_unknown) res = optimize_node(res);
113 current_ir_graph->current_block = res;
115 IRN_VRFY_IRG(res, current_ir_graph);
119 public void addPred(Node node) {
120 binding_cons.add_immBlock_pred(ptr, node.ptr);
123 public void mature() {
124 binding_cons.mature_immBlock(ptr);
128 public Block getBlock() {
132 public boolean blockVisited() {
133 return 0 != binding.Block_block_visited(ptr);
136 public void markBlockVisited() {
137 binding.mark_Block_block_visited(ptr);
146 ins = [ "mem", "index", "lower", "upper" ],
147 outs = [ "M", "X_regular", "X_except", "res" ],
148 pinned = "exception",
149 pinned_init = "pinned",
151 #if PRECISE_EXC_CONTEXT
152 firm_alloc_frag_arr(res, op_Bound, &res->attr.bound.exc.frag_arr);
165 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
168 type = "ir_builtin_kind",
177 pinned_init = "pinned",
179 assert((get_unknown_type() == type) || is_Method_type(type));
182 # TODO: No firm_alloc_frag_arr??
186 ins = [ "mem", "ptr" ],
188 outs = [ "M_regular", "X_regular", "X_except", "T_result", "M_except", "P_value_res_base" ],
196 pinned_init = "pinned",
198 assert((get_unknown_type() == type) || is_Method_type(type));
201 #if PRECISE_EXC_CONTEXT
202 firm_alloc_frag_arr(res, op_Call, &res->attr.call.exc.frag_arr);
213 mode = "get_irn_mode(irn_op)",
220 init = "assert(is_atomic_type(type));"
225 outs = [ "False", "Eq", "Lt", "Le", "Gt", "Ge", "Lg", "Leg", "Uo", "Ue", "Ul", "Ule", "Ug", "Uge", "Ne", "True" ],
229 ins = [ "selector" ],
230 outs = [ "false", "true" ],
238 name = "default_proj",
244 type = "cond_jmp_predicate",
245 init = "COND_JMP_PRED_NONE"
251 ins = [ "value", "bound" ],
252 mode = "get_irn_mode(irn_value)",
289 ins = [ "mem", "dst", "src" ],
290 outs = [ "M", "X_regular", "X_except" ],
298 pinned_init = "pinned",
300 #if PRECISE_EXC_CONTEXT
301 firm_alloc_frag_arr(res, op_CopyB, &res->attr.copyb.exc.frag_arr);
307 ins = [ "mem", "dividend", "divisor" ],
308 outs = [ "M", "X_regular", "X_except", "res" ],
309 attrs_name = "divmod",
316 name = "no_remainder",
325 pinned = "exception",
327 #if PRECISE_EXC_CONTEXT
328 firm_alloc_frag_arr(res, op_Div, &res->attr.except.frag_arr);
334 ins = [ "mem", "dividend", "divisor" ],
335 outs = [ "M", "X_regular", "X_except", "res_div", "res_mod" ],
336 attrs_name = "divmod",
343 pinned = "exception",
345 #if PRECISE_EXC_CONTEXT
346 firm_alloc_frag_arr(res, op_DivMod, &res->attr.except.frag_arr);
353 op_flags = "cfopcode",
373 # TODO: Broken asserts in original:
374 # assert(get_Proj_pred(res));
375 # assert(get_nodes_block(get_Proj_pred(res)));
379 ins = [ "mem", "ptr", "size" ],
388 type = "ir_where_alloc"
399 op_flags = "cfopcode",
405 ins = [ "store", "objptr" ],
406 outs = [ "M", "X_regular", "X_except", "res", "M_except" ],
414 pinned_init = "floats",
419 op_flags = "cfopcode",
425 ins = [ "mem", "ptr" ],
426 outs = [ "M", "X_regular", "X_except", "res" ],
431 java_name = "load_mode"
436 type = "ir_cons_flags",
441 #if PRECISE_EXC_CONTEXT
442 firm_alloc_frag_arr(res, op_Load, &res->attr.load.exc.frag_arr);
452 ins = [ "mem", "dividend", "divisor" ],
453 outs = [ "M", "X_regular", "X_except", "res" ],
454 attrs_name = "divmod",
461 pinned = "exception",
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",
526 pinned = "exception",
528 #if PRECISE_EXC_CONTEXT
529 firm_alloc_frag_arr(res, op_Quot, &res->attr.except.frag_arr);
535 ins = [ "mem", "exo_ptr" ],
550 ins = [ "mem", "ptr" ],
552 mode = "is_Method_type(get_entity_type(entity)) ? mode_P_code : mode_P_data",
575 op_flags = "cfopcode",
582 ins = [ "mem", "ptr", "value" ],
583 outs = [ "M", "X_regular", "X_except" ],
586 type = "ir_cons_flags",
591 #if PRECISE_EXC_CONTEXT
592 firm_alloc_frag_arr(res, op_Store, &res->attr.store.exc.frag_arr);
626 block = "get_irg_start_block(irg)",