[llvm-commits] [llvm] r102983 - /llvm/trunk/utils/llvm.grm

Dan Gohman gohman at apple.com
Mon May 3 17:13:24 PDT 2010


Author: djg
Date: Mon May  3 19:13:24 2010
New Revision: 102983

URL: http://llvm.org/viewvc/llvm-project?rev=102983&view=rev
Log:
Add a polygen rule that reflects the fact that nsw and nuw can be
used together in either order.

Modified:
    llvm/trunk/utils/llvm.grm

Modified: llvm/trunk/utils/llvm.grm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm.grm?rev=102983&r1=102982&r2=102983&view=diff
==============================================================================
--- llvm/trunk/utils/llvm.grm (original)
+++ llvm/trunk/utils/llvm.grm Mon May  3 19:13:24 2010
@@ -398,7 +398,7 @@
 OptExact ::= - exact | _ ;
 OptNSW ::= - nsw | _ ;
 OptNUW ::= - nuw | _ ;
-OptNW  ::= OptNUW OptNSW ;
+OptNW  ::= OptNUW OptNSW | OptNSW OptNUW ;
 OptInBounds  ::= - inbounds | _ ;
 
 MemoryInst ::= malloc Types OptCAlign





More information about the llvm-commits mailing list