2aa7383819d5d31e0c5d643d60f1c8bb5de05068
[oota-llvm.git] / tools / llvm-upgrade / UpgradeParser.h.cvs
1 /* 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 {
32      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,
56      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,
74      DLLIMPORT = 300,
75      DLLEXPORT = 301,
76      EXTERN_WEAK = 302,
77      APPENDING = 303,
78      EXTERNAL = 304,
79      TARGET = 305,
80      TRIPLE = 306,
81      ENDIAN = 307,
82      POINTERSIZE = 308,
83      LITTLE = 309,
84      BIG = 310,
85      ALIGN = 311,
86      UNINITIALIZED = 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      EXCEPT = 331,
106      UNWIND = 332,
107      UNREACHABLE = 333,
108      ADD = 334,
109      SUB = 335,
110      MUL = 336,
111      DIV = 337,
112      UDIV = 338,
113      SDIV = 339,
114      FDIV = 340,
115      REM = 341,
116      UREM = 342,
117      SREM = 343,
118      FREM = 344,
119      AND = 345,
120      OR = 346,
121      XOR = 347,
122      SETLE = 348,
123      SETGE = 349,
124      SETLT = 350,
125      SETGT = 351,
126      SETEQ = 352,
127      SETNE = 353,
128      ICMP = 354,
129      FCMP = 355,
130      EQ = 356,
131      NE = 357,
132      SLT = 358,
133      SGT = 359,
134      SLE = 360,
135      SGE = 361,
136      OEQ = 362,
137      ONE = 363,
138      OLT = 364,
139      OGT = 365,
140      OLE = 366,
141      OGE = 367,
142      ORD = 368,
143      UNO = 369,
144      UEQ = 370,
145      UNE = 371,
146      ULT = 372,
147      UGT = 373,
148      ULE = 374,
149      UGE = 375,
150      MALLOC = 376,
151      ALLOCA = 377,
152      FREE = 378,
153      LOAD = 379,
154      STORE = 380,
155      GETELEMENTPTR = 381,
156      PHI_TOK = 382,
157      SELECT = 383,
158      SHL = 384,
159      SHR = 385,
160      ASHR = 386,
161      LSHR = 387,
162      VAARG = 388,
163      EXTRACTELEMENT = 389,
164      INSERTELEMENT = 390,
165      SHUFFLEVECTOR = 391,
166      CAST = 392,
167      TRUNC = 393,
168      ZEXT = 394,
169      SEXT = 395,
170      FPTRUNC = 396,
171      FPEXT = 397,
172      FPTOUI = 398,
173      FPTOSI = 399,
174      UITOFP = 400,
175      SITOFP = 401,
176      PTRTOINT = 402,
177      INTTOPTR = 403,
178      BITCAST = 404
179    };
180 #endif
181 /* Tokens.  */
182 #define VOID 258
183 #define BOOL 259
184 #define SBYTE 260
185 #define UBYTE 261
186 #define SHORT 262
187 #define USHORT 263
188 #define INT 264
189 #define UINT 265
190 #define LONG 266
191 #define ULONG 267
192 #define FLOAT 268
193 #define DOUBLE 269
194 #define LABEL 270
195 #define OPAQUE 271
196 #define ESINT64VAL 272
197 #define EUINT64VAL 273
198 #define SINTVAL 274
199 #define UINTVAL 275
200 #define FPVAL 276
201 #define NULL_TOK 277
202 #define UNDEF 278
203 #define ZEROINITIALIZER 279
204 #define TRUETOK 280
205 #define FALSETOK 281
206 #define TYPE 282
207 #define VAR_ID 283
208 #define LABELSTR 284
209 #define STRINGCONSTANT 285
210 #define IMPLEMENTATION 286
211 #define BEGINTOK 287
212 #define ENDTOK 288
213 #define DECLARE 289
214 #define GLOBAL 290
215 #define CONSTANT 291
216 #define SECTION 292
217 #define VOLATILE 293
218 #define TO 294
219 #define DOTDOTDOT 295
220 #define CONST 296
221 #define INTERNAL 297
222 #define LINKONCE 298
223 #define WEAK 299
224 #define DLLIMPORT 300
225 #define DLLEXPORT 301
226 #define EXTERN_WEAK 302
227 #define APPENDING 303
228 #define EXTERNAL 304
229 #define TARGET 305
230 #define TRIPLE 306
231 #define ENDIAN 307
232 #define POINTERSIZE 308
233 #define LITTLE 309
234 #define BIG 310
235 #define ALIGN 311
236 #define UNINITIALIZED 312
237 #define DEPLIBS 313
238 #define CALL 314
239 #define TAIL 315
240 #define ASM_TOK 316
241 #define MODULE 317
242 #define SIDEEFFECT 318
243 #define CC_TOK 319
244 #define CCC_TOK 320
245 #define CSRETCC_TOK 321
246 #define FASTCC_TOK 322
247 #define COLDCC_TOK 323
248 #define X86_STDCALLCC_TOK 324
249 #define X86_FASTCALLCC_TOK 325
250 #define DATALAYOUT 326
251 #define RET 327
252 #define BR 328
253 #define SWITCH 329
254 #define INVOKE 330
255 #define EXCEPT 331
256 #define UNWIND 332
257 #define UNREACHABLE 333
258 #define ADD 334
259 #define SUB 335
260 #define MUL 336
261 #define DIV 337
262 #define UDIV 338
263 #define SDIV 339
264 #define FDIV 340
265 #define REM 341
266 #define UREM 342
267 #define SREM 343
268 #define FREM 344
269 #define AND 345
270 #define OR 346
271 #define XOR 347
272 #define SETLE 348
273 #define SETGE 349
274 #define SETLT 350
275 #define SETGT 351
276 #define SETEQ 352
277 #define SETNE 353
278 #define ICMP 354
279 #define FCMP 355
280 #define EQ 356
281 #define NE 357
282 #define SLT 358
283 #define SGT 359
284 #define SLE 360
285 #define SGE 361
286 #define OEQ 362
287 #define ONE 363
288 #define OLT 364
289 #define OGT 365
290 #define OLE 366
291 #define OGE 367
292 #define ORD 368
293 #define UNO 369
294 #define UEQ 370
295 #define UNE 371
296 #define ULT 372
297 #define UGT 373
298 #define ULE 374
299 #define UGE 375
300 #define MALLOC 376
301 #define ALLOCA 377
302 #define FREE 378
303 #define LOAD 379
304 #define STORE 380
305 #define GETELEMENTPTR 381
306 #define PHI_TOK 382
307 #define SELECT 383
308 #define SHL 384
309 #define SHR 385
310 #define ASHR 386
311 #define LSHR 387
312 #define VAARG 388
313 #define EXTRACTELEMENT 389
314 #define INSERTELEMENT 390
315 #define SHUFFLEVECTOR 391
316 #define CAST 392
317 #define TRUNC 393
318 #define ZEXT 394
319 #define SEXT 395
320 #define FPTRUNC 396
321 #define FPEXT 397
322 #define FPTOUI 398
323 #define FPTOSI 399
324 #define UITOFP 400
325 #define SITOFP 401
326 #define PTRTOINT 402
327 #define INTTOPTR 403
328 #define BITCAST 404
329
330
331
332
333 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
334 #line 806 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
335 typedef union YYSTYPE {
336   std::string*    String;
337   const TypeInfo* Type;
338   ValueInfo       Value;
339   ConstInfo       Const;
340   ValueList*      ValList;
341   TypeList*       TypeVec;
342 } YYSTYPE;
343 /* Line 1447 of yacc.c.  */
344 #line 345 "UpgradeParser.tab.h"
345 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
346 # define YYSTYPE_IS_DECLARED 1
347 # define YYSTYPE_IS_TRIVIAL 1
348 #endif
349
350 extern YYSTYPE Upgradelval;
351
352
353