LLVM  10.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::AMDGPU::SIModeRegisterDefaults Struct Reference

#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"

Collaboration diagram for llvm::AMDGPU::SIModeRegisterDefaults:
[legend]

Public Member Functions

 SIModeRegisterDefaults ()
 
 SIModeRegisterDefaults (const Function &F, const GCNSubtarget &ST)
 
bool operator== (const SIModeRegisterDefaults Other) const
 
bool isInlineCompatible (SIModeRegisterDefaults CalleeMode) const
 

Static Public Member Functions

static SIModeRegisterDefaults getDefaultForCallingConv (CallingConv::ID CC)
 
static bool oneWayCompatible (bool CallerMode, bool CalleeMode)
 Returns true if a flag is compatible if it's enabled in the callee, but disabled in the caller. More...
 

Public Attributes

bool IEEE: 1
 Floating point opcodes that support exception flag gathering quiet and propagate signaling NaN inputs per IEEE 754-2008. More...
 
bool DX10Clamp: 1
 Used by the vector ALU to force DX10-style treatment of NaNs: when set, clamp NaN to zero; otherwise, pass NaN through. More...
 
bool FP32Denormals: 1
 If this is set, neither input or output denormals are flushed for most f32 instructions. More...
 
bool FP64FP16Denormals: 1
 If this is set, neither input or output denormals are flushed for both f64 and f16/v2f16 instructions. More...
 

Detailed Description

Definition at line 667 of file AMDGPUBaseInfo.h.

Constructor & Destructor Documentation

◆ SIModeRegisterDefaults() [1/2]

llvm::AMDGPU::SIModeRegisterDefaults::SIModeRegisterDefaults ( )
inline

Definition at line 689 of file AMDGPUBaseInfo.h.

◆ SIModeRegisterDefaults() [2/2]

llvm::AMDGPU::SIModeRegisterDefaults::SIModeRegisterDefaults ( const Function &  F,
const GCNSubtarget &  ST 
)

Member Function Documentation

◆ getDefaultForCallingConv()

static SIModeRegisterDefaults llvm::AMDGPU::SIModeRegisterDefaults::getDefaultForCallingConv ( CallingConv::ID  CC)
inlinestatic

◆ isInlineCompatible()

bool llvm::AMDGPU::SIModeRegisterDefaults::isInlineCompatible ( SIModeRegisterDefaults  CalleeMode) const
inline

Definition at line 723 of file AMDGPUBaseInfo.h.

References DX10Clamp, FP32Denormals, FP64FP16Denormals, and IEEE.

Referenced by llvm::GCNTTIImpl::areInlineCompatible().

◆ oneWayCompatible()

static bool llvm::AMDGPU::SIModeRegisterDefaults::oneWayCompatible ( bool  CallerMode,
bool  CalleeMode 
)
inlinestatic

Returns true if a flag is compatible if it's enabled in the callee, but disabled in the caller.

Definition at line 717 of file AMDGPUBaseInfo.h.

◆ operator==()

bool llvm::AMDGPU::SIModeRegisterDefaults::operator== ( const SIModeRegisterDefaults  Other) const
inline

Definition at line 709 of file AMDGPUBaseInfo.h.

References DX10Clamp, FP32Denormals, FP64FP16Denormals, and IEEE.

Member Data Documentation

◆ DX10Clamp

bool llvm::AMDGPU::SIModeRegisterDefaults::DX10Clamp

Used by the vector ALU to force DX10-style treatment of NaNs: when set, clamp NaN to zero; otherwise, pass NaN through.

Definition at line 676 of file AMDGPUBaseInfo.h.

Referenced by getDefaultForCallingConv(), getSplatConstantFP(), hasAnyNonFlatUseOfReg(), isClampZeroToOne(), isInlineCompatible(), llvm::SITargetLowering::isKnownNeverNaNForTargetNode(), operator==(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), and llvm::yaml::SIMode::SIMode().

◆ FP32Denormals

bool llvm::AMDGPU::SIModeRegisterDefaults::FP32Denormals

If this is set, neither input or output denormals are flushed for most f32 instructions.

TODO: Split into separate input and output fields if necessary like the control bits really provide?

Definition at line 683 of file AMDGPUBaseInfo.h.

Referenced by getDefaultForCallingConv(), hasFP32Denormals(), isInlineCompatible(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV(), llvm::AMDGPULegalizerInfo::legalizeFMad(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), operator==(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), and llvm::yaml::SIMode::SIMode().

◆ FP64FP16Denormals

bool llvm::AMDGPU::SIModeRegisterDefaults::FP64FP16Denormals

If this is set, neither input or output denormals are flushed for both f64 and f16/v2f16 instructions.

Definition at line 687 of file AMDGPUBaseInfo.h.

Referenced by getDefaultForCallingConv(), hasFP64FP16Denormals(), isInlineCompatible(), llvm::AMDGPULegalizerInfo::legalizeFMad(), operator==(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), and llvm::yaml::SIMode::SIMode().

◆ IEEE

bool llvm::AMDGPU::SIModeRegisterDefaults::IEEE

Floating point opcodes that support exception flag gathering quiet and propagate signaling NaN inputs per IEEE 754-2008.

Min_dx10 and max_dx10 become IEEE 754- 2008 compliant due to signaling NaN propagation and quieting.

Definition at line 672 of file AMDGPUBaseInfo.h.

Referenced by getDefaultForCallingConv(), getOModValue(), hasAnyNonFlatUseOfReg(), isInlineCompatible(), llvm::AMDGPULegalizerInfo::legalizeMinNumMaxNum(), operator==(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::SITargetLowering::shouldEmitPCReloc(), and llvm::yaml::SIMode::SIMode().


The documentation for this struct was generated from the following files: