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:
Dan Gohman
2009-01-05 03:21:23 +00:00
parent 31aa1a1c83
commit 571238acc5

View File

@@ -123,7 +123,6 @@ OptCallingConv ::= + _ |
coldcc | coldcc |
"x86_stdcallcc" | "x86_stdcallcc" |
"x86_fastcallcc" | "x86_fastcallcc" |
"x86_ssecallcc" |
cc EUINT64VAL ; cc EUINT64VAL ;
ParamAttr ::= zeroext ParamAttr ::= zeroext
@@ -133,6 +132,7 @@ ParamAttr ::= zeroext
| inreg | inreg
| sret | sret
| noalias | noalias
| nocapture
| byval | byval
| nest | nest
| align EUINT64VAL | align EUINT64VAL
@@ -140,29 +140,32 @@ ParamAttr ::= zeroext
OptParamAttrs ::= + _ | OptParamAttrs ParamAttr ; OptParamAttrs ::= + _ | OptParamAttrs ParamAttr ;
RetAttr ::= inreg
| zeroext
| signext
| noalias
;
OptRetAttrs ::= _
| OptRetAttrs RetAttr
;
FuncAttr ::= noreturn FuncAttr ::= noreturn
| nounwind | nounwind
| inreg
| zeroext | zeroext
| signext | signext
| readnone | readnone
| readonly | readonly
| noinline
| alwaysinline
| optsize
| ssp
| sspreq
; ;
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 ;
@@ -217,13 +220,13 @@ ConstVal::= Types "[" ^ ConstVector ^ "]"
| Types SymbolicValueRef | Types SymbolicValueRef
| Types ConstExpr | Types ConstExpr
| Types zeroinitializer | Types zeroinitializer
| IntType ESINT64VAL | Types ESINT64VAL
| IntType ESAPINTVAL | Types ESAPINTVAL
| IntType EUINT64VAL | Types EUINT64VAL
| IntType EUAPINTVAL | Types EUAPINTVAL
| INTTYPE true | Types true
| INTTYPE false | Types false
| FPType FPVAL ; | Types FPVAL ;
ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")" ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")"
| getelementptr "(" ^ ConstVal IndexList ^ ")" | getelementptr "(" ^ ConstVal IndexList ^ ")"
@@ -284,8 +287,9 @@ ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ; ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
FunctionHeaderH ::= OptCallingConv ResultTypes GlobalName "(" ^ ArgList ^ ")" FunctionHeaderH ::= OptCallingConv OptRetAttrs ResultTypes
OptFuncAttrs OptSection OptAlign OptGC OptFuncNotes ; GlobalName "(" ^ ArgList ^ ")"
OptFuncAttrs OptSection OptAlign OptGC ;
BEGIN ::= ( begin | "{" ) ^ "\n"; BEGIN ::= ( begin | "{" ) ^ "\n";