LLVM  14.0.0git
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 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 setAllowContract (bool b)
 
void setApproximateFuncs (bool b)
 
void setAllowReassociation (bool b)
 
void setNoFPExcept (bool b)
 
bool hasNoUnsignedWrap () const
 
bool hasNoSignedWrap () const
 
bool hasExact () const
 
bool hasNoNaNs () const
 
bool hasNoInfs () const
 
bool hasNoSignedZeros () const
 
bool hasAllowReciprocal () const
 
bool hasAllowContract () const
 
bool hasApproximateFuncs () const
 
bool hasAllowReassociation () const
 
bool hasNoFPExcept () 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 371 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ SDNodeFlags()

llvm::SDNodeFlags::SDNodeFlags ( )
inline

Default constructor turns off all optimization flags.

Definition at line 393 of file SelectionDAGNodes.h.

Member Function Documentation

◆ copyFMF()

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

◆ hasAllowContract()

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

Definition at line 431 of file SelectionDAGNodes.h.

◆ hasAllowReassociation()

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

Definition at line 433 of file SelectionDAGNodes.h.

Referenced by combineFMA(), and llvm::SelectionDAG::matchBinOpReduction().

◆ hasAllowReciprocal()

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

Definition at line 430 of file SelectionDAGNodes.h.

◆ hasApproximateFuncs()

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

Definition at line 432 of file SelectionDAGNodes.h.

◆ hasExact()

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

Definition at line 426 of file SelectionDAGNodes.h.

◆ hasNoFPExcept()

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

Definition at line 434 of file SelectionDAGNodes.h.

◆ 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

Definition at line 424 of file SelectionDAGNodes.h.

Referenced by llvm::TargetLowering::SimplifyDemandedBits().

◆ intersectWith()

void llvm::SDNodeFlags::intersectWith ( const SDNodeFlags  Flags)
inline

Clear any flags in this flag set that aren't also set in Flags.

All flags will be cleared if Flags are undefined.

Definition at line 438 of file SelectionDAGNodes.h.

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

◆ setAllowContract()

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

Definition at line 418 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setAllowReassociation()

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

Definition at line 420 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setAllowReciprocal()

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

Definition at line 417 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setApproximateFuncs()

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

Definition at line 419 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setExact()

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

Definition at line 413 of file SelectionDAGNodes.h.

References b.

Referenced by BuildExactSDIV(), and llvm::TargetLowering::SimplifyDemandedBits().

◆ setNoFPExcept()

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

Definition at line 421 of file SelectionDAGNodes.h.

References b.

Referenced by convertFPToInt(), convertIntToFP(), and llvm::SelectionDAGISel::SelectCodeCommon().

◆ setNoInfs()

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

Definition at line 415 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoNaNs()

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

Definition at line 414 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoSignedWrap()

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

Definition at line 412 of file SelectionDAGNodes.h.

References b.

Referenced by promoteExtBeforeAdd(), and llvm::TargetLowering::SimplifyDemandedBits().

◆ setNoSignedZeros()

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

Definition at line 416 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoUnsignedWrap()

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

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