LLVM 20.0.0git
Namespaces | Macros | Functions
FPEnv.cpp File Reference

This file contains the implementations of entities that describe floating point environment. More...

#include "llvm/IR/FPEnv.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include <optional>
#include "llvm/IR/ConstrainedOps.def"

Go to the source code of this file.

Namespaces

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

Macros

#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC)
 
#define FUNCTION(NAME, NARG, ROUND_MODE, INTRINSIC)
 
#define CMP_INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN)
 
#define FUNCTION(NAME, NARG, ROUND_MODE, INTRINSIC)
 
#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC)
 
#define CMP_INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN)
 

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.
 
Intrinsic::ID llvm::getConstrainedIntrinsicID (const Instruction &Instr)
 Returns constrained intrinsic id to represent the given instruction in strictfp function.
 

Detailed Description

This file contains the implementations of entities that describe floating point environment.

Definition in file FPEnv.cpp.

Macro Definition Documentation

◆ CMP_INSTRUCTION [1/2]

#define CMP_INSTRUCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC,
  DAGN 
)

◆ CMP_INSTRUCTION [2/2]

#define CMP_INSTRUCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC,
  DAGN 
)

◆ FUNCTION [1/2]

#define FUNCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC 
)

◆ FUNCTION [2/2]

#define FUNCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC 
)
Value:
case Intrinsic::NAME: \
IID = Intrinsic::INTRINSIC; \
break;

◆ INSTRUCTION [1/2]

#define INSTRUCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC 
)
Value:
case Instruction::NAME: \
IID = Intrinsic::INTRINSIC; \
break;

◆ INSTRUCTION [2/2]

#define INSTRUCTION (   NAME,
  NARG,
  ROUND_MODE,
  INTRINSIC 
)