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,
175 EXTRACTELEMENT = 401,
183 #define ESINT64VAL 258
184 #define EUINT64VAL 259
204 #define STRINGCONSTANT 279
205 #define IMPLEMENTATION 280
206 #define ZEROINITIALIZER 281
217 #define DOTDOTDOT 292
224 #define APPENDING 299
225 #define DLLIMPORT 300
226 #define DLLEXPORT 301
227 #define EXTERN_WEAK 302
234 #define POINTERSIZE 309
243 #define SIDEEFFECT 318
246 #define CSRETCC_TOK 321
247 #define FASTCC_TOK 322
248 #define COLDCC_TOK 323
249 #define X86_STDCALLCC_TOK 324
250 #define X86_FASTCALLCC_TOK 325
251 #define DATALAYOUT 326
257 #define UNREACHABLE 332
307 #define GETELEMENTPTR 382
326 #define EXTRACTELEMENT 401
327 #define INSERTELEMENT 402
328 #define SHUFFLEVECTOR 403
329 #define VAARG_old 404
330 #define VANEXT_old 405
335 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
336 #line 968 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
337 typedef union YYSTYPE {
338 llvm::Module *ModuleVal;
339 llvm::Function *FunctionVal;
340 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
341 llvm::BasicBlock *BasicBlockVal;
342 llvm::TerminatorInst *TermInstVal;
343 llvm::Instruction *InstVal;
344 llvm::Constant *ConstVal;
346 const llvm::Type *PrimType;
347 llvm::PATypeHolder *TypeVal;
348 llvm::Value *ValueVal;
350 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
351 std::vector<llvm::Value*> *ValueList;
352 std::list<llvm::PATypeHolder> *TypeList;
353 // Represent the RHS of PHI node
354 std::list<std::pair<llvm::Value*,
355 llvm::BasicBlock*> > *PHIList;
356 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
357 std::vector<llvm::Constant*> *ConstVector;
359 llvm::GlobalValue::LinkageTypes Linkage;
367 char *StrVal; // This memory is strdup'd!
368 llvm::ValID ValIDVal; // strdup'd memory maybe!
370 llvm::Instruction::BinaryOps BinaryOpVal;
371 llvm::Instruction::TermOps TermOpVal;
372 llvm::Instruction::MemoryOps MemOpVal;
373 llvm::Instruction::CastOps CastOpVal;
374 llvm::Instruction::OtherOps OtherOpVal;
375 llvm::Module::Endianness Endianness;
376 llvm::ICmpInst::Predicate IPredicate;
377 llvm::FCmpInst::Predicate FPredicate;
379 /* Line 1447 of yacc.c. */
380 #line 381 "llvmAsmParser.tab.h"
381 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
382 # define YYSTYPE_IS_DECLARED 1
383 # define YYSTYPE_IS_TRIVIAL 1
386 extern YYSTYPE llvmAsmlval;