For PR950:

Regenerate


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-12-31 05:40:51 +00:00
parent e1553cc956
commit 1431061ebb
6 changed files with 3219 additions and 2889 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -235,14 +235,10 @@ x86_fastcallcc { return X86_FASTCALLCC_TOK; }
void { RET_TY(Type::VoidTy, VOID); } void { RET_TY(Type::VoidTy, VOID); }
bool { RET_TY(Type::BoolTy, BOOL); } bool { RET_TY(Type::BoolTy, BOOL); }
sbyte { RET_TY(Type::SByteTy, SBYTE); } i8 { RET_TY(Type::Int8Ty, INT8); }
ubyte { RET_TY(Type::UByteTy, UBYTE); } i16 { RET_TY(Type::Int16Ty, INT16); }
short { RET_TY(Type::ShortTy, SHORT); } i32 { RET_TY(Type::Int32Ty, INT32); }
ushort { RET_TY(Type::UShortTy,USHORT);} i64 { RET_TY(Type::Int64Ty, INT64); }
int { RET_TY(Type::IntTy, INT); }
uint { RET_TY(Type::UIntTy, UINT); }
long { RET_TY(Type::LongTy, LONG); }
ulong { RET_TY(Type::ULongTy, ULONG); }
float { RET_TY(Type::FloatTy, FLOAT); } float { RET_TY(Type::FloatTy, FLOAT); }
double { RET_TY(Type::DoubleTy,DOUBLE);} double { RET_TY(Type::DoubleTy,DOUBLE);}
label { RET_TY(Type::LabelTy, LABEL); } label { RET_TY(Type::LabelTy, LABEL); }

View File

@@ -199,6 +199,29 @@ struct ValID {
} }
}; };
struct TypeWithAttrs {
llvm::PATypeHolder *Ty;
FunctionType::ParameterAttributes Attrs;
};
typedef std::vector<TypeWithAttrs> TypeWithAttrsList;
struct ArgListEntry {
FunctionType::ParameterAttributes Attrs;
llvm::PATypeHolder *Ty;
char *Name;
};
typedef std::vector<struct ArgListEntry> ArgListType;
struct ValueRefListEntry {
Value *Val;
FunctionType::ParameterAttributes Attrs;
};
typedef std::vector<ValueRefListEntry> ValueRefList;
} // End llvm namespace } // End llvm namespace
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@@ -36,136 +36,131 @@
FPVAL = 262, FPVAL = 262,
VOID = 263, VOID = 263,
BOOL = 264, BOOL = 264,
SBYTE = 265, INT8 = 265,
UBYTE = 266, INT16 = 266,
SHORT = 267, INT32 = 267,
USHORT = 268, INT64 = 268,
INT = 269, FLOAT = 269,
UINT = 270, DOUBLE = 270,
LONG = 271, LABEL = 271,
ULONG = 272, TYPE = 272,
FLOAT = 273, VAR_ID = 273,
DOUBLE = 274, LABELSTR = 274,
LABEL = 275, STRINGCONSTANT = 275,
TYPE = 276, IMPLEMENTATION = 276,
VAR_ID = 277, ZEROINITIALIZER = 277,
LABELSTR = 278, TRUETOK = 278,
STRINGCONSTANT = 279, FALSETOK = 279,
IMPLEMENTATION = 280, BEGINTOK = 280,
ZEROINITIALIZER = 281, ENDTOK = 281,
TRUETOK = 282, DECLARE = 282,
FALSETOK = 283, DEFINE = 283,
BEGINTOK = 284, GLOBAL = 284,
ENDTOK = 285, CONSTANT = 285,
DECLARE = 286, SECTION = 286,
DEFINE = 287, VOLATILE = 287,
GLOBAL = 288, TO = 288,
CONSTANT = 289, DOTDOTDOT = 289,
SECTION = 290, NULL_TOK = 290,
VOLATILE = 291, UNDEF = 291,
TO = 292, INTERNAL = 292,
DOTDOTDOT = 293, LINKONCE = 293,
NULL_TOK = 294, WEAK = 294,
UNDEF = 295, APPENDING = 295,
CONST = 296, DLLIMPORT = 296,
INTERNAL = 297, DLLEXPORT = 297,
LINKONCE = 298, EXTERN_WEAK = 298,
WEAK = 299, OPAQUE = 299,
APPENDING = 300, NOT = 300,
DLLIMPORT = 301, EXTERNAL = 301,
DLLEXPORT = 302, TARGET = 302,
EXTERN_WEAK = 303, TRIPLE = 303,
OPAQUE = 304, ENDIAN = 304,
NOT = 305, POINTERSIZE = 305,
EXTERNAL = 306, LITTLE = 306,
TARGET = 307, BIG = 307,
TRIPLE = 308, ALIGN = 308,
ENDIAN = 309, DEPLIBS = 309,
POINTERSIZE = 310, CALL = 310,
LITTLE = 311, TAIL = 311,
BIG = 312, ASM_TOK = 312,
ALIGN = 313, MODULE = 313,
DEPLIBS = 314, SIDEEFFECT = 314,
CALL = 315, CC_TOK = 315,
TAIL = 316, CCC_TOK = 316,
ASM_TOK = 317, CSRETCC_TOK = 317,
MODULE = 318, FASTCC_TOK = 318,
SIDEEFFECT = 319, COLDCC_TOK = 319,
CC_TOK = 320, X86_STDCALLCC_TOK = 320,
CCC_TOK = 321, X86_FASTCALLCC_TOK = 321,
CSRETCC_TOK = 322, DATALAYOUT = 322,
FASTCC_TOK = 323, RET = 323,
COLDCC_TOK = 324, BR = 324,
X86_STDCALLCC_TOK = 325, SWITCH = 325,
X86_FASTCALLCC_TOK = 326, INVOKE = 326,
DATALAYOUT = 327, UNWIND = 327,
RET = 328, UNREACHABLE = 328,
BR = 329, ADD = 329,
SWITCH = 330, SUB = 330,
INVOKE = 331, MUL = 331,
UNWIND = 332, UDIV = 332,
UNREACHABLE = 333, SDIV = 333,
ADD = 334, FDIV = 334,
SUB = 335, UREM = 335,
MUL = 336, SREM = 336,
UDIV = 337, FREM = 337,
SDIV = 338, AND = 338,
FDIV = 339, OR = 339,
UREM = 340, XOR = 340,
SREM = 341, ICMP = 341,
FREM = 342, FCMP = 342,
AND = 343, EQ = 343,
OR = 344, NE = 344,
XOR = 345, SLT = 345,
ICMP = 346, SGT = 346,
FCMP = 347, SLE = 347,
EQ = 348, SGE = 348,
NE = 349, ULT = 349,
SLT = 350, UGT = 350,
SGT = 351, ULE = 351,
SLE = 352, UGE = 352,
SGE = 353, OEQ = 353,
ULT = 354, ONE = 354,
UGT = 355, OLT = 355,
ULE = 356, OGT = 356,
UGE = 357, OLE = 357,
OEQ = 358, OGE = 358,
ONE = 359, ORD = 359,
OLT = 360, UNO = 360,
OGT = 361, UEQ = 361,
OLE = 362, UNE = 362,
OGE = 363, MALLOC = 363,
ORD = 364, ALLOCA = 364,
UNO = 365, FREE = 365,
UEQ = 366, LOAD = 366,
UNE = 367, STORE = 367,
MALLOC = 368, GETELEMENTPTR = 368,
ALLOCA = 369, TRUNC = 369,
FREE = 370, ZEXT = 370,
LOAD = 371, SEXT = 371,
STORE = 372, FPTRUNC = 372,
GETELEMENTPTR = 373, FPEXT = 373,
TRUNC = 374, BITCAST = 374,
ZEXT = 375, UITOFP = 375,
SEXT = 376, SITOFP = 376,
FPTRUNC = 377, FPTOUI = 377,
FPEXT = 378, FPTOSI = 378,
BITCAST = 379, INTTOPTR = 379,
UITOFP = 380, PTRTOINT = 380,
SITOFP = 381, PHI_TOK = 381,
FPTOUI = 382, SELECT = 382,
FPTOSI = 383, SHL = 383,
INTTOPTR = 384, LSHR = 384,
PTRTOINT = 385, ASHR = 385,
PHI_TOK = 386, VAARG = 386,
SELECT = 387, EXTRACTELEMENT = 387,
SHL = 388, INSERTELEMENT = 388,
LSHR = 389, SHUFFLEVECTOR = 389
ASHR = 390,
VAARG = 391,
EXTRACTELEMENT = 392,
INSERTELEMENT = 393,
SHUFFLEVECTOR = 394
}; };
#endif #endif
/* Tokens. */ /* Tokens. */
@@ -176,158 +171,155 @@
#define FPVAL 262 #define FPVAL 262
#define VOID 263 #define VOID 263
#define BOOL 264 #define BOOL 264
#define SBYTE 265 #define INT8 265
#define UBYTE 266 #define INT16 266
#define SHORT 267 #define INT32 267
#define USHORT 268 #define INT64 268
#define INT 269 #define FLOAT 269
#define UINT 270 #define DOUBLE 270
#define LONG 271 #define LABEL 271
#define ULONG 272 #define TYPE 272
#define FLOAT 273 #define VAR_ID 273
#define DOUBLE 274 #define LABELSTR 274
#define LABEL 275 #define STRINGCONSTANT 275
#define TYPE 276 #define IMPLEMENTATION 276
#define VAR_ID 277 #define ZEROINITIALIZER 277
#define LABELSTR 278 #define TRUETOK 278
#define STRINGCONSTANT 279 #define FALSETOK 279
#define IMPLEMENTATION 280 #define BEGINTOK 280
#define ZEROINITIALIZER 281 #define ENDTOK 281
#define TRUETOK 282 #define DECLARE 282
#define FALSETOK 283 #define DEFINE 283
#define BEGINTOK 284 #define GLOBAL 284
#define ENDTOK 285 #define CONSTANT 285
#define DECLARE 286 #define SECTION 286
#define DEFINE 287 #define VOLATILE 287
#define GLOBAL 288 #define TO 288
#define CONSTANT 289 #define DOTDOTDOT 289
#define SECTION 290 #define NULL_TOK 290
#define VOLATILE 291 #define UNDEF 291
#define TO 292 #define INTERNAL 292
#define DOTDOTDOT 293 #define LINKONCE 293
#define NULL_TOK 294 #define WEAK 294
#define UNDEF 295 #define APPENDING 295
#define CONST 296 #define DLLIMPORT 296
#define INTERNAL 297 #define DLLEXPORT 297
#define LINKONCE 298 #define EXTERN_WEAK 298
#define WEAK 299 #define OPAQUE 299
#define APPENDING 300 #define NOT 300
#define DLLIMPORT 301 #define EXTERNAL 301
#define DLLEXPORT 302 #define TARGET 302
#define EXTERN_WEAK 303 #define TRIPLE 303
#define OPAQUE 304 #define ENDIAN 304
#define NOT 305 #define POINTERSIZE 305
#define EXTERNAL 306 #define LITTLE 306
#define TARGET 307 #define BIG 307
#define TRIPLE 308 #define ALIGN 308
#define ENDIAN 309 #define DEPLIBS 309
#define POINTERSIZE 310 #define CALL 310
#define LITTLE 311 #define TAIL 311
#define BIG 312 #define ASM_TOK 312
#define ALIGN 313 #define MODULE 313
#define DEPLIBS 314 #define SIDEEFFECT 314
#define CALL 315 #define CC_TOK 315
#define TAIL 316 #define CCC_TOK 316
#define ASM_TOK 317 #define CSRETCC_TOK 317
#define MODULE 318 #define FASTCC_TOK 318
#define SIDEEFFECT 319 #define COLDCC_TOK 319
#define CC_TOK 320 #define X86_STDCALLCC_TOK 320
#define CCC_TOK 321 #define X86_FASTCALLCC_TOK 321
#define CSRETCC_TOK 322 #define DATALAYOUT 322
#define FASTCC_TOK 323 #define RET 323
#define COLDCC_TOK 324 #define BR 324
#define X86_STDCALLCC_TOK 325 #define SWITCH 325
#define X86_FASTCALLCC_TOK 326 #define INVOKE 326
#define DATALAYOUT 327 #define UNWIND 327
#define RET 328 #define UNREACHABLE 328
#define BR 329 #define ADD 329
#define SWITCH 330 #define SUB 330
#define INVOKE 331 #define MUL 331
#define UNWIND 332 #define UDIV 332
#define UNREACHABLE 333 #define SDIV 333
#define ADD 334 #define FDIV 334
#define SUB 335 #define UREM 335
#define MUL 336 #define SREM 336
#define UDIV 337 #define FREM 337
#define SDIV 338 #define AND 338
#define FDIV 339 #define OR 339
#define UREM 340 #define XOR 340
#define SREM 341 #define ICMP 341
#define FREM 342 #define FCMP 342
#define AND 343 #define EQ 343
#define OR 344 #define NE 344
#define XOR 345 #define SLT 345
#define ICMP 346 #define SGT 346
#define FCMP 347 #define SLE 347
#define EQ 348 #define SGE 348
#define NE 349 #define ULT 349
#define SLT 350 #define UGT 350
#define SGT 351 #define ULE 351
#define SLE 352 #define UGE 352
#define SGE 353 #define OEQ 353
#define ULT 354 #define ONE 354
#define UGT 355 #define OLT 355
#define ULE 356 #define OGT 356
#define UGE 357 #define OLE 357
#define OEQ 358 #define OGE 358
#define ONE 359 #define ORD 359
#define OLT 360 #define UNO 360
#define OGT 361 #define UEQ 361
#define OLE 362 #define UNE 362
#define OGE 363 #define MALLOC 363
#define ORD 364 #define ALLOCA 364
#define UNO 365 #define FREE 365
#define UEQ 366 #define LOAD 366
#define UNE 367 #define STORE 367
#define MALLOC 368 #define GETELEMENTPTR 368
#define ALLOCA 369 #define TRUNC 369
#define FREE 370 #define ZEXT 370
#define LOAD 371 #define SEXT 371
#define STORE 372 #define FPTRUNC 372
#define GETELEMENTPTR 373 #define FPEXT 373
#define TRUNC 374 #define BITCAST 374
#define ZEXT 375 #define UITOFP 375
#define SEXT 376 #define SITOFP 376
#define FPTRUNC 377 #define FPTOUI 377
#define FPEXT 378 #define FPTOSI 378
#define BITCAST 379 #define INTTOPTR 379
#define UITOFP 380 #define PTRTOINT 380
#define SITOFP 381 #define PHI_TOK 381
#define FPTOUI 382 #define SELECT 382
#define FPTOSI 383 #define SHL 383
#define INTTOPTR 384 #define LSHR 384
#define PTRTOINT 385 #define ASHR 385
#define PHI_TOK 386 #define VAARG 386
#define SELECT 387 #define EXTRACTELEMENT 387
#define SHL 388 #define INSERTELEMENT 388
#define LSHR 389 #define SHUFFLEVECTOR 389
#define ASHR 390
#define VAARG 391
#define EXTRACTELEMENT 392
#define INSERTELEMENT 393
#define SHUFFLEVECTOR 394
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 855 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y" #line 843 "/proj/llvm/llvm-3/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE { typedef union YYSTYPE {
llvm::Module *ModuleVal; llvm::Module *ModuleVal;
llvm::Function *FunctionVal; llvm::Function *FunctionVal;
std::pair<llvm::PATypeHolder*, char*> *ArgVal;
llvm::BasicBlock *BasicBlockVal; llvm::BasicBlock *BasicBlockVal;
llvm::TerminatorInst *TermInstVal; llvm::TerminatorInst *TermInstVal;
llvm::Instruction *InstVal; llvm::Instruction *InstVal;
llvm::Constant *ConstVal; llvm::Constant *ConstVal;
const llvm::Type *PrimType; const llvm::Type *PrimType;
std::list<llvm::PATypeHolder> *TypeList;
llvm::PATypeHolder *TypeVal; llvm::PATypeHolder *TypeVal;
llvm::Value *ValueVal; llvm::Value *ValueVal;
std::vector<std::pair<llvm::PATypeHolder*,char*> > *ArgList;
std::vector<llvm::Value*> *ValueList; std::vector<llvm::Value*> *ValueList;
std::list<llvm::PATypeHolder> *TypeList; llvm::ArgListType *ArgList;
llvm::TypeWithAttrs TypeWithAttrs;
llvm::TypeWithAttrsList *TypeWithAttrsList;
llvm::ValueRefList *ValueRefList;
// Represent the RHS of PHI node // Represent the RHS of PHI node
std::list<std::pair<llvm::Value*, std::list<std::pair<llvm::Value*,
llvm::BasicBlock*> > *PHIList; llvm::BasicBlock*> > *PHIList;
@@ -335,6 +327,7 @@ typedef union YYSTYPE {
std::vector<llvm::Constant*> *ConstVector; std::vector<llvm::Constant*> *ConstVector;
llvm::GlobalValue::LinkageTypes Linkage; llvm::GlobalValue::LinkageTypes Linkage;
llvm::FunctionType::ParameterAttributes ParamAttrs;
int64_t SInt64Val; int64_t SInt64Val;
uint64_t UInt64Val; uint64_t UInt64Val;
int SIntVal; int SIntVal;
@@ -355,7 +348,7 @@ typedef union YYSTYPE {
llvm::FCmpInst::Predicate FPredicate; llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE; } YYSTYPE;
/* Line 1447 of yacc.c. */ /* Line 1447 of yacc.c. */
#line 359 "llvmAsmParser.tab.h" #line 352 "llvmAsmParser.tab.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_TRIVIAL 1

File diff suppressed because it is too large Load Diff