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,
127 EXTRACTELEMENT = 353,
135 #define ESINT64VAL 258
136 #define EUINT64VAL 259
156 #define STRINGCONSTANT 279
157 #define IMPLEMENTATION 280
158 #define ZEROINITIALIZER 281
169 #define DOTDOTDOT 292
176 #define APPENDING 299
183 #define POINTERSIZE 306
192 #define SIDEEFFECT 315
195 #define CSRETCC_TOK 318
196 #define FASTCC_TOK 319
197 #define COLDCC_TOK 320
203 #define UNREACHABLE 326
223 #define GETELEMENTPTR 346
230 #define EXTRACTELEMENT 353
231 #define INSERTELEMENT 354
232 #define SHUFFLEVECTOR 355
233 #define VAARG_old 356
234 #define VANEXT_old 357
239 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
240 #line 897 "/proj/llvm/llvm/lib/AsmParser/llvmAsmParser.y"
241 typedef union YYSTYPE {
242 llvm::Module *ModuleVal;
243 llvm::Function *FunctionVal;
244 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
245 llvm::BasicBlock *BasicBlockVal;
246 llvm::TerminatorInst *TermInstVal;
247 llvm::Instruction *InstVal;
248 llvm::Constant *ConstVal;
250 const llvm::Type *PrimType;
251 llvm::PATypeHolder *TypeVal;
252 llvm::Value *ValueVal;
254 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
255 std::vector<llvm::Value*> *ValueList;
256 std::list<llvm::PATypeHolder> *TypeList;
257 // Represent the RHS of PHI node
258 std::list<std::pair<llvm::Value*,
259 llvm::BasicBlock*> > *PHIList;
260 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
261 std::vector<llvm::Constant*> *ConstVector;
263 llvm::GlobalValue::LinkageTypes Linkage;
271 char *StrVal; // This memory is strdup'd!
272 llvm::ValID ValIDVal; // strdup'd memory maybe!
274 llvm::Instruction::BinaryOps BinaryOpVal;
275 llvm::Instruction::TermOps TermOpVal;
276 llvm::Instruction::MemoryOps MemOpVal;
277 llvm::Instruction::OtherOps OtherOpVal;
278 llvm::Module::Endianness Endianness;
280 /* Line 1447 of yacc.c. */
281 #line 282 "llvmAsmParser.tab.h"
282 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
283 # define YYSTYPE_IS_DECLARED 1
284 # define YYSTYPE_IS_TRIVIAL 1
287 extern YYSTYPE llvmAsmlval;