X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Fllvm.grm;h=bec33edff9ca6d9b8eae1f79cb5e0d6c00463bde;hb=84701836bfb1889e2e26e361ebd5d29d972ab396;hp=8a2ce0dfb5364e66add9158d7b5a0ba6f8341306;hpb=890c31cfccaa17c9a99a66831018613834dd34a1;p=oota-llvm.git diff --git a/utils/llvm.grm b/utils/llvm.grm index 8a2ce0dfb53..bec33edff9c 100644 --- a/utils/llvm.grm +++ b/utils/llvm.grm @@ -222,7 +222,9 @@ ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")" | vfcmp FPredicates "(" ^ ConstVal ^ "," ConstVal ^ ")" | extractelement "(" ^ ConstVal ^ "," ConstVal ^ ")" | insertelement "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")" - | shufflevector "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")" ; + | shufflevector "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")" + | extractvalue "(" ^ ConstVal ^ ConstantIndexList ^ ")" + | insertvalue "(" ^ ConstVal ^ "," ConstVal ^ ConstantIndexList ^ ")" ; ConstVector ::= ConstVector ^ "," ConstVal | ConstVal ; @@ -293,6 +295,13 @@ ConstValueRef ::= ESINT64VAL | undef | zeroinitializer | "<" ConstVector ">" + | "[" ConstVector "]" + | "[" "]" + | "c" ^ STRINGCONSTANT + | "{" ConstVector "}" + | "{" "}" + | "<" ^ "{" ConstVector "}" ^ ">" + | "<" ^ "{" "}" ^ ">" | ConstExpr | asm OptSideEffect STRINGCONSTANT ^ "," STRINGCONSTANT ; @@ -343,6 +352,8 @@ ParamList ::= Types OptParamAttrs ValueRef OptParamAttrs IndexList ::= _ | IndexList ^ "," ResolvedVal ; +ConstantIndexList ::= "," EUINT64VAL | ConstantIndexList ^ "," EUINT64VAL ; + OptTailCall ::= tail call | call ; InstVal ::= @@ -354,7 +365,7 @@ InstVal ::= | vfcmp FPredicates Types ValueRef ^ "," ValueRef | CastOps ResolvedVal to Types | select ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal - | vaarg ResolvedVal ^ "," Types + | "va_arg" ResolvedVal ^ "," Types | extractelement ResolvedVal ^ "," ResolvedVal | insertelement ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal | shufflevector ResolvedVal ^ "," ResolvedVal ^ "," ResolvedVal @@ -373,4 +384,6 @@ MemoryInst ::= malloc Types OptCAlign | OptVolatile load Types ValueRef OptCAlign | OptVolatile store ResolvedVal ^ "," Types ValueRef OptCAlign | getresult Types ValueRef ^ "," EUINT64VAL - | getelementptr Types ValueRef IndexList ; + | getelementptr Types ValueRef IndexList + | extractvalue Types ValueRef ^ ConstantIndexList + | insertvalue Types ValueRef ^ "," Types ValueRef ^ ConstantIndexList ;