mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Add support for parsing csret
llvm-svn: 28406
This commit is contained in:
parent
cf73ab6b7c
commit
eb18e81992
@ -218,6 +218,7 @@ sideeffect { return SIDEEFFECT; }
|
||||
|
||||
cc { return CC_TOK; }
|
||||
ccc { return CCC_TOK; }
|
||||
csretcc { return CSRETCC_TOK; }
|
||||
fastcc { return FASTCC_TOK; }
|
||||
coldcc { return COLDCC_TOK; }
|
||||
|
||||
|
@ -981,7 +981,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
|
||||
%token TO DOTDOTDOT NULL_TOK UNDEF CONST INTERNAL LINKONCE WEAK APPENDING
|
||||
%token OPAQUE NOT EXTERNAL TARGET TRIPLE ENDIAN POINTERSIZE LITTLE BIG ALIGN
|
||||
%token DEPLIBS CALL TAIL ASM_TOK MODULE SIDEEFFECT
|
||||
%token CC_TOK CCC_TOK FASTCC_TOK COLDCC_TOK
|
||||
%token CC_TOK CCC_TOK CSRETCC_TOK FASTCC_TOK COLDCC_TOK
|
||||
%type <UIntVal> OptCallingConv
|
||||
|
||||
// Basic Block Terminating Operators
|
||||
@ -1054,6 +1054,7 @@ OptLinkage : INTERNAL { $$ = GlobalValue::InternalLinkage; } |
|
||||
|
||||
OptCallingConv : /*empty*/ { $$ = CallingConv::C; } |
|
||||
CCC_TOK { $$ = CallingConv::C; } |
|
||||
CSRETCC_TOK { $$ = CallingConv::CSRet; } |
|
||||
FASTCC_TOK { $$ = CallingConv::Fast; } |
|
||||
COLDCC_TOK { $$ = CallingConv::Cold; } |
|
||||
CC_TOK EUINT64VAL {
|
||||
|
Loading…
Reference in New Issue
Block a user