Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef irbdata_defs_INCLUDED
00039 #define irbdata_defs_INCLUDED
00040
00041
00042
00043
00044 #ifndef symtab_idx_INCLUDED
00045 #include "symtab_idx.h"
00046 #endif
00047
00048
00049 struct INITO {
00050 ST_IDX st_idx;
00051 INITV_IDX val;
00052
00053 void Verify (UINT level) const;
00054 void Print (FILE* f) const;
00055 };
00056
00057
00058
00059
00060 enum INITVKIND {
00061 INITVKIND_UNK = 0,
00062 INITVKIND_SYMOFF = 1,
00063 INITVKIND_ZERO = 2,
00064 INITVKIND_ONE = 3,
00065 INITVKIND_VAL = 4,
00066 INITVKIND_BLOCK = 5,
00067 INITVKIND_PAD = 6,
00068 INITVKIND_SYMDIFF = 7,
00069 INITVKIND_SYMDIFF16 = 8,
00070 INITVKIND_LABEL = 9,
00071 INITVKIND_COUNT = 10
00072 };
00073
00074 struct INITV
00075 {
00076 INITV_IDX next;
00077 INITVKIND kind : 16;
00078 mUINT16 repeat1;
00079
00080 union {
00081
00082 struct {
00083 ST_IDX st;
00084 mINT32 ofst;
00085 } sto;
00086
00087 struct {
00088 LABEL_IDX lab;
00089 mINT32 unused;
00090 } lab;
00091
00092 struct {
00093 LABEL_IDX lab1;
00094 ST_IDX st2;
00095 } stdiff;
00096
00097 struct {
00098 union {
00099 TCON_IDX tc;
00100 mTYPE_ID mtype;
00101
00102 } u;
00103 mUINT32 repeat2;
00104 } tcval;
00105
00106 struct {
00107 INITV_IDX blk;
00108 mINT32 unused;
00109 } blk;
00110
00111 struct {
00112 mINT32 pad;
00113 mINT32 unused;
00114 } pad;
00115 } u;
00116
00117 ST_IDX St () const { return u.sto.st; }
00118 INT32 Ofst () const { return u.sto.ofst; }
00119
00120 LABEL_IDX Lab () const { return u.lab.lab; }
00121
00122 LABEL_IDX Lab1 () const { return u.stdiff.lab1; }
00123 ST_IDX St2 () const { return u.stdiff.st2; }
00124
00125 TCON_IDX Tc () const { return u.tcval.u.tc; }
00126 TYPE_ID Mtype () const { return u.tcval.u.mtype; }
00127 UINT32 Repeat2 () const { return u.tcval.repeat2; }
00128
00129 INITV_IDX Blk () const { return u.blk.blk; }
00130 INT32 Pad () const { return u.pad.pad; }
00131
00132 void Verify (UINT level) const;
00133 };
00134
00135
00136 #endif