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

Data Structures

struct  extraction
struct  code_ptr
struct  accum_extract

Typedefs

typedef char * locstr

Functions

static void walk_rtx (rtx, struct accum_extract *)
static void gen_insn ()
static void VEC_safe_set_locstr ()
static char * VEC_char_to_string ()
static void walk_rtx ()
static void print_path ()
static void print_header ()
int main ()

Variables

static struct extractionextractions
static struct code_ptrpeepholes
int line_no

Typedef Documentation

typedef char* locstr
@verbatim Generate code from machine description to extract operands from insn as rtl.

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 structure contains all the information needed to describe one
   set of extractions methods.  Each method may be used by more than
   one pattern if the operands are in the same place.

   The string for each operand describes that path to the operand and
   contains `0' through `9' when going into an expression and `a' through
   `z' when going into a vector.  We assume here that only the first operand
   of an rtl expression is a vector.  genrecog.c makes the same assumption
   (and uses the same representation) and it is currently true.   

Function Documentation

static void print_header ( )
static

Referenced by main().

static void print_path ( )
static
Given a PATH, representing a path down the instruction's
   pattern from the root to a certain point, output code to
   evaluate to the rtx at that point.   

References len, and strlen().

Referenced by main(), match_rtx(), and print_path().

static char* VEC_char_to_string ( )
static
Another helper subroutine of walk_rtx: given a vec<char>, convert it
   to a NUL-terminated string in malloc memory.   

References memcpy().

Referenced by walk_rtx().

static void VEC_safe_set_locstr ( )
static
Helper subroutine of walk_rtx: given a vec<locstr>, an index, and a
   string, insert the string at the index, which should either already
   exist and be NULL, or not yet exist within the vector.  In the latter
   case the vector is enlarged as appropriate.   

References have_error, line_no, and message_with_line().

Referenced by walk_rtx().

static void walk_rtx ( rtx  ,
struct accum_extract  
)
static
Forward declarations.   

Referenced by gen_insn(), and walk_rtx().


Variable Documentation

struct extraction* extractions
static
All extractions needed for this machine description.   

Referenced by gen_insn().

int line_no

Referenced by main(), and VEC_safe_set_locstr().

struct code_ptr* peepholes
static
All insn codes for old-style peepholes.   

Referenced by main().