1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
62 ATSTRINGCONSTANT = 278,
63 PCTSTRINGCONSTANT = 279,
64 ZEROINITIALIZER = 280,
104 X86_STDCALLCC_TOK = 320,
105 X86_FASTCALLCC_TOK = 321,
173 EXTRACTELEMENT = 389,
195 #define ESINT64VAL 258
196 #define EUINT64VAL 259
197 #define ESAPINTVAL 260
198 #define EUAPINTVAL 261
199 #define LOCALVAL_ID 262
200 #define GLOBALVAL_ID 263
208 #define PPC_FP128 271
212 #define GLOBALVAR 275
214 #define STRINGCONSTANT 277
215 #define ATSTRINGCONSTANT 278
216 #define PCTSTRINGCONSTANT 279
217 #define ZEROINITIALIZER 280
229 #define THREAD_LOCAL 292
231 #define DOTDOTDOT 294
237 #define APPENDING 300
238 #define DLLIMPORT 301
239 #define DLLEXPORT 302
240 #define EXTERN_WEAK 303
246 #define ADDRSPACE 309
252 #define SIDEEFFECT 315
255 #define FASTCC_TOK 318
256 #define COLDCC_TOK 319
257 #define X86_STDCALLCC_TOK 320
258 #define X86_FASTCALLCC_TOK 321
259 #define DATALAYOUT 322
265 #define UNREACHABLE 328
310 #define GETELEMENTPTR 373
326 #define EXTRACTELEMENT 389
327 #define INSERTELEMENT 390
328 #define SHUFFLEVECTOR 391
329 #define GETRESULT 392
344 #define PROTECTED 407
349 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
350 typedef union YYSTYPE
351 #line 949 "/llvm/lib/AsmParser/llvmAsmParser.y"
353 llvm::Module *ModuleVal;
354 llvm::Function *FunctionVal;
355 llvm::BasicBlock *BasicBlockVal;
356 llvm::TerminatorInst *TermInstVal;
357 llvm::Instruction *InstVal;
358 llvm::Constant *ConstVal;
360 const llvm::Type *PrimType;
361 std::list<llvm::PATypeHolder> *TypeList;
362 llvm::PATypeHolder *TypeVal;
363 llvm::Value *ValueVal;
364 std::vector<llvm::Value*> *ValueList;
365 llvm::ArgListType *ArgList;
366 llvm::TypeWithAttrs TypeWithAttrs;
367 llvm::TypeWithAttrsList *TypeWithAttrsList;
368 llvm::ParamList *ParamList;
370 // Represent the RHS of PHI node
371 std::list<std::pair<llvm::Value*,
372 llvm::BasicBlock*> > *PHIList;
373 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
374 std::vector<llvm::Constant*> *ConstVector;
376 llvm::GlobalValue::LinkageTypes Linkage;
377 llvm::GlobalValue::VisibilityTypes Visibility;
378 llvm::ParameterAttributes ParamAttrs;
379 llvm::APInt *APIntVal;
384 llvm::APFloat *FPVal;
387 std::string *StrVal; // This memory must be deleted
388 llvm::ValID ValIDVal;
390 llvm::Instruction::BinaryOps BinaryOpVal;
391 llvm::Instruction::TermOps TermOpVal;
392 llvm::Instruction::MemoryOps MemOpVal;
393 llvm::Instruction::CastOps CastOpVal;
394 llvm::Instruction::OtherOps OtherOpVal;
395 llvm::ICmpInst::Predicate IPredicate;
396 llvm::FCmpInst::Predicate FPredicate;
398 /* Line 1529 of yacc.c. */
399 #line 400 "llvmAsmParser.tab.h"
401 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
402 # define YYSTYPE_IS_DECLARED 1
403 # define YYSTYPE_IS_TRIVIAL 1
406 extern YYSTYPE llvmAsmlval;