mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Regenerate.
llvm-svn: 32152
This commit is contained in:
parent
1f0ce9daae
commit
45af0be5e4
File diff suppressed because it is too large
Load Diff
@ -44,10 +44,6 @@ void set_scan_string (const char * str) {
|
||||
llvmAsmlval.type = Instruction::Enum; \
|
||||
return sym
|
||||
|
||||
#define RET_ENUM(type, Enum, sym) \
|
||||
llvmAsmlval.type = Enum; \
|
||||
return sym
|
||||
|
||||
// Construct a token value for an obsolete token
|
||||
#define RET_TY(CTYPE, SYM) \
|
||||
llvmAsmlval.PrimType = CTYPE;\
|
||||
@ -272,30 +268,26 @@ setle { RET_TOK(BinaryOpVal, SetLE, SETLE); }
|
||||
setge { RET_TOK(BinaryOpVal, SetGE, SETGE); }
|
||||
icmp { RET_TOK(OtherOpVal, ICmp, ICMP); }
|
||||
fcmp { RET_TOK(OtherOpVal, FCmp, FCMP); }
|
||||
eq { RET_ENUM(IPredicate, ICmpInst::ICMP_EQ, EQ); }
|
||||
ne { RET_ENUM(IPredicate, ICmpInst::ICMP_NE, NE); }
|
||||
slt { RET_ENUM(IPredicate, ICmpInst::ICMP_SLT, SLT); }
|
||||
sgt { RET_ENUM(IPredicate, ICmpInst::ICMP_SGT, SGT); }
|
||||
sle { RET_ENUM(IPredicate, ICmpInst::ICMP_SLE, SLE); }
|
||||
sge { RET_ENUM(IPredicate, ICmpInst::ICMP_SGE, SGE); }
|
||||
ult { RET_ENUM(IPredicate, ICmpInst::ICMP_ULT, ULT); }
|
||||
ugt { RET_ENUM(IPredicate, ICmpInst::ICMP_UGT, UGT); }
|
||||
ule { RET_ENUM(IPredicate, ICmpInst::ICMP_ULE, ULE); }
|
||||
uge { RET_ENUM(IPredicate, ICmpInst::ICMP_UGE, UGE); }
|
||||
ordeq { RET_ENUM(FPredicate, FCmpInst::FCMP_OEQ, ORDEQ); }
|
||||
ordne { RET_ENUM(FPredicate, FCmpInst::FCMP_ONE, ORDNE); }
|
||||
ordlt { RET_ENUM(FPredicate, FCmpInst::FCMP_OLT, ORDLT); }
|
||||
ordgt { RET_ENUM(FPredicate, FCmpInst::FCMP_OGT, ORDGT); }
|
||||
ordle { RET_ENUM(FPredicate, FCmpInst::FCMP_OLE, ORDLE); }
|
||||
ordge { RET_ENUM(FPredicate, FCmpInst::FCMP_OGE, ORDGE); }
|
||||
ord { RET_ENUM(FPredicate, FCmpInst::FCMP_ORD, ORD); }
|
||||
uno { RET_ENUM(FPredicate, FCmpInst::FCMP_UNO, UNO); }
|
||||
unoeq { RET_ENUM(FPredicate, FCmpInst::FCMP_UEQ, UNOEQ); }
|
||||
unone { RET_ENUM(FPredicate, FCmpInst::FCMP_UNE, UNONE); }
|
||||
unolt { RET_ENUM(FPredicate, FCmpInst::FCMP_ULT, UNOLT); }
|
||||
unogt { RET_ENUM(FPredicate, FCmpInst::FCMP_UGT, UNOGT); }
|
||||
unole { RET_ENUM(FPredicate, FCmpInst::FCMP_ULE, UNOLE); }
|
||||
unoge { RET_ENUM(FPredicate, FCmpInst::FCMP_UGE, UNOGE); }
|
||||
eq { return EQ; }
|
||||
ne { return NE; }
|
||||
slt { return SLT; }
|
||||
sgt { return SGT; }
|
||||
sle { return SLE; }
|
||||
sge { return SGE; }
|
||||
ult { return ULT; }
|
||||
ugt { return UGT; }
|
||||
ule { return ULE; }
|
||||
uge { return UGE; }
|
||||
oeq { return OEQ; }
|
||||
one { return ONE; }
|
||||
olt { return OLT; }
|
||||
ogt { return OGT; }
|
||||
ole { return OLE; }
|
||||
oge { return OGE; }
|
||||
ord { return ORD; }
|
||||
uno { return UNO; }
|
||||
ueq { return UEQ; }
|
||||
une { return UNE; }
|
||||
|
||||
phi { RET_TOK(OtherOpVal, PHI, PHI_TOK); }
|
||||
call { RET_TOK(OtherOpVal, Call, CALL); }
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -134,49 +134,45 @@
|
||||
UGT = 360,
|
||||
ULE = 361,
|
||||
UGE = 362,
|
||||
ORDEQ = 363,
|
||||
ORDNE = 364,
|
||||
ORDLT = 365,
|
||||
ORDGT = 366,
|
||||
ORDLE = 367,
|
||||
ORDGE = 368,
|
||||
OEQ = 363,
|
||||
ONE = 364,
|
||||
OLT = 365,
|
||||
OGT = 366,
|
||||
OLE = 367,
|
||||
OGE = 368,
|
||||
ORD = 369,
|
||||
UNO = 370,
|
||||
UNOEQ = 371,
|
||||
UNONE = 372,
|
||||
UNOLT = 373,
|
||||
UNOGT = 374,
|
||||
UNOLE = 375,
|
||||
UNOGE = 376,
|
||||
MALLOC = 377,
|
||||
ALLOCA = 378,
|
||||
FREE = 379,
|
||||
LOAD = 380,
|
||||
STORE = 381,
|
||||
GETELEMENTPTR = 382,
|
||||
TRUNC = 383,
|
||||
ZEXT = 384,
|
||||
SEXT = 385,
|
||||
FPTRUNC = 386,
|
||||
FPEXT = 387,
|
||||
BITCAST = 388,
|
||||
UITOFP = 389,
|
||||
SITOFP = 390,
|
||||
FPTOUI = 391,
|
||||
FPTOSI = 392,
|
||||
INTTOPTR = 393,
|
||||
PTRTOINT = 394,
|
||||
PHI_TOK = 395,
|
||||
SELECT = 396,
|
||||
SHL = 397,
|
||||
LSHR = 398,
|
||||
ASHR = 399,
|
||||
VAARG = 400,
|
||||
EXTRACTELEMENT = 401,
|
||||
INSERTELEMENT = 402,
|
||||
SHUFFLEVECTOR = 403,
|
||||
VAARG_old = 404,
|
||||
VANEXT_old = 405
|
||||
UEQ = 371,
|
||||
UNE = 372,
|
||||
MALLOC = 373,
|
||||
ALLOCA = 374,
|
||||
FREE = 375,
|
||||
LOAD = 376,
|
||||
STORE = 377,
|
||||
GETELEMENTPTR = 378,
|
||||
TRUNC = 379,
|
||||
ZEXT = 380,
|
||||
SEXT = 381,
|
||||
FPTRUNC = 382,
|
||||
FPEXT = 383,
|
||||
BITCAST = 384,
|
||||
UITOFP = 385,
|
||||
SITOFP = 386,
|
||||
FPTOUI = 387,
|
||||
FPTOSI = 388,
|
||||
INTTOPTR = 389,
|
||||
PTRTOINT = 390,
|
||||
PHI_TOK = 391,
|
||||
SELECT = 392,
|
||||
SHL = 393,
|
||||
LSHR = 394,
|
||||
ASHR = 395,
|
||||
VAARG = 396,
|
||||
EXTRACTELEMENT = 397,
|
||||
INSERTELEMENT = 398,
|
||||
SHUFFLEVECTOR = 399,
|
||||
VAARG_old = 400,
|
||||
VANEXT_old = 401
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
@ -285,49 +281,45 @@
|
||||
#define UGT 360
|
||||
#define ULE 361
|
||||
#define UGE 362
|
||||
#define ORDEQ 363
|
||||
#define ORDNE 364
|
||||
#define ORDLT 365
|
||||
#define ORDGT 366
|
||||
#define ORDLE 367
|
||||
#define ORDGE 368
|
||||
#define OEQ 363
|
||||
#define ONE 364
|
||||
#define OLT 365
|
||||
#define OGT 366
|
||||
#define OLE 367
|
||||
#define OGE 368
|
||||
#define ORD 369
|
||||
#define UNO 370
|
||||
#define UNOEQ 371
|
||||
#define UNONE 372
|
||||
#define UNOLT 373
|
||||
#define UNOGT 374
|
||||
#define UNOLE 375
|
||||
#define UNOGE 376
|
||||
#define MALLOC 377
|
||||
#define ALLOCA 378
|
||||
#define FREE 379
|
||||
#define LOAD 380
|
||||
#define STORE 381
|
||||
#define GETELEMENTPTR 382
|
||||
#define TRUNC 383
|
||||
#define ZEXT 384
|
||||
#define SEXT 385
|
||||
#define FPTRUNC 386
|
||||
#define FPEXT 387
|
||||
#define BITCAST 388
|
||||
#define UITOFP 389
|
||||
#define SITOFP 390
|
||||
#define FPTOUI 391
|
||||
#define FPTOSI 392
|
||||
#define INTTOPTR 393
|
||||
#define PTRTOINT 394
|
||||
#define PHI_TOK 395
|
||||
#define SELECT 396
|
||||
#define SHL 397
|
||||
#define LSHR 398
|
||||
#define ASHR 399
|
||||
#define VAARG 400
|
||||
#define EXTRACTELEMENT 401
|
||||
#define INSERTELEMENT 402
|
||||
#define SHUFFLEVECTOR 403
|
||||
#define VAARG_old 404
|
||||
#define VANEXT_old 405
|
||||
#define UEQ 371
|
||||
#define UNE 372
|
||||
#define MALLOC 373
|
||||
#define ALLOCA 374
|
||||
#define FREE 375
|
||||
#define LOAD 376
|
||||
#define STORE 377
|
||||
#define GETELEMENTPTR 378
|
||||
#define TRUNC 379
|
||||
#define ZEXT 380
|
||||
#define SEXT 381
|
||||
#define FPTRUNC 382
|
||||
#define FPEXT 383
|
||||
#define BITCAST 384
|
||||
#define UITOFP 385
|
||||
#define SITOFP 386
|
||||
#define FPTOUI 387
|
||||
#define FPTOSI 388
|
||||
#define INTTOPTR 389
|
||||
#define PTRTOINT 390
|
||||
#define PHI_TOK 391
|
||||
#define SELECT 392
|
||||
#define SHL 393
|
||||
#define LSHR 394
|
||||
#define ASHR 395
|
||||
#define VAARG 396
|
||||
#define EXTRACTELEMENT 397
|
||||
#define INSERTELEMENT 398
|
||||
#define SHUFFLEVECTOR 399
|
||||
#define VAARG_old 400
|
||||
#define VANEXT_old 401
|
||||
|
||||
|
||||
|
||||
@ -377,7 +369,7 @@ typedef union YYSTYPE {
|
||||
llvm::FCmpInst::Predicate FPredicate;
|
||||
} YYSTYPE;
|
||||
/* Line 1447 of yacc.c. */
|
||||
#line 381 "llvmAsmParser.tab.h"
|
||||
#line 373 "llvmAsmParser.tab.h"
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
|
@ -1076,11 +1076,10 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
|
||||
%token <BinaryOpVal> ADD SUB MUL UDIV SDIV FDIV UREM SREM FREM AND OR XOR
|
||||
%token <BinaryOpVal> SETLE SETGE SETLT SETGT SETEQ SETNE // Binary Comparators
|
||||
%token <OtherOpVal> ICMP FCMP
|
||||
%token <IPredicate> EQ NE SLT SGT SLE SGE ULT UGT ULE UGE
|
||||
%type <IPredicate> IPredicates
|
||||
%token <FPredicate> ORDEQ ORDNE ORDLT ORDGT ORDLE ORDGE ORD UNO UNOEQ UNONE
|
||||
%token <FPredicate> UNOLT UNOGT UNOLE UNOGE
|
||||
%type <FPredicate> FPredicates
|
||||
%token EQ NE SLT SGT SLE SGE ULT UGT ULE UGE
|
||||
%token OEQ ONE OLT OGT OLE OGE ORD UNO UEQ UNE
|
||||
|
||||
// Memory Instructions
|
||||
%token <MemOpVal> MALLOC ALLOCA FREE LOAD STORE GETELEMENTPTR
|
||||
@ -1128,9 +1127,25 @@ SetCondOps : SETLE | SETGE | SETLT | SETGT | SETEQ | SETNE;
|
||||
CastOps : TRUNC | ZEXT | SEXT | FPTRUNC | FPEXT | BITCAST |
|
||||
UITOFP | SITOFP | FPTOUI | FPTOSI | INTTOPTR | PTRTOINT;
|
||||
ShiftOps : SHL | LSHR | ASHR;
|
||||
IPredicates : EQ | NE | SLT | SGT | SLE | SGE | ULT | UGT | ULE | UGE ;
|
||||
FPredicates : ORDEQ | ORDNE | ORDLT | ORDGT | ORDLE | ORDGE | ORD | UNO
|
||||
| UNOEQ | UNONE | UNOLT | UNOGT | UNOLE | UNOGE ;
|
||||
IPredicates
|
||||
: EQ { $$ = ICmpInst::ICMP_EQ; } | NE { $$ = ICmpInst::ICMP_NE; }
|
||||
| SLT { $$ = ICmpInst::ICMP_SLT; } | SGT { $$ = ICmpInst::ICMP_SGT; }
|
||||
| SLE { $$ = ICmpInst::ICMP_SLE; } | SGE { $$ = ICmpInst::ICMP_SGE; }
|
||||
| ULT { $$ = ICmpInst::ICMP_ULT; } | UGT { $$ = ICmpInst::ICMP_UGT; }
|
||||
| ULE { $$ = ICmpInst::ICMP_ULE; } | UGE { $$ = ICmpInst::ICMP_UGE; }
|
||||
;
|
||||
|
||||
FPredicates
|
||||
: OEQ { $$ = FCmpInst::FCMP_OEQ; } | ONE { $$ = FCmpInst::FCMP_ONE; }
|
||||
| OLT { $$ = FCmpInst::FCMP_OLT; } | OGT { $$ = FCmpInst::FCMP_OGT; }
|
||||
| OLE { $$ = FCmpInst::FCMP_OLE; } | OGE { $$ = FCmpInst::FCMP_OGE; }
|
||||
| ORD { $$ = FCmpInst::FCMP_ORD; } | UNO { $$ = FCmpInst::FCMP_UNO; }
|
||||
| UEQ { $$ = FCmpInst::FCMP_UEQ; } | UNE { $$ = FCmpInst::FCMP_UNE; }
|
||||
| ULT { $$ = FCmpInst::FCMP_ULT; } | UGT { $$ = FCmpInst::FCMP_UGT; }
|
||||
| ULE { $$ = FCmpInst::FCMP_ULE; } | UGE { $$ = FCmpInst::FCMP_UGE; }
|
||||
| TRUETOK { $$ = FCmpInst::FCMP_TRUE; }
|
||||
| FALSETOK { $$ = FCmpInst::FCMP_FALSE; }
|
||||
;
|
||||
|
||||
// These are some types that allow classification if we only want a particular
|
||||
// thing... for example, only a signed, unsigned, or integral type.
|
||||
|
Loading…
Reference in New Issue
Block a user