LLVM 20.0.0git
Macros | Functions
AMDGPUImageIntrinsicOptimizer.cpp File Reference
#include "AMDGPU.h"
#include "AMDGPUInstrInfo.h"
#include "AMDGPUTargetMachine.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-image-intrinsic-opt"
 

Functions

INITIALIZE_PASS(AMDGPUImageIntrinsicOptimizer, DEBUG_TYPE, "AMDGPU Image Intrinsic Optimizer", false, false) char AMDGPUImageIntrinsicOptimizer void addInstToMergeableList (IntrinsicInst *II, SmallVector< SmallVector< IntrinsicInst *, 4 > > &MergeableInsts, const AMDGPU::ImageDimIntrinsicInfo *ImageDimIntr)
 
BasicBlock::iterator collectMergeableInsts (BasicBlock::iterator I, BasicBlock::iterator E, SmallVector< SmallVector< IntrinsicInst *, 4 > > &MergeableInsts)
 
bool optimizeSection (ArrayRef< SmallVector< IntrinsicInst *, 4 > > MergeableInsts)
 
static bool imageIntrinsicOptimizerImpl (Function &F, const TargetMachine *TM)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-image-intrinsic-opt"

Definition at line 76 of file AMDGPUImageIntrinsicOptimizer.cpp.

Function Documentation

◆ addInstToMergeableList()

INITIALIZE_PASS(AMDGPUImageIntrinsicOptimizer, DEBUG_TYPE, "AMDGPU Image Intrinsic Optimizer", false, false) char AMDGPUImageIntrinsicOptimizer void addInstToMergeableList ( IntrinsicInst II,
SmallVector< SmallVector< IntrinsicInst *, 4 > > &  MergeableInsts,
const AMDGPU::ImageDimIntrinsicInfo ImageDimIntr 
)

Definition at line 98 of file AMDGPUImageIntrinsicOptimizer.cpp.

References assert(), llvm::dbgs(), I, II, and LLVM_DEBUG.

Referenced by collectMergeableInsts().

◆ collectMergeableInsts()

BasicBlock::iterator collectMergeableInsts ( BasicBlock::iterator  I,
BasicBlock::iterator  E,
SmallVector< SmallVector< IntrinsicInst *, 4 > > &  MergeableInsts 
)

◆ imageIntrinsicOptimizerImpl()

static bool imageIntrinsicOptimizerImpl ( Function F,
const TargetMachine TM 
)
static

◆ optimizeSection()

bool optimizeSection ( ArrayRef< SmallVector< IntrinsicInst *, 4 > >  MergeableInsts)