| /* A Bison parser, made by GNU Bison 2.1. */ |
| |
| /* Skeleton parser for Yacc-like parsing with Bison, |
| Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2, or (at your option) |
| any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| Boston, MA 02110-1301, USA. */ |
| |
| /* As a special exception, when this file is copied by Bison into a |
| Bison output file, you may use that output file without restriction. |
| This special exception was added by the Free Software Foundation |
| in version 1.24 of Bison. */ |
| |
| /* Tokens. */ |
| #ifndef YYTOKENTYPE |
| # define YYTOKENTYPE |
| /* Put the tokens into the symbol table, so that GDB and other debuggers |
| know about them. */ |
| enum yytokentype { |
| VOID = 258, |
| BOOL = 259, |
| SBYTE = 260, |
| UBYTE = 261, |
| SHORT = 262, |
| USHORT = 263, |
| INT = 264, |
| UINT = 265, |
| LONG = 266, |
| ULONG = 267, |
| FLOAT = 268, |
| DOUBLE = 269, |
| LABEL = 270, |
| OPAQUE = 271, |
| ESINT64VAL = 272, |
| EUINT64VAL = 273, |
| SINTVAL = 274, |
| UINTVAL = 275, |
| FPVAL = 276, |
| NULL_TOK = 277, |
| UNDEF = 278, |
| ZEROINITIALIZER = 279, |
| TRUETOK = 280, |
| FALSETOK = 281, |
| TYPE = 282, |
| VAR_ID = 283, |
| LABELSTR = 284, |
| STRINGCONSTANT = 285, |
| IMPLEMENTATION = 286, |
| BEGINTOK = 287, |
| ENDTOK = 288, |
| DECLARE = 289, |
| GLOBAL = 290, |
| CONSTANT = 291, |
| SECTION = 292, |
| VOLATILE = 293, |
| TO = 294, |
| DOTDOTDOT = 295, |
| CONST = 296, |
| INTERNAL = 297, |
| LINKONCE = 298, |
| WEAK = 299, |
| DLLIMPORT = 300, |
| DLLEXPORT = 301, |
| EXTERN_WEAK = 302, |
| APPENDING = 303, |
| NOT = 304, |
| EXTERNAL = 305, |
| TARGET = 306, |
| TRIPLE = 307, |
| ENDIAN = 308, |
| POINTERSIZE = 309, |
| LITTLE = 310, |
| BIG = 311, |
| ALIGN = 312, |
| DEPLIBS = 313, |
| CALL = 314, |
| TAIL = 315, |
| ASM_TOK = 316, |
| MODULE = 317, |
| SIDEEFFECT = 318, |
| CC_TOK = 319, |
| CCC_TOK = 320, |
| CSRETCC_TOK = 321, |
| FASTCC_TOK = 322, |
| COLDCC_TOK = 323, |
| X86_STDCALLCC_TOK = 324, |
| X86_FASTCALLCC_TOK = 325, |
| DATALAYOUT = 326, |
| RET = 327, |
| BR = 328, |
| SWITCH = 329, |
| INVOKE = 330, |
| UNWIND = 331, |
| UNREACHABLE = 332, |
| ADD = 333, |
| SUB = 334, |
| MUL = 335, |
| UDIV = 336, |
| SDIV = 337, |
| FDIV = 338, |
| UREM = 339, |
| SREM = 340, |
| FREM = 341, |
| AND = 342, |
| OR = 343, |
| XOR = 344, |
| SETLE = 345, |
| SETGE = 346, |
| SETLT = 347, |
| SETGT = 348, |
| SETEQ = 349, |
| SETNE = 350, |
| MALLOC = 351, |
| ALLOCA = 352, |
| FREE = 353, |
| LOAD = 354, |
| STORE = 355, |
| GETELEMENTPTR = 356, |
| PHI_TOK = 357, |
| SELECT = 358, |
| SHL = 359, |
| SHR = 360, |
| ASHR = 361, |
| LSHR = 362, |
| VAARG = 363, |
| EXTRACTELEMENT = 364, |
| INSERTELEMENT = 365, |
| SHUFFLEVECTOR = 366, |
| CAST = 367, |
| TRUNC = 368, |
| ZEXT = 369, |
| SEXT = 370, |
| FPTRUNC = 371, |
| FPEXT = 372, |
| FPTOUI = 373, |
| FPTOSI = 374, |
| UITOFP = 375, |
| SITOFP = 376, |
| PTRTOINT = 377, |
| INTTOPTR = 378, |
| BITCAST = 379 |
| }; |
| #endif |
| /* Tokens. */ |
| #define VOID 258 |
| #define BOOL 259 |
| #define SBYTE 260 |
| #define UBYTE 261 |
| #define SHORT 262 |
| #define USHORT 263 |
| #define INT 264 |
| #define UINT 265 |
| #define LONG 266 |
| #define ULONG 267 |
| #define FLOAT 268 |
| #define DOUBLE 269 |
| #define LABEL 270 |
| #define OPAQUE 271 |
| #define ESINT64VAL 272 |
| #define EUINT64VAL 273 |
| #define SINTVAL 274 |
| #define UINTVAL 275 |
| #define FPVAL 276 |
| #define NULL_TOK 277 |
| #define UNDEF 278 |
| #define ZEROINITIALIZER 279 |
| #define TRUETOK 280 |
| #define FALSETOK 281 |
| #define TYPE 282 |
| #define VAR_ID 283 |
| #define LABELSTR 284 |
| #define STRINGCONSTANT 285 |
| #define IMPLEMENTATION 286 |
| #define BEGINTOK 287 |
| #define ENDTOK 288 |
| #define DECLARE 289 |
| #define GLOBAL 290 |
| #define CONSTANT 291 |
| #define SECTION 292 |
| #define VOLATILE 293 |
| #define TO 294 |
| #define DOTDOTDOT 295 |
| #define CONST 296 |
| #define INTERNAL 297 |
| #define LINKONCE 298 |
| #define WEAK 299 |
| #define DLLIMPORT 300 |
| #define DLLEXPORT 301 |
| #define EXTERN_WEAK 302 |
| #define APPENDING 303 |
| #define NOT 304 |
| #define EXTERNAL 305 |
| #define TARGET 306 |
| #define TRIPLE 307 |
| #define ENDIAN 308 |
| #define POINTERSIZE 309 |
| #define LITTLE 310 |
| #define BIG 311 |
| #define ALIGN 312 |
| #define DEPLIBS 313 |
| #define CALL 314 |
| #define TAIL 315 |
| #define ASM_TOK 316 |
| #define MODULE 317 |
| #define SIDEEFFECT 318 |
| #define CC_TOK 319 |
| #define CCC_TOK 320 |
| #define CSRETCC_TOK 321 |
| #define FASTCC_TOK 322 |
| #define COLDCC_TOK 323 |
| #define X86_STDCALLCC_TOK 324 |
| #define X86_FASTCALLCC_TOK 325 |
| #define DATALAYOUT 326 |
| #define RET 327 |
| #define BR 328 |
| #define SWITCH 329 |
| #define INVOKE 330 |
| #define UNWIND 331 |
| #define UNREACHABLE 332 |
| #define ADD 333 |
| #define SUB 334 |
| #define MUL 335 |
| #define UDIV 336 |
| #define SDIV 337 |
| #define FDIV 338 |
| #define UREM 339 |
| #define SREM 340 |
| #define FREM 341 |
| #define AND 342 |
| #define OR 343 |
| #define XOR 344 |
| #define SETLE 345 |
| #define SETGE 346 |
| #define SETLT 347 |
| #define SETGT 348 |
| #define SETEQ 349 |
| #define SETNE 350 |
| #define MALLOC 351 |
| #define ALLOCA 352 |
| #define FREE 353 |
| #define LOAD 354 |
| #define STORE 355 |
| #define GETELEMENTPTR 356 |
| #define PHI_TOK 357 |
| #define SELECT 358 |
| #define SHL 359 |
| #define SHR 360 |
| #define ASHR 361 |
| #define LSHR 362 |
| #define VAARG 363 |
| #define EXTRACTELEMENT 364 |
| #define INSERTELEMENT 365 |
| #define SHUFFLEVECTOR 366 |
| #define CAST 367 |
| #define TRUNC 368 |
| #define ZEXT 369 |
| #define SEXT 370 |
| #define FPTRUNC 371 |
| #define FPEXT 372 |
| #define FPTOUI 373 |
| #define FPTOSI 374 |
| #define UITOFP 375 |
| #define SITOFP 376 |
| #define PTRTOINT 377 |
| #define INTTOPTR 378 |
| #define BITCAST 379 |
| |
| |
| |
| |
| #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
| #line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y" |
| typedef union YYSTYPE { |
| std::string* String; |
| TypeInfo Type; |
| ValueInfo Value; |
| ConstInfo Const; |
| } YYSTYPE; |
| /* Line 1447 of yacc.c. */ |
| #line 293 "UpgradeParser.tab.h" |
| # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| # define YYSTYPE_IS_DECLARED 1 |
| # define YYSTYPE_IS_TRIVIAL 1 |
| #endif |
| |
| extern YYSTYPE Upgradelval; |
| |
| |
| |