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