|
LLVM
5.0.0
|
These are IR-level optimization flags that may be propagated to SDNodes. More...
#include "llvm/CodeGen/SelectionDAGNodes.h"
Public Member Functions | |
| SDNodeFlags () | |
| Default constructor turns off all optimization flags. More... | |
| void | setDefined () |
| Sets the state of the flags to the defined state. More... | |
| bool | isDefined () const |
| Returns true if the flags are in a defined state. More... | |
| void | setNoUnsignedWrap (bool b) |
| void | setNoSignedWrap (bool b) |
| void | setExact (bool b) |
| void | setUnsafeAlgebra (bool b) |
| void | setNoNaNs (bool b) |
| void | setNoInfs (bool b) |
| void | setNoSignedZeros (bool b) |
| void | setAllowReciprocal (bool b) |
| void | setVectorReduction (bool b) |
| void | setAllowContract (bool b) |
| bool | hasNoUnsignedWrap () const |
| bool | hasNoSignedWrap () const |
| bool | hasExact () const |
| bool | hasUnsafeAlgebra () const |
| bool | hasNoNaNs () const |
| bool | hasNoInfs () const |
| bool | hasNoSignedZeros () const |
| bool | hasAllowReciprocal () const |
| bool | hasVectorReduction () const |
| bool | hasAllowContract () const |
| void | intersectWith (const SDNodeFlags Flags) |
| Clear any flags in this flag set that aren't also set in Flags. More... | |
These are IR-level optimization flags that may be propagated to SDNodes.
TODO: This data structure should be shared by the IR optimizer and the the backend.
Definition at line 353 of file SelectionDAGNodes.h.
|
inline |
Default constructor turns off all optimization flags.
Definition at line 373 of file SelectionDAGNodes.h.
|
inline |
Definition at line 436 of file SelectionDAGNodes.h.
Referenced by isContractable().
|
inline |
Definition at line 434 of file SelectionDAGNodes.h.
|
inline |
Definition at line 429 of file SelectionDAGNodes.h.
Referenced by llvm::TargetLowering::BuildSDIV(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 432 of file SelectionDAGNodes.h.
|
inline |
Definition at line 431 of file SelectionDAGNodes.h.
Referenced by llvm::SelectionDAG::isKnownNeverNaN().
|
inline |
Definition at line 428 of file SelectionDAGNodes.h.
Referenced by promoteExtBeforeAdd(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 433 of file SelectionDAGNodes.h.
Referenced by combineFneg(), and isNegatibleForFree().
|
inline |
Definition at line 427 of file SelectionDAGNodes.h.
Referenced by promoteExtBeforeAdd(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 430 of file SelectionDAGNodes.h.
Referenced by isContractable().
|
inline |
Definition at line 435 of file SelectionDAGNodes.h.
Referenced by combineAdd().
|
inline |
Clear any flags in this flag set that aren't also set in Flags.
If the given Flags are undefined then don't do anything.
Definition at line 440 of file SelectionDAGNodes.h.
References isDefined().
Referenced by llvm::SDNode::intersectFlagsWith().
|
inline |
Returns true if the flags are in a defined state.
Definition at line 382 of file SelectionDAGNodes.h.
Referenced by intersectWith().
|
inline |
Definition at line 421 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Definition at line 413 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Sets the state of the flags to the defined state.
Definition at line 380 of file SelectionDAGNodes.h.
Referenced by setAllowContract(), setAllowReciprocal(), setExact(), setNoInfs(), setNoNaNs(), setNoSignedWrap(), setNoSignedZeros(), setNoUnsignedWrap(), setUnsafeAlgebra(), and setVectorReduction().
|
inline |
Definition at line 393 of file SelectionDAGNodes.h.
References setDefined().
Referenced by BuildExactSDIV(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 405 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Definition at line 401 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Definition at line 389 of file SelectionDAGNodes.h.
References setDefined().
Referenced by promoteExtBeforeAdd(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 409 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Definition at line 385 of file SelectionDAGNodes.h.
References setDefined().
Referenced by llvm::TargetLowering::LowerCallTo(), promoteExtBeforeAdd(), and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 397 of file SelectionDAGNodes.h.
References setDefined().
|
inline |
Definition at line 417 of file SelectionDAGNodes.h.
References setDefined().
1.8.6