aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-08-01 03:59:32 +0000
committerDavid Greene <greened@obbligato.org>2007-08-01 03:59:32 +0000
commit718fda37a70614c5158d0370da70c413fa0b6e0f (patch)
treea1c077e0c673f88f8f8403b34ba1adb5dfe100e4 /lib/AsmParser/llvmAsmParser.cpp.cvs
parent52eec548206d0b135b55ba52dd0e82e978f15ae5 (diff)
Update generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs2275
1 files changed, 1056 insertions, 1219 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index cce94e01f6..0eddc39522 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,7 +1,7 @@
-/* A Bison parser, made by GNU Bison 2.1. */
+/* A Bison parser, made by GNU Bison 1.875c. */
/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
@@ -36,9 +36,6 @@
/* Identify Bison output. */
#define YYBISON 1
-/* Bison version. */
-#define YYBISON_VERSION "2.1"
-
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -48,7 +45,8 @@
/* Using locations. */
#define YYLSP_NEEDED 0
-/* Substitute the variable and function names. */
+/* If NAME_PREFIX is specified substitute the variables and functions
+ names. */
#define yyparse llvmAsmparse
#define yylex llvmAsmlex
#define yyerror llvmAsmerror
@@ -206,7 +204,6 @@
PROTECTED = 397
};
#endif
-/* Tokens. */
#define ESINT64VAL 258
#define EUINT64VAL 259
#define ESAPINTVAL 260
@@ -352,7 +349,7 @@
/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 14 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1309,13 +1306,8 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
# define YYERROR_VERBOSE 0
#endif
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
-#endif
-
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
-#line 957 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 957 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
@@ -1362,8 +1354,8 @@ typedef union YYSTYPE {
llvm::ICmpInst::Predicate IPredicate;
llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE;
-/* Line 196 of yacc.c. */
-#line 1367 "llvmAsmParser.tab.c"
+/* Line 191 of yacc.c. */
+#line 1359 "llvmAsmParser.tab.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
@@ -1374,34 +1366,8 @@ typedef union YYSTYPE {
/* Copy the second part of user declarations. */
-/* Line 219 of yacc.c. */
-#line 1379 "llvmAsmParser.tab.c"
-
-#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
-# define YYSIZE_T __SIZE_TYPE__
-#endif
-#if ! defined (YYSIZE_T) && defined (size_t)
-# define YYSIZE_T size_t
-#endif
-#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-#endif
-#if ! defined (YYSIZE_T)
-# define YYSIZE_T unsigned int
-#endif
-
-#ifndef YY_
-# if YYENABLE_NLS
-# if ENABLE_NLS
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(msgid) dgettext ("bison-runtime", msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(msgid) msgid
-# endif
-#endif
+/* Line 214 of yacc.c. */
+#line 1371 "llvmAsmParser.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
@@ -1409,14 +1375,14 @@ typedef union YYSTYPE {
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
+# define YYSTACK_ALLOC alloca
+# endif
+# else
+# if defined (alloca) || defined (_ALLOCA_H)
+# define YYSTACK_ALLOC alloca
+# else
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if defined (__STDC__) || defined (__cplusplus)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# define YYINCLUDED_STDLIB_H
-# endif
# endif
# endif
# endif
@@ -1424,39 +1390,13 @@ typedef union YYSTYPE {
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
-# endif
# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
-# endif
-# ifdef __cplusplus
-extern "C" {
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifdef __cplusplus
-}
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
# endif
+# define YYSTACK_ALLOC malloc
+# define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
@@ -1468,7 +1408,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- short int yyss;
+ short yyss;
YYSTYPE yyvs;
};
@@ -1478,7 +1418,7 @@ union yyalloc
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
+ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
@@ -1491,7 +1431,7 @@ union yyalloc
# define YYCOPY(To, From, Count) \
do \
{ \
- YYSIZE_T yyi; \
+ register YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
@@ -1520,7 +1460,7 @@ union yyalloc
#if defined (__STDC__) || defined (__cplusplus)
typedef signed char yysigned_char;
#else
- typedef short int yysigned_char;
+ typedef short yysigned_char;
#endif
/* YYFINAL -- State number of the termination state. */
@@ -1541,7 +1481,7 @@ union yyalloc
#define YYUNDEFTOK 2
#define YYMAXUTOK 397
-#define YYTRANSLATE(YYX) \
+#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
@@ -1592,7 +1532,7 @@ static const unsigned char yytranslate[] =
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
-static const unsigned short int yyprhs[] =
+static const unsigned short yyprhs[] =
{
0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
@@ -1628,7 +1568,7 @@ static const unsigned short int yyprhs[] =
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short int yyrhs[] =
+static const short yyrhs[] =
{
201, 0, -1, 70, -1, 71, -1, 72, -1, 73,
-1, 74, -1, 75, -1, 76, -1, 77, -1, 78,
@@ -1729,7 +1669,7 @@ static const short int yyrhs[] =
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const unsigned short int yyrline[] =
+static const unsigned short yyrline[] =
{
0, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
1116, 1117, 1117, 1117, 1117, 1117, 1117, 1118, 1118, 1118,
@@ -1765,8 +1705,8 @@ static const unsigned short int yyrline[] =
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+#if YYDEBUG || YYERROR_VERBOSE
+/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
@@ -1818,7 +1758,7 @@ static const char *const yytname[] =
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
-static const unsigned short int yytoknum[] =
+static const unsigned short yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
@@ -1914,7 +1854,7 @@ static const unsigned char yyr2[] =
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
STATE-NUM when YYTABLE doesn't specify something else to do. Zero
means the default is an error. */
-static const unsigned short int yydefact[] =
+static const unsigned short yydefact[] =
{
68, 58, 65, 59, 66, 60, 200, 198, 0, 0,
0, 0, 0, 0, 78, 67, 0, 68, 196, 82,
@@ -1978,7 +1918,7 @@ static const unsigned short int yydefact[] =
};
/* YYDEFGOTO[NTERM-NUM]. */
-static const short int yydefgoto[] =
+static const short yydefgoto[] =
{
-1, 252, 253, 254, 278, 295, 152, 153, 75, 505,
12, 76, 14, 15, 40, 41, 42, 47, 53, 113,
@@ -1994,7 +1934,7 @@ static const short int yydefgoto[] =
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -522
-static const short int yypact[] =
+static const short yypact[] =
{
40, -522, -522, -522, -522, -522, -522, -522, -24, -105,
-4, -80, 60, -32, 461, -522, 134, 1386, -522, 153,
@@ -2058,7 +1998,7 @@ static const short int yypact[] =
};
/* YYPGOTO[NTERM-NUM]. */
-static const short int yypgoto[] =
+static const short yypgoto[] =
{
-522, 370, 372, 373, 266, 255, -164, -522, 0, -25,
420, 9, -522, -522, -522, -522, 33, -522, -522, -522,
@@ -2076,7 +2016,7 @@ static const short int yypgoto[] =
number is the opposite. If zero, do what YYDEFACT says.
If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -196
-static const short int yytable[] =
+static const short yytable[] =
{
11, 78, 266, 329, 255, 298, 377, 230, 157, 13,
101, 87, 158, 265, 256, 265, 267, 11, 467, 90,
@@ -2236,7 +2176,7 @@ static const short int yytable[] =
205, 206, 207, 208
};
-static const short int yycheck[] =
+static const short yycheck[] =
{
0, 27, 166, 226, 154, 189, 297, 147, 123, 0,
4, 18, 25, 11, 154, 11, 167, 17, 422, 26,
@@ -2461,6 +2401,22 @@ static const unsigned char yystos[] =
144, 224, 224, 14, 68, 224, 14, 224
};
+#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
+# define YYSIZE_T __SIZE_TYPE__
+#endif
+#if ! defined (YYSIZE_T) && defined (size_t)
+# define YYSIZE_T size_t
+#endif
+#if ! defined (YYSIZE_T)
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+#endif
+#if ! defined (YYSIZE_T)
+# define YYSIZE_T unsigned int
+#endif
+
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
@@ -2490,59 +2446,26 @@ do \
goto yybackup; \
} \
else \
- { \
- yyerror (YY_("syntax error: cannot back up")); \
+ { \
+ yyerror ("syntax error: cannot back up");\
YYERROR; \
} \
while (0)
-
#define YYTERROR 1
#define YYERRCODE 256
+/* YYLLOC_DEFAULT -- Compute the default location (before the actions
+ are run). */
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
- If N is 0, then set CURRENT to the empty location which ends
- the previous symbol: RHS[0] (always defined). */
-
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (N) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = \
- YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = \
- YYRHSLOC (Rhs, 0).last_column; \
- } \
- while (0)
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ ((Current).first_line = (Rhs)[1].first_line, \
+ (Current).first_column = (Rhs)[1].first_column, \
+ (Current).last_line = (Rhs)[N].last_line, \
+ (Current).last_column = (Rhs)[N].last_column)
#endif
-
-/* YY_LOCATION_PRINT -- Print the location on the stream.
- This macro was not mandated originally: define only if we know
- we won't break user code: when these are the locations we know. */
-
-#ifndef YY_LOCATION_PRINT
-# if YYLTYPE_IS_TRIVIAL
-# define YY_LOCATION_PRINT(File, Loc) \
- fprintf (File, "%d.%d-%d.%d", \
- (Loc).first_line, (Loc).first_column, \
- (Loc).last_line, (Loc).last_column)
-# else
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-# endif
-#endif
-
-
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
@@ -2565,13 +2488,19 @@ do { \
YYFPRINTF Args; \
} while (0)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+# define YYDSYMPRINT(Args) \
+do { \
+ if (yydebug) \
+ yysymprint Args; \
+} while (0)
+
+# define YYDSYMPRINTF(Title, Token, Value, Location) \
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
- yysymprint (stderr, \
- Type, Value); \
+ yysymprint (stderr, \
+ Token, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
@@ -2583,12 +2512,12 @@ do { \
#if defined (__STDC__) || defined (__cplusplus)
static void
-yy_stack_print (short int *bottom, short int *top)
+yy_stack_print (short *bottom, short *top)
#else
static void
yy_stack_print (bottom, top)
- short int *bottom;
- short int *top;
+ short *bottom;
+ short *top;
#endif
{
YYFPRINTF (stderr, "Stack now");
@@ -2618,13 +2547,13 @@ yy_reduce_print (yyrule)
#endif
{
int yyi;
- unsigned long int yylno = yyrline[yyrule];
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
+ unsigned int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
yyrule - 1, yylno);
/* Print the symbols being reduced, and their result. */
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
- YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
- YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]);
+ YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
+ YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
}
# define YY_REDUCE_PRINT(Rule) \
@@ -2638,7 +2567,8 @@ do { \
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YYDSYMPRINT(Args)
+# define YYDSYMPRINTF(Title, Token, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
@@ -2653,9 +2583,13 @@ int yydebug;
if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if
- YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
+ SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
+#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
+# undef YYMAXDEPTH
+#endif
+
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
@@ -2677,7 +2611,7 @@ yystrlen (yystr)
const char *yystr;
# endif
{
- const char *yys = yystr;
+ register const char *yys = yystr;
while (*yys++ != '\0')
continue;
@@ -2702,8 +2636,8 @@ yystpcpy (yydest, yysrc)
const char *yysrc;
# endif
{
- char *yyd = yydest;
- const char *yys = yysrc;
+ register char *yyd = yydest;
+ register const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
@@ -2713,55 +2647,7 @@ yystpcpy (yydest, yysrc)
# endif
# endif
-# ifndef yytnamerr
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
- quotes and backslashes, so that it's suitable for yyerror. The
- heuristic is that double-quoting is unnecessary unless the string
- contains an apostrophe, a comma, or backslash (other than
- backslash-backslash). YYSTR is taken from yytname. If YYRES is
- null, do not copy; instead, return the length of what the result
- would have been. */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
-{
- if (*yystr == '"')
- {
- size_t yyn = 0;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes: ;
- }
-
- if (! yyres)
- return yystrlen (yystr);
-
- return yystpcpy (yyres, yystr) - yyres;
-}
-# endif
-
-#endif /* YYERROR_VERBOSE */
+#endif /* !YYERROR_VERBOSE */
@@ -2785,15 +2671,15 @@ yysymprint (yyoutput, yytype, yyvaluep)
(void) yyvaluep;
if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ {
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+# ifdef YYPRINT
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# endif
+ }
else
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
-# ifdef YYPRINT
- if (yytype < YYNTOKENS)
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# endif
switch (yytype)
{
default:
@@ -2809,11 +2695,10 @@ yysymprint (yyoutput, yytype, yyvaluep)
#if defined (__STDC__) || defined (__cplusplus)
static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+yydestruct (int yytype, YYSTYPE *yyvaluep)
#else
static void
-yydestruct (yymsg, yytype, yyvaluep)
- const char *yymsg;
+yydestruct (yytype, yyvaluep)
int yytype;
YYSTYPE *yyvaluep;
#endif
@@ -2821,10 +2706,6 @@ yydestruct (yymsg, yytype, yyvaluep)
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
-
switch (yytype)
{
@@ -2852,10 +2733,10 @@ int yyparse ();
-/* The look-ahead symbol. */
+/* The lookahead symbol. */
int yychar;
-/* The semantic value of the look-ahead symbol. */
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Number of syntax errors so far. */
@@ -2886,12 +2767,12 @@ yyparse ()
#endif
{
- int yystate;
- int yyn;
+ register int yystate;
+ register int yyn;
int yyresult;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
+ /* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
/* Three stacks and their tools:
@@ -2903,14 +2784,14 @@ yyparse ()
to reallocate them elsewhere. */
/* The state stack. */
- short int yyssa[YYINITDEPTH];
- short int *yyss = yyssa;
- short int *yyssp;
+ short yyssa[YYINITDEPTH];
+ short *yyss = yyssa;
+ register short *yyssp;
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
+ register YYSTYPE *yyvsp;
@@ -2967,14 +2848,14 @@ yyparse ()
these so that the &'s don't force the real ones into
memory. */
YYSTYPE *yyvs1 = yyvs;
- short int *yyss1 = yyss;
+ short *yyss1 = yyss;
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
+ yyoverflow ("parser stack overflow",
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
@@ -2985,21 +2866,21 @@ yyparse ()
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
+ goto yyoverflowlab;
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ goto yyoverflowlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
- short int *yyss1 = yyss;
+ short *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
- goto yyexhaustedlab;
+ goto yyoverflowlab;
YYSTACK_RELOCATE (yyss);
YYSTACK_RELOCATE (yyvs);
@@ -3031,18 +2912,18 @@ yyparse ()
yybackup:
/* Do appropriate processing given the current state. */
-/* Read a look-ahead token if we need one and don't already have one. */
+/* Read a lookahead token if we need one and don't already have one. */
/* yyresume: */
- /* First try to decide what to do without reference to look-ahead token. */
+ /* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yyn == YYPACT_NINF)
goto yydefault;
- /* Not known => get a look-ahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
@@ -3057,7 +2938,7 @@ yybackup:
else
{
yytoken = YYTRANSLATE (yychar);
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
+ YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
@@ -3077,8 +2958,8 @@ yybackup:
if (yyn == YYFINAL)
YYACCEPT;
- /* Shift the look-ahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+ /* Shift the lookahead token. */
+ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
/* Discard the token being shifted unless it is eof. */
if (yychar != YYEOF)
@@ -3128,555 +3009,555 @@ yyreduce:
switch (yyn)
{
case 29:
-#line 1122 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_EQ; ;}
+#line 1122 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_EQ; ;}
break;
case 30:
-#line 1122 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_NE; ;}
+#line 1122 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_NE; ;}
break;
case 31:
-#line 1123 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_SLT; ;}
+#line 1123 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_SLT; ;}
break;
case 32:
-#line 1123 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_SGT; ;}
+#line 1123 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_SGT; ;}
break;
case 33:
-#line 1124 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_SLE; ;}
+#line 1124 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_SLE; ;}
break;
case 34:
-#line 1124 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_SGE; ;}
+#line 1124 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_SGE; ;}
break;
case 35:
-#line 1125 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_ULT; ;}
+#line 1125 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_ULT; ;}
break;
case 36:
-#line 1125 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_UGT; ;}
+#line 1125 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_UGT; ;}
break;
case 37:
-#line 1126 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_ULE; ;}
+#line 1126 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_ULE; ;}
break;
case 38:
-#line 1126 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.IPredicate) = ICmpInst::ICMP_UGE; ;}
+#line 1126 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.IPredicate = ICmpInst::ICMP_UGE; ;}
break;
case 39:
-#line 1130 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_OEQ; ;}
+#line 1130 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_OEQ; ;}
break;
case 40:
-#line 1130 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_ONE; ;}
+#line 1130 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_ONE; ;}
break;
case 41:
-#line 1131 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_OLT; ;}
+#line 1131 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_OLT; ;}
break;
case 42:
-#line 1131 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_OGT; ;}
+#line 1131 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_OGT; ;}
break;
case 43:
-#line 1132 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_OLE; ;}
+#line 1132 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_OLE; ;}
break;
case 44:
-#line 1132 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_OGE; ;}
+#line 1132 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_OGE; ;}
break;
case 45:
-#line 1133 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_ORD; ;}
+#line 1133 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_ORD; ;}
break;
case 46:
-#line 1133 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_UNO; ;}
+#line 1133 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_UNO; ;}
break;
case 47:
-#line 1134 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_UEQ; ;}
+#line 1134 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_UEQ; ;}
break;
case 48:
-#line 1134 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_UNE; ;}
+#line 1134 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_UNE; ;}
break;
case 49:
-#line 1135 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_ULT; ;}
+#line 1135 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_ULT; ;}
break;
case 50:
-#line 1135 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_UGT; ;}
+#line 1135 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_UGT; ;}
break;
case 51:
-#line 1136 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_ULE; ;}
+#line 1136 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_ULE; ;}
break;
case 52:
-#line 1136 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_UGE; ;}
+#line 1136 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_UGE; ;}
break;
case 53:
-#line 1137 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_TRUE; ;}
+#line 1137 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_TRUE; ;}
break;
case 54:
-#line 1138 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.FPredicate) = FCmpInst::FCMP_FALSE; ;}
+#line 1138 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.FPredicate = FCmpInst::FCMP_FALSE; ;}
break;
case 62:
-#line 1147 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.StrVal) = 0; ;}
+#line 1147 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.StrVal = 0; ;}
break;
case 63:
-#line 1151 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 1151 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
{
- (yyval.StrVal) = (yyvsp[-1].StrVal);
+ yyval.StrVal = yyvsp[-1].StrVal;
CHECK_FOR_ERROR
;}
break;
case 64:
-#line 1155 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 1155 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
{
- (yyval.StrVal) = 0;
+ yyval.StrVal = 0;
CHECK_FOR_ERROR
;}
break;
case 68:
-#line 1163 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 1163 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
{
- (yyval.StrVal) = 0;
+ yyval.StrVal = 0;
CHECK_FOR_ERROR
;}
break;
case 69:
-#line 1168 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 1168 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
{
- (yyval.StrVal) = (yyvsp[-1].StrVal);
+ yyval.StrVal = yyvsp[-1].StrVal;
CHECK_FOR_ERROR
;}
break;
case 70:
-#line 1174 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::InternalLinkage; ;}
+#line 1174 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::InternalLinkage; ;}
break;
case 71:
-#line 1175 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::WeakLinkage; ;}
+#line 1175 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::WeakLinkage; ;}
break;
case 72:
-#line 1176 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::LinkOnceLinkage; ;}
+#line 1176 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::LinkOnceLinkage; ;}
break;
case 73:
-#line 1177 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::AppendingLinkage; ;}
+#line 1177 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::AppendingLinkage; ;}
break;
case 74:
-#line 1178 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::DLLExportLinkage; ;}
+#line 1178 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::DLLExportLinkage; ;}
break;
case 75:
-#line 1182 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::DLLImportLinkage; ;}
+#line 1182 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::DLLImportLinkage; ;}
break;
case 76:
-#line 1183 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::ExternalWeakLinkage; ;}
+#line 1183 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::ExternalWeakLinkage; ;}
break;
case 77:
-#line 1184 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;}
+#line 1184 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"
+ { yyval.Linkage = GlobalValue::ExternalLinkage; ;}
break;
case 78:
-#line 1188 "/proj/llvm/head/llvm/lib/AsmParser/llvmAsmParser.y"
- { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;}
+#line 1188 "/users/dag/projects/cascade/llvm.modified/lib/AsmParser/llvmAsmParser.y"