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,
105 X86_STDCALLCC_TOK = 321,
106 X86_FASTCALLCC_TOK = 322,
174 EXTRACTELEMENT = 390,
198 #define ESINT64VAL 258
199 #define EUINT64VAL 259
200 #define ESAPINTVAL 260
201 #define EUAPINTVAL 261
202 #define LOCALVAL_ID 262
203 #define GLOBALVAL_ID 263
211 #define PPC_FP128 271
215 #define GLOBALVAR 275
217 #define STRINGCONSTANT 277
218 #define ATSTRINGCONSTANT 278
219 #define PCTSTRINGCONSTANT 279
220 #define ZEROINITIALIZER 280
232 #define THREAD_LOCAL 292
234 #define DOTDOTDOT 294
240 #define APPENDING 300
241 #define DLLIMPORT 301
242 #define DLLEXPORT 302
243 #define EXTERN_WEAK 303
250 #define ADDRSPACE 310
256 #define SIDEEFFECT 316
259 #define FASTCC_TOK 319
260 #define COLDCC_TOK 320
261 #define X86_STDCALLCC_TOK 321
262 #define X86_FASTCALLCC_TOK 322
263 #define DATALAYOUT 323
269 #define UNREACHABLE 329
314 #define GETELEMENTPTR 374
330 #define EXTRACTELEMENT 390
331 #define INSERTELEMENT 391
332 #define SHUFFLEVECTOR 392
333 #define GETRESULT 393
334 #define EXTRACTVALUE 394
335 #define INSERTVALUE 395
350 #define PROTECTED 410
355 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
356 typedef union YYSTYPE
357 #line 949 "/Users/gohman/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
359 llvm::Module *ModuleVal;
360 llvm::Function *FunctionVal;
361 llvm::BasicBlock *BasicBlockVal;
362 llvm::TerminatorInst *TermInstVal;
363 llvm::Instruction *InstVal;
364 llvm::Constant *ConstVal;
366 const llvm::Type *PrimType;
367 std::list<llvm::PATypeHolder> *TypeList;
368 llvm::PATypeHolder *TypeVal;
369 llvm::Value *ValueVal;
370 std::vector<llvm::Value*> *ValueList;
371 llvm::ArgListType *ArgList;
372 llvm::TypeWithAttrs TypeWithAttrs;
373 llvm::TypeWithAttrsList *TypeWithAttrsList;
374 llvm::ParamList *ParamList;
376 // Represent the RHS of PHI node
377 std::list<std::pair<llvm::Value*,
378 llvm::BasicBlock*> > *PHIList;
379 std::vector<std::pair<llvm::Constant*, llvm::BasicBlock*> > *JumpTable;
380 std::vector<llvm::Constant*> *ConstVector;
382 llvm::GlobalValue::LinkageTypes Linkage;
383 llvm::GlobalValue::VisibilityTypes Visibility;
384 llvm::ParameterAttributes ParamAttrs;
385 llvm::APInt *APIntVal;
390 llvm::APFloat *FPVal;
393 std::string *StrVal; // This memory must be deleted
394 llvm::ValID ValIDVal;
396 llvm::Instruction::BinaryOps BinaryOpVal;
397 llvm::Instruction::TermOps TermOpVal;
398 llvm::Instruction::MemoryOps MemOpVal;
399 llvm::Instruction::CastOps CastOpVal;
400 llvm::Instruction::OtherOps OtherOpVal;
401 llvm::ICmpInst::Predicate IPredicate;
402 llvm::FCmpInst::Predicate FPredicate;
404 /* Line 1529 of yacc.c. */
405 #line 406 "llvmAsmParser.tab.h"
407 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
408 # define YYSTYPE_IS_DECLARED 1
409 # define YYSTYPE_IS_TRIVIAL 1
412 extern YYSTYPE llvmAsmlval;