diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-11 18:51:28 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-11 18:51:28 -0700 |
commit | 1ccbefcef21836d354e28c07e92fe9a5b5eaedcd (patch) | |
tree | b5b69b2ec9f19fc214cfaa49317c6f80265bed44 /gcc/recog.h | |
parent | 24bef15854919b1b36f74ea8208c71b146975a0b (diff) | |
download | gcc-1ccbefcef21836d354e28c07e92fe9a5b5eaedcd.zip gcc-1ccbefcef21836d354e28c07e92fe9a5b5eaedcd.tar.gz gcc-1ccbefcef21836d354e28c07e92fe9a5b5eaedcd.tar.bz2 |
Replace recog_foo with recog_data.foo.
From-SVN: r29349
Diffstat (limited to 'gcc/recog.h')
-rw-r--r-- | gcc/recog.h | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/gcc/recog.h b/gcc/recog.h index 0337214..55ddb29 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -127,44 +127,53 @@ extern int which_alternative; /* The following vectors hold the results from insn_extract. */ -/* Indexed by N, gives value of operand N. */ -extern rtx recog_operand[]; +struct recog_data +{ + /* It is very tempting to make the 5 operand related arrays into a + structure and index on that. However, to be source compatible + with all of the existing md file insn constraints and output + templates, we need `operand' as a flat array. Without that + member, making an array for the rest seems pointless. */ -/* Indexed by N, gives location where operand N was found. */ -extern rtx *recog_operand_loc[]; + /* Gives value of operand N. */ + rtx operand[MAX_RECOG_OPERANDS]; -/* Indexed by N, gives location where the Nth duplicate-appearance of - an operand was found. This is something that matched MATCH_DUP. */ -extern rtx *recog_dup_loc[]; + /* Gives location where operand N was found. */ + rtx *operand_loc[MAX_RECOG_OPERANDS]; -/* Indexed by N, gives the operand number that was duplicated in the - Nth duplicate-appearance of an operand. */ -extern char recog_dup_num[]; + /* Gives the constraint string for operand N. */ + const char *constraints[MAX_RECOG_OPERANDS]; -/* The next variables are set up by extract_insn. */ + /* Gives the mode of operand N. */ + enum machine_mode operand_mode[MAX_RECOG_OPERANDS]; -/* The number of operands of the insn. */ -extern int recog_n_operands; + /* Gives the type (in, out, inout) for operand N. */ + enum op_type operand_type[MAX_RECOG_OPERANDS]; -/* The number of MATCH_DUPs in the insn. */ -extern int recog_n_dups; + /* Gives location where the Nth duplicate-appearance of an operand + was found. This is something that matched MATCH_DUP. */ + rtx *dup_loc[MAX_DUP_OPERANDS]; -/* The number of alternatives in the constraints for the insn. */ -extern int recog_n_alternatives; + /* Gives the operand number that was duplicated in the Nth + duplicate-appearance of an operand. */ + unsigned char dup_num[MAX_DUP_OPERANDS]; -/* Indexed by N, gives the mode of operand N. */ -extern enum machine_mode recog_operand_mode[]; +#ifndef REGISTER_CONSTRAINTS + /* Nonzero if operand N should be an address. */ + unsigned char operand_address_p[MAX_RECOG_OPERANDS]; +#endif -/* Indexed by N, gives the constraint string for operand N. */ -extern const char *recog_constraints[]; + /* The number of operands of the insn. */ + unsigned char n_operands; -/* Indexed by N, gives the type (in, out, inout) for operand N. */ -extern enum op_type recog_op_type[]; + /* The number of MATCH_DUPs in the insn. */ + unsigned char n_dups; -#ifndef REGISTER_CONSTRAINTS -/* Indexed by N, nonzero if operand N should be an address. */ -extern char recog_operand_address_p[]; -#endif + /* The number of alternatives in the constraints for the insn. */ + unsigned char n_alternatives; +}; + +extern struct recog_data recog_data; /* Contains a vector of operand_alternative structures for every operand. Set up by preprocess_constraints. */ |