[llvm-commits] [llvm] r168811 - /llvm/trunk/include/llvm/Operator.h
Michael Ilseman
milseman at apple.com
Wed Nov 28 13:11:25 PST 2012
Author: milseman
Date: Wed Nov 28 15:11:25 2012
New Revision: 168811
URL: http://llvm.org/viewvc/llvm-project?rev=168811&view=rev
Log:
Fast-math comments and convenience method
Modified:
llvm/trunk/include/llvm/Operator.h
Modified: llvm/trunk/include/llvm/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Operator.h?rev=168811&r1=168810&r2=168811&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Operator.h (original)
+++ llvm/trunk/include/llvm/Operator.h Wed Nov 28 15:11:25 2012
@@ -176,10 +176,16 @@
NoSignedZeros(false), AllowReciprocal(false)
{ }
+ /// Whether any flag is set
bool any() {
return UnsafeAlgebra || NoNaNs || NoInfs || NoSignedZeros ||
AllowReciprocal;
}
+
+ /// Set all the flags to false
+ void clear() {
+ UnsafeAlgebra = NoNaNs = NoInfs = NoSignedZeros = AllowReciprocal = false;
+ }
};
More information about the llvm-commits
mailing list