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