Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 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, |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 37 | TRUETOK = 263, |
| 38 | FALSETOK = 264, |
| 39 | NULL_TOK = 265, |
| 40 | UNDEF = 266, |
| 41 | ZEROINITIALIZER = 267, |
| 42 | VOID = 268, |
| 43 | BOOL = 269, |
| 44 | SBYTE = 270, |
| 45 | UBYTE = 271, |
| 46 | SHORT = 272, |
| 47 | USHORT = 273, |
| 48 | INT = 274, |
| 49 | UINT = 275, |
| 50 | LONG = 276, |
| 51 | ULONG = 277, |
| 52 | FLOAT = 278, |
| 53 | DOUBLE = 279, |
| 54 | LABEL = 280, |
| 55 | OPAQUE = 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, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 74 | DLLIMPORT = 300, |
| 75 | DLLEXPORT = 301, |
| 76 | EXTERN_WEAK = 302, |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 77 | APPENDING = 303, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 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 | MALLOC = 351, |
| 126 | ALLOCA = 352, |
| 127 | FREE = 353, |
| 128 | LOAD = 354, |
| 129 | STORE = 355, |
| 130 | GETELEMENTPTR = 356, |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 131 | PHI_TOK = 357, |
| 132 | SELECT = 358, |
| 133 | SHL = 359, |
| 134 | LSHR = 360, |
| 135 | ASHR = 361, |
| 136 | VAARG = 362, |
| 137 | EXTRACTELEMENT = 363, |
| 138 | INSERTELEMENT = 364, |
| 139 | SHUFFLEVECTOR = 365, |
| 140 | CAST = 366 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 141 | }; |
| 142 | #endif |
| 143 | /* Tokens. */ |
| 144 | #define ESINT64VAL 258 |
| 145 | #define EUINT64VAL 259 |
| 146 | #define SINTVAL 260 |
| 147 | #define UINTVAL 261 |
| 148 | #define FPVAL 262 |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 149 | #define TRUETOK 263 |
| 150 | #define FALSETOK 264 |
| 151 | #define NULL_TOK 265 |
| 152 | #define UNDEF 266 |
| 153 | #define ZEROINITIALIZER 267 |
| 154 | #define VOID 268 |
| 155 | #define BOOL 269 |
| 156 | #define SBYTE 270 |
| 157 | #define UBYTE 271 |
| 158 | #define SHORT 272 |
| 159 | #define USHORT 273 |
| 160 | #define INT 274 |
| 161 | #define UINT 275 |
| 162 | #define LONG 276 |
| 163 | #define ULONG 277 |
| 164 | #define FLOAT 278 |
| 165 | #define DOUBLE 279 |
| 166 | #define LABEL 280 |
| 167 | #define OPAQUE 281 |
| 168 | #define TYPE 282 |
| 169 | #define VAR_ID 283 |
| 170 | #define LABELSTR 284 |
| 171 | #define STRINGCONSTANT 285 |
| 172 | #define IMPLEMENTATION 286 |
| 173 | #define BEGINTOK 287 |
| 174 | #define ENDTOK 288 |
| 175 | #define DECLARE 289 |
| 176 | #define GLOBAL 290 |
| 177 | #define CONSTANT 291 |
| 178 | #define SECTION 292 |
| 179 | #define VOLATILE 293 |
| 180 | #define TO 294 |
| 181 | #define DOTDOTDOT 295 |
| 182 | #define CONST 296 |
| 183 | #define INTERNAL 297 |
| 184 | #define LINKONCE 298 |
| 185 | #define WEAK 299 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 186 | #define DLLIMPORT 300 |
| 187 | #define DLLEXPORT 301 |
| 188 | #define EXTERN_WEAK 302 |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 189 | #define APPENDING 303 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 190 | #define NOT 304 |
| 191 | #define EXTERNAL 305 |
| 192 | #define TARGET 306 |
| 193 | #define TRIPLE 307 |
| 194 | #define ENDIAN 308 |
| 195 | #define POINTERSIZE 309 |
| 196 | #define LITTLE 310 |
| 197 | #define BIG 311 |
| 198 | #define ALIGN 312 |
| 199 | #define DEPLIBS 313 |
| 200 | #define CALL 314 |
| 201 | #define TAIL 315 |
| 202 | #define ASM_TOK 316 |
| 203 | #define MODULE 317 |
| 204 | #define SIDEEFFECT 318 |
| 205 | #define CC_TOK 319 |
| 206 | #define CCC_TOK 320 |
| 207 | #define CSRETCC_TOK 321 |
| 208 | #define FASTCC_TOK 322 |
| 209 | #define COLDCC_TOK 323 |
| 210 | #define X86_STDCALLCC_TOK 324 |
| 211 | #define X86_FASTCALLCC_TOK 325 |
| 212 | #define DATALAYOUT 326 |
| 213 | #define RET 327 |
| 214 | #define BR 328 |
| 215 | #define SWITCH 329 |
| 216 | #define INVOKE 330 |
| 217 | #define UNWIND 331 |
| 218 | #define UNREACHABLE 332 |
| 219 | #define ADD 333 |
| 220 | #define SUB 334 |
| 221 | #define MUL 335 |
| 222 | #define UDIV 336 |
| 223 | #define SDIV 337 |
| 224 | #define FDIV 338 |
| 225 | #define UREM 339 |
| 226 | #define SREM 340 |
| 227 | #define FREM 341 |
| 228 | #define AND 342 |
| 229 | #define OR 343 |
| 230 | #define XOR 344 |
| 231 | #define SETLE 345 |
| 232 | #define SETGE 346 |
| 233 | #define SETLT 347 |
| 234 | #define SETGT 348 |
| 235 | #define SETEQ 349 |
| 236 | #define SETNE 350 |
| 237 | #define MALLOC 351 |
| 238 | #define ALLOCA 352 |
| 239 | #define FREE 353 |
| 240 | #define LOAD 354 |
| 241 | #define STORE 355 |
| 242 | #define GETELEMENTPTR 356 |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 243 | #define PHI_TOK 357 |
| 244 | #define SELECT 358 |
| 245 | #define SHL 359 |
| 246 | #define LSHR 360 |
| 247 | #define ASHR 361 |
| 248 | #define VAARG 362 |
| 249 | #define EXTRACTELEMENT 363 |
| 250 | #define INSERTELEMENT 364 |
| 251 | #define SHUFFLEVECTOR 365 |
| 252 | #define CAST 366 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 258 | #line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y" |
| 259 | typedef union YYSTYPE { |
| 260 | std::string* String; |
| 261 | TypeInfo Type; |
| 262 | ValueInfo Value; |
| 263 | ConstInfo Const; |
| 264 | } YYSTYPE; |
| 265 | /* Line 1447 of yacc.c. */ |
| 266 | #line 267 "UpgradeParser.tab.h" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 267 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 268 | # define YYSTYPE_IS_DECLARED 1 |
| 269 | # define YYSTYPE_IS_TRIVIAL 1 |
| 270 | #endif |
| 271 | |
| 272 | extern YYSTYPE Upgradelval; |
| 273 | |
| 274 | |
| 275 | |