|
LLVM
4.0.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 ()=default | |
| 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 168 of file Operator.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UnsafeAlgebra | |
| NoNaNs | |
| NoInfs | |
| NoSignedZeros | |
| AllowReciprocal | |
Definition at line 177 of file Operator.h.
|
default |
|
inline |
Definition at line 197 of file Operator.h.
References fuzzer::Flags.
|
inline |
|
inline |
Set all the flags to false.
Definition at line 191 of file Operator.h.
References fuzzer::Flags.
Referenced by llvm::IRBuilderBase::clearFastMathFlags().
|
inline |
Definition at line 195 of file Operator.h.
References fuzzer::Flags.
Referenced by SimplifyFAddInst().
|
inline |
Flag queries.
Definition at line 194 of file Operator.h.
References fuzzer::Flags.
Referenced by llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), isKnownNonNaN(), SimplifyFAddInst(), SimplifyFCmpInst(), SimplifyFDivInst(), SimplifyFMulInst(), SimplifyFRemInst(), and SimplifyFSubInst().
|
inline |
Definition at line 196 of file Operator.h.
References fuzzer::Flags.
Referenced by matchSelectPattern(), SimplifyFAddInst(), SimplifyFDivInst(), SimplifyFMulInst(), SimplifyFRemInst(), SimplifyFSubInst(), and llvm::InstCombiner::visitFSub().
|
inline |
Definition at line 213 of file Operator.h.
References fuzzer::Flags.
|
inline |
Definition at line 204 of file Operator.h.
References fuzzer::Flags.
Referenced by getDecodedFastMathFlags().
|
inline |
Definition at line 202 of file Operator.h.
References fuzzer::Flags.
Referenced by getDecodedFastMathFlags().
|
inline |
Flag setters.
Definition at line 201 of file Operator.h.
References fuzzer::Flags.
Referenced by getDecodedFastMathFlags().
|
inline |
Definition at line 203 of file Operator.h.
References fuzzer::Flags.
Referenced by getDecodedFastMathFlags().
|
inline |
Definition at line 205 of file Operator.h.
References fuzzer::Flags.
Referenced by addFastMathFlag(), llvm::RecurrenceDescriptor::createMinMaxOp(), getDecodedFastMathFlags(), and llvm::InductionDescriptor::transform().
|
inline |
Definition at line 198 of file Operator.h.
References fuzzer::Flags.
|
friend |
Definition at line 170 of file Operator.h.
1.8.6