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,
138 EXTRACTELEMENT = 364,
146 #define ESINT64VAL 258
147 #define EUINT64VAL 259
167 #define STRINGCONSTANT 279
168 #define IMPLEMENTATION 280
169 #define ZEROINITIALIZER 281
180 #define DOTDOTDOT 292
187 #define APPENDING 299
188 #define DLLIMPORT 300
189 #define DLLEXPORT 301
190 #define EXTERN_WEAK 302
197 #define POINTERSIZE 309
206 #define SIDEEFFECT 318
209 #define CSRETCC_TOK 321
210 #define FASTCC_TOK 322
211 #define COLDCC_TOK 323
212 #define X86_STDCALLCC_TOK 324
213 #define X86_FASTCALLCC_TOK 325
214 #define DATALAYOUT 326
220 #define UNREACHABLE 332
244 #define GETELEMENTPTR 356
252 #define EXTRACTELEMENT 364
253 #define INSERTELEMENT 365
254 #define SHUFFLEVECTOR 366
255 #define VAARG_old 367
256 #define VANEXT_old 368
261 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
262 #line 1040 "/proj/llvm/llvm-3/lib/AsmParser/llvmAsmParser.y"
263 typedef union YYSTYPE {
264 llvm::Module *ModuleVal;
265 llvm::Function *FunctionVal;
266 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
267 llvm::BasicBlock *BasicBlockVal;
268 llvm::TerminatorInst *TermInstVal;
269 llvm::Instruction *InstVal;
270 llvm::Constant *ConstVal;
272 const llvm::Type *PrimType;
273 llvm::PATypeHolder *TypeVal;
274 llvm::Value *ValueVal;
276 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
277 std::vector<llvm::Value*> *ValueList;
278 std::list<llvm::PATypeHolder> *TypeList;
279 // Represent the RHS of PHI node
280 std::list<std::pair<llvm::Value*,
281 llvm::BasicBlock*> > *PHIList;
282 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
283 std::vector<llvm::Constant*> *ConstVector;
285 llvm::GlobalValue::LinkageTypes Linkage;
293 char *StrVal; // This memory is strdup'd!
294 llvm::ValID ValIDVal; // strdup'd memory maybe!
296 BinaryOpInfo BinaryOpVal;
297 TermOpInfo TermOpVal;
299 OtherOpInfo OtherOpVal;
300 llvm::Module::Endianness Endianness;
302 /* Line 1447 of yacc.c. */
303 #line 304 "llvmAsmParser.tab.h"
304 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
305 # define YYSTYPE_IS_DECLARED 1
306 # define YYSTYPE_IS_TRIVIAL 1
309 extern YYSTYPE llvmAsmlval;