LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::SDNodeFlags Struct Reference

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 copyFMF (const FPMathOperator &FPMO)
 Propagate the fast-math-flags from an IR FPMathOperator. 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 setNoNaNs (bool b)
 
void setNoInfs (bool b)
 
void setNoSignedZeros (bool b)
 
void setAllowReciprocal (bool b)
 
void setVectorReduction (bool b)
 
void setAllowContract (bool b)
 
void setApproximateFuncs (bool b)
 
void setAllowReassociation (bool b)
 
void setFPExcept (bool b)
 
bool hasNoUnsignedWrap () const
 
bool hasNoSignedWrap () const
 
bool hasExact () const
 
bool hasNoNaNs () const
 
bool hasNoInfs () const
 
bool hasNoSignedZeros () const
 
bool hasAllowReciprocal () const
 
bool hasVectorReduction () const
 
bool hasAllowContract () const
 
bool hasApproximateFuncs () const
 
bool hasAllowReassociation () const
 
bool hasFPExcept () const
 
bool isFast () const
 
void intersectWith (const SDNodeFlags Flags)
 Clear any flags in this flag set that aren't also set in Flags. More...
 

Detailed Description

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 352 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ SDNodeFlags()

llvm::SDNodeFlags::SDNodeFlags ( )
inline

Default constructor turns off all optimization flags.

Definition at line 380 of file SelectionDAGNodes.h.

Member Function Documentation

◆ copyFMF()

void llvm::SDNodeFlags::copyFMF ( const FPMathOperator FPMO)
inline

◆ hasAllowContract()

bool llvm::SDNodeFlags::hasAllowContract ( ) const
inline

◆ hasAllowReassociation()

bool llvm::SDNodeFlags::hasAllowReassociation ( ) const
inline

◆ hasAllowReciprocal()

bool llvm::SDNodeFlags::hasAllowReciprocal ( ) const
inline

Definition at line 460 of file SelectionDAGNodes.h.

References llvm::bitc::AllowReciprocal.

Referenced by llvm::InstrEmitter::EmitDbgLabel().

◆ hasApproximateFuncs()

bool llvm::SDNodeFlags::hasApproximateFuncs ( ) const
inline

◆ hasExact()

bool llvm::SDNodeFlags::hasExact ( ) const
inline

◆ hasFPExcept()

bool llvm::SDNodeFlags::hasFPExcept ( ) const
inline

Definition at line 465 of file SelectionDAGNodes.h.

Referenced by llvm::InstrEmitter::EmitDbgLabel().

◆ hasNoInfs()

bool llvm::SDNodeFlags::hasNoInfs ( ) const
inline

◆ hasNoNaNs()

bool llvm::SDNodeFlags::hasNoNaNs ( ) const
inline

◆ hasNoSignedWrap()

bool llvm::SDNodeFlags::hasNoSignedWrap ( ) const
inline

◆ hasNoSignedZeros()

bool llvm::SDNodeFlags::hasNoSignedZeros ( ) const
inline

◆ hasNoUnsignedWrap()

bool llvm::SDNodeFlags::hasNoUnsignedWrap ( ) const
inline

◆ hasVectorReduction()

bool llvm::SDNodeFlags::hasVectorReduction ( ) const
inline

Definition at line 461 of file SelectionDAGNodes.h.

Referenced by combineAdd(), and isAnyConstantBuildVector().

◆ intersectWith()

void llvm::SDNodeFlags::intersectWith ( const SDNodeFlags  Flags)
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 474 of file SelectionDAGNodes.h.

References llvm::bitc::AllowContract, llvm::bitc::AllowReciprocal, isDefined(), llvm::bitc::NoInfs, llvm::bitc::NoNaNs, and llvm::bitc::NoSignedZeros.

Referenced by llvm::SDNode::intersectFlagsWith().

◆ isDefined()

bool llvm::SDNodeFlags::isDefined ( ) const
inline

Returns true if the flags are in a defined state.

Definition at line 401 of file SelectionDAGNodes.h.

Referenced by llvm::createR600ISelDag(), and intersectWith().

◆ isFast()

bool llvm::SDNodeFlags::isFast ( ) const
inline

◆ setAllowContract()

void llvm::SDNodeFlags::setAllowContract ( bool  b)
inline

Definition at line 436 of file SelectionDAGNodes.h.

References llvm::bitc::AllowContract.

◆ setAllowReassociation()

void llvm::SDNodeFlags::setAllowReassociation ( bool  b)
inline

Definition at line 444 of file SelectionDAGNodes.h.

Referenced by getEstimate().

◆ setAllowReciprocal()

void llvm::SDNodeFlags::setAllowReciprocal ( bool  b)
inline

Definition at line 428 of file SelectionDAGNodes.h.

References llvm::bitc::AllowReciprocal.

◆ setApproximateFuncs()

void llvm::SDNodeFlags::setApproximateFuncs ( bool  b)
inline

Definition at line 440 of file SelectionDAGNodes.h.

◆ setDefined()

void llvm::SDNodeFlags::setDefined ( )
inline

Sets the state of the flags to the defined state.

Definition at line 399 of file SelectionDAGNodes.h.

◆ setExact()

void llvm::SDNodeFlags::setExact ( bool  b)
inline

◆ setFPExcept()

void llvm::SDNodeFlags::setFPExcept ( bool  b)
inline

Definition at line 448 of file SelectionDAGNodes.h.

Referenced by FixedPointIntrinsicToOpcode().

◆ setNoInfs()

void llvm::SDNodeFlags::setNoInfs ( bool  b)
inline

Definition at line 420 of file SelectionDAGNodes.h.

References llvm::bitc::NoInfs.

Referenced by PrepareCall().

◆ setNoNaNs()

void llvm::SDNodeFlags::setNoNaNs ( bool  b)
inline

Definition at line 416 of file SelectionDAGNodes.h.

References llvm::bitc::NoNaNs.

Referenced by PrepareCall().

◆ setNoSignedWrap()

void llvm::SDNodeFlags::setNoSignedWrap ( bool  b)
inline

◆ setNoSignedZeros()

void llvm::SDNodeFlags::setNoSignedZeros ( bool  b)
inline

Definition at line 424 of file SelectionDAGNodes.h.

References llvm::bitc::NoSignedZeros.

◆ setNoUnsignedWrap()

void llvm::SDNodeFlags::setNoUnsignedWrap ( bool  b)
inline

◆ setVectorReduction()

void llvm::SDNodeFlags::setVectorReduction ( bool  b)
inline

Definition at line 432 of file SelectionDAGNodes.h.

Referenced by isVectorReductionOp().


The documentation for this struct was generated from the following file: