summaryrefslogtreecommitdiff
path: root/gcc/gensupport.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-08-05 15:46:02 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-08-05 15:46:02 +0000
commitd1427a17a7d98f096ee0b199ef8caf993c8f2e0e (patch)
treee2b87b455362f2a157c821a15173804ce016cdac /gcc/gensupport.h
parentba0ee63dfe37e08aef608039525304e919c18187 (diff)
gensupport.h (get_c_test): Declare.
gcc/ * gensupport.h (get_c_test): Declare. * gensupport.c (get_c_test): New function. * genconditions.c (main): Use it. * genrecog.c (validate_pattern): Likewise. (match_pattern_1): Likewise. Remove c_test argument. (match_pattern): Update accordingly and remove c_test argument. (main): Update accordingly. From-SVN: r226634
Diffstat (limited to 'gcc/gensupport.h')
-rw-r--r--gcc/gensupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gensupport.h b/gcc/gensupport.h
index c37ec367c53..a15c36a1016 100644
--- a/gcc/gensupport.h
+++ b/gcc/gensupport.h
@@ -50,6 +50,10 @@ extern unsigned int get_num_insn_codes ();
Must be set before calling init_md_reader. */
extern int insn_elision;
+/* Return the C test that says whether a definition rtx can be used,
+ or "" if it can be used unconditionally. */
+extern const char *get_c_test (rtx);
+
/* If the C test passed as the argument can be evaluated at compile
time, return its truth value; else return -1. The test must have
appeared somewhere in the machine description when genconditions