mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Update polygen grammar for recent language changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
31aa1a1c83
commit
571238acc5
@ -123,7 +123,6 @@ OptCallingConv ::= + _ |
|
||||
coldcc |
|
||||
"x86_stdcallcc" |
|
||||
"x86_fastcallcc" |
|
||||
"x86_ssecallcc" |
|
||||
cc EUINT64VAL ;
|
||||
|
||||
ParamAttr ::= zeroext
|
||||
@ -133,6 +132,7 @@ ParamAttr ::= zeroext
|
||||
| inreg
|
||||
| sret
|
||||
| noalias
|
||||
| nocapture
|
||||
| byval
|
||||
| nest
|
||||
| align EUINT64VAL
|
||||
@ -140,29 +140,32 @@ ParamAttr ::= zeroext
|
||||
|
||||
OptParamAttrs ::= + _ | OptParamAttrs ParamAttr ;
|
||||
|
||||
RetAttr ::= inreg
|
||||
| zeroext
|
||||
| signext
|
||||
| noalias
|
||||
;
|
||||
|
||||
OptRetAttrs ::= _
|
||||
| OptRetAttrs RetAttr
|
||||
;
|
||||
|
||||
FuncAttr ::= noreturn
|
||||
| nounwind
|
||||
| inreg
|
||||
| zeroext
|
||||
| signext
|
||||
| readnone
|
||||
| readonly
|
||||
| noinline
|
||||
| alwaysinline
|
||||
| optsize
|
||||
| ssp
|
||||
| sspreq
|
||||
;
|
||||
|
||||
OptFuncAttrs ::= + _ | OptFuncAttrs FuncAttr ;
|
||||
|
||||
FuncNoteList ::= FuncNote
|
||||
| FuncNoteList ^ "," FuncNote
|
||||
;
|
||||
|
||||
FuncNote ::= inline ^ "=" ^ never
|
||||
| inline ^ "=" ^ always
|
||||
| "opt_size"
|
||||
;
|
||||
|
||||
OptFuncNotes ::= _
|
||||
| notes ^ "(" ^ FuncNoteList ^ ")"
|
||||
;
|
||||
|
||||
OptGC ::= + _ | gc STRINGCONSTANT ;
|
||||
|
||||
OptAlign ::= + _ | align EUINT64VAL ;
|
||||
@ -217,13 +220,13 @@ ConstVal::= Types "[" ^ ConstVector ^ "]"
|
||||
| Types SymbolicValueRef
|
||||
| Types ConstExpr
|
||||
| Types zeroinitializer
|
||||
| IntType ESINT64VAL
|
||||
| IntType ESAPINTVAL
|
||||
| IntType EUINT64VAL
|
||||
| IntType EUAPINTVAL
|
||||
| INTTYPE true
|
||||
| INTTYPE false
|
||||
| FPType FPVAL ;
|
||||
| Types ESINT64VAL
|
||||
| Types ESAPINTVAL
|
||||
| Types EUINT64VAL
|
||||
| Types EUAPINTVAL
|
||||
| Types true
|
||||
| Types false
|
||||
| Types FPVAL ;
|
||||
|
||||
ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")"
|
||||
| getelementptr "(" ^ ConstVal IndexList ^ ")"
|
||||
@ -284,8 +287,9 @@ ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
|
||||
|
||||
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
|
||||
|
||||
FunctionHeaderH ::= OptCallingConv ResultTypes GlobalName "(" ^ ArgList ^ ")"
|
||||
OptFuncAttrs OptSection OptAlign OptGC OptFuncNotes ;
|
||||
FunctionHeaderH ::= OptCallingConv OptRetAttrs ResultTypes
|
||||
GlobalName "(" ^ ArgList ^ ")"
|
||||
OptFuncAttrs OptSection OptAlign OptGC ;
|
||||
|
||||
BEGIN ::= ( begin | "{" ) ^ "\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user