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,
149 EXTRACTELEMENT = 375,
157 #define ESINT64VAL 258
158 #define EUINT64VAL 259
178 #define STRINGCONSTANT 279
179 #define IMPLEMENTATION 280
180 #define ZEROINITIALIZER 281
191 #define DOTDOTDOT 292
198 #define APPENDING 299
199 #define DLLIMPORT 300
200 #define DLLEXPORT 301
201 #define EXTERN_WEAK 302
208 #define POINTERSIZE 309
217 #define SIDEEFFECT 318
220 #define CSRETCC_TOK 321
221 #define FASTCC_TOK 322
222 #define COLDCC_TOK 323
223 #define X86_STDCALLCC_TOK 324
224 #define X86_FASTCALLCC_TOK 325
225 #define DATALAYOUT 326
231 #define UNREACHABLE 332
255 #define GETELEMENTPTR 356
274 #define EXTRACTELEMENT 375
275 #define INSERTELEMENT 376
276 #define SHUFFLEVECTOR 377
277 #define VAARG_old 378
278 #define VANEXT_old 379
283 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
284 #line 1038 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
285 typedef union YYSTYPE {
286 llvm::Module *ModuleVal;
287 llvm::Function *FunctionVal;
288 std::pair<TypeInfo, char*> *ArgVal;
289 llvm::BasicBlock *BasicBlockVal;
290 llvm::TerminatorInst *TermInstVal;
291 llvm::Instruction *InstVal;
296 std::vector<std::pair<TypeInfo,char*> >*ArgList;
297 std::vector<ValueInfo> *ValueList;
298 std::list<TypeInfo> *TypeList;
299 // Represent the RHS of PHI node
300 std::list<std::pair<llvm::Value*, llvm::BasicBlock*> > *PHIList;
301 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
302 std::vector<ConstInfo> *ConstVector;
304 llvm::GlobalValue::LinkageTypes Linkage;
312 char *StrVal; // This memory is strdup'd!
313 llvm::ValID ValIDVal; // strdup'd memory maybe!
315 BinaryOpInfo BinaryOpVal;
316 TermOpInfo TermOpVal;
318 CastOpInfo CastOpVal;
319 OtherOpInfo OtherOpVal;
320 llvm::Module::Endianness Endianness;
322 /* Line 1447 of yacc.c. */
323 #line 324 "llvmAsmParser.tab.h"
324 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
325 # define YYSTYPE_IS_DECLARED 1
326 # define YYSTYPE_IS_TRIVIAL 1
329 extern YYSTYPE llvmAsmlval;