1 /* A Bison parser, made by GNU Bison 1.875c. */
3 /* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 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., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, 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,
125 #define ESINT64VAL 258
126 #define EUINT64VAL 259
146 #define STRINGCONSTANT 279
147 #define IMPLEMENTATION 280
148 #define ZEROINITIALIZER 281
158 #define DOTDOTDOT 291
165 #define APPENDING 298
172 #define POINTERSIZE 305
180 #define FASTCC_TOK 313
181 #define COLDCC_TOK 314
187 #define UNREACHABLE 320
207 #define GETELEMENTPTR 340
214 #define VAARG_old 347
215 #define VANEXT_old 348
220 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
221 #line 865 "/proj/llvm/build/../llvm/lib/AsmParser/llvmAsmParser.y"
222 typedef union YYSTYPE {
223 llvm::Module *ModuleVal;
224 llvm::Function *FunctionVal;
225 std::pair<llvm::PATypeHolder*, char*> *ArgVal;
226 llvm::BasicBlock *BasicBlockVal;
227 llvm::TerminatorInst *TermInstVal;
228 llvm::Instruction *InstVal;
229 llvm::Constant *ConstVal;
231 const llvm::Type *PrimType;
232 llvm::PATypeHolder *TypeVal;
233 llvm::Value *ValueVal;
235 std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
236 std::vector<llvm::Value*> *ValueList;
237 std::list<llvm::PATypeHolder> *TypeList;
238 // Represent the RHS of PHI node
239 std::list<std::pair<llvm::Value*,
240 llvm::BasicBlock*> > *PHIList;
241 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
242 std::vector<llvm::Constant*> *ConstVector;
244 llvm::GlobalValue::LinkageTypes Linkage;
252 char *StrVal; // This memory is strdup'd!
253 llvm::ValID ValIDVal; // strdup'd memory maybe!
255 llvm::Instruction::BinaryOps BinaryOpVal;
256 llvm::Instruction::TermOps TermOpVal;
257 llvm::Instruction::MemoryOps MemOpVal;
258 llvm::Instruction::OtherOps OtherOpVal;
259 llvm::Module::Endianness Endianness;
261 /* Line 1275 of yacc.c. */
262 #line 263 "llvmAsmParser.tab.h"
263 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
264 # define YYSTYPE_IS_DECLARED 1
265 # define YYSTYPE_IS_TRIVIAL 1
268 extern YYSTYPE llvmAsmlval;