|
LLVM
3.7.0
|
Convenience struct for specifying and reasoning about fast-math flags. More...
#include <Operator.h>
Public Types | |
| enum | { UnsafeAlgebra = (1 << 0), NoNaNs = (1 << 1), NoInfs = (1 << 2), NoSignedZeros = (1 << 3), AllowReciprocal = (1 << 4) } |
Public Member Functions | |
| FastMathFlags () | |
| bool | any () const |
| Whether any flag is set. More... | |
| void | clear () |
| Set all the flags to false. More... | |
| bool | noNaNs () const |
| Flag queries. More... | |
| bool | noInfs () const |
| bool | noSignedZeros () const |
| bool | allowReciprocal () const |
| bool | unsafeAlgebra () const |
| void | setNoNaNs () |
| Flag setters. More... | |
| void | setNoInfs () |
| void | setNoSignedZeros () |
| void | setAllowReciprocal () |
| void | setUnsafeAlgebra () |
| void | operator&= (const FastMathFlags &OtherFlags) |
Friends | |
| class | FPMathOperator |
Convenience struct for specifying and reasoning about fast-math flags.
Definition at line 164 of file Operator.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UnsafeAlgebra | |
| NoNaNs | |
| NoInfs | |
| NoSignedZeros | |
| AllowReciprocal | |
Definition at line 171 of file Operator.h.
|
inline |
Definition at line 179 of file Operator.h.
|
inline |
Definition at line 192 of file Operator.h.
|
inline |
Whether any flag is set.
Definition at line 183 of file Operator.h.
|
inline |
Set all the flags to false.
Definition at line 186 of file Operator.h.
Referenced by llvm::IRBuilderBase::clearFastMathFlags().
|
inline |
Definition at line 190 of file Operator.h.
Referenced by SimplifyFAddInst().
|
inline |
Flag queries.
Definition at line 189 of file Operator.h.
Referenced by SimplifyFAddInst(), SimplifyFCmpInst(), SimplifyFDivInst(), SimplifyFMulInst(), SimplifyFRemInst(), and SimplifyFSubInst().
|
inline |
Definition at line 191 of file Operator.h.
Referenced by SimplifyFAddInst(), SimplifyFDivInst(), SimplifyFMulInst(), SimplifyFRemInst(), SimplifyFSubInst(), and llvm::InstCombiner::visitFSub().
|
inline |
Definition at line 208 of file Operator.h.
|
inline |
Definition at line 199 of file Operator.h.
Referenced by getDecodedFastMathFlags().
|
inline |
Definition at line 197 of file Operator.h.
Referenced by getDecodedFastMathFlags().
|
inline |
|
inline |
Definition at line 198 of file Operator.h.
Referenced by getDecodedFastMathFlags().
|
inline |
Definition at line 200 of file Operator.h.
Referenced by addFastMathFlag(), and getDecodedFastMathFlags().
|
inline |
Definition at line 193 of file Operator.h.
|
friend |
Definition at line 166 of file Operator.h.
1.8.6