blob: 64e460f994c6218d1ba1e6586e6dd591980bcb79 [file] [log] [blame]
Chris Lattner2f7c9632001-06-06 20:29:01 +00001typedef union {
2 Module *ModuleVal;
3 Method *MethodVal;
4 MethodArgument *MethArgVal;
5 BasicBlock *BasicBlockVal;
6 TerminatorInst *TermInstVal;
7 Instruction *InstVal;
8 ConstPoolVal *ConstVal;
9 const Type *TypeVal;
10
11 list<MethodArgument*> *MethodArgList;
12 list<Value*> *ValueList;
13 list<const Type*> *TypeList;
14 list<pair<ConstPoolVal*, BasicBlock*> > *JumpTable;
15 vector<ConstPoolVal*> *ConstVector;
16
17 int64_t SInt64Val;
18 uint64_t UInt64Val;
19 int SIntVal;
20 unsigned UIntVal;
21
22 char *StrVal; // This memory is allocated by strdup!
23 ValID ValIDVal; // May contain memory allocated by strdup
24
25 Instruction::UnaryOps UnaryOpVal;
26 Instruction::BinaryOps BinaryOpVal;
27 Instruction::TermOps TermOpVal;
28 Instruction::MemoryOps MemOpVal;
29} YYSTYPE;
30#define ESINT64VAL 257
31#define EUINT64VAL 258
32#define SINTVAL 259
33#define UINTVAL 260
34#define VOID 261
35#define BOOL 262
36#define SBYTE 263
37#define UBYTE 264
38#define SHORT 265
39#define USHORT 266
40#define INT 267
41#define UINT 268
42#define LONG 269
43#define ULONG 270
44#define FLOAT 271
45#define DOUBLE 272
46#define STRING 273
47#define TYPE 274
48#define LABEL 275
49#define VAR_ID 276
50#define LABELSTR 277
51#define STRINGCONSTANT 278
52#define IMPLEMENTATION 279
53#define TRUE 280
54#define FALSE 281
55#define BEGINTOK 282
56#define END 283
57#define DECLARE 284
58#define PHI 285
59#define CALL 286
60#define RET 287
61#define BR 288
62#define SWITCH 289
63#define NEG 290
64#define NOT 291
65#define TOINT 292
66#define TOUINT 293
67#define ADD 294
68#define SUB 295
69#define MUL 296
70#define DIV 297
71#define REM 298
72#define SETLE 299
73#define SETGE 300
74#define SETLT 301
75#define SETGT 302
76#define SETEQ 303
77#define SETNE 304
78#define MALLOC 305
79#define ALLOCA 306
80#define FREE 307
81#define LOAD 308
82#define STORE 309
83#define GETFIELD 310
84#define PUTFIELD 311
85
86
87extern YYSTYPE llvmAsmlval;