mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Update generated files after nocapture syntax change.
llvm-svn: 61031
This commit is contained in:
parent
504288e7af
commit
212b42c4c0
File diff suppressed because it is too large
Load Diff
@ -184,8 +184,8 @@
|
||||
SRET = 400,
|
||||
NOUNWIND = 401,
|
||||
NOALIAS = 402,
|
||||
BYVAL = 403,
|
||||
NEST = 404,
|
||||
NOCAPTURE = 403,
|
||||
BYVAL = 404,
|
||||
READNONE = 405,
|
||||
READONLY = 406,
|
||||
GC = 407,
|
||||
@ -194,9 +194,10 @@
|
||||
ALWAYSINLINE = 410,
|
||||
SSP = 411,
|
||||
SSPREQ = 412,
|
||||
DEFAULT = 413,
|
||||
HIDDEN = 414,
|
||||
PROTECTED = 415
|
||||
NEST = 413,
|
||||
DEFAULT = 414,
|
||||
HIDDEN = 415,
|
||||
PROTECTED = 416
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
@ -345,8 +346,8 @@
|
||||
#define SRET 400
|
||||
#define NOUNWIND 401
|
||||
#define NOALIAS 402
|
||||
#define BYVAL 403
|
||||
#define NEST 404
|
||||
#define NOCAPTURE 403
|
||||
#define BYVAL 404
|
||||
#define READNONE 405
|
||||
#define READONLY 406
|
||||
#define GC 407
|
||||
@ -355,16 +356,17 @@
|
||||
#define ALWAYSINLINE 410
|
||||
#define SSP 411
|
||||
#define SSPREQ 412
|
||||
#define DEFAULT 413
|
||||
#define HIDDEN 414
|
||||
#define PROTECTED 415
|
||||
#define NEST 413
|
||||
#define DEFAULT 414
|
||||
#define HIDDEN 415
|
||||
#define PROTECTED 416
|
||||
|
||||
|
||||
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 986 "/Volumes/Gir/devel/llvm/llvm.src/lib/AsmParser/llvmAsmParser.y"
|
||||
#line 986 "/home/nicholas/llvm-commit/lib/AsmParser/llvmAsmParser.y"
|
||||
{
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
@ -412,8 +414,8 @@ typedef union YYSTYPE
|
||||
llvm::ICmpInst::Predicate IPredicate;
|
||||
llvm::FCmpInst::Predicate FPredicate;
|
||||
}
|
||||
/* Line 1529 of yacc.c. */
|
||||
#line 417 "llvmAsmParser.tab.h"
|
||||
/* Line 1489 of yacc.c. */
|
||||
#line 419 "llvmAsmParser.tab.h"
|
||||
YYSTYPE;
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
|
@ -1136,8 +1136,8 @@ Module *llvm::RunVMAsmParser(llvm::MemoryBuffer *MB) {
|
||||
%token <OtherOpVal> EXTRACTVALUE INSERTVALUE
|
||||
|
||||
// Function Attributes
|
||||
%token SIGNEXT ZEROEXT NORETURN INREG SRET NOUNWIND NOALIAS BYVAL NEST
|
||||
%token READNONE READONLY GC OPTSIZE NOINLINE ALWAYSINLINE SSP SSPREQ
|
||||
%token SIGNEXT ZEROEXT NORETURN INREG SRET NOUNWIND NOALIAS NOCAPTURE BYVAL
|
||||
%token READNONE READONLY GC OPTSIZE NOINLINE ALWAYSINLINE SSP SSPREQ NEST
|
||||
|
||||
// Visibility Styles
|
||||
%token DEFAULT HIDDEN PROTECTED
|
||||
@ -1265,15 +1265,16 @@ OptCallingConv : /*empty*/ { $$ = CallingConv::C; } |
|
||||
CHECK_FOR_ERROR
|
||||
};
|
||||
|
||||
Attribute : ZEROEXT { $$ = Attribute::ZExt; }
|
||||
| ZEXT { $$ = Attribute::ZExt; }
|
||||
| SIGNEXT { $$ = Attribute::SExt; }
|
||||
| SEXT { $$ = Attribute::SExt; }
|
||||
| INREG { $$ = Attribute::InReg; }
|
||||
| SRET { $$ = Attribute::StructRet; }
|
||||
| NOALIAS { $$ = Attribute::NoAlias; }
|
||||
| BYVAL { $$ = Attribute::ByVal; }
|
||||
| NEST { $$ = Attribute::Nest; }
|
||||
Attribute : ZEROEXT { $$ = Attribute::ZExt; }
|
||||
| ZEXT { $$ = Attribute::ZExt; }
|
||||
| SIGNEXT { $$ = Attribute::SExt; }
|
||||
| SEXT { $$ = Attribute::SExt; }
|
||||
| INREG { $$ = Attribute::InReg; }
|
||||
| SRET { $$ = Attribute::StructRet; }
|
||||
| NOALIAS { $$ = Attribute::NoAlias; }
|
||||
| NOCAPTURE { $$ = Attribute::NoCapture; }
|
||||
| BYVAL { $$ = Attribute::ByVal; }
|
||||
| NEST { $$ = Attribute::Nest; }
|
||||
| ALIGN EUINT64VAL { $$ =
|
||||
Attribute::constructAlignmentFromInt($2); }
|
||||
;
|
||||
@ -1284,9 +1285,10 @@ OptAttributes : /* empty */ { $$ = Attribute::None; }
|
||||
}
|
||||
;
|
||||
|
||||
RetAttr : INREG { $$ = Attribute::InReg; }
|
||||
RetAttr : INREG { $$ = Attribute::InReg; }
|
||||
| ZEROEXT { $$ = Attribute::ZExt; }
|
||||
| SIGNEXT { $$ = Attribute::SExt; }
|
||||
| NOALIAS { $$ = Attribute::NoAlias; }
|
||||
;
|
||||
|
||||
OptRetAttrs : /* empty */ { $$ = Attribute::None; }
|
||||
@ -1330,6 +1332,8 @@ OptAlign : /*empty*/ { $$ = 0; } |
|
||||
$$ = $2;
|
||||
if ($$ != 0 && !isPowerOf2_32($$))
|
||||
GEN_ERROR("Alignment must be a power of two");
|
||||
if ($$ > 0x40000000)
|
||||
GEN_ERROR("Alignment too large");
|
||||
CHECK_FOR_ERROR
|
||||
};
|
||||
OptCAlign : /*empty*/ { $$ = 0; } |
|
||||
@ -1337,6 +1341,8 @@ OptCAlign : /*empty*/ { $$ = 0; } |
|
||||
$$ = $3;
|
||||
if ($$ != 0 && !isPowerOf2_32($$))
|
||||
GEN_ERROR("Alignment must be a power of two");
|
||||
if ($$ > 0x40000000)
|
||||
GEN_ERROR("Alignment too large");
|
||||
CHECK_FOR_ERROR
|
||||
};
|
||||
|
||||
@ -1366,6 +1372,8 @@ GlobalVarAttribute : SectionString {
|
||||
| ALIGN EUINT64VAL {
|
||||
if ($2 != 0 && !isPowerOf2_32($2))
|
||||
GEN_ERROR("Alignment must be a power of two");
|
||||
if ($2 > 0x40000000)
|
||||
GEN_ERROR("Alignment too large");
|
||||
CurGV->setAlignment($2);
|
||||
CHECK_FOR_ERROR
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user