diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-22 22:45:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-22 22:45:30 +0000 |
commit | 60025d51bad399369aba85d2590dcdffe166247a (patch) | |
tree | 6edf6b5c5dc185d6de67771cf6ffd7ef66fb954c /utils | |
parent | 46e96013a1aef280b0bbe9293a41fda24677746c (diff) | |
download | external_llvm-60025d51bad399369aba85d2590dcdffe166247a.zip external_llvm-60025d51bad399369aba85d2590dcdffe166247a.tar.gz external_llvm-60025d51bad399369aba85d2590dcdffe166247a.tar.bz2 |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/llvm.grm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/llvm.grm b/utils/llvm.grm index e70533a..cbb72e9 100644 --- a/utils/llvm.grm +++ b/utils/llvm.grm @@ -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 |