LLVM  16.0.0git
Macros | Functions | Variables
SILoadStoreOptimizer.cpp File Reference
#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/InitializePasses.h"
Include dependency graph for SILoadStoreOptimizer.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-load-store-opt"
 

Functions

 INITIALIZE_PASS_BEGIN (SILoadStoreOptimizer, DEBUG_TYPE, "SI Load Store Optimizer", false, false) INITIALIZE_PASS_END(SILoadStoreOptimizer
 
static void addDefsUsesToList (const MachineInstr &MI, DenseSet< Register > &RegDefs, DenseSet< Register > &RegUses)
 
static unsigned getBufferFormatWithCompCount (unsigned OldFormat, unsigned ComponentCount, const GCNSubtarget &STI)
 
static uint32_t mostAlignedValueInRange (uint32_t Lo, uint32_t Hi)
 

Variables

 DEBUG_TYPE
 
SI Load Store Optimizer
 
SI Load Store false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "si-load-store-opt"

Definition at line 69 of file SILoadStoreOptimizer.cpp.

Function Documentation

◆ addDefsUsesToList()

static void addDefsUsesToList ( const MachineInstr MI,
DenseSet< Register > &  RegDefs,
DenseSet< Register > &  RegUses 
)
static

◆ getBufferFormatWithCompCount()

static unsigned getBufferFormatWithCompCount ( unsigned  OldFormat,
unsigned  ComponentCount,
const GCNSubtarget STI 
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SILoadStoreOptimizer  ,
DEBUG_TYPE  ,
"SI Load Store Optimizer ,
false  ,
false   
)

◆ mostAlignedValueInRange()

static uint32_t mostAlignedValueInRange ( uint32_t  Lo,
uint32_t  Hi 
)
static

Definition at line 928 of file SILoadStoreOptimizer.cpp.

References llvm::countLeadingZeros().

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 795 of file SILoadStoreOptimizer.cpp.

◆ false

SI Load Store false

Definition at line 796 of file SILoadStoreOptimizer.cpp.

◆ Optimizer

SI Load Store Optimizer

Definition at line 795 of file SILoadStoreOptimizer.cpp.