1 /* A Bison parser, made by GNU Bison 2.1. */
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.
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)
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.
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. */
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. */
29 /* Put the tokens into the symbol table, so that GDB and other debuggers
55 ZEROINITIALIZER = 281,
98 X86_STDCALLCC_TOK = 324,
99 X86_FASTCALLCC_TOK = 325,
143 EXTRACTELEMENT = 369,
184 #define ESINT64VAL 258
185 #define EUINT64VAL 259
205 #define STRINGCONSTANT 279
206 #define IMPLEMENTATION 280
207 #define ZEROINITIALIZER 281
218 #define DOTDOTDOT 292
225 #define APPENDING 299
226 #define DLLIMPORT 300
227 #define DLLEXPORT 301
228 #define EXTERN_WEAK 302
235 #define POINTERSIZE 309
244 #define SIDEEFFECT 318
247 #define CSRETCC_TOK 321
248 #define FASTCC_TOK 322
249 #define COLDCC_TOK 323
250 #define X86_STDCALLCC_TOK 324
251 #define X86_FASTCALLCC_TOK 325
252 #define DATALAYOUT 326
257 #define UNREACHABLE 331
291 #define GETELEMENTPTR 365
295 #define EXTRACTELEMENT 369
296 #define INSERTELEMENT 370
297 #define SHUFFLEVECTOR 371
298 #define VAARG_old 372
299 #define VANEXT_old 373
337 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
338 #line 1771 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
339 typedef union YYSTYPE {
340 llvm::Module *ModuleVal;
341 llvm::Function *FunctionVal;
342 std::pair<llvm::PATypeInfo, char*> *ArgVal;
343 llvm::BasicBlock *BasicBlockVal;
344 llvm::TermInstInfo TermInstVal;
345 llvm::InstrInfo InstVal;
346 llvm::ConstInfo ConstVal;
347 llvm::ValueInfo ValueVal;
348 llvm::PATypeInfo TypeVal;
349 llvm::TypeInfo PrimType;
350 llvm::PHIListInfo PHIList;
351 std::list<llvm::PATypeInfo> *TypeList;
352 std::vector<llvm::ValueInfo> *ValueList;
353 std::vector<llvm::ConstInfo> *ConstVector;
356 std::vector<std::pair<llvm::PATypeInfo,char*> > *ArgList;
357 // Represent the RHS of PHI node
358 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
360 llvm::GlobalValue::LinkageTypes Linkage;
368 char *StrVal; // This memory is strdup'd!
369 llvm::ValID ValIDVal; // strdup'd memory maybe!
371 llvm::BinaryOps BinaryOpVal;
372 llvm::TermOps TermOpVal;
373 llvm::MemoryOps MemOpVal;
374 llvm::OtherOps OtherOpVal;
375 llvm::CastOps CastOpVal;
376 llvm::ICmpInst::Predicate IPred;
377 llvm::FCmpInst::Predicate FPred;
378 llvm::Module::Endianness Endianness;
380 /* Line 1447 of yacc.c. */
381 #line 382 "UpgradeParser.tab.h"
382 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
383 # define YYSTYPE_IS_DECLARED 1
384 # define YYSTYPE_IS_TRIVIAL 1
387 extern YYSTYPE Upgradelval;