Commit 4da05956 by Mark Mitchell Committed by Mark Mitchell

* tree.h (IS_EXPR_CODE_CLASS): New macro.

From-SVN: r18783
parent 545f2aab
1998-03-22 Mark Mitchell <mmitchell@usa.net>
* tree.h (IS_EXPR_CODE_CLASS): New macro.
Mon Mar 23 23:18:48 1998 Jeffrey A Law (law@cygnus.com) Mon Mar 23 23:18:48 1998 Jeffrey A Law (law@cygnus.com)
* h8300.h (CONST_COSTS): Remove definition. * h8300.h (CONST_COSTS): Remove definition.
......
...@@ -51,6 +51,13 @@ enum tree_code { ...@@ -51,6 +51,13 @@ enum tree_code {
extern char tree_code_type[MAX_TREE_CODES]; extern char tree_code_type[MAX_TREE_CODES];
#define TREE_CODE_CLASS(CODE) tree_code_type[(int) (CODE)] #define TREE_CODE_CLASS(CODE) tree_code_type[(int) (CODE)]
/* Returns non-zero iff CLASS is the tree-code class of an
expression. */
#define IS_EXPR_CODE_CLASS(CLASS) \
(CLASS == '<' || CLASS == '1' || CLASS == '2' || CLASS == '3' \
|| CLASS == 'e')
/* Number of argument-words in each kind of tree-node. */ /* Number of argument-words in each kind of tree-node. */
extern int tree_code_length[MAX_TREE_CODES]; extern int tree_code_length[MAX_TREE_CODES];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment