Add new optimization keywords to the polygen grammar.

llvm-svn: 76811
This commit is contained in:
Dan Gohman 2009-07-22 22:45:30 +00:00
parent 902dfff8b6
commit 3a353a61fc
1 changed files with 6 additions and 2 deletions

View File

@ -53,8 +53,8 @@ FPVAL ::= ESAPINTVAL ^ "." ^ EUAPINTVAL | "0x" ^ HexDigitSeq ;
The rest of this file is derived directly from llvmAsmParser.y.
*)
ArithmeticOps ::= add | fadd | sub | fsub | mul | fmul |
udiv | sdiv | fdiv | urem | srem | frem ;
ArithmeticOps ::= + OptNW add | fadd | OptNW sub | fsub | OptNW mul | fmul |
udiv | OptExact sdiv | fdiv | urem | srem | frem ;
LogicalOps ::= shl | lshr | ashr | and | or | xor;
CastOps ::= trunc | zext | sext | fptrunc | fpext | bitcast |
uitofp | sitofp | fptoui | fptosi | inttoptr | ptrtoint ;
@ -393,6 +393,10 @@ InstVal ::=
| MemoryInst ;
OptVolatile ::= - volatile | _ ;
OptExact ::= - exact | _ ;
OptNSW ::= - nsw | _ ;
OptNUW ::= - nuw | _ ;
OptNW ::= OptNUW OptNSW ;
MemoryInst ::= malloc Types OptCAlign
| malloc Types ^ "," INTTYPE ValueRef OptCAlign