(CGEN_INSN_ATTR): New type.
authorDoug Evans <dje@google.com>
Wed, 10 Feb 1999 01:45:30 +0000 (01:45 +0000)
committerDoug Evans <dje@google.com>
Wed, 10 Feb 1999 01:45:30 +0000 (01:45 +0000)
include/opcode/ChangeLog
include/opcode/cgen.h

index afc063c4bb711871571d82fcfd9d169cdcddfdf0..e9d479765c4fcc1c5c5af42113ca6c27013175ee 100644 (file)
@@ -21,6 +21,7 @@
        (CGEN_INSN): Rewrite.
        (CGEN_{ASM,DIS}_HASH*): Delete.
        (init_opcode_table,init_ibld_table): Declare.
+       (CGEN_INSN_ATTR): New type.
 
 Mon Feb  1 21:09:14 1999  Catherine Moore  <clm@cygnus.com>
  
index 305258b75fa0dce089a1fea2655bdb68b30b3cbc..59c613d5f48f10ede3367dc80332be7fa05e5df5 100644 (file)
@@ -31,13 +31,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 /* Enums must be defined before they can be used.
    Allow them to be used in struct definitions, even though the enum must
    be defined elsewhere.
-   if CGEN_ARCH isn't defined, this file is being included by something other
-   than <arch>-cpu.h.  */
+   If CGEN_ARCH isn't defined, this file is being included by something other
+   than <arch>-desc.h.  */
 
-/* Prepend the arch name, defined in <arch>-cpu.h, and _cgen_ to symbol S.
+/* Prepend the arch name, defined in <arch>-desc.h, and _cgen_ to symbol S.
    The lack of spaces in the arg list is important for non-stdc systems.
-   This file is included by <arch>-cpu.h.
-   It can be included independently of <arch>-cpu.h, in which case the arch
+   This file is included by <arch>-desc.h.
+   It can be included independently of <arch>-desc.h, in which case the arch
    dependent portions will be declared as "unknown_cgen_foo".  */
 
 #ifndef CGEN_SYM
@@ -606,7 +606,7 @@ extern const CGEN_OPERAND CGEN_SYM (operand_table)[];
 enum cgen_operand_type;
 
 #define CGEN_OPERAND_INDEX(cd, operand) ((operand) - (cd)->operand_table)
-/* FIXME: Rename, cpu-cpu.h defines this as the typedef of the enum.  */
+/* FIXME: Rename, arch-desc.h defines this as the typedef of the enum.  */
 #define CGEN_OPERAND_TYPE(cd, operand) \
   ((enum cgen_operand_type) CGEN_OPERAND_INDEX ((cd), (operand)))
 #define CGEN_OPERAND_ENTRY(cd, n) (& (cd)->operand_table[n])
@@ -842,6 +842,15 @@ typedef struct
 #endif
 typedef CGEN_ATTR_TYPE (CGEN_INSN_NBOOL_ATTRS) CGEN_INSN_ATTR_TYPE;
 
+/* Enum of architecture independent attributes.  */
+
+#ifndef CGEN_ARCH
+/* ??? Numbers here are recorded in two places.  */
+typedef enum cgen_insn_attr {
+  CGEN_INSN_ALIAS = 32
+} CGEN_INSN_ATTR;
+#endif
+
 /* This struct defines each entry in the instruction table.  */
 
 typedef struct
This page took 0.027019 seconds and 4 git commands to generate.