[llvm-commits] [vector_llvm] CVS: llvm/utils/TableGen/FileLexer.cpp FileParser.cpp
Robert Bocchino
bocchino at cs.uiuc.edu
Tue Oct 18 12:22:23 PDT 2005
Changes in directory llvm/utils/TableGen:
FileLexer.cpp updated: 1.3 -> 1.3.2.1
FileParser.cpp updated: 1.9 -> 1.9.2.1
---
Log message:
Initial commit of Vector LLVM.
---
Diffs of the changes: (+126 -122)
FileLexer.cpp | 86 +++++++++++++++---------------
FileParser.cpp | 162 ++++++++++++++++++++++++++++-----------------------------
2 files changed, 126 insertions(+), 122 deletions(-)
Index: llvm/utils/TableGen/FileLexer.cpp
diff -u llvm/utils/TableGen/FileLexer.cpp:1.3 llvm/utils/TableGen/FileLexer.cpp:1.3.2.1
--- llvm/utils/TableGen/FileLexer.cpp:1.3 Mon Sep 12 00:30:06 2005
+++ llvm/utils/TableGen/FileLexer.cpp Tue Oct 18 14:21:59 2005
@@ -21,7 +21,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /home/vadve/shared/PublicCVS/llvm/utils/TableGen/FileLexer.cpp,v 1.3 2005/09/12 05:30:06 lattner Exp $
+ * $Header: /home/vadve/shared/PublicCVS/llvm/utils/TableGen/FileLexer.cpp,v 1.3.2.1 2005/10/18 19:21:59 bocchino Exp $
*/
#define FLEX_SCANNER
@@ -29,7 +29,6 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
-#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -43,6 +42,7 @@
#ifdef __cplusplus
#include <stdlib.h>
+#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@@ -489,7 +489,7 @@
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
-#line 1 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 1 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
#define INITIAL 0
/*===-- FileLexer.l - Scanner for TableGen Files ----------------*- C++ -*-===//
//
@@ -507,7 +507,7 @@
#define YY_NEVER_INTERACTIVE 1
#define comment 1
-#line 30 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 30 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
#include "Record.h"
typedef std::pair<llvm::Record*, std::vector<llvm::Init*>*> SubClassRefTy;
#include "FileParser.h"
@@ -792,10 +792,10 @@
YY_DECL
{
register yy_state_type yy_current_state;
- register char *yy_cp = NULL, *yy_bp = NULL;
+ register char *yy_cp, *yy_bp;
register int yy_act;
-#line 176 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 176 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
#line 802 "Lexer.cpp"
@@ -891,165 +891,165 @@
{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
-#line 178 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 178 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ /* Ignore comments */ }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 180 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 180 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ HandleInclude(yytext); }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 181 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 181 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+2, yytext+yyleng-2);
return CODEFRAGMENT; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 184 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 184 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return INT; }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 185 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 185 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return BIT; }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 186 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 186 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return BITS; }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 187 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 187 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return STRING; }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 188 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 188 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return LIST; }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 189 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 189 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return CODE; }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 190 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 190 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return DAG; }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 192 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 192 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return CLASS; }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 193 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 193 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return DEF; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 194 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 194 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return FIELD; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 195 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 195 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return LET; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 196 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 196 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return IN; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 198 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 198 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return SRATOK; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 199 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 199 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return SRLTOK; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 200 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 200 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return SHLTOK; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 203 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 203 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext, yytext+yyleng);
return ID; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 205 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 205 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+1, yytext+yyleng);
return VARNAME; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 208 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 208 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+1, yytext+yyleng-1);
return STRVAL; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 211 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 211 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ Filelval.IntVal = ParseInt(Filetext); return INTVAL; }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 213 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 213 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ /* Ignore whitespace */ }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 216 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 216 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ BEGIN(comment); CommentDepth++; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 217 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 217 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{} /* eat anything that's not a '*' or '/' */
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 218 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 218 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{} /* eat up '*'s not followed by '/'s */
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 219 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 219 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ ++CommentDepth; }
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 220 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 220 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{} /* eat up /'s not followed by *'s */
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 221 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 221 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ if (!--CommentDepth) { BEGIN(INITIAL); } }
YY_BREAK
case YY_STATE_EOF(comment):
-#line 222 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 222 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ err() << "Unterminated comment!\n"; exit(1); }
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 224 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 224 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
{ return Filetext[0]; }
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 226 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 226 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
#line 1056 "Lexer.cpp"
@@ -1430,7 +1430,6 @@
#endif /* ifndef YY_NO_UNPUT */
-#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
@@ -1504,7 +1503,7 @@
return c;
}
-#endif /* YY_NO_INPUT */
+
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
@@ -1615,6 +1614,11 @@
}
+#ifndef YY_ALWAYS_INTERACTIVE
+#ifndef YY_NEVER_INTERACTIVE
+extern int isatty YY_PROTO(( int ));
+#endif
+#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
@@ -1932,5 +1936,5 @@
return 0;
}
#endif
-#line 226 "/home/vadve/lattner/llvm/utils/TableGen/FileLexer.l"
+#line 226 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileLexer.l"
Index: llvm/utils/TableGen/FileParser.cpp
diff -u llvm/utils/TableGen/FileParser.cpp:1.9 llvm/utils/TableGen/FileParser.cpp:1.9.2.1
--- llvm/utils/TableGen/FileParser.cpp:1.9 Fri Sep 30 01:09:50 2005
+++ llvm/utils/TableGen/FileParser.cpp Tue Oct 18 14:21:59 2005
@@ -1,5 +1,5 @@
-/* A Bison parser, made from /Users/sabre/llvm/utils/TableGen/FileParser.y
+/* A Bison parser, made from /Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y
by GNU Bison version 1.28 */
#define YYBISON 1 /* Identify Bison output. */
@@ -32,7 +32,7 @@
#define STRVAL 275
#define CODEFRAGMENT 276
-#line 14 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 14 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
#include "Record.h"
#include "llvm/ADT/StringExtras.h"
@@ -207,7 +207,7 @@
using namespace llvm;
-#line 189 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 189 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
typedef union {
std::string* StrVal;
int IntVal;
@@ -1005,7 +1005,7 @@
switch (yyn) {
case 1:
-#line 223 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 223 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Rec = Records.getClass(*yyvsp[0].StrVal);
if (yyval.Rec == 0) {
@@ -1016,97 +1016,97 @@
;
break;}
case 2:
-#line 234 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 234 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // string type
yyval.Ty = new StringRecTy();
;
break;}
case 3:
-#line 236 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 236 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // bit type
yyval.Ty = new BitRecTy();
;
break;}
case 4:
-#line 238 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 238 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // bits<x> type
yyval.Ty = new BitsRecTy(yyvsp[-1].IntVal);
;
break;}
case 5:
-#line 240 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 240 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // int type
yyval.Ty = new IntRecTy();
;
break;}
case 6:
-#line 242 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 242 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // list<x> type
yyval.Ty = new ListRecTy(yyvsp[-1].Ty);
;
break;}
case 7:
-#line 244 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 244 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // code type
yyval.Ty = new CodeRecTy();
;
break;}
case 8:
-#line 246 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 246 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // dag type
yyval.Ty = new DagRecTy();
;
break;}
case 9:
-#line 248 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 248 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ // Record Type
yyval.Ty = new RecordRecTy(yyvsp[0].Rec);
;
break;}
case 10:
-#line 252 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 252 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.IntVal = 0; ;
break;}
case 11:
-#line 252 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 252 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.IntVal = 1; ;
break;}
case 12:
-#line 254 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 254 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.Initializer = 0; ;
break;}
case 13:
-#line 254 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 254 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.Initializer = yyvsp[0].Initializer; ;
break;}
case 14:
-#line 256 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 256 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = new IntInit(yyvsp[0].IntVal);
;
break;}
case 15:
-#line 258 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 258 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = new StringInit(*yyvsp[0].StrVal);
delete yyvsp[0].StrVal;
;
break;}
case 16:
-#line 261 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 261 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = new CodeInit(*yyvsp[0].StrVal);
delete yyvsp[0].StrVal;
;
break;}
case 17:
-#line 264 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 264 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = new UnsetInit();
;
break;}
case 18:
-#line 266 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 266 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
BitsInit *Init = new BitsInit(yyvsp[-1].FieldList->size());
for (unsigned i = 0, e = yyvsp[-1].FieldList->size(); i != e; ++i) {
@@ -1123,7 +1123,7 @@
;
break;}
case 19:
-#line 279 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 279 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
// This is a CLASS<initvalslist> expression. This is supposed to synthesize
// a new anonymous definition, deriving from CLASS<initvalslist> with no
@@ -1155,7 +1155,7 @@
;
break;}
case 20:
-#line 307 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 307 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
if (const RecordVal *RV = (CurRec ? CurRec->getValue(*yyvsp[0].StrVal) : 0)) {
yyval.Initializer = new VarInit(*yyvsp[0].StrVal, RV->getType());
@@ -1174,7 +1174,7 @@
;
break;}
case 21:
-#line 322 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 322 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = yyvsp[-3].Initializer->convertInitializerBitRange(*yyvsp[-1].BitList);
if (yyval.Initializer == 0) {
@@ -1185,14 +1185,14 @@
;
break;}
case 22:
-#line 329 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 329 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = new ListInit(*yyvsp[-1].FieldList);
delete yyvsp[-1].FieldList;
;
break;}
case 23:
-#line 332 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 332 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
if (!yyvsp[-2].Initializer->getFieldType(*yyvsp[0].StrVal)) {
err() << "Cannot access field '" << *yyvsp[0].StrVal << "' of value '" << *yyvsp[-2].Initializer << "!\n";
@@ -1203,7 +1203,7 @@
;
break;}
case 24:
-#line 339 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 339 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
Record *D = Records.getDef(*yyvsp[-2].StrVal);
if (D == 0) {
@@ -1215,7 +1215,7 @@
;
break;}
case 25:
-#line 347 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 347 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
std::reverse(yyvsp[-1].BitList->begin(), yyvsp[-1].BitList->end());
yyval.Initializer = yyvsp[-3].Initializer->convertInitListSlice(*yyvsp[-1].BitList);
@@ -1227,7 +1227,7 @@
;
break;}
case 26:
-#line 355 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 355 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = yyvsp[-3].Initializer->getBinaryOp(Init::SHL, yyvsp[-1].Initializer);
if (yyval.Initializer == 0) {
@@ -1237,7 +1237,7 @@
;
break;}
case 27:
-#line 361 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 361 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = yyvsp[-3].Initializer->getBinaryOp(Init::SRA, yyvsp[-1].Initializer);
if (yyval.Initializer == 0) {
@@ -1247,7 +1247,7 @@
;
break;}
case 28:
-#line 367 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 367 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Initializer = yyvsp[-3].Initializer->getBinaryOp(Init::SRL, yyvsp[-1].Initializer);
if (yyval.Initializer == 0) {
@@ -1257,19 +1257,19 @@
;
break;}
case 29:
-#line 375 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 375 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.StrVal = new std::string();
;
break;}
case 30:
-#line 378 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 378 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.StrVal = yyvsp[0].StrVal;
;
break;}
case 31:
-#line 382 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 382 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.DagValueList = new std::vector<std::pair<Init*, std::string> >();
yyval.DagValueList->push_back(std::make_pair(yyvsp[-1].Initializer, *yyvsp[0].StrVal));
@@ -1277,7 +1277,7 @@
;
break;}
case 32:
-#line 387 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 387 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyvsp[-3].DagValueList->push_back(std::make_pair(yyvsp[-1].Initializer, *yyvsp[0].StrVal));
delete yyvsp[0].StrVal;
@@ -1285,24 +1285,24 @@
;
break;}
case 33:
-#line 393 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 393 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.DagValueList = new std::vector<std::pair<Init*, std::string> >();
;
break;}
case 34:
-#line 396 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 396 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.DagValueList = yyvsp[0].DagValueList; ;
break;}
case 35:
-#line 399 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 399 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.BitList = new std::vector<unsigned>();
yyval.BitList->push_back(yyvsp[0].IntVal);
;
break;}
case 36:
-#line 402 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 402 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
if (yyvsp[-2].IntVal < 0 || yyvsp[0].IntVal < 0) {
err() << "Invalid range: " << yyvsp[-2].IntVal << "-" << yyvsp[0].IntVal << "!\n";
@@ -1319,7 +1319,7 @@
;
break;}
case 37:
-#line 415 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 415 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyvsp[0].IntVal = -yyvsp[0].IntVal;
if (yyvsp[-1].IntVal < 0 || yyvsp[0].IntVal < 0) {
@@ -1337,13 +1337,13 @@
;
break;}
case 38:
-#line 429 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 429 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
(yyval.BitList=yyvsp[-2].BitList)->push_back(yyvsp[0].IntVal);
;
break;}
case 39:
-#line 431 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 431 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
if (yyvsp[-2].IntVal < 0 || yyvsp[0].IntVal < 0) {
err() << "Invalid range: " << yyvsp[-2].IntVal << "-" << yyvsp[0].IntVal << "!\n";
@@ -1360,7 +1360,7 @@
;
break;}
case 40:
-#line 444 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 444 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyvsp[0].IntVal = -yyvsp[0].IntVal;
if (yyvsp[-1].IntVal < 0 || yyvsp[0].IntVal < 0) {
@@ -1378,44 +1378,44 @@
;
break;}
case 41:
-#line 460 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 460 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.BitList = yyvsp[0].BitList; std::reverse(yyvsp[0].BitList->begin(), yyvsp[0].BitList->end()); ;
break;}
case 42:
-#line 462 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 462 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.BitList = 0; ;
break;}
case 43:
-#line 462 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 462 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.BitList = yyvsp[-1].BitList; ;
break;}
case 44:
-#line 466 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 466 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.FieldList = new std::vector<Init*>();
;
break;}
case 45:
-#line 468 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 468 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.FieldList = yyvsp[0].FieldList;
;
break;}
case 46:
-#line 472 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 472 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.FieldList = new std::vector<Init*>();
yyval.FieldList->push_back(yyvsp[0].Initializer);
;
break;}
case 47:
-#line 475 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 475 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
(yyval.FieldList = yyvsp[-2].FieldList)->push_back(yyvsp[0].Initializer);
;
break;}
case 48:
-#line 479 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 479 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
std::string DecName = *yyvsp[-1].StrVal;
if (ParsingTemplateArgs)
@@ -1427,13 +1427,13 @@
;
break;}
case 49:
-#line 489 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 489 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
delete yyvsp[-1].StrVal;
;
break;}
case 50:
-#line 491 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 491 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
setValue(*yyvsp[-4].StrVal, yyvsp[-3].BitList, yyvsp[-1].Initializer);
delete yyvsp[-4].StrVal;
@@ -1441,19 +1441,19 @@
;
break;}
case 55:
-#line 500 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 500 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.SubClassRef = new SubClassRefTy(yyvsp[0].Rec, new std::vector<Init*>());
;
break;}
case 56:
-#line 502 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 502 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.SubClassRef = new SubClassRefTy(yyvsp[-3].Rec, yyvsp[-1].FieldList);
;
break;}
case 57:
-#line 506 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 506 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.SubClassList = new std::vector<SubClassRefTy>();
yyval.SubClassList->push_back(*yyvsp[0].SubClassRef);
@@ -1461,52 +1461,52 @@
;
break;}
case 58:
-#line 511 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 511 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
(yyval.SubClassList=yyvsp[-2].SubClassList)->push_back(*yyvsp[0].SubClassRef);
delete yyvsp[0].SubClassRef;
;
break;}
case 59:
-#line 516 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 516 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.SubClassList = new std::vector<SubClassRefTy>();
;
break;}
case 60:
-#line 519 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 519 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.SubClassList = yyvsp[0].SubClassList;
;
break;}
case 61:
-#line 523 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 523 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
CurRec->addTemplateArg(*yyvsp[0].StrVal);
delete yyvsp[0].StrVal;
;
break;}
case 62:
-#line 526 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 526 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
CurRec->addTemplateArg(*yyvsp[0].StrVal);
delete yyvsp[0].StrVal;
;
break;}
case 63:
-#line 531 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 531 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{;
break;}
case 66:
-#line 534 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 534 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.StrVal = yyvsp[0].StrVal; ;
break;}
case 67:
-#line 534 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 534 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ yyval.StrVal = new std::string(); ;
break;}
case 68:
-#line 536 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 536 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
static unsigned AnonCounter = 0;
if (yyvsp[0].StrVal->empty())
@@ -1515,7 +1515,7 @@
;
break;}
case 69:
-#line 543 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 543 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
// If a class of this name already exists, it must be a forward ref.
if ((CurRec = Records.getClass(*yyvsp[0].StrVal))) {
@@ -1535,7 +1535,7 @@
;
break;}
case 70:
-#line 561 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 561 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
CurRec = new Record(*yyvsp[0].StrVal);
delete yyvsp[0].StrVal;
@@ -1549,7 +1549,7 @@
;
break;}
case 71:
-#line 573 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 573 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
for (unsigned i = 0, e = yyvsp[0].SubClassList->size(); i != e; ++i) {
addSubClass((*yyvsp[0].SubClassList)[i].first, *(*yyvsp[0].SubClassList)[i].second);
@@ -1567,32 +1567,32 @@
;
break;}
case 72:
-#line 587 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 587 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Rec = CurRec;
CurRec = 0;
;
break;}
case 73:
-#line 592 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 592 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
ParsingTemplateArgs = true;
;
break;}
case 74:
-#line 594 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 594 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
ParsingTemplateArgs = false;
;
break;}
case 75:
-#line 596 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 596 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyval.Rec = yyvsp[0].Rec;
;
break;}
case 76:
-#line 600 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 600 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
yyvsp[0].Rec->resolveReferences();
@@ -1602,38 +1602,38 @@
;
break;}
case 79:
-#line 611 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 611 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
LetStack.back().push_back(LetRecord(*yyvsp[-3].StrVal, yyvsp[-2].BitList, yyvsp[0].Initializer));
delete yyvsp[-3].StrVal; delete yyvsp[-2].BitList;
;
break;}
case 82:
-#line 619 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 619 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{ LetStack.push_back(std::vector<LetRecord>()); ;
break;}
case 84:
-#line 622 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 622 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
LetStack.pop_back();
;
break;}
case 85:
-#line 625 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 625 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{
LetStack.pop_back();
;
break;}
case 86:
-#line 629 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 629 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{;
break;}
case 87:
-#line 629 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 629 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{;
break;}
case 88:
-#line 631 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 631 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
{;
break;}
}
@@ -1858,7 +1858,7 @@
}
return 1;
}
-#line 633 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
+#line 633 "/Users/bocchino/llvm/obj/../src/utils/TableGen/FileParser.y"
int yyerror(const char *ErrorMsg) {
More information about the llvm-commits
mailing list