LLVM  16.0.0git
Classes | Namespaces | Enumerations | Functions
FloatingPointMode.h File Reference
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for FloatingPointMode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::DenormalMode
 Represent subnormal handling kind for floating point instruction inputs and outputs. More...
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Enumerations

enum  llvm::RoundingMode : int8_t {
  llvm::RoundingMode::TowardZero = 0, llvm::RoundingMode::NearestTiesToEven = 1, llvm::RoundingMode::TowardPositive = 2, llvm::RoundingMode::TowardNegative = 3,
  llvm::RoundingMode::NearestTiesToAway = 4, llvm::RoundingMode::Dynamic = 7, llvm::RoundingMode::Invalid = -1
}
 Rounding mode. More...
 
enum  FPClassTest {
  fcSNan = 0x0001, fcQNan = 0x0002, fcNegInf = 0x0004, fcNegNormal = 0x0008,
  fcNegSubnormal = 0x0010, fcNegZero = 0x0020, fcPosZero = 0x0040, fcPosSubnormal = 0x0080,
  fcPosNormal = 0x0100, fcPosInf = 0x0200, fcNan = fcSNan | fcQNan, fcInf = fcPosInf | fcNegInf,
  fcNormal = fcPosNormal | fcNegNormal, fcSubnormal = fcPosSubnormal | fcNegSubnormal, fcZero = fcPosZero | fcNegZero, fcPosFinite = fcPosNormal | fcPosSubnormal | fcPosZero,
  fcNegFinite = fcNegNormal | fcNegSubnormal | fcNegZero, fcFinite = fcPosFinite | fcNegFinite, fcAllFlags = fcNan | fcInf | fcFinite
}
 Floating-point class tests, supported by 'is_fpclass' intrinsic. More...
 

Functions

StringRef llvm::spell (RoundingMode RM)
 Returns text representation of the given rounding mode. More...
 
raw_ostream & llvm::operator<< (raw_ostream &OS, RoundingMode RM)
 
raw_ostream & llvm::operator<< (raw_ostream &OS, DenormalMode Mode)
 
DenormalMode::DenormalModeKind llvm::parseDenormalFPAttributeComponent (StringRef Str)
 Parse the expected names from the denormal-fp-math attribute. More...
 
StringRef llvm::denormalModeKindName (DenormalMode::DenormalModeKind Mode)
 Return the name used for the denormal handling mode used by the the expected names from the denormal-fp-math attribute. More...
 
DenormalMode llvm::parseDenormalFPAttribute (StringRef Str)
 Returns the denormal mode to use for inputs and outputs. More...
 

Detailed Description

Utilities for dealing with flags related to floating point properties and mode controls.

Definition in file FloatingPointMode.h.

Enumeration Type Documentation

◆ FPClassTest

Floating-point class tests, supported by 'is_fpclass' intrinsic.

Actual test may be an OR combination of basic tests.

Enumerator
fcSNan 
fcQNan 
fcNegInf 
fcNegNormal 
fcNegSubnormal 
fcNegZero 
fcPosZero 
fcPosSubnormal 
fcPosNormal 
fcPosInf 
fcNan 
fcInf 
fcNormal 
fcSubnormal 
fcZero 
fcPosFinite 
fcNegFinite 
fcFinite 
fcAllFlags 

Definition at line 199 of file FloatingPointMode.h.