summaryrefslogtreecommitdiff
path: root/utils/llvm.grm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-02 19:47:09 +0000
committerDan Gohman <gohman@apple.com>2008-06-02 19:47:09 +0000
commit34e71fe29d77bb4276fe61d24770be91ef5778ef (patch)
treef58bdac35142cbc557b6ca3b4f853bdbc467628f /utils/llvm.grm
parentd82e511aec0ea27ddd4c1e504b37f689796e965f (diff)
downloadllvm-34e71fe29d77bb4276fe61d24770be91ef5778ef.tar.gz
llvm-34e71fe29d77bb4276fe61d24770be91ef5778ef.tar.bz2
llvm-34e71fe29d77bb4276fe61d24770be91ef5778ef.tar.xz
Update the polygen grammer for the new insertvalue and extractvalue syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm.grm')
-rw-r--r--utils/llvm.grm10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/llvm.grm b/utils/llvm.grm
index aec57f5df7..6d6cbe00ea 100644
--- a/utils/llvm.grm
+++ b/utils/llvm.grm
@@ -223,8 +223,8 @@ ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")"
| extractelement "(" ^ ConstVal ^ "," ConstVal ^ ")"
| insertelement "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")"
| shufflevector "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")"
- | extractvalue "(" ^ ConstVal IndexList ^ ")"
- | insertvalue "(" ^ ConstVal ^ "," ConstVal IndexList ^ ")" ;
+ | extractvalue "(" ^ ConstVal ^ ConstantIndexList ^ ")"
+ | insertvalue "(" ^ ConstVal ^ "," ConstVal ^ ConstantIndexList ^ ")" ;
ConstVector ::= ConstVector ^ "," ConstVal | ConstVal ;
@@ -345,6 +345,8 @@ ParamList ::= Types OptParamAttrs ValueRef OptParamAttrs
IndexList ::= _ | IndexList ^ "," ResolvedVal ;
+ConstantIndexList ::= "," EUINT64VAL | ConstantIndexList ^ "," EUINT64VAL ;
+
OptTailCall ::= tail call | call ;
InstVal ::=
@@ -376,5 +378,5 @@ MemoryInst ::= malloc Types OptCAlign
| OptVolatile store ResolvedVal ^ "," Types ValueRef OptCAlign
| getresult Types ValueRef ^ "," EUINT64VAL
| getelementptr Types ValueRef IndexList
- | extractvalue Types ValueRef IndexList
- | insertvalue Types ValueRef ^ "," Types ValueRef IndexList ;
+ | extractvalue Types ValueRef ^ ConstantIndexList
+ | insertvalue Types ValueRef ^ "," Types ValueRef ^ ConstantIndexList ;