LLVM  14.0.0git
Macros | Functions
AMDGPUInstCombineIntrinsic.cpp File Reference
#include "AMDGPUInstrInfo.h"
#include "AMDGPUTargetTransformInfo.h"
#include "GCNSubtarget.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/Transforms/InstCombine/InstCombiner.h"
#include "InstCombineTables.inc"
Include dependency graph for AMDGPUInstCombineIntrinsic.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "AMDGPUtti"
 
#define GET_AMDGPUImageDMaskIntrinsicTable_IMPL
 

Functions

static APFloat fmed3AMDGCN (const APFloat &Src0, const APFloat &Src1, const APFloat &Src2)
 
static bool canSafelyConvertTo16Bit (Value &V)
 
static ValueconvertTo16Bit (Value &V, InstCombiner::BuilderTy &Builder)
 
static Optional< Instruction * > simplifyAMDGCNImageIntrinsic (const GCNSubtarget *ST, const AMDGPU::ImageDimIntrinsicInfo *ImageDimIntr, IntrinsicInst &II, InstCombiner &IC)
 
static ValuesimplifyAMDGCNMemoryIntrinsicDemanded (InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts, int DMaskIdx=-1)
 Implement SimplifyDemandedVectorElts for amdgcn buffer and image intrinsics. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "AMDGPUtti"

Definition at line 25 of file AMDGPUInstCombineIntrinsic.cpp.

◆ GET_AMDGPUImageDMaskIntrinsicTable_IMPL

#define GET_AMDGPUImageDMaskIntrinsicTable_IMPL

Definition at line 33 of file AMDGPUInstCombineIntrinsic.cpp.

Function Documentation

◆ canSafelyConvertTo16Bit()

static bool canSafelyConvertTo16Bit ( Value V)
static

◆ convertTo16Bit()

static Value* convertTo16Bit ( Value V,
InstCombiner::BuilderTy Builder 
)
static

◆ fmed3AMDGCN()

static APFloat fmed3AMDGCN ( const APFloat Src0,
const APFloat Src1,
const APFloat Src2 
)
static

◆ simplifyAMDGCNImageIntrinsic()

static Optional<Instruction *> simplifyAMDGCNImageIntrinsic ( const GCNSubtarget ST,
const AMDGPU::ImageDimIntrinsicInfo ImageDimIntr,
IntrinsicInst II,
InstCombiner IC 
)
static

◆ simplifyAMDGCNMemoryIntrinsicDemanded()

static Value* simplifyAMDGCNMemoryIntrinsicDemanded ( InstCombiner IC,
IntrinsicInst II,
APInt  DemandedElts,
int  DMaskIdx = -1 
)
static