mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 02:14:23 +00: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,
|
SRET = 400,
|
||||||
NOUNWIND = 401,
|
NOUNWIND = 401,
|
||||||
NOALIAS = 402,
|
NOALIAS = 402,
|
||||||
BYVAL = 403,
|
NOCAPTURE = 403,
|
||||||
NEST = 404,
|
BYVAL = 404,
|
||||||
READNONE = 405,
|
READNONE = 405,
|
||||||
READONLY = 406,
|
READONLY = 406,
|
||||||
GC = 407,
|
GC = 407,
|
||||||
@ -194,9 +194,10 @@
|
|||||||
ALWAYSINLINE = 410,
|
ALWAYSINLINE = 410,
|
||||||
SSP = 411,
|
SSP = 411,
|
||||||
SSPREQ = 412,
|
SSPREQ = 412,
|
||||||
DEFAULT = 413,
|
NEST = 413,
|
||||||
HIDDEN = 414,
|
DEFAULT = 414,
|
||||||
PROTECTED = 415
|
HIDDEN = 415,
|
||||||
|
PROTECTED = 416
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
/* Tokens. */
|
/* Tokens. */
|
||||||
@ -345,8 +346,8 @@
|
|||||||
#define SRET 400
|
#define SRET 400
|
||||||
#define NOUNWIND 401
|
#define NOUNWIND 401
|
||||||
#define NOALIAS 402
|
#define NOALIAS 402
|
||||||
#define BYVAL 403
|
#define NOCAPTURE 403
|
||||||
#define NEST 404
|
#define BYVAL 404
|
||||||
#define READNONE 405
|
#define READNONE 405
|
||||||
#define READONLY 406
|
#define READONLY 406
|
||||||
#define GC 407
|
#define GC 407
|
||||||
@ -355,16 +356,17 @@
|
|||||||
#define ALWAYSINLINE 410
|
#define ALWAYSINLINE 410
|
||||||
#define SSP 411
|
#define SSP 411
|
||||||
#define SSPREQ 412
|
#define SSPREQ 412
|
||||||
#define DEFAULT 413
|
#define NEST 413
|
||||||
#define HIDDEN 414
|
#define DEFAULT 414
|
||||||
#define PROTECTED 415
|
#define HIDDEN 415
|
||||||
|
#define PROTECTED 416
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef union YYSTYPE
|
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::Module *ModuleVal;
|
||||||
llvm::Function *FunctionVal;
|
llvm::Function *FunctionVal;
|
||||||
@ -412,8 +414,8 @@ typedef union YYSTYPE
|
|||||||
llvm::ICmpInst::Predicate IPredicate;
|
llvm::ICmpInst::Predicate IPredicate;
|
||||||
llvm::FCmpInst::Predicate FPredicate;
|
llvm::FCmpInst::Predicate FPredicate;
|
||||||
}
|
}
|
||||||
/* Line 1529 of yacc.c. */
|
/* Line 1489 of yacc.c. */
|
||||||
#line 417 "llvmAsmParser.tab.h"
|
#line 419 "llvmAsmParser.tab.h"
|
||||||
YYSTYPE;
|
YYSTYPE;
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
|
@ -1136,8 +1136,8 @@ Module *llvm::RunVMAsmParser(llvm::MemoryBuffer *MB) {
|
|||||||
%token <OtherOpVal> EXTRACTVALUE INSERTVALUE
|
%token <OtherOpVal> EXTRACTVALUE INSERTVALUE
|
||||||
|
|
||||||
// Function Attributes
|
// Function Attributes
|
||||||
%token SIGNEXT ZEROEXT NORETURN INREG SRET NOUNWIND NOALIAS BYVAL NEST
|
%token SIGNEXT ZEROEXT NORETURN INREG SRET NOUNWIND NOALIAS NOCAPTURE BYVAL
|
||||||
%token READNONE READONLY GC OPTSIZE NOINLINE ALWAYSINLINE SSP SSPREQ
|
%token READNONE READONLY GC OPTSIZE NOINLINE ALWAYSINLINE SSP SSPREQ NEST
|
||||||
|
|
||||||
// Visibility Styles
|
// Visibility Styles
|
||||||
%token DEFAULT HIDDEN PROTECTED
|
%token DEFAULT HIDDEN PROTECTED
|
||||||
@ -1265,15 +1265,16 @@ OptCallingConv : /*empty*/ { $$ = CallingConv::C; } |
|
|||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
};
|
};
|
||||||
|
|
||||||
Attribute : ZEROEXT { $$ = Attribute::ZExt; }
|
Attribute : ZEROEXT { $$ = Attribute::ZExt; }
|
||||||
| ZEXT { $$ = Attribute::ZExt; }
|
| ZEXT { $$ = Attribute::ZExt; }
|
||||||
| SIGNEXT { $$ = Attribute::SExt; }
|
| SIGNEXT { $$ = Attribute::SExt; }
|
||||||
| SEXT { $$ = Attribute::SExt; }
|
| SEXT { $$ = Attribute::SExt; }
|
||||||
| INREG { $$ = Attribute::InReg; }
|
| INREG { $$ = Attribute::InReg; }
|
||||||
| SRET { $$ = Attribute::StructRet; }
|
| SRET { $$ = Attribute::StructRet; }
|
||||||
| NOALIAS { $$ = Attribute::NoAlias; }
|
| NOALIAS { $$ = Attribute::NoAlias; }
|
||||||
| BYVAL { $$ = Attribute::ByVal; }
|
| NOCAPTURE { $$ = Attribute::NoCapture; }
|
||||||
| NEST { $$ = Attribute::Nest; }
|
| BYVAL { $$ = Attribute::ByVal; }
|
||||||
|
| NEST { $$ = Attribute::Nest; }
|
||||||
| ALIGN EUINT64VAL { $$ =
|
| ALIGN EUINT64VAL { $$ =
|
||||||
Attribute::constructAlignmentFromInt($2); }
|
Attribute::constructAlignmentFromInt($2); }
|
||||||
;
|
;
|
||||||
@ -1284,9 +1285,10 @@ OptAttributes : /* empty */ { $$ = Attribute::None; }
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
RetAttr : INREG { $$ = Attribute::InReg; }
|
RetAttr : INREG { $$ = Attribute::InReg; }
|
||||||
| ZEROEXT { $$ = Attribute::ZExt; }
|
| ZEROEXT { $$ = Attribute::ZExt; }
|
||||||
| SIGNEXT { $$ = Attribute::SExt; }
|
| SIGNEXT { $$ = Attribute::SExt; }
|
||||||
|
| NOALIAS { $$ = Attribute::NoAlias; }
|
||||||
;
|
;
|
||||||
|
|
||||||
OptRetAttrs : /* empty */ { $$ = Attribute::None; }
|
OptRetAttrs : /* empty */ { $$ = Attribute::None; }
|
||||||
@ -1330,6 +1332,8 @@ OptAlign : /*empty*/ { $$ = 0; } |
|
|||||||
$$ = $2;
|
$$ = $2;
|
||||||
if ($$ != 0 && !isPowerOf2_32($$))
|
if ($$ != 0 && !isPowerOf2_32($$))
|
||||||
GEN_ERROR("Alignment must be a power of two");
|
GEN_ERROR("Alignment must be a power of two");
|
||||||
|
if ($$ > 0x40000000)
|
||||||
|
GEN_ERROR("Alignment too large");
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
};
|
};
|
||||||
OptCAlign : /*empty*/ { $$ = 0; } |
|
OptCAlign : /*empty*/ { $$ = 0; } |
|
||||||
@ -1337,6 +1341,8 @@ OptCAlign : /*empty*/ { $$ = 0; } |
|
|||||||
$$ = $3;
|
$$ = $3;
|
||||||
if ($$ != 0 && !isPowerOf2_32($$))
|
if ($$ != 0 && !isPowerOf2_32($$))
|
||||||
GEN_ERROR("Alignment must be a power of two");
|
GEN_ERROR("Alignment must be a power of two");
|
||||||
|
if ($$ > 0x40000000)
|
||||||
|
GEN_ERROR("Alignment too large");
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1366,6 +1372,8 @@ GlobalVarAttribute : SectionString {
|
|||||||
| ALIGN EUINT64VAL {
|
| ALIGN EUINT64VAL {
|
||||||
if ($2 != 0 && !isPowerOf2_32($2))
|
if ($2 != 0 && !isPowerOf2_32($2))
|
||||||
GEN_ERROR("Alignment must be a power of two");
|
GEN_ERROR("Alignment must be a power of two");
|
||||||
|
if ($2 > 0x40000000)
|
||||||
|
GEN_ERROR("Alignment too large");
|
||||||
CurGV->setAlignment($2);
|
CurGV->setAlignment($2);
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user