LLVM  16.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 379 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ SDNodeFlags()

llvm::SDNodeFlags::SDNodeFlags ( )
inline

Default constructor turns off all optimization flags.

Definition at line 401 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 439 of file SelectionDAGNodes.h.

◆ hasAllowReassociation()

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

Definition at line 441 of file SelectionDAGNodes.h.

◆ hasAllowReciprocal()

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

Definition at line 438 of file SelectionDAGNodes.h.

◆ hasApproximateFuncs()

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

Definition at line 440 of file SelectionDAGNodes.h.

◆ hasExact()

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

Definition at line 434 of file SelectionDAGNodes.h.

◆ hasNoFPExcept()

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

Definition at line 442 of file SelectionDAGNodes.h.

◆ hasNoInfs()

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

Definition at line 436 of file SelectionDAGNodes.h.

◆ hasNoNaNs()

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

Definition at line 435 of file SelectionDAGNodes.h.

◆ hasNoSignedWrap()

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

Definition at line 433 of file SelectionDAGNodes.h.

◆ hasNoSignedZeros()

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

Definition at line 437 of file SelectionDAGNodes.h.

Referenced by PerformFAddVSelectCombine().

◆ hasNoUnsignedWrap()

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

Definition at line 432 of file SelectionDAGNodes.h.

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

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

◆ setAllowContract()

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

Definition at line 426 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setAllowReassociation()

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

Definition at line 428 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setAllowReciprocal()

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

Definition at line 425 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setApproximateFuncs()

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

Definition at line 427 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setExact()

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

Definition at line 421 of file SelectionDAGNodes.h.

References b.

◆ setNoFPExcept()

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

Definition at line 429 of file SelectionDAGNodes.h.

References b.

◆ setNoInfs()

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

Definition at line 423 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoNaNs()

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

Definition at line 422 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoSignedWrap()

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

Definition at line 420 of file SelectionDAGNodes.h.

References b.

◆ setNoSignedZeros()

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

Definition at line 424 of file SelectionDAGNodes.h.

References b.

Referenced by copyFMF().

◆ setNoUnsignedWrap()

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

Definition at line 419 of file SelectionDAGNodes.h.

References b.


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