mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
Add new optimization keywords to the polygen grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08d012eba4
commit
bfacb7e057
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user