summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm.grm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-27 21:55:32 +0000
committerDan Gohman <gohman@apple.com>2009-07-27 21:55:32 +0000
commit0ad4247da3b93b0a472df9a3bfda4b9cd365d9dc (patch)
tree5dc3cd40287ccfba4606303772ee709db80cb508 /llvm/utils/llvm.grm
parente7e8f5d76278a41194527f2082e45d2bf6b4d58a (diff)
downloadbcm5719-llvm-0ad4247da3b93b0a472df9a3bfda4b9cd365d9dc.tar.gz
bcm5719-llvm-0ad4247da3b93b0a472df9a3bfda4b9cd365d9dc.zip
Add inbounds to the polygen grammar.
llvm-svn: 77261
Diffstat (limited to 'llvm/utils/llvm.grm')
-rw-r--r--llvm/utils/llvm.grm5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/llvm.grm b/llvm/utils/llvm.grm
index cbb72e92831..4499d4b35a9 100644
--- a/llvm/utils/llvm.grm
+++ b/llvm/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 ;
OpenPOWER on IntegriCloud