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
49 ATSTRINGCONSTANT = 275,
51 ZEROINITIALIZER = 277,
88 X86_STDCALLCC_TOK = 314,
89 X86_FASTCALLCC_TOK = 315,
155 EXTRACTELEMENT = 381,
166 #define ESINT64VAL 258
167 #define EUINT64VAL 259
168 #define ESAPINTVAL 260
169 #define EUAPINTVAL 261
170 #define LOCALVAL_ID 262
171 #define GLOBALVAL_ID 263
180 #define GLOBALVAR 272
182 #define STRINGCONSTANT 274
183 #define ATSTRINGCONSTANT 275
184 #define IMPLEMENTATION 276
185 #define ZEROINITIALIZER 277
197 #define DOTDOTDOT 289
203 #define APPENDING 295
204 #define DLLIMPORT 296
205 #define DLLEXPORT 297
206 #define EXTERN_WEAK 298
217 #define SIDEEFFECT 309
220 #define FASTCC_TOK 312
221 #define COLDCC_TOK 313
222 #define X86_STDCALLCC_TOK 314
223 #define X86_FASTCALLCC_TOK 315
224 #define DATALAYOUT 316
230 #define UNREACHABLE 322
273 #define GETELEMENTPTR 365
289 #define EXTRACTELEMENT 381
290 #define INSERTELEMENT 382
291 #define SHUFFLEVECTOR 383
301 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
302 #line 939 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
303 typedef union YYSTYPE {
304 llvm::Module *ModuleVal;
305 llvm::Function *FunctionVal;
306 llvm::BasicBlock *BasicBlockVal;
307 llvm::TerminatorInst *TermInstVal;
308 llvm::Instruction *InstVal;
309 llvm::Constant *ConstVal;
311 const llvm::Type *PrimType;
312 std::list<llvm::PATypeHolder> *TypeList;
313 llvm::PATypeHolder *TypeVal;
314 llvm::Value *ValueVal;
315 std::vector<llvm::Value*> *ValueList;
316 llvm::ArgListType *ArgList;
317 llvm::TypeWithAttrs TypeWithAttrs;
318 llvm::TypeWithAttrsList *TypeWithAttrsList;
319 llvm::ValueRefList *ValueRefList;
321 // Represent the RHS of PHI node
322 std::list<std::pair<llvm::Value*,
323 llvm::BasicBlock*> > *PHIList;
324 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
325 std::vector<llvm::Constant*> *ConstVector;
327 llvm::GlobalValue::LinkageTypes Linkage;
328 llvm::GlobalValue::VisibilityTypes Visibility;
329 llvm::FunctionType::ParameterAttributes ParamAttrs;
330 llvm::APInt *APIntVal;
338 char *StrVal; // This memory is strdup'd!
339 llvm::ValID ValIDVal; // strdup'd memory maybe!
341 llvm::Instruction::BinaryOps BinaryOpVal;
342 llvm::Instruction::TermOps TermOpVal;
343 llvm::Instruction::MemoryOps MemOpVal;
344 llvm::Instruction::CastOps CastOpVal;
345 llvm::Instruction::OtherOps OtherOpVal;
346 llvm::ICmpInst::Predicate IPredicate;
347 llvm::FCmpInst::Predicate FPredicate;
349 /* Line 1447 of yacc.c. */
350 #line 351 "llvmAsmParser.tab.h"
351 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
352 # define YYSTYPE_IS_DECLARED 1
353 # define YYSTYPE_IS_TRIVIAL 1
356 extern YYSTYPE llvmAsmlval;