GCC Middle and Back End API Reference
|
Functions | |
static void | write_header (void) |
static void | write_conditions (void) |
static int | write_one_condition (void **, void *) |
static int | write_one_condition (void **slot, void *ARG_UNUSED(dummy)) |
static void | write_writer () |
int | main () |
Variables | |
static int | saw_eh_return |
int main | ( | ) |
References add_c_test(), init_rtx_reader_args(), pattern_lineno, progname, read_md_rtx(), saw_eh_return, write_conditions(), write_header(), and write_writer().
|
static |
Write out the complete conditions table, its size, and a flag indicating that gensupport.c can now do insn elision.
References traverse_c_tests(), and write_one_condition().
Referenced by main().
|
static |
|
static |
Referenced by write_conditions().
|
static |
Write out one entry in the conditions table, using the data pointed to by SLOT. Each entry looks like this: { "! optimize_size && ! TARGET_READ_MODIFY_WRITE", __builtin_constant_p (! optimize_size && ! TARGET_READ_MODIFY_WRITE) ? (int) (! optimize_size && ! TARGET_READ_MODIFY_WRITE) : -1) },
References c_test::expr, print_c_condition(), and print_md_ptr_loc().
|
static |
Emit code which will convert the C-format table to a (define_conditions) form, which the MD reader can understand. The result will be added to the set of files scanned by 'downstream' generators.
Referenced by main().
|
static |
Process machine description and calculate constant conditions. Copyright (C) 2001-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/>.
In a machine description, all of the insn patterns - define_insn, define_expand, define_split, define_peephole, define_peephole2 - contain an optional C expression which makes the final decision about whether or not this pattern is usable. That expression may turn out to be always false when the compiler is built. If it is, most of the programs that generate code from the machine description can simply ignore the entire pattern.
so we can include except.h in the generated file.
Referenced by main(), and write_header().