X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fllvm.grm;h=bec33edff9ca6d9b8eae1f79cb5e0d6c00463bde;hb=84701836bfb1889e2e26e361ebd5d29d972ab396;hp=aec57f5df7017dbd3e0b66d690f5570f56e149b1;hpb=b737a64a853edaa2dc30182611ab18f1cc6a2491;p=oota-llvm.git diff --git a/utils/llvm.grm b/utils/llvm.grm index aec57f5df70..bec33edff9c 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 ; @@ -295,6 +295,13 @@ ConstValueRef ::= ESINT64VAL | undef | zeroinitializer | "<" ConstVector ">" + | "[" ConstVector "]" + | "[" "]" + | "c" ^ STRINGCONSTANT + | "{" ConstVector "}" + | "{" "}" + | "<" ^ "{" ConstVector "}" ^ ">" + | "<" ^ "{" "}" ^ ">" | ConstExpr | asm OptSideEffect STRINGCONSTANT ^ "," STRINGCONSTANT ; @@ -345,6 +352,8 @@ ParamList ::= Types OptParamAttrs ValueRef OptParamAttrs IndexList ::= _ | IndexList ^ "," ResolvedVal ; +ConstantIndexList ::= "," EUINT64VAL | ConstantIndexList ^ "," EUINT64VAL ; + OptTailCall ::= tail call | call ; InstVal ::= @@ -376,5 +385,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 ;