GCC Middle and Back End API 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 extraction * | extractions |
static struct code_ptr * | peepholes |
int | line_no |
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.
|
static |
References extraction::dup_count, extraction::duplocs, accum_extract::duplocs, extraction::dupnums, accum_extract::dupnums, extractions, code_ptr::insn_code, insn_code_number, extraction::insns, memcpy(), extraction::next, code_ptr::next, extraction::op_count, extraction::oplocs, accum_extract::oplocs, accum_extract::pathstr, and walk_rtx().
Referenced by main().
int main | ( | ) |
References extraction::dup_count, extraction::duplocs, extraction::dupnums, gen_insn(), get_insn_name(), have_error, init_rtx_reader_args(), code_ptr::insn_code, insn_code_number, extraction::insns, line_no, extraction::next, code_ptr::next, extraction::op_count, extraction::oplocs, peepholes, print_header(), print_path(), progname, and read_md_rtx().
|
static |
Referenced by main().
|
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.
Referenced by main(), match_rtx(), and print_path().
|
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 |
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 |
Forward declarations.
Referenced by gen_insn(), and walk_rtx().
|
static |
|
static |
All extractions needed for this machine description.
Referenced by gen_insn().
int line_no |
Referenced by main(), and VEC_safe_set_locstr().