LLVM 20.0.0git
Namespaces | Macros | Variables
AMDGPURemoveIncompatibleFunctions.cpp File Reference

This pass replaces all uses of functions that use GPU features incompatible with the current GPU with null then deletes the function. More...

#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Target/TargetMachine.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define DEBUG_TYPE   "amdgpu-remove-incompatible-functions"
 

Variables

const SubtargetFeatureKV llvm::AMDGPUFeatureKV [AMDGPU::NumSubtargetFeatures - 1]
 

Detailed Description

This pass replaces all uses of functions that use GPU features incompatible with the current GPU with null then deletes the function.

Definition in file AMDGPURemoveIncompatibleFunctions.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-remove-incompatible-functions"

Definition at line 24 of file AMDGPURemoveIncompatibleFunctions.cpp.