mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Update the LLVM polygen grammar for recent language changes:
x86_ssecallcc, function notes, and some whitespace adjustments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6d1f39cd0
commit
0d58eb63fc
@ -123,6 +123,7 @@ OptCallingConv ::= + _ |
|
|||||||
coldcc |
|
coldcc |
|
||||||
"x86_stdcallcc" |
|
"x86_stdcallcc" |
|
||||||
"x86_fastcallcc" |
|
"x86_fastcallcc" |
|
||||||
|
"x86_ssecallcc" |
|
||||||
cc EUINT64VAL ;
|
cc EUINT64VAL ;
|
||||||
|
|
||||||
ParamAttr ::= zeroext
|
ParamAttr ::= zeroext
|
||||||
@ -149,6 +150,19 @@ FuncAttr ::= noreturn
|
|||||||
|
|
||||||
OptFuncAttrs ::= + _ | OptFuncAttrs FuncAttr ;
|
OptFuncAttrs ::= + _ | OptFuncAttrs FuncAttr ;
|
||||||
|
|
||||||
|
FuncNoteList ::= FuncNote
|
||||||
|
| FuncNoteList ^ "," FuncNote
|
||||||
|
;
|
||||||
|
|
||||||
|
FuncNote ::= inline ^ "=" ^ never
|
||||||
|
| inline ^ "=" ^ always
|
||||||
|
| "opt_size"
|
||||||
|
;
|
||||||
|
|
||||||
|
OptFuncNotes ::= _
|
||||||
|
| notes ^ "(" ^ FuncNoteList ^ ")"
|
||||||
|
;
|
||||||
|
|
||||||
OptGC ::= + _ | gc STRINGCONSTANT ;
|
OptGC ::= + _ | gc STRINGCONSTANT ;
|
||||||
|
|
||||||
OptAlign ::= + _ | align EUINT64VAL ;
|
OptAlign ::= + _ | align EUINT64VAL ;
|
||||||
@ -175,9 +189,9 @@ Types
|
|||||||
| "[" ^ EUINT64VAL "x" Types ^ "]"
|
| "[" ^ EUINT64VAL "x" Types ^ "]"
|
||||||
| "<" ^ EUINT64VAL "x" Types ^ ">"
|
| "<" ^ EUINT64VAL "x" Types ^ ">"
|
||||||
| "{" TypeListI "}"
|
| "{" TypeListI "}"
|
||||||
| "{" "}"
|
| "{" ^ "}"
|
||||||
| "<" ^ "{" TypeListI "}" ^ ">"
|
| "<" ^ "{" TypeListI "}" ^ ">"
|
||||||
| "<" ^ "{" "}" ^ ">"
|
| "<" ^ "{" ^ "}" ^ ">"
|
||||||
;
|
;
|
||||||
|
|
||||||
ArgType ::= Types OptParamAttrs ;
|
ArgType ::= Types OptParamAttrs ;
|
||||||
@ -191,13 +205,13 @@ ArgTypeListI ::= ArgTypeList | ArgTypeList ^ "," "..." | "..." | _ ;
|
|||||||
TypeListI ::= Types | TypeListI ^ "," Types ;
|
TypeListI ::= Types | TypeListI ^ "," Types ;
|
||||||
|
|
||||||
ConstVal::= Types "[" ^ ConstVector ^ "]"
|
ConstVal::= Types "[" ^ ConstVector ^ "]"
|
||||||
| Types "[" "]"
|
| Types "[" ^ "]"
|
||||||
| Types "c" ^ STRINGCONSTANT
|
| Types "c" ^ STRINGCONSTANT
|
||||||
| Types "<" ^ ConstVector ^ ">"
|
| Types "<" ^ ConstVector ^ ">"
|
||||||
| Types "{" ConstVector "}"
|
| Types "{" ConstVector "}"
|
||||||
| Types "{" "}"
|
| Types "{" ^ "}"
|
||||||
| Types "<" ^ "{" ConstVector "}" ^ ">"
|
| Types "<" ^ "{" ConstVector "}" ^ ">"
|
||||||
| Types "<" ^ "{" "}" ^ ">"
|
| Types "<" ^ "{" ^ "}" ^ ">"
|
||||||
| Types null
|
| Types null
|
||||||
| Types undef
|
| Types undef
|
||||||
| Types SymbolicValueRef
|
| Types SymbolicValueRef
|
||||||
@ -271,7 +285,7 @@ ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
|
|||||||
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
|
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
|
||||||
|
|
||||||
FunctionHeaderH ::= OptCallingConv ResultTypes GlobalName "(" ^ ArgList ^ ")"
|
FunctionHeaderH ::= OptCallingConv ResultTypes GlobalName "(" ^ ArgList ^ ")"
|
||||||
OptFuncAttrs OptSection OptAlign OptGC ;
|
OptFuncAttrs OptSection OptAlign OptGC OptFuncNotes ;
|
||||||
|
|
||||||
BEGIN ::= ( begin | "{" ) ^ "\n";
|
BEGIN ::= ( begin | "{" ) ^ "\n";
|
||||||
|
|
||||||
@ -296,12 +310,12 @@ ConstValueRef ::= ESINT64VAL
|
|||||||
| zeroinitializer
|
| zeroinitializer
|
||||||
| "<" ConstVector ">"
|
| "<" ConstVector ">"
|
||||||
| "[" ConstVector "]"
|
| "[" ConstVector "]"
|
||||||
| "[" "]"
|
| "[" ^ "]"
|
||||||
| "c" ^ STRINGCONSTANT
|
| "c" ^ STRINGCONSTANT
|
||||||
| "{" ConstVector "}"
|
| "{" ConstVector "}"
|
||||||
| "{" "}"
|
| "{" ^ "}"
|
||||||
| "<" ^ "{" ConstVector "}" ^ ">"
|
| "<" ^ "{" ConstVector "}" ^ ">"
|
||||||
| "<" ^ "{" "}" ^ ">"
|
| "<" ^ "{" ^ "}" ^ ">"
|
||||||
| ConstExpr
|
| ConstExpr
|
||||||
| asm OptSideEffect STRINGCONSTANT ^ "," STRINGCONSTANT ;
|
| asm OptSideEffect STRINGCONSTANT ^ "," STRINGCONSTANT ;
|
||||||
|
|
||||||
@ -330,8 +344,9 @@ BBTerminatorInst ::= ^ " " ^
|
|||||||
| br label ValueRef
|
| br label ValueRef
|
||||||
| br INTTYPE ValueRef ^ "," label ValueRef ^ "," label ValueRef
|
| br INTTYPE ValueRef ^ "," label ValueRef ^ "," label ValueRef
|
||||||
| switch IntType ValueRef ^ "," label ValueRef "[" JumpTable "]"
|
| switch IntType ValueRef ^ "," label ValueRef "[" JumpTable "]"
|
||||||
| switch IntType ValueRef ^ "," label ValueRef "[" "]"
|
| switch IntType ValueRef ^ "," label ValueRef "[" ^ "]"
|
||||||
| invoke OptCallingConv ResultTypes ValueRef "(" ^ ParamList ^ ")" OptFuncAttrs
|
| invoke OptCallingConv ResultTypes ValueRef ^ "(" ^ ParamList ^ ")"
|
||||||
|
OptFuncAttrs
|
||||||
to label ValueRef unwind label ValueRef
|
to label ValueRef unwind label ValueRef
|
||||||
| unwind
|
| unwind
|
||||||
| unreachable ) ^ "\n";
|
| unreachable ) ^ "\n";
|
||||||
@ -370,7 +385,7 @@ InstVal ::=
|
|||||||
| insertelement ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal
|
| insertelement ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal
|
||||||
| shufflevector ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal
|
| shufflevector ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal
|
||||||
| phi PHIList
|
| phi PHIList
|
||||||
| OptTailCall OptCallingConv ResultTypes ValueRef "(" ^ ParamList ^ ")"
|
| OptTailCall OptCallingConv ResultTypes ValueRef ^ "(" ^ ParamList ^ ")"
|
||||||
OptFuncAttrs
|
OptFuncAttrs
|
||||||
| MemoryInst ;
|
| MemoryInst ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user