GCC Middle and Back End API Reference
|
#include "bconfig.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "errors.h"
#include "read-md.h"
#include "gensupport.h"
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 (void) |
int | main (int argc, const char **argv) |
Variables | |
static int | saw_eh_return |
int main | ( | int | argc, |
const char ** | argv ) |
|
static |
Write out the complete conditions table, its size, and a flag indicating that gensupport.cc can now do insn elision.
References traverse_c_tests(), and write_one_condition().
Referenced by main().
|
static |
Generate the header for insn-conditions.c.
References saw_eh_return.
Referenced by main(), main(), and open_outfile().
|
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, md_reader::print_c_condition(), md_reader::print_md_ptr_loc(), and rtx_reader_ptr.
|
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-2024 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().