GCC Middle and Back End API Reference
gencodes.c File Reference
#include "bconfig.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "errors.h"
#include "gensupport.h"
Include dependency graph for gencodes.c:

Functions

static void gen_insn ()
int main ()

Function Documentation

static void gen_insn ( )
static

Generate from machine description:

  • some macros CODE_FOR_... giving the insn_code_number value for each of the defined standard insn names. 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/.

Don't mention instructions whose names are the null string or begin with '*'. They are in the machine description just to be recognized.

References maybe_eval_c_test(), and XSTR.

int main ( )

We need to see all the possibilities. Elided insns may have direct references to CODE_FOR_xxx in C code.

 Read the machine description.