LLVM 20.0.0git
Macros | Functions | Variables
AMDGPULowerKernelAttributes.cpp File Reference
#include "AMDGPU.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/Pass.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-lower-kernel-attributes"
 

Functions

static void annotateGridSizeLoadWithRangeMD (LoadInst *Load, uint32_t MaxNumGroups)
 
static bool processUse (CallInst *CI, bool IsV5OrAbove)
 
 INITIALIZE_PASS_BEGIN (AMDGPULowerKernelAttributes, DEBUG_TYPE, "AMDGPU Kernel Attributes", false, false) INITIALIZE_PASS_END(AMDGPULowerKernelAttributes
 

Variables

 DEBUG_TYPE
 
AMDGPU Kernel Attributes
 
AMDGPU Kernel false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-lower-kernel-attributes"

Definition at line 29 of file AMDGPULowerKernelAttributes.cpp.

Function Documentation

◆ annotateGridSizeLoadWithRangeMD()

static void annotateGridSizeLoadWithRangeMD ( LoadInst Load,
uint32_t  MaxNumGroups 
)
static

Definition at line 86 of file AMDGPULowerKernelAttributes.cpp.

References llvm::MDBuilder::createRange(), and Range.

Referenced by processUse().

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPULowerKernelAttributes  ,
DEBUG_TYPE  ,
"AMDGPU Kernel Attributes"  ,
false  ,
false   
)

◆ processUse()

static bool processUse ( CallInst CI,
bool  IsV5OrAbove 
)
static

Variable Documentation

◆ Attributes

AMDGPU Kernel Attributes

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 369 of file AMDGPULowerKernelAttributes.cpp.

◆ false

AMDGPU Kernel false

Definition at line 370 of file AMDGPULowerKernelAttributes.cpp.