1 /* Declarations for rtx-reader support for gen* routines.
2 Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 #ifndef GCC_GENSUPPORT_H
22 #define GCC_GENSUPPORT_H
25 extern struct obstack
*rtl_obstack
;
27 extern int init_md_reader_args (int, char **);
28 extern int init_md_reader (const char *);
29 extern rtx
read_md_rtx (int *, int *);
31 extern void message_with_line (int, const char *, ...)
34 /* Set this to 0 to disable automatic elision of insn patterns which
35 can never be used in this configuration. See genconditions.c.
36 Must be set before calling init_md_reader. */
37 extern int insn_elision
;
39 /* If this is 1, the insn elision table doesn't even exist yet;
40 maybe_eval_c_test will always return -1. This is distinct from
41 insn_elision because genflags and gencodes need to see all the
42 patterns, but treat elided patterns differently. */
43 extern const int insn_elision_unavailable
;
45 /* If the C test passed as the argument can be evaluated at compile
46 time, return its truth value; else return -1. The test must have
47 appeared somewhere in the machine description when genconditions
49 extern int maybe_eval_c_test (const char *);
51 /* This table should not be accessed directly; use maybe_eval_c_test. */
58 extern const struct c_test insn_conditions
[];
59 extern const size_t n_insn_conditions
;
62 extern hashval_t
hash_c_test (const void *);
63 extern int cmp_c_test (const void *, const void *);
66 extern int n_comma_elts (const char *);
67 extern const char *scan_comma_elt (const char **);
69 #endif /* GCC_GENSUPPORT_H */