summaryrefslogtreecommitdiff
path: root/utils/llvm.grm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-05 03:21:23 +0000
committerDan Gohman <gohman@apple.com>2009-01-05 03:21:23 +0000
commit571238acc56c56ef2d9c9c5f74df4ded0a8bb2a7 (patch)
tree20e22b1ec58d9c2f527d7ca22b8f56f4cb2b79a1 /utils/llvm.grm
parent31aa1a1c83d931ace60b9858ef40ad93bf6923a3 (diff)
downloadllvm-571238acc56c56ef2d9c9c5f74df4ded0a8bb2a7.tar.gz
llvm-571238acc56c56ef2d9c9c5f74df4ded0a8bb2a7.tar.bz2
llvm-571238acc56c56ef2d9c9c5f74df4ded0a8bb2a7.tar.xz
Update polygen grammar for recent language changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm.grm')
-rw-r--r--utils/llvm.grm50
1 files changed, 27 insertions, 23 deletions
diff --git a/utils/llvm.grm b/utils/llvm.grm
index 9f7588ae28..c5a40cee00 100644
--- a/utils/llvm.grm
+++ b/utils/llvm.grm
@@ -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";