Update generated files.
[oota-llvm.git] / tools / llvm-upgrade / UpgradeParser.h.cvs
1 /* A Bison parser, made by GNU Bison 1.875c.  */
2
3 /* Skeleton parser for Yacc-like parsing with Bison,
4    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 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., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, 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      ESINT64VAL = 258,
33      EUINT64VAL = 259,
34      SINTVAL = 260,
35      UINTVAL = 261,
36      FPVAL = 262,
37      VOID = 263,
38      BOOL = 264,
39      SBYTE = 265,
40      UBYTE = 266,
41      SHORT = 267,
42      USHORT = 268,
43      INT = 269,
44      UINT = 270,
45      LONG = 271,
46      ULONG = 272,
47      FLOAT = 273,
48      DOUBLE = 274,
49      TYPE = 275,
50      LABEL = 276,
51      VAR_ID = 277,
52      LABELSTR = 278,
53      STRINGCONSTANT = 279,
54      IMPLEMENTATION = 280,
55      ZEROINITIALIZER = 281,
56      TRUETOK = 282,
57      FALSETOK = 283,
58      BEGINTOK = 284,
59      ENDTOK = 285,
60      DECLARE = 286,
61      GLOBAL = 287,
62      CONSTANT = 288,
63      SECTION = 289,
64      VOLATILE = 290,
65      TO = 291,
66      DOTDOTDOT = 292,
67      NULL_TOK = 293,
68      UNDEF = 294,
69      CONST = 295,
70      INTERNAL = 296,
71      LINKONCE = 297,
72      WEAK = 298,
73      APPENDING = 299,
74      DLLIMPORT = 300,
75      DLLEXPORT = 301,
76      EXTERN_WEAK = 302,
77      OPAQUE = 303,
78      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      UNREACHABLE = 331,
106      UNWIND = 332,
107      EXCEPT = 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      SHL = 348,
123      SHR = 349,
124      ASHR = 350,
125      LSHR = 351,
126      SETLE = 352,
127      SETGE = 353,
128      SETLT = 354,
129      SETGT = 355,
130      SETEQ = 356,
131      SETNE = 357,
132      ICMP = 358,
133      FCMP = 359,
134      MALLOC = 360,
135      ALLOCA = 361,
136      FREE = 362,
137      LOAD = 363,
138      STORE = 364,
139      GETELEMENTPTR = 365,
140      PHI_TOK = 366,
141      SELECT = 367,
142      VAARG = 368,
143      EXTRACTELEMENT = 369,
144      INSERTELEMENT = 370,
145      SHUFFLEVECTOR = 371,
146      VAARG_old = 372,
147      VANEXT_old = 373,
148      EQ = 374,
149      NE = 375,
150      SLT = 376,
151      SGT = 377,
152      SLE = 378,
153      SGE = 379,
154      ULT = 380,
155      UGT = 381,
156      ULE = 382,
157      UGE = 383,
158      OEQ = 384,
159      ONE = 385,
160      OLT = 386,
161      OGT = 387,
162      OLE = 388,
163      OGE = 389,
164      ORD = 390,
165      UNO = 391,
166      UEQ = 392,
167      UNE = 393,
168      CAST = 394,
169      TRUNC = 395,
170      ZEXT = 396,
171      SEXT = 397,
172      FPTRUNC = 398,
173      FPEXT = 399,
174      FPTOUI = 400,
175      FPTOSI = 401,
176      UITOFP = 402,
177      SITOFP = 403,
178      PTRTOINT = 404,
179      INTTOPTR = 405,
180      BITCAST = 406
181    };
182 #endif
183 #define ESINT64VAL 258
184 #define EUINT64VAL 259
185 #define SINTVAL 260
186 #define UINTVAL 261
187 #define FPVAL 262
188 #define VOID 263
189 #define BOOL 264
190 #define SBYTE 265
191 #define UBYTE 266
192 #define SHORT 267
193 #define USHORT 268
194 #define INT 269
195 #define UINT 270
196 #define LONG 271
197 #define ULONG 272
198 #define FLOAT 273
199 #define DOUBLE 274
200 #define TYPE 275
201 #define LABEL 276
202 #define VAR_ID 277
203 #define LABELSTR 278
204 #define STRINGCONSTANT 279
205 #define IMPLEMENTATION 280
206 #define ZEROINITIALIZER 281
207 #define TRUETOK 282
208 #define FALSETOK 283
209 #define BEGINTOK 284
210 #define ENDTOK 285
211 #define DECLARE 286
212 #define GLOBAL 287
213 #define CONSTANT 288
214 #define SECTION 289
215 #define VOLATILE 290
216 #define TO 291
217 #define DOTDOTDOT 292
218 #define NULL_TOK 293
219 #define UNDEF 294
220 #define CONST 295
221 #define INTERNAL 296
222 #define LINKONCE 297
223 #define WEAK 298
224 #define APPENDING 299
225 #define DLLIMPORT 300
226 #define DLLEXPORT 301
227 #define EXTERN_WEAK 302
228 #define OPAQUE 303
229 #define NOT 304
230 #define EXTERNAL 305
231 #define TARGET 306
232 #define TRIPLE 307
233 #define ENDIAN 308
234 #define POINTERSIZE 309
235 #define LITTLE 310
236 #define BIG 311
237 #define ALIGN 312
238 #define DEPLIBS 313
239 #define CALL 314
240 #define TAIL 315
241 #define ASM_TOK 316
242 #define MODULE 317
243 #define SIDEEFFECT 318
244 #define CC_TOK 319
245 #define CCC_TOK 320
246 #define CSRETCC_TOK 321
247 #define FASTCC_TOK 322
248 #define COLDCC_TOK 323
249 #define X86_STDCALLCC_TOK 324
250 #define X86_FASTCALLCC_TOK 325
251 #define DATALAYOUT 326
252 #define RET 327
253 #define BR 328
254 #define SWITCH 329
255 #define INVOKE 330
256 #define UNREACHABLE 331
257 #define UNWIND 332
258 #define EXCEPT 333
259 #define ADD 334
260 #define SUB 335
261 #define MUL 336
262 #define DIV 337
263 #define UDIV 338
264 #define SDIV 339
265 #define FDIV 340
266 #define REM 341
267 #define UREM 342
268 #define SREM 343
269 #define FREM 344
270 #define AND 345
271 #define OR 346
272 #define XOR 347
273 #define SHL 348
274 #define SHR 349
275 #define ASHR 350
276 #define LSHR 351
277 #define SETLE 352
278 #define SETGE 353
279 #define SETLT 354
280 #define SETGT 355
281 #define SETEQ 356
282 #define SETNE 357
283 #define ICMP 358
284 #define FCMP 359
285 #define MALLOC 360
286 #define ALLOCA 361
287 #define FREE 362
288 #define LOAD 363
289 #define STORE 364
290 #define GETELEMENTPTR 365
291 #define PHI_TOK 366
292 #define SELECT 367
293 #define VAARG 368
294 #define EXTRACTELEMENT 369
295 #define INSERTELEMENT 370
296 #define SHUFFLEVECTOR 371
297 #define VAARG_old 372
298 #define VANEXT_old 373
299 #define EQ 374
300 #define NE 375
301 #define SLT 376
302 #define SGT 377
303 #define SLE 378
304 #define SGE 379
305 #define ULT 380
306 #define UGT 381
307 #define ULE 382
308 #define UGE 383
309 #define OEQ 384
310 #define ONE 385
311 #define OLT 386
312 #define OGT 387
313 #define OLE 388
314 #define OGE 389
315 #define ORD 390
316 #define UNO 391
317 #define UEQ 392
318 #define UNE 393
319 #define CAST 394
320 #define TRUNC 395
321 #define ZEXT 396
322 #define SEXT 397
323 #define FPTRUNC 398
324 #define FPEXT 399
325 #define FPTOUI 400
326 #define FPTOSI 401
327 #define UITOFP 402
328 #define SITOFP 403
329 #define PTRTOINT 404
330 #define INTTOPTR 405
331 #define BITCAST 406
332
333
334
335
336 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
337 #line 1776 "/users/dag/projects/cascade/llvm.modified/tools/llvm-upgrade/UpgradeParser.y"
338 typedef union YYSTYPE {
339   llvm::Module                           *ModuleVal;
340   llvm::Function                         *FunctionVal;
341   std::pair<llvm::PATypeInfo, char*>     *ArgVal;
342   llvm::BasicBlock                       *BasicBlockVal;
343   llvm::TermInstInfo                     TermInstVal;
344   llvm::InstrInfo                        InstVal;
345   llvm::ConstInfo                        ConstVal;
346   llvm::ValueInfo                        ValueVal;
347   llvm::PATypeInfo                       TypeVal;
348   llvm::TypeInfo                         PrimType;
349   llvm::PHIListInfo                      PHIList;
350   std::list<llvm::PATypeInfo>            *TypeList;
351   std::vector<llvm::ValueInfo>           *ValueList;
352   std::vector<llvm::ConstInfo>           *ConstVector;
353
354
355   std::vector<std::pair<llvm::PATypeInfo,char*> > *ArgList;
356   // Represent the RHS of PHI node
357   std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
358
359   llvm::GlobalValue::LinkageTypes         Linkage;
360   int64_t                           SInt64Val;
361   uint64_t                          UInt64Val;
362   int                               SIntVal;
363   unsigned                          UIntVal;
364   double                            FPVal;
365   bool                              BoolVal;
366
367   char                             *StrVal;   // This memory is strdup'd!
368   llvm::ValID                       ValIDVal; // strdup'd memory maybe!
369
370   llvm::BinaryOps                   BinaryOpVal;
371   llvm::TermOps                     TermOpVal;
372   llvm::MemoryOps                   MemOpVal;
373   llvm::OtherOps                    OtherOpVal;
374   llvm::CastOps                     CastOpVal;
375   llvm::ICmpInst::Predicate         IPred;
376   llvm::FCmpInst::Predicate         FPred;
377   llvm::Module::Endianness          Endianness;
378 } YYSTYPE;
379 /* Line 1268 of yacc.c.  */
380 #line 381 "UpgradeParser.tab.h"
381 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
382 # define YYSTYPE_IS_DECLARED 1
383 # define YYSTYPE_IS_TRIVIAL 1
384 #endif
385
386 extern YYSTYPE Upgradelval;
387
388
389