LLVM API Documentation
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 () |
Whether any flag is set. | |
void | clear () |
Set all the flags to false. | |
bool | noNaNs () |
Flag queries. | |
bool | noInfs () |
bool | noSignedZeros () |
bool | allowReciprocal () |
bool | unsafeAlgebra () |
void | setNoNaNs () |
Flag setters. | |
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 170 of file Operator.h.
anonymous enum |
Definition at line 177 of file Operator.h.
llvm::FastMathFlags::FastMathFlags | ( | ) | [inline] |
Definition at line 185 of file Operator.h.
bool llvm::FastMathFlags::allowReciprocal | ( | ) | [inline] |
Definition at line 198 of file Operator.h.
bool llvm::FastMathFlags::any | ( | ) | [inline] |
Whether any flag is set.
Definition at line 189 of file Operator.h.
void llvm::FastMathFlags::clear | ( | ) | [inline] |
Set all the flags to false.
Definition at line 192 of file Operator.h.
Referenced by llvm::IRBuilderBase::clearFastMathFlags().
bool llvm::FastMathFlags::noInfs | ( | ) | [inline] |
Definition at line 196 of file Operator.h.
Referenced by SimplifyFAddInst(), and SimplifyFSubInst().
bool llvm::FastMathFlags::noNaNs | ( | ) | [inline] |
Flag queries.
Definition at line 195 of file Operator.h.
Referenced by SimplifyFAddInst(), SimplifyFMulInst(), and SimplifyFSubInst().
bool llvm::FastMathFlags::noSignedZeros | ( | ) | [inline] |
Definition at line 197 of file Operator.h.
Referenced by SimplifyFAddInst(), SimplifyFMulInst(), and SimplifyFSubInst().
void llvm::FastMathFlags::operator&= | ( | const FastMathFlags & | OtherFlags | ) | [inline] |
Definition at line 214 of file Operator.h.
void llvm::FastMathFlags::setAllowReciprocal | ( | ) | [inline] |
Definition at line 205 of file Operator.h.
void llvm::FastMathFlags::setNoInfs | ( | ) | [inline] |
Definition at line 203 of file Operator.h.
void llvm::FastMathFlags::setNoNaNs | ( | ) | [inline] |
Flag setters.
Definition at line 202 of file Operator.h.
void llvm::FastMathFlags::setNoSignedZeros | ( | ) | [inline] |
Definition at line 204 of file Operator.h.
void llvm::FastMathFlags::setUnsafeAlgebra | ( | ) | [inline] |
Definition at line 206 of file Operator.h.
Referenced by addFastMathFlag().
bool llvm::FastMathFlags::unsafeAlgebra | ( | ) | [inline] |
Definition at line 199 of file Operator.h.
friend class FPMathOperator [friend] |
Definition at line 172 of file Operator.h.