LLVM: include/llvm/IR/FPEnv.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15#ifndef LLVM_IR_FPENV_H

16#define LLVM_IR_FPENV_H

17

21#include

22

23namespace llvm {

25

27typedef unsigned ID;

28}

29

31

46

47

48

49

51

52

53

55

56

57

58LLVM_ABI std::optionalfp::ExceptionBehavior

60

61

62

63LLVM_ABI std::optional

65

66

67

71

72

73

74

75

77

78

79

83

84

85

89}

90#endif

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

Convenience struct for specifying and reasoning about fast-math flags.

StringRef - Represent a constant reference to a string, i.e.

This namespace contains an enum with a value for every intrinsic/builtin function known by LLVM.

ExceptionBehavior

Exception behavior used for floating point operations.

Definition FPEnv.h:39

@ ebStrict

This corresponds to "fpexcept.strict".

Definition FPEnv.h:42

@ ebMayTrap

This corresponds to "fpexcept.maytrap".

Definition FPEnv.h:41

@ ebIgnore

This corresponds to "fpexcept.ignore".

Definition FPEnv.h:40

This is an optimization pass for GlobalISel generic memory operations.

bool isDefaultFPEnvironment(fp::ExceptionBehavior EB, RoundingMode RM)

Returns true if the exception handling behavior and rounding mode match what is used in the default f...

Definition FPEnv.h:68

LLVM_ABI std::optional< StringRef > convertRoundingModeToStr(RoundingMode)

For any RoundingMode enumerator, returns a string valid as input in constrained intrinsic rounding mo...

bool canRoundingModeBe(RoundingMode RM, RoundingMode QRM)

Returns true if the rounding mode RM may be QRM at compile time or at run time.

Definition FPEnv.h:80

LLVM_ABI std::optional< StringRef > convertExceptionBehaviorToStr(fp::ExceptionBehavior)

For any ExceptionBehavior enumerator, returns a string valid as input in constrained intrinsic except...

LLVM_ABI Intrinsic::ID getConstrainedIntrinsicID(const Instruction &Instr)

Returns constrained intrinsic id to represent the given instruction in strictfp function.

LLVM_ABI std::optional< fp::ExceptionBehavior > convertStrToExceptionBehavior(StringRef)

Returns a valid ExceptionBehavior enumerator when given a string valid as input in constrained intrin...

RoundingMode

Rounding mode.

@ NearestTiesToEven

roundTiesToEven.

@ Dynamic

Denotes mode unknown at compile time.

LLVM_ABI std::optional< RoundingMode > convertStrToRoundingMode(StringRef)

Returns a valid RoundingMode enumerator when given a string that is valid as input in constrained int...

bool canIgnoreSNaN(fp::ExceptionBehavior EB, FastMathFlags FMF)

Returns true if the possibility of a signaling NaN can be safely ignored.

Definition FPEnv.h:86