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