LLVM  16.0.0git
Namespaces | Macros | Functions
FPEnv.cpp File Reference
#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 "llvm/IR/ConstrainedOps.def"
Include dependency graph for FPEnv.cpp:

Go to the source code of this file.

Namespaces

 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

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. More...
 
Optional< StringRef > llvm::convertRoundingModeToStr (RoundingMode)
 For any RoundingMode enumerator, returns a string valid as input in constrained intrinsic rounding mode metadata. More...
 
Optional< fp::ExceptionBehavior > llvm::convertStrToExceptionBehavior (StringRef)
 Returns a valid ExceptionBehavior enumerator when given a string valid as input in constrained intrinsic exception behavior metadata. More...
 
Optional< StringRef > llvm::convertExceptionBehaviorToStr (fp::ExceptionBehavior)
 For any ExceptionBehavior enumerator, returns a string valid as input in constrained intrinsic exception behavior metadata. More...
 
Intrinsic::ID llvm::getConstrainedIntrinsicID (const Instruction &Instr)
 Returns constrained intrinsic id to represent the given instruction in strictfp function. More...
 

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 
)