blob: aab02ac8615a4cc8e5a0c7126143c93c060f6d61 [file] [log] [blame]
Jeff Cohenac2dca92007-01-21 19:30:52 +00001/* A Bison parser, made from /usr/home/jeffc/llvm/tools/llvm-upgrade/UpgradeParser.y, by GNU bison 1.75. */
Reid Spencer319a7302007-01-05 17:20:02 +00002
3/* Skeleton parser for Yacc-like parsing with Bison,
Jeff Cohenac2dca92007-01-21 19:30:52 +00004 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
Reid Spencer319a7302007-01-05 17:20:02 +00005
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
Jeff Cohenac2dca92007-01-21 19:30:52 +000018 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
Reid Spencer319a7302007-01-05 17:20:02 +000020
21/* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
25
Jeff Cohenac2dca92007-01-21 19:30:52 +000026#ifndef BISON_UPGRADEPARSER_TAB_H
27# define BISON_UPGRADEPARSER_TAB_H
28
Reid Spencer319a7302007-01-05 17:20:02 +000029/* Tokens. */
30#ifndef YYTOKENTYPE
31# define YYTOKENTYPE
32 /* Put the tokens into the symbol table, so that GDB and other debuggers
33 know about them. */
34 enum yytokentype {
35 VOID = 258,
36 BOOL = 259,
37 SBYTE = 260,
38 UBYTE = 261,
39 SHORT = 262,
40 USHORT = 263,
41 INT = 264,
42 UINT = 265,
43 LONG = 266,
44 ULONG = 267,
45 FLOAT = 268,
46 DOUBLE = 269,
47 LABEL = 270,
48 OPAQUE = 271,
49 ESINT64VAL = 272,
50 EUINT64VAL = 273,
51 SINTVAL = 274,
52 UINTVAL = 275,
53 FPVAL = 276,
54 NULL_TOK = 277,
55 UNDEF = 278,
56 ZEROINITIALIZER = 279,
57 TRUETOK = 280,
58 FALSETOK = 281,
59 TYPE = 282,
60 VAR_ID = 283,
61 LABELSTR = 284,
62 STRINGCONSTANT = 285,
63 IMPLEMENTATION = 286,
64 BEGINTOK = 287,
65 ENDTOK = 288,
66 DECLARE = 289,
67 GLOBAL = 290,
68 CONSTANT = 291,
69 SECTION = 292,
70 VOLATILE = 293,
71 TO = 294,
72 DOTDOTDOT = 295,
73 CONST = 296,
74 INTERNAL = 297,
75 LINKONCE = 298,
76 WEAK = 299,
77 DLLIMPORT = 300,
78 DLLEXPORT = 301,
79 EXTERN_WEAK = 302,
80 APPENDING = 303,
Reid Spencerc4d96252007-01-13 00:03:30 +000081 EXTERNAL = 304,
82 TARGET = 305,
83 TRIPLE = 306,
84 ENDIAN = 307,
85 POINTERSIZE = 308,
86 LITTLE = 309,
87 BIG = 310,
88 ALIGN = 311,
89 UNINITIALIZED = 312,
90 DEPLIBS = 313,
91 CALL = 314,
92 TAIL = 315,
93 ASM_TOK = 316,
94 MODULE = 317,
95 SIDEEFFECT = 318,
96 CC_TOK = 319,
97 CCC_TOK = 320,
98 CSRETCC_TOK = 321,
99 FASTCC_TOK = 322,
100 COLDCC_TOK = 323,
101 X86_STDCALLCC_TOK = 324,
102 X86_FASTCALLCC_TOK = 325,
103 DATALAYOUT = 326,
104 RET = 327,
105 BR = 328,
106 SWITCH = 329,
107 INVOKE = 330,
108 EXCEPT = 331,
109 UNWIND = 332,
110 UNREACHABLE = 333,
111 ADD = 334,
112 SUB = 335,
113 MUL = 336,
114 DIV = 337,
115 UDIV = 338,
116 SDIV = 339,
117 FDIV = 340,
118 REM = 341,
119 UREM = 342,
120 SREM = 343,
121 FREM = 344,
122 AND = 345,
123 OR = 346,
124 XOR = 347,
125 SETLE = 348,
126 SETGE = 349,
127 SETLT = 350,
128 SETGT = 351,
129 SETEQ = 352,
130 SETNE = 353,
131 ICMP = 354,
132 FCMP = 355,
133 EQ = 356,
134 NE = 357,
135 SLT = 358,
136 SGT = 359,
137 SLE = 360,
138 SGE = 361,
139 OEQ = 362,
140 ONE = 363,
141 OLT = 364,
142 OGT = 365,
143 OLE = 366,
144 OGE = 367,
145 ORD = 368,
146 UNO = 369,
147 UEQ = 370,
148 UNE = 371,
149 ULT = 372,
150 UGT = 373,
151 ULE = 374,
152 UGE = 375,
153 MALLOC = 376,
154 ALLOCA = 377,
155 FREE = 378,
156 LOAD = 379,
157 STORE = 380,
158 GETELEMENTPTR = 381,
159 PHI_TOK = 382,
160 SELECT = 383,
161 SHL = 384,
162 SHR = 385,
163 ASHR = 386,
164 LSHR = 387,
165 VAARG = 388,
166 EXTRACTELEMENT = 389,
167 INSERTELEMENT = 390,
168 SHUFFLEVECTOR = 391,
169 CAST = 392,
170 TRUNC = 393,
171 ZEXT = 394,
172 SEXT = 395,
173 FPTRUNC = 396,
174 FPEXT = 397,
175 FPTOUI = 398,
176 FPTOSI = 399,
177 UITOFP = 400,
178 SITOFP = 401,
179 PTRTOINT = 402,
180 INTTOPTR = 403,
181 BITCAST = 404
Reid Spencer319a7302007-01-05 17:20:02 +0000182 };
183#endif
Reid Spencer319a7302007-01-05 17:20:02 +0000184#define VOID 258
185#define BOOL 259
186#define SBYTE 260
187#define UBYTE 261
188#define SHORT 262
189#define USHORT 263
190#define INT 264
191#define UINT 265
192#define LONG 266
193#define ULONG 267
194#define FLOAT 268
195#define DOUBLE 269
196#define LABEL 270
197#define OPAQUE 271
198#define ESINT64VAL 272
199#define EUINT64VAL 273
200#define SINTVAL 274
201#define UINTVAL 275
202#define FPVAL 276
203#define NULL_TOK 277
204#define UNDEF 278
205#define ZEROINITIALIZER 279
206#define TRUETOK 280
207#define FALSETOK 281
208#define TYPE 282
209#define VAR_ID 283
210#define LABELSTR 284
211#define STRINGCONSTANT 285
212#define IMPLEMENTATION 286
213#define BEGINTOK 287
214#define ENDTOK 288
215#define DECLARE 289
216#define GLOBAL 290
217#define CONSTANT 291
218#define SECTION 292
219#define VOLATILE 293
220#define TO 294
221#define DOTDOTDOT 295
222#define CONST 296
223#define INTERNAL 297
224#define LINKONCE 298
225#define WEAK 299
226#define DLLIMPORT 300
227#define DLLEXPORT 301
228#define EXTERN_WEAK 302
229#define APPENDING 303
Reid Spencerc4d96252007-01-13 00:03:30 +0000230#define EXTERNAL 304
231#define TARGET 305
232#define TRIPLE 306
233#define ENDIAN 307
234#define POINTERSIZE 308
235#define LITTLE 309
236#define BIG 310
237#define ALIGN 311
238#define UNINITIALIZED 312
239#define DEPLIBS 313
240#define CALL 314
241#define TAIL 315
242#define ASM_TOK 316
243#define MODULE 317
244#define SIDEEFFECT 318
245#define CC_TOK 319
246#define CCC_TOK 320
247#define CSRETCC_TOK 321
248#define FASTCC_TOK 322
249#define COLDCC_TOK 323
250#define X86_STDCALLCC_TOK 324
251#define X86_FASTCALLCC_TOK 325
252#define DATALAYOUT 326
253#define RET 327
254#define BR 328
255#define SWITCH 329
256#define INVOKE 330
257#define EXCEPT 331
258#define UNWIND 332
259#define UNREACHABLE 333
260#define ADD 334
261#define SUB 335
262#define MUL 336
263#define DIV 337
264#define UDIV 338
265#define SDIV 339
266#define FDIV 340
267#define REM 341
268#define UREM 342
269#define SREM 343
270#define FREM 344
271#define AND 345
272#define OR 346
273#define XOR 347
274#define SETLE 348
275#define SETGE 349
276#define SETLT 350
277#define SETGT 351
278#define SETEQ 352
279#define SETNE 353
280#define ICMP 354
281#define FCMP 355
282#define EQ 356
283#define NE 357
284#define SLT 358
285#define SGT 359
286#define SLE 360
287#define SGE 361
288#define OEQ 362
289#define ONE 363
290#define OLT 364
291#define OGT 365
292#define OLE 366
293#define OGE 367
294#define ORD 368
295#define UNO 369
296#define UEQ 370
297#define UNE 371
298#define ULT 372
299#define UGT 373
300#define ULE 374
301#define UGE 375
302#define MALLOC 376
303#define ALLOCA 377
304#define FREE 378
305#define LOAD 379
306#define STORE 380
307#define GETELEMENTPTR 381
308#define PHI_TOK 382
309#define SELECT 383
310#define SHL 384
311#define SHR 385
312#define ASHR 386
313#define LSHR 387
314#define VAARG 388
315#define EXTRACTELEMENT 389
316#define INSERTELEMENT 390
317#define SHUFFLEVECTOR 391
318#define CAST 392
319#define TRUNC 393
320#define ZEXT 394
321#define SEXT 395
322#define FPTRUNC 396
323#define FPEXT 397
324#define FPTOUI 398
325#define FPTOSI 399
326#define UITOFP 400
327#define SITOFP 401
328#define PTRTOINT 402
329#define INTTOPTR 403
330#define BITCAST 404
Reid Spencer319a7302007-01-05 17:20:02 +0000331
332
333
334
Jeff Cohenac2dca92007-01-21 19:30:52 +0000335#ifndef YYSTYPE
336#line 971 "/usr/home/jeffc/llvm/tools/llvm-upgrade/UpgradeParser.y"
337typedef union {
Reid Spencere77e35e2006-12-01 20:26:20 +0000338 std::string* String;
Reid Spencerb6673a92007-01-15 02:41:46 +0000339 const Type* Ty;
340 Value* Val;
341 Constant* Const;
Reid Spencerf8483652006-12-02 15:16:01 +0000342 ValueList* ValList;
Reid Spencer52402b02007-01-02 05:45:11 +0000343 TypeList* TypeVec;
Jeff Cohenac2dca92007-01-21 19:30:52 +0000344} yystype;
345/* Line 1237 of /usr/local/share/bison/yacc.c. */
346#line 347 "UpgradeParser.tab.h"
347# define YYSTYPE yystype
Reid Spencer319a7302007-01-05 17:20:02 +0000348#endif
Reid Spencere7c3c602006-11-30 06:36:44 +0000349
350extern YYSTYPE Upgradelval;
Reid Spencer319a7302007-01-05 17:20:02 +0000351
352
Jeff Cohenac2dca92007-01-21 19:30:52 +0000353#endif /* not BISON_UPGRADEPARSER_TAB_H */
Reid Spencer319a7302007-01-05 17:20:02 +0000354