cselib.c (cselib_current_insn_in_libcall): New static variable.
[official-gcc.git] / gcc / gensupport.h
blob8dbd0b70ea955374155acc45e139bd6daacbf73e
1 /* Declarations for rtx-reader support for gen* routines.
2 Copyright (C) 2000, 2002 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
9 version.
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
14 for more details.
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
19 02111-1307, USA. */
21 #ifndef GCC_GENSUPPORT_H
22 #define GCC_GENSUPPORT_H
24 struct obstack;
25 extern struct obstack *rtl_obstack;
27 extern int init_md_reader_args PARAMS ((int, char **));
28 extern int init_md_reader PARAMS ((const char *));
29 extern rtx read_md_rtx PARAMS ((int *, int *));
31 extern void message_with_line PARAMS ((int, const char *, ...))
32 ATTRIBUTE_PRINTF_2;
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
48 was run. */
49 extern int maybe_eval_c_test PARAMS ((const char *));
51 /* This table should not be accessed directly; use maybe_eval_c_test. */
52 struct c_test
54 const char *expr;
55 int value;
58 extern const struct c_test insn_conditions[];
59 extern const size_t n_insn_conditions;
61 #ifdef __HASHTAB_H__
62 extern hashval_t hash_c_test PARAMS ((const PTR));
63 extern int cmp_c_test PARAMS ((const PTR, const PTR));
64 #endif
66 extern int n_comma_elts PARAMS ((const char *));
67 extern const char *scan_comma_elt PARAMS ((const char **));
69 #endif /* GCC_GENSUPPORT_H */