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,
179 #define ESINT64VAL 258
180 #define EUINT64VAL 259
200 #define STRINGCONSTANT 279
201 #define IMPLEMENTATION 280
202 #define ZEROINITIALIZER 281
213 #define DOTDOTDOT 292
220 #define APPENDING 299
221 #define DLLIMPORT 300
222 #define DLLEXPORT 301
223 #define EXTERN_WEAK 302
230 #define POINTERSIZE 309
239 #define SIDEEFFECT 318
242 #define CSRETCC_TOK 321
243 #define FASTCC_TOK 322
244 #define COLDCC_TOK 323
245 #define X86_STDCALLCC_TOK 324
246 #define X86_FASTCALLCC_TOK 325
247 #define DATALAYOUT 326
253 #define UNREACHABLE 332
299 #define GETELEMENTPTR 378
318 #define EXTRACTELEMENT 397
319 #define INSERTELEMENT 398
320 #define SHUFFLEVECTOR 399
321 #define VAARG_old 400
322 #define VANEXT_old 401
327 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
328 #line 967 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
329 typedef union YYSTYPE {
330 llvm::Module *ModuleVal;
331 llvm::Function *FunctionVal;
332 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
333 llvm::BasicBlock *BasicBlockVal;
334 llvm::TerminatorInst *TermInstVal;
335 llvm::Instruction *InstVal;
336 llvm::Constant *ConstVal;
338 const llvm::Type *PrimType;
339 llvm::PATypeHolder *TypeVal;
340 llvm::Value *ValueVal;
342 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
343 std::vector<llvm::Value*> *ValueList;
344 std::list<llvm::PATypeHolder> *TypeList;
345 // Represent the RHS of PHI node
346 std::list<std::pair<llvm::Value*,
347 llvm::BasicBlock*> > *PHIList;
348 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
349 std::vector<llvm::Constant*> *ConstVector;
351 llvm::GlobalValue::LinkageTypes Linkage;
359 char *StrVal; // This memory is strdup'd!
360 llvm::ValID ValIDVal; // strdup'd memory maybe!
362 llvm::Instruction::BinaryOps BinaryOpVal;
363 llvm::Instruction::TermOps TermOpVal;
364 llvm::Instruction::MemoryOps MemOpVal;
365 llvm::Instruction::CastOps CastOpVal;
366 llvm::Instruction::OtherOps OtherOpVal;
367 llvm::Module::Endianness Endianness;
368 llvm::ICmpInst::Predicate IPredicate;
369 llvm::FCmpInst::Predicate FPredicate;
371 /* Line 1447 of yacc.c. */
372 #line 373 "llvmAsmParser.tab.h"
373 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
374 # define YYSTYPE_IS_DECLARED 1
375 # define YYSTYPE_IS_TRIVIAL 1
378 extern YYSTYPE llvmAsmlval;