forked from OSchip/llvm-project
Add new optimization keywords to the polygen grammar.
llvm-svn: 76811
This commit is contained in:
parent
902dfff8b6
commit
3a353a61fc
|
@ -53,8 +53,8 @@ FPVAL ::= ESAPINTVAL ^ "." ^ EUAPINTVAL | "0x" ^ HexDigitSeq ;
|
||||||
The rest of this file is derived directly from llvmAsmParser.y.
|
The rest of this file is derived directly from llvmAsmParser.y.
|
||||||
*)
|
*)
|
||||||
|
|
||||||
ArithmeticOps ::= add | fadd | sub | fsub | mul | fmul |
|
ArithmeticOps ::= + OptNW add | fadd | OptNW sub | fsub | OptNW mul | fmul |
|
||||||
udiv | sdiv | fdiv | urem | srem | frem ;
|
udiv | OptExact sdiv | fdiv | urem | srem | frem ;
|
||||||
LogicalOps ::= shl | lshr | ashr | and | or | xor;
|
LogicalOps ::= shl | lshr | ashr | and | or | xor;
|
||||||
CastOps ::= trunc | zext | sext | fptrunc | fpext | bitcast |
|
CastOps ::= trunc | zext | sext | fptrunc | fpext | bitcast |
|
||||||
uitofp | sitofp | fptoui | fptosi | inttoptr | ptrtoint ;
|
uitofp | sitofp | fptoui | fptosi | inttoptr | ptrtoint ;
|
||||||
|
@ -393,6 +393,10 @@ InstVal ::=
|
||||||
| MemoryInst ;
|
| MemoryInst ;
|
||||||
|
|
||||||
OptVolatile ::= - volatile | _ ;
|
OptVolatile ::= - volatile | _ ;
|
||||||
|
OptExact ::= - exact | _ ;
|
||||||
|
OptNSW ::= - nsw | _ ;
|
||||||
|
OptNUW ::= - nuw | _ ;
|
||||||
|
OptNW ::= OptNUW OptNSW ;
|
||||||
|
|
||||||
MemoryInst ::= malloc Types OptCAlign
|
MemoryInst ::= malloc Types OptCAlign
|
||||||
| malloc Types ^ "," INTTYPE ValueRef OptCAlign
|
| malloc Types ^ "," INTTYPE ValueRef OptCAlign
|
||||||
|
|
Loading…
Reference in New Issue