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,
171 EXTRACTELEMENT = 397,
177 #define ESINT64VAL 258
178 #define EUINT64VAL 259
198 #define STRINGCONSTANT 279
199 #define IMPLEMENTATION 280
200 #define ZEROINITIALIZER 281
211 #define DOTDOTDOT 292
218 #define APPENDING 299
219 #define DLLIMPORT 300
220 #define DLLEXPORT 301
221 #define EXTERN_WEAK 302
228 #define POINTERSIZE 309
237 #define SIDEEFFECT 318
240 #define CSRETCC_TOK 321
241 #define FASTCC_TOK 322
242 #define COLDCC_TOK 323
243 #define X86_STDCALLCC_TOK 324
244 #define X86_FASTCALLCC_TOK 325
245 #define DATALAYOUT 326
251 #define UNREACHABLE 332
297 #define GETELEMENTPTR 378
316 #define EXTRACTELEMENT 397
317 #define INSERTELEMENT 398
318 #define SHUFFLEVECTOR 399
323 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
324 #line 857 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
325 typedef union YYSTYPE {
326 llvm::Module *ModuleVal;
327 llvm::Function *FunctionVal;
328 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
329 llvm::BasicBlock *BasicBlockVal;
330 llvm::TerminatorInst *TermInstVal;
331 llvm::Instruction *InstVal;
332 llvm::Constant *ConstVal;
334 const llvm::Type *PrimType;
335 llvm::PATypeHolder *TypeVal;
336 llvm::Value *ValueVal;
338 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
339 std::vector<llvm::Value*> *ValueList;
340 std::list<llvm::PATypeHolder> *TypeList;
341 // Represent the RHS of PHI node
342 std::list<std::pair<llvm::Value*,
343 llvm::BasicBlock*> > *PHIList;
344 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
345 std::vector<llvm::Constant*> *ConstVector;
347 llvm::GlobalValue::LinkageTypes Linkage;
355 char *StrVal; // This memory is strdup'd!
356 llvm::ValID ValIDVal; // strdup'd memory maybe!
358 llvm::Instruction::BinaryOps BinaryOpVal;
359 llvm::Instruction::TermOps TermOpVal;
360 llvm::Instruction::MemoryOps MemOpVal;
361 llvm::Instruction::CastOps CastOpVal;
362 llvm::Instruction::OtherOps OtherOpVal;
363 llvm::Module::Endianness Endianness;
364 llvm::ICmpInst::Predicate IPredicate;
365 llvm::FCmpInst::Predicate FPredicate;
367 /* Line 1447 of yacc.c. */
368 #line 369 "llvmAsmParser.tab.h"
369 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
370 # define YYSTYPE_IS_DECLARED 1
371 # define YYSTYPE_IS_TRIVIAL 1
374 extern YYSTYPE llvmAsmlval;