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
49 ATSTRINGCONSTANT = 275,
50 ZEROINITIALIZER = 276,
89 X86_STDCALLCC_TOK = 315,
90 X86_FASTCALLCC_TOK = 316,
156 EXTRACTELEMENT = 382,
168 #define ESINT64VAL 258
169 #define EUINT64VAL 259
170 #define ESAPINTVAL 260
171 #define EUAPINTVAL 261
172 #define LOCALVAL_ID 262
173 #define GLOBALVAL_ID 263
182 #define GLOBALVAR 272
184 #define STRINGCONSTANT 274
185 #define ATSTRINGCONSTANT 275
186 #define ZEROINITIALIZER 276
198 #define THREAD_LOCAL 288
200 #define DOTDOTDOT 290
206 #define APPENDING 296
207 #define DLLIMPORT 297
208 #define DLLEXPORT 298
209 #define EXTERN_WEAK 299
220 #define SIDEEFFECT 310
223 #define FASTCC_TOK 313
224 #define COLDCC_TOK 314
225 #define X86_STDCALLCC_TOK 315
226 #define X86_FASTCALLCC_TOK 316
227 #define DATALAYOUT 317
233 #define UNREACHABLE 323
276 #define GETELEMENTPTR 366
292 #define EXTRACTELEMENT 382
293 #define INSERTELEMENT 383
294 #define SHUFFLEVECTOR 384
305 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
306 #line 955 "/proj/llvm/llvm-2/lib/AsmParser/llvmAsmParser.y"
307 typedef union YYSTYPE {
308 llvm::Module *ModuleVal;
309 llvm::Function *FunctionVal;
310 llvm::BasicBlock *BasicBlockVal;
311 llvm::TerminatorInst *TermInstVal;
312 llvm::Instruction *InstVal;
313 llvm::Constant *ConstVal;
315 const llvm::Type *PrimType;
316 std::list<llvm::PATypeHolder> *TypeList;
317 llvm::PATypeHolder *TypeVal;
318 llvm::Value *ValueVal;
319 std::vector<llvm::Value*> *ValueList;
320 llvm::ArgListType *ArgList;
321 llvm::TypeWithAttrs TypeWithAttrs;
322 llvm::TypeWithAttrsList *TypeWithAttrsList;
323 llvm::ValueRefList *ValueRefList;
325 // Represent the RHS of PHI node
326 std::list<std::pair<llvm::Value*,
327 llvm::BasicBlock*> > *PHIList;
328 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
329 std::vector<llvm::Constant*> *ConstVector;
331 llvm::GlobalValue::LinkageTypes Linkage;
332 llvm::GlobalValue::VisibilityTypes Visibility;
334 llvm::APInt *APIntVal;
342 char *StrVal; // This memory is strdup'd!
343 llvm::ValID ValIDVal; // strdup'd memory maybe!
345 llvm::Instruction::BinaryOps BinaryOpVal;
346 llvm::Instruction::TermOps TermOpVal;
347 llvm::Instruction::MemoryOps MemOpVal;
348 llvm::Instruction::CastOps CastOpVal;
349 llvm::Instruction::OtherOps OtherOpVal;
350 llvm::ICmpInst::Predicate IPredicate;
351 llvm::FCmpInst::Predicate FPredicate;
353 /* Line 1447 of yacc.c. */
354 #line 355 "llvmAsmParser.tab.h"
355 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
356 # define YYSTYPE_IS_DECLARED 1
357 # define YYSTYPE_IS_TRIVIAL 1
360 extern YYSTYPE llvmAsmlval;