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
51 ZEROINITIALIZER = 277,
94 X86_STDCALLCC_TOK = 320,
95 X86_FASTCALLCC_TOK = 321,
161 EXTRACTELEMENT = 387,
168 #define ESINT64VAL 258
169 #define EUINT64VAL 259
185 #define STRINGCONSTANT 275
186 #define IMPLEMENTATION 276
187 #define ZEROINITIALIZER 277
199 #define DOTDOTDOT 289
205 #define APPENDING 295
206 #define DLLIMPORT 296
207 #define DLLEXPORT 297
208 #define EXTERN_WEAK 298
215 #define POINTERSIZE 305
224 #define SIDEEFFECT 314
227 #define CSRETCC_TOK 317
228 #define FASTCC_TOK 318
229 #define COLDCC_TOK 319
230 #define X86_STDCALLCC_TOK 320
231 #define X86_FASTCALLCC_TOK 321
232 #define DATALAYOUT 322
238 #define UNREACHABLE 328
278 #define GETELEMENTPTR 368
297 #define EXTRACTELEMENT 387
298 #define INSERTELEMENT 388
299 #define SHUFFLEVECTOR 389
305 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
306 #line 876 "/proj/llvm/llvm-3/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::FunctionType::ParameterAttributes ParamAttrs;
340 char *StrVal; // This memory is strdup'd!
341 llvm::ValID ValIDVal; // strdup'd memory maybe!
343 llvm::Instruction::BinaryOps BinaryOpVal;
344 llvm::Instruction::TermOps TermOpVal;
345 llvm::Instruction::MemoryOps MemOpVal;
346 llvm::Instruction::CastOps CastOpVal;
347 llvm::Instruction::OtherOps OtherOpVal;
348 llvm::Module::Endianness Endianness;
349 llvm::ICmpInst::Predicate IPredicate;
350 llvm::FCmpInst::Predicate FPredicate;
352 /* Line 1447 of yacc.c. */
353 #line 354 "llvmAsmParser.tab.h"
354 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
355 # define YYSTYPE_IS_DECLARED 1
356 # define YYSTYPE_IS_TRIVIAL 1
359 extern YYSTYPE llvmAsmlval;