/* the second Proj might be a fallthrough */
if (can_be_fallthrough(proj_false)) {
- ia32_emitf(proj_false, "\t/* fallthrough to %L */\n");
+ if (be_options.verbose_asm)
+ ia32_emitf(proj_false, "\t/* fallthrough to %L */\n");
} else {
ia32_emitf(proj_false, "\tjmp %L\n");
}
{
/* we have a block schedule */
if (can_be_fallthrough(node)) {
- ia32_emitf(node, "\t/* fallthrough to %L */\n");
+ if (be_options.verbose_asm)
+ ia32_emitf(node, "\t/* fallthrough to %L */\n");
} else {
ia32_emitf(node, "\tjmp %L\n");
}
{
ir_graph *irg = current_ir_graph;
int need_label = block_needs_label(block);
- ir_exec_freq *exec_freq = be_get_irg_exec_freq(irg);
- int arity;
if (block == get_irg_end_block(irg))
return;
}
}
- if (need_label) {
- be_gas_emit_block_name(block);
- be_emit_char(':');
-
- be_emit_pad_comment();
- be_emit_cstring(" /* ");
- } else {
- be_emit_cstring("\t/* ");
- be_gas_emit_block_name(block);
- be_emit_cstring(": ");
- }
-
- be_emit_cstring("preds:");
-
- /* emit list of pred blocks in comment */
- arity = get_irn_arity(block);
- if (arity <= 0) {
- be_emit_cstring(" none");
- } else {
- int i;
- for (i = 0; i < arity; ++i) {
- ir_node *predblock = get_Block_cfgpred_block(block, i);
- be_emit_irprintf(" %d", get_irn_node_nr(predblock));
- }
- }
- if (exec_freq != NULL) {
- be_emit_irprintf(", freq: %f",
- get_block_execfreq(exec_freq, block));
- }
- be_emit_cstring(" */\n");
- be_emit_write_line();
+ be_gas_begin_block(block, need_label);
}
/**
parameter_dbg_info_t *infos;
int i, n;
- isa = (ia32_isa_t*) arch_env;
- do_pic = be_get_irg_options(irg)->pic;
+ isa = (ia32_isa_t*) arch_env;
+ do_pic = be_options.pic;
be_gas_elf_type_char = '@';