diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-27 21:55:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-27 21:55:32 +0000 |
commit | 3e5bc0c33e0565b84c429caf2bbff0da70e549c2 (patch) | |
tree | 567a451d0a46f46478bf2748f04f6936d9317ba5 | |
parent | a690e598dc08a8875c910b6a962f6900af811ca3 (diff) | |
download | external_llvm-3e5bc0c33e0565b84c429caf2bbff0da70e549c2.zip external_llvm-3e5bc0c33e0565b84c429caf2bbff0da70e549c2.tar.gz external_llvm-3e5bc0c33e0565b84c429caf2bbff0da70e549c2.tar.bz2 |
Add inbounds to the polygen grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77261 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/llvm.grm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/llvm.grm b/utils/llvm.grm index cbb72e9..4499d4b 100644 --- a/utils/llvm.grm +++ b/utils/llvm.grm @@ -233,7 +233,7 @@ ConstVal::= Types "[" ^ ConstVector ^ "]" | Types FPVAL ; ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")" - | getelementptr "(" ^ ConstVal IndexList ^ ")" + | getelementptr OptInBounds "(" ^ ConstVal IndexList ^ ")" | select "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")" | ArithmeticOps "(" ^ ConstVal ^ "," ConstVal ^ ")" | LogicalOps "(" ^ ConstVal ^ "," ConstVal ^ ")" @@ -397,6 +397,7 @@ OptExact ::= - exact | _ ; OptNSW ::= - nsw | _ ; OptNUW ::= - nuw | _ ; OptNW ::= OptNUW OptNSW ; +OptInBounds ::= - inbounds | _ ; MemoryInst ::= malloc Types OptCAlign | malloc Types ^ "," INTTYPE ValueRef OptCAlign @@ -406,6 +407,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 OptInBounds Types ValueRef IndexList | extractvalue Types ValueRef ^ ConstantIndexList | insertvalue Types ValueRef ^ "," Types ValueRef ^ ConstantIndexList ; |