LLVM 20.0.0git
Macros | Functions | Variables
SILoadStoreOptimizer.cpp File Reference
#include "SILoadStoreOptimizer.h"
#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/InitializePasses.h"

Go to the source code of this file.

Macros

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

Functions

 INITIALIZE_PASS_BEGIN (SILoadStoreOptimizerLegacy, DEBUG_TYPE, "SI Load Store Optimizer", false, false) INITIALIZE_PASS_END(SILoadStoreOptimizerLegacy
 
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)
 
static bool needsConstrainedOpcode (const GCNSubtarget &STM, ArrayRef< MachineMemOperand * > MMOs, unsigned Width)
 

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 70 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 ( SILoadStoreOptimizerLegacy  ,
DEBUG_TYPE  ,
"SI Load Store Optimizer"  ,
false  ,
false   
)

◆ mostAlignedValueInRange()

static uint32_t mostAlignedValueInRange ( uint32_t  Lo,
uint32_t  Hi 
)
static

Definition at line 1029 of file SILoadStoreOptimizer.cpp.

References llvm::countl_zero(), Hi, and Lo.

◆ needsConstrainedOpcode()

static bool needsConstrainedOpcode ( const GCNSubtarget STM,
ArrayRef< MachineMemOperand * >  MMOs,
unsigned  Width 
)
static

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 893 of file SILoadStoreOptimizer.cpp.

◆ false

SI Load Store false

Definition at line 894 of file SILoadStoreOptimizer.cpp.

◆ Optimizer

SI Load Store Optimizer

Definition at line 894 of file SILoadStoreOptimizer.cpp.