diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-12 12:46:08 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-12 12:46:08 +0000 |
commit | 6357eaae5779649838519220018bd3f912036f24 (patch) | |
tree | c2582159a30e1f83f4d7b7bcd2806fb8331123b2 /gcc/recog.h | |
parent | c23a82fe96b6e0344496b8c5d928989cb76f0bc5 (diff) | |
download | gcc-6357eaae5779649838519220018bd3f912036f24.tar.gz |
Replace insn_foo with insn_data.foo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.h')
-rw-r--r-- | gcc/recog.h | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/gcc/recog.h b/gcc/recog.h index 55ddb29c26a..0d4cc977cf5 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -181,40 +181,47 @@ extern struct operand_alternative recog_op_alt[MAX_RECOG_OPERANDS][MAX_RECOG_ALT /* Access the output function for CODE. */ -#define OUT_FCN(CODE) (*insn_outfun[(int) (CODE)]) +#define OUT_FCN(CODE) (*insn_data[(int) (CODE)].outfun) -/* Tables defined in insn-output.c that give information about +/* A table defined in insn-output.c that give information about each insn-code value. */ -/* These are vectors indexed by insn-code. Details in genoutput.c. */ - -extern const char *const insn_template[]; - -extern const char *(*const insn_outfun[]) PROTO ((rtx *, rtx)); - -extern const int insn_n_operands[]; - -extern const int insn_n_dups[]; - -/* Indexed by insn code number, gives # of constraint alternatives. */ - -extern const int insn_n_alternatives[]; +typedef int (*insn_operand_predicate_fn) PROTO ((rtx, enum machine_mode)); +typedef const char * (*insn_output_fn) PROTO ((rtx *, rtx)); +#ifndef NO_MD_PROTOTYPES +typedef rtx (*insn_gen_fn) PROTO ((rtx, ...)); +#else +typedef rtx (*insn_gen_fn) (); +#endif -/* These are two-dimensional arrays indexed first by the insn-code - and second by the operand number. Details in genoutput.c. */ +struct insn_operand_data +{ + insn_operand_predicate_fn predicate; -#ifdef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */ -extern const char *const insn_operand_constraint[][MAX_RECOG_OPERANDS]; +#ifdef REGISTER_CONSTRAINTS + const char *constraint; #endif -#ifndef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */ -extern const char insn_operand_address_p[][MAX_RECOG_OPERANDS]; + enum machine_mode mode; + +#ifndef REGISTER_CONSTRAINTS + char address_p; #endif -extern const enum machine_mode insn_operand_mode[][MAX_RECOG_OPERANDS]; + char strict_low; +}; -extern const char insn_operand_strict_low[][MAX_RECOG_OPERANDS]; +struct insn_data +{ + const char *name; + const char *template; + insn_output_fn outfun; + insn_gen_fn genfun; + const struct insn_operand_data *operand; -extern int (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) PROTO ((rtx, enum machine_mode)); + unsigned char n_operands; + unsigned char n_dups; + unsigned char n_alternatives; +}; -extern const char * insn_name[]; +extern const struct insn_data insn_data[]; |