LLVM 20.0.0git
Namespaces | Enumerations | Functions
FPEnv.h File Reference

This file contains the declarations of entities that describe floating point environment and related functions. More...

#include "llvm/ADT/FloatingPointMode.h"
#include "llvm/IR/FMF.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::Intrinsic
 This namespace contains an enum with a value for every intrinsic/builtin function known by LLVM.
 
namespace  llvm::fp
 

Enumerations

enum  llvm::fp::ExceptionBehavior : uint8_t { llvm::fp::ebIgnore , llvm::fp::ebMayTrap , llvm::fp::ebStrict }
 Exception behavior used for floating point operations. More...
 

Functions

std::optional< RoundingMode > llvm::convertStrToRoundingMode (StringRef)
 Returns a valid RoundingMode enumerator when given a string that is valid as input in constrained intrinsic rounding mode metadata.
 
std::optional< StringRef > llvm::convertRoundingModeToStr (RoundingMode)
 For any RoundingMode enumerator, returns a string valid as input in constrained intrinsic rounding mode metadata.
 
std::optional< fp::ExceptionBehavior > llvm::convertStrToExceptionBehavior (StringRef)
 Returns a valid ExceptionBehavior enumerator when given a string valid as input in constrained intrinsic exception behavior metadata.
 
std::optional< StringRef > llvm::convertExceptionBehaviorToStr (fp::ExceptionBehavior)
 For any ExceptionBehavior enumerator, returns a string valid as input in constrained intrinsic exception behavior metadata.
 
bool llvm::isDefaultFPEnvironment (fp::ExceptionBehavior EB, RoundingMode RM)
 Returns true if the exception handling behavior and rounding mode match what is used in the default floating point environment.
 
Intrinsic::ID llvm::getConstrainedIntrinsicID (const Instruction &Instr)
 Returns constrained intrinsic id to represent the given instruction in strictfp function.
 
bool llvm::canRoundingModeBe (RoundingMode RM, RoundingMode QRM)
 Returns true if the rounding mode RM may be QRM at compile time or at run time.
 
bool llvm::canIgnoreSNaN (fp::ExceptionBehavior EB, FastMathFlags FMF)
 Returns true if the possibility of a signaling NaN can be safely ignored.
 

Detailed Description

This file contains the declarations of entities that describe floating point environment and related functions.

Definition in file FPEnv.h.