GCC Middle and Back End API Reference
gengenrtl.c File Reference

Data Structures

struct  rtx_definition

Functions

static const char * type_from_format ()
static const char * accessor_from_format ()
static int special_format ()
static int special_rtx ()
static int excluded_rtx ()
static void find_formats ()
static void genmacro ()
static void gendef ()
static void genlegend ()
static void genheader ()
int main ()

Variables

static struct rtx_definition defs []
static const char * formats [NUM_RTX_CODE]

Function Documentation

static const char* accessor_from_format ( )
static
Decode a format letter into the proper accessor function.   

Referenced by gendef().

static int excluded_rtx ( )
static
Return nonzero if the RTL code given by index IDX is one that we should
   generate no macro for at all (because gen_rtx_FOO is never used or
   cannot have the obvious interface).   

References rtx_definition::enumname.

Referenced by genmacro().

static void find_formats ( )
static
Place a list of all format specifiers we use into the array FORMAT.   

References rtx_definition::format, formats, NUM_RTX_CODE, and special_format().

Referenced by main().

static void gendef ( )
static
Generate the code for the function to generate RTL whose
   format is FORMAT.   

References accessor_from_format(), and type_from_format().

Referenced by genheader().

static void genheader ( )
static
Generate the text of the header file we make, genrtl.h.   

References rtx_definition::format, formats, gendef(), genmacro(), NUM_RTX_CODE, and special_format().

Referenced by main().

static void genlegend ( )
static
Generate the documentation header for files we write.   

Referenced by main().

static void genmacro ( )
static
Generate macros to generate RTL of code IDX using the functions we
   write.   

References rtx_definition::enumname, excluded_rtx(), rtx_definition::format, and special_rtx().

Referenced by genheader().

int main ( )
This is the main program.   

References find_formats(), genheader(), and genlegend().

static int special_format ( )
static
Return nonzero if we should ignore FMT, an RTL format, when making
   the list of formats we write routines to create.   

Referenced by find_formats(), and genheader().

static int special_rtx ( )
static
Return nonzero if the RTL code given by index IDX is one that we should
   generate a gen_rtx_raw_FOO macro for, not gen_rtx_FOO (because gen_rtx_FOO
   is a wrapper in emit-rtl.c).   

References rtx_definition::enumname.

Referenced by genmacro().

static const char* type_from_format ( )
static
Decode a format letter into a C type string.   

Referenced by gendef().


Variable Documentation

struct rtx_definition defs[]
static
Initial value:
{
#include "rtl.def"
}
const char* formats[NUM_RTX_CODE]
static

Referenced by find_formats(), and genheader().