blob: d4032113b1aa70dc8b2702bf0cb88b11f5aeb3d8 [file] [log] [blame]
Reid Spencere7c3c602006-11-30 06:36:44 +00001/* A Bison parser, made by GNU Bison 2.1. */
2
3/* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
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
18 Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
20
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
26/* Tokens. */
27#ifndef YYTOKENTYPE
28# define YYTOKENTYPE
29 /* Put the tokens into the symbol table, so that GDB and other debuggers
30 know about them. */
31 enum yytokentype {
Reid Spencerf2d55322006-12-01 21:52:30 +000032 VOID = 258,
33 BOOL = 259,
34 SBYTE = 260,
35 UBYTE = 261,
36 SHORT = 262,
37 USHORT = 263,
38 INT = 264,
39 UINT = 265,
40 LONG = 266,
41 ULONG = 267,
42 FLOAT = 268,
43 DOUBLE = 269,
44 LABEL = 270,
45 OPAQUE = 271,
46 ESINT64VAL = 272,
47 EUINT64VAL = 273,
48 SINTVAL = 274,
49 UINTVAL = 275,
50 FPVAL = 276,
51 NULL_TOK = 277,
52 UNDEF = 278,
53 ZEROINITIALIZER = 279,
54 TRUETOK = 280,
55 FALSETOK = 281,
Reid Spencere77e35e2006-12-01 20:26:20 +000056 TYPE = 282,
57 VAR_ID = 283,
58 LABELSTR = 284,
59 STRINGCONSTANT = 285,
60 IMPLEMENTATION = 286,
61 BEGINTOK = 287,
62 ENDTOK = 288,
63 DECLARE = 289,
64 GLOBAL = 290,
65 CONSTANT = 291,
66 SECTION = 292,
67 VOLATILE = 293,
68 TO = 294,
69 DOTDOTDOT = 295,
70 CONST = 296,
71 INTERNAL = 297,
72 LINKONCE = 298,
73 WEAK = 299,
Reid Spencere7c3c602006-11-30 06:36:44 +000074 DLLIMPORT = 300,
75 DLLEXPORT = 301,
76 EXTERN_WEAK = 302,
Reid Spencere77e35e2006-12-01 20:26:20 +000077 APPENDING = 303,
Reid Spencere7c3c602006-11-30 06:36:44 +000078 NOT = 304,
79 EXTERNAL = 305,
80 TARGET = 306,
81 TRIPLE = 307,
82 ENDIAN = 308,
83 POINTERSIZE = 309,
84 LITTLE = 310,
85 BIG = 311,
86 ALIGN = 312,
87 DEPLIBS = 313,
88 CALL = 314,
89 TAIL = 315,
90 ASM_TOK = 316,
91 MODULE = 317,
92 SIDEEFFECT = 318,
93 CC_TOK = 319,
94 CCC_TOK = 320,
95 CSRETCC_TOK = 321,
96 FASTCC_TOK = 322,
97 COLDCC_TOK = 323,
98 X86_STDCALLCC_TOK = 324,
99 X86_FASTCALLCC_TOK = 325,
100 DATALAYOUT = 326,
101 RET = 327,
102 BR = 328,
103 SWITCH = 329,
104 INVOKE = 330,
105 UNWIND = 331,
106 UNREACHABLE = 332,
107 ADD = 333,
108 SUB = 334,
109 MUL = 335,
110 UDIV = 336,
111 SDIV = 337,
112 FDIV = 338,
113 UREM = 339,
114 SREM = 340,
115 FREM = 341,
116 AND = 342,
117 OR = 343,
118 XOR = 344,
119 SETLE = 345,
120 SETGE = 346,
121 SETLT = 347,
122 SETGT = 348,
123 SETEQ = 349,
124 SETNE = 350,
125 MALLOC = 351,
126 ALLOCA = 352,
127 FREE = 353,
128 LOAD = 354,
129 STORE = 355,
130 GETELEMENTPTR = 356,
Reid Spencere77e35e2006-12-01 20:26:20 +0000131 PHI_TOK = 357,
132 SELECT = 358,
133 SHL = 359,
Reid Spencerf7bde222006-12-01 22:26:37 +0000134 SHR = 360,
Reid Spencere77e35e2006-12-01 20:26:20 +0000135 ASHR = 361,
Reid Spencerf7bde222006-12-01 22:26:37 +0000136 LSHR = 362,
137 VAARG = 363,
138 EXTRACTELEMENT = 364,
139 INSERTELEMENT = 365,
140 SHUFFLEVECTOR = 366,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000141 CAST = 367,
142 TRUNC = 368,
143 ZEXT = 369,
144 SEXT = 370,
145 FPTRUNC = 371,
146 FPEXT = 372,
147 FPTOUI = 373,
148 FPTOSI = 374,
149 UITOFP = 375,
150 SITOFP = 376,
151 PTRTOINT = 377,
152 INTTOPTR = 378,
153 BITCAST = 379
Reid Spencere7c3c602006-11-30 06:36:44 +0000154 };
155#endif
156/* Tokens. */
Reid Spencerf2d55322006-12-01 21:52:30 +0000157#define VOID 258
158#define BOOL 259
159#define SBYTE 260
160#define UBYTE 261
161#define SHORT 262
162#define USHORT 263
163#define INT 264
164#define UINT 265
165#define LONG 266
166#define ULONG 267
167#define FLOAT 268
168#define DOUBLE 269
169#define LABEL 270
170#define OPAQUE 271
171#define ESINT64VAL 272
172#define EUINT64VAL 273
173#define SINTVAL 274
174#define UINTVAL 275
175#define FPVAL 276
176#define NULL_TOK 277
177#define UNDEF 278
178#define ZEROINITIALIZER 279
179#define TRUETOK 280
180#define FALSETOK 281
Reid Spencere77e35e2006-12-01 20:26:20 +0000181#define TYPE 282
182#define VAR_ID 283
183#define LABELSTR 284
184#define STRINGCONSTANT 285
185#define IMPLEMENTATION 286
186#define BEGINTOK 287
187#define ENDTOK 288
188#define DECLARE 289
189#define GLOBAL 290
190#define CONSTANT 291
191#define SECTION 292
192#define VOLATILE 293
193#define TO 294
194#define DOTDOTDOT 295
195#define CONST 296
196#define INTERNAL 297
197#define LINKONCE 298
198#define WEAK 299
Reid Spencere7c3c602006-11-30 06:36:44 +0000199#define DLLIMPORT 300
200#define DLLEXPORT 301
201#define EXTERN_WEAK 302
Reid Spencere77e35e2006-12-01 20:26:20 +0000202#define APPENDING 303
Reid Spencere7c3c602006-11-30 06:36:44 +0000203#define NOT 304
204#define EXTERNAL 305
205#define TARGET 306
206#define TRIPLE 307
207#define ENDIAN 308
208#define POINTERSIZE 309
209#define LITTLE 310
210#define BIG 311
211#define ALIGN 312
212#define DEPLIBS 313
213#define CALL 314
214#define TAIL 315
215#define ASM_TOK 316
216#define MODULE 317
217#define SIDEEFFECT 318
218#define CC_TOK 319
219#define CCC_TOK 320
220#define CSRETCC_TOK 321
221#define FASTCC_TOK 322
222#define COLDCC_TOK 323
223#define X86_STDCALLCC_TOK 324
224#define X86_FASTCALLCC_TOK 325
225#define DATALAYOUT 326
226#define RET 327
227#define BR 328
228#define SWITCH 329
229#define INVOKE 330
230#define UNWIND 331
231#define UNREACHABLE 332
232#define ADD 333
233#define SUB 334
234#define MUL 335
235#define UDIV 336
236#define SDIV 337
237#define FDIV 338
238#define UREM 339
239#define SREM 340
240#define FREM 341
241#define AND 342
242#define OR 343
243#define XOR 344
244#define SETLE 345
245#define SETGE 346
246#define SETLT 347
247#define SETGT 348
248#define SETEQ 349
249#define SETNE 350
250#define MALLOC 351
251#define ALLOCA 352
252#define FREE 353
253#define LOAD 354
254#define STORE 355
255#define GETELEMENTPTR 356
Reid Spencere77e35e2006-12-01 20:26:20 +0000256#define PHI_TOK 357
257#define SELECT 358
258#define SHL 359
Reid Spencerf7bde222006-12-01 22:26:37 +0000259#define SHR 360
Reid Spencere77e35e2006-12-01 20:26:20 +0000260#define ASHR 361
Reid Spencerf7bde222006-12-01 22:26:37 +0000261#define LSHR 362
262#define VAARG 363
263#define EXTRACTELEMENT 364
264#define INSERTELEMENT 365
265#define SHUFFLEVECTOR 366
266#define CAST 367
Reid Spencerfcb5df82006-12-01 22:34:43 +0000267#define TRUNC 368
268#define ZEXT 369
269#define SEXT 370
270#define FPTRUNC 371
271#define FPEXT 372
272#define FPTOUI 373
273#define FPTOSI 374
274#define UITOFP 375
275#define SITOFP 376
276#define PTRTOINT 377
277#define INTTOPTR 378
278#define BITCAST 379
Reid Spencere7c3c602006-11-30 06:36:44 +0000279
280
281
282
283#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
Reid Spencere77e35e2006-12-01 20:26:20 +0000284#line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
285typedef union YYSTYPE {
286 std::string* String;
287 TypeInfo Type;
288 ValueInfo Value;
289 ConstInfo Const;
290} YYSTYPE;
291/* Line 1447 of yacc.c. */
Reid Spencerfcb5df82006-12-01 22:34:43 +0000292#line 293 "UpgradeParser.tab.h"
Reid Spencere7c3c602006-11-30 06:36:44 +0000293# define yystype YYSTYPE /* obsolescent; will be withdrawn */
294# define YYSTYPE_IS_DECLARED 1
295# define YYSTYPE_IS_TRIVIAL 1
296#endif
297
298extern YYSTYPE Upgradelval;
299
300
301