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 ATSTRINGCONSTANT = 273,
49 ZEROINITIALIZER = 275,
86 X86_STDCALLCC_TOK = 312,
87 X86_FASTCALLCC_TOK = 313,
153 EXTRACTELEMENT = 379,
164 #define ESINT64VAL 258
165 #define EUINT64VAL 259
166 #define LOCALVAL_ID 260
167 #define GLOBALVAL_ID 261
176 #define GLOBALVAR 270
178 #define STRINGCONSTANT 272
179 #define ATSTRINGCONSTANT 273
180 #define IMPLEMENTATION 274
181 #define ZEROINITIALIZER 275
193 #define DOTDOTDOT 287
199 #define APPENDING 293
200 #define DLLIMPORT 294
201 #define DLLEXPORT 295
202 #define EXTERN_WEAK 296
213 #define SIDEEFFECT 307
216 #define FASTCC_TOK 310
217 #define COLDCC_TOK 311
218 #define X86_STDCALLCC_TOK 312
219 #define X86_FASTCALLCC_TOK 313
220 #define DATALAYOUT 314
226 #define UNREACHABLE 320
269 #define GETELEMENTPTR 363
285 #define EXTRACTELEMENT 379
286 #define INSERTELEMENT 380
287 #define SHUFFLEVECTOR 381
297 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
298 #line 900 "/proj/llvm/llvm-3/lib/AsmParser/llvmAsmParser.y"
299 typedef union YYSTYPE {
300 llvm::Module *ModuleVal;
301 llvm::Function *FunctionVal;
302 llvm::BasicBlock *BasicBlockVal;
303 llvm::TerminatorInst *TermInstVal;
304 llvm::Instruction *InstVal;
305 llvm::Constant *ConstVal;
307 const llvm::Type *PrimType;
308 std::list<llvm::PATypeHolder> *TypeList;
309 llvm::PATypeHolder *TypeVal;
310 llvm::Value *ValueVal;
311 std::vector<llvm::Value*> *ValueList;
312 llvm::ArgListType *ArgList;
313 llvm::TypeWithAttrs TypeWithAttrs;
314 llvm::TypeWithAttrsList *TypeWithAttrsList;
315 llvm::ValueRefList *ValueRefList;
317 // Represent the RHS of PHI node
318 std::list<std::pair<llvm::Value*,
319 llvm::BasicBlock*> > *PHIList;
320 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
321 std::vector<llvm::Constant*> *ConstVector;
323 llvm::GlobalValue::LinkageTypes Linkage;
324 llvm::GlobalValue::VisibilityTypes Visibility;
325 llvm::FunctionType::ParameterAttributes ParamAttrs;
333 char *StrVal; // This memory is strdup'd!
334 llvm::ValID ValIDVal; // strdup'd memory maybe!
336 llvm::Instruction::BinaryOps BinaryOpVal;
337 llvm::Instruction::TermOps TermOpVal;
338 llvm::Instruction::MemoryOps MemOpVal;
339 llvm::Instruction::CastOps CastOpVal;
340 llvm::Instruction::OtherOps OtherOpVal;
341 llvm::ICmpInst::Predicate IPredicate;
342 llvm::FCmpInst::Predicate FPredicate;
344 /* Line 1447 of yacc.c. */
345 #line 346 "llvmAsmParser.tab.h"
346 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
347 # define YYSTYPE_IS_DECLARED 1
348 # define YYSTYPE_IS_TRIVIAL 1
351 extern YYSTYPE llvmAsmlval;