GCC Middle and Back End API Reference
print-rtl.c File Reference

Functions

static void print_rtx (const_rtx)
void print_mem_expr ()
static void print_rtx ()
void print_inline_rtx ()
DEBUG_FUNCTION void debug_rtx ()
DEBUG_FUNCTION void debug ()
DEBUG_FUNCTION void debug_rtx_list ()
DEBUG_FUNCTION void debug_rtx_range ()
DEBUG_FUNCTION const_rtx debug_rtx_find ()
void print_rtl ()
int print_rtl_single ()
int print_rtl_single_with_indent ()
void print_simple_rtl ()

Variables

static FILE * outfile
static int sawclose = 0
static int indent
const char * print_rtx_head = ""
int flag_dump_unnumbered = 0
int flag_dump_unnumbered_links = 0
int flag_simple = 0
DEBUG_VARIABLE int debug_rtx_count = 0

Function Documentation

DEBUG_FUNCTION void debug ( )
Dump rtx REF.   

References debug_rtx().

DEBUG_FUNCTION void debug_rtx ( )
Call this function from the debugger to see what X looks like.   

References outfile, print_rtx(), and sawclose.

Referenced by _fatal_insn(), debug(), debug_df_insn(), debug_dv(), debug_mem_addr_value(), debug_rtx_list(), debug_rtx_range(), make_insn_raw(), and verify_rtx_sharing().

DEBUG_FUNCTION const_rtx debug_rtx_find ( )
Call this function to search an rtx list to find one with insn uid UID,
   and then call debug_rtx_list to print it, using DEBUG_RTX_COUNT.
   The found insn is returned to enable further debugging analysis.   

References debug_rtx_list().

DEBUG_FUNCTION void debug_rtx_list ( )
Call this function to print list from X on.

   N is a count of the rtx's to print. Positive values print from the specified
   rtx on.  Negative values print a window around the rtx.
   EG: -5 prints 2 rtx's on either side (in addition to the specified rtx).   

References count, and debug_rtx().

Referenced by debug_rtx_find().

DEBUG_FUNCTION void debug_rtx_range ( )
Call this function to print an rtx list from START to END inclusive.   

References debug_rtx().

void print_mem_expr ( )
int print_rtl_single_with_indent ( )
Like print_rtl_single, except specify a file and indentation.   

References indent, memset(), outfile, print_rtx(), print_rtx_head, and sawclose.

Referenced by print_rtl_single().

static void print_rtx ( const_rtx  )
static
void print_simple_rtl ( )
Like print_rtl except without all the detail; for example,
   if RTX is a CONST_INT then print in decimal format.   

References flag_simple, and print_rtl().

Referenced by insert_part_to_rtx_on_edge(), insert_rtx_to_part_on_edge(), mark_reg_dependencies(), and replace_read().


Variable Documentation

DEBUG_VARIABLE int debug_rtx_count = 0
Count of rtx's to print with debug_rtx_list.
   This global exists because gdb user defined commands have no arguments.   
int flag_dump_unnumbered = 0
These are defined from the .opt file when not used in generator
   programs.   
Nonzero means suppress output of instruction numbers
   in debugging dumps.
   This must be defined here so that programs like gencodes can be linked.   

Referenced by dump_addr(), execute_cleanup_cfg_post_optimizing(), new_cselib_val(), print_rtx(), and rest_of_clean_state().

int flag_dump_unnumbered_links = 0
Nonzero means suppress output of instruction numbers for previous
   and next insns in debugging dumps.
   This must be defined here so that programs like gencodes can be linked.   

Referenced by print_rtx().

int flag_simple = 0
Nonzero means use simplified format without flags, modes, etc.   

Referenced by print_rtx(), and print_simple_rtl().

FILE* outfile
static
@verbatim Print RTL for GCC.

Copyright (C) 1987-2013 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

This file is compiled twice: once for the generator programs,
   once for the compiler.   
These headers all define things which are not available in
   generator programs.   

Referenced by debug_rtx(), print_inline_rtx(), print_rtl(), print_rtl_single_with_indent(), and print_rtx().

const char* print_rtx_head = ""
String printed at beginning of each RTL when it is dumped.
   This string is set to ASM_COMMENT_START when the RTL is dumped in
   the assembly output file.   

Referenced by final_scan_insn(), print_insn_with_notes(), print_pattern(), print_rtl(), print_rtl_single_with_indent(), and print_rtx().