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
47 ZEROINITIALIZER = 273,
89 X86_STDCALLCC_TOK = 315,
90 X86_FASTCALLCC_TOK = 316,
156 EXTRACTELEMENT = 382,
165 #define ESINT64VAL 258
166 #define EUINT64VAL 259
178 #define STRINGCONSTANT 271
179 #define IMPLEMENTATION 272
180 #define ZEROINITIALIZER 273
192 #define DOTDOTDOT 285
198 #define APPENDING 291
199 #define DLLIMPORT 292
200 #define DLLEXPORT 293
201 #define EXTERN_WEAK 294
207 #define POINTERSIZE 300
216 #define SIDEEFFECT 309
219 #define CSRETCC_TOK 312
220 #define FASTCC_TOK 313
221 #define COLDCC_TOK 314
222 #define X86_STDCALLCC_TOK 315
223 #define X86_FASTCALLCC_TOK 316
224 #define DATALAYOUT 317
230 #define UNREACHABLE 323
270 #define GETELEMENTPTR 363
289 #define EXTRACTELEMENT 382
290 #define INSERTELEMENT 383
291 #define SHUFFLEVECTOR 384
299 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
300 #line 883 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
301 typedef union YYSTYPE {
302 llvm::Module *ModuleVal;
303 llvm::Function *FunctionVal;
304 llvm::BasicBlock *BasicBlockVal;
305 llvm::TerminatorInst *TermInstVal;
306 llvm::Instruction *InstVal;
307 llvm::Constant *ConstVal;
309 const llvm::Type *PrimType;
310 std::list<llvm::PATypeHolder> *TypeList;
311 llvm::PATypeHolder *TypeVal;
312 llvm::Value *ValueVal;
313 std::vector<llvm::Value*> *ValueList;
314 llvm::ArgListType *ArgList;
315 llvm::TypeWithAttrs TypeWithAttrs;
316 llvm::TypeWithAttrsList *TypeWithAttrsList;
317 llvm::ValueRefList *ValueRefList;
319 // Represent the RHS of PHI node
320 std::list<std::pair<llvm::Value*,
321 llvm::BasicBlock*> > *PHIList;
322 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
323 std::vector<llvm::Constant*> *ConstVector;
325 llvm::GlobalValue::LinkageTypes Linkage;
326 llvm::GlobalValue::VisibilityTypes Visibility;
327 llvm::FunctionType::ParameterAttributes ParamAttrs;
335 char *StrVal; // This memory is strdup'd!
336 llvm::ValID ValIDVal; // strdup'd memory maybe!
338 llvm::Instruction::BinaryOps BinaryOpVal;
339 llvm::Instruction::TermOps TermOpVal;
340 llvm::Instruction::MemoryOps MemOpVal;
341 llvm::Instruction::CastOps CastOpVal;
342 llvm::Instruction::OtherOps OtherOpVal;
343 llvm::Module::Endianness Endianness;
344 llvm::ICmpInst::Predicate IPredicate;
345 llvm::FCmpInst::Predicate FPredicate;
347 /* Line 1447 of yacc.c. */
348 #line 349 "llvmAsmParser.tab.h"
349 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
350 # define YYSTYPE_IS_DECLARED 1
351 # define YYSTYPE_IS_TRIVIAL 1
354 extern YYSTYPE llvmAsmlval;