mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Add inbounds to the polygen grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5c947022d
commit
224251d18e
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user