diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:46:02 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:46:02 +0000 |
commit | 7c1b10648edb10ed444a35953d00a4c182a24d56 (patch) | |
tree | e2b87b455362f2a157c821a15173804ce016cdac /gcc/gensupport.h | |
parent | 277caec07341a6478232f17baf47909957f66a85 (diff) | |
download | gcc-7c1b10648edb10ed444a35953d00a4c182a24d56.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.h')
-rw-r--r-- | gcc/gensupport.h | 4 |
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 |