LLVM 20.0.0git
Classes | Namespaces | Macros | Functions | Variables
SPIRVModuleAnalysis.cpp File Reference
#include "SPIRVModuleAnalysis.h"
#include "MCTargetDesc/SPIRVBaseInfo.h"
#include "MCTargetDesc/SPIRVMCTargetDesc.h"
#include "SPIRV.h"
#include "SPIRVSubtarget.h"
#include "SPIRVTargetMachine.h"
#include "SPIRVUtils.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/TargetPassConfig.h"

Go to the source code of this file.

Classes

struct  AvoidCapabilitiesSet
 

Namespaces

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

Macros

#define DEBUG_TYPE   "spirv-module-analysis"
 
#define ATOM_FLT_REQ_EXT_MSG(ExtName)
 

Functions

void llvm::initializeSPIRVModuleAnalysisPass (PassRegistry &)
 
 INITIALIZE_PASS (SPIRVModuleAnalysis, DEBUG_TYPE, "SPIRV module analysis", true, true) static unsigned getMetadataUInt(MDNode *MdNode
 

Variables

static cl::opt< boolSPVDumpDeps ("spv-dump-deps", cl::desc("Dump MIR with SPIR-V dependencies info"), cl::Optional, cl::init(false))
 
static cl::list< SPIRV::Capability::Capability > AvoidCapabilities ("avoid-spirv-capabilities", cl::desc("SPIR-V capabilities to avoid if there are " "other options enabling a feature"), cl::ZeroOrMore, cl::Hidden, cl::values(clEnumValN(SPIRV::Capability::Shader, "Shader", "SPIR-V Shader capability")))
 
unsigned OpIndex
 
unsigned unsigned DefaultVal
 

Macro Definition Documentation

◆ ATOM_FLT_REQ_EXT_MSG

#define ATOM_FLT_REQ_EXT_MSG (   ExtName)
Value:
"The atomic float instruction requires the following SPIR-V " \
"extension: SPV_EXT_shader_atomic_float" ExtName

◆ DEBUG_TYPE

#define DEBUG_TYPE   "spirv-module-analysis"

Definition at line 30 of file SPIRVModuleAnalysis.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SPIRVModuleAnalysis  ,
DEBUG_TYPE  ,
"SPIRV module analysis"  ,
true  ,
true   
)

Variable Documentation

◆ AvoidCapabilities

cl::list< SPIRV::Capability::Capability > AvoidCapabilities("avoid-spirv-capabilities", cl::desc("SPIR-V capabilities to avoid if there are " "other options enabling a feature"), cl::ZeroOrMore, cl::Hidden, cl::values(clEnumValN(SPIRV::Capability::Shader, "Shader", "SPIR-V Shader capability"))) ( "avoid-spirv-capabilities"  ,
cl::desc("SPIR-V capabilities to avoid if there are " "other options enabling a feature")  ,
cl::ZeroOrMore  ,
cl::Hidden  ,
cl::values(clEnumValN(SPIRV::Capability::Shader, "Shader", "SPIR-V Shader capability"))   
)
static

◆ DefaultVal

unsigned unsigned DefaultVal

Definition at line 64 of file SPIRVModuleAnalysis.cpp.

Referenced by llvm::AMDGPU::getIntegerVecAttribute().

◆ OpIndex

unsigned OpIndex

◆ SPVDumpDeps

cl::opt< bool > SPVDumpDeps("spv-dump-deps", cl::desc("Dump MIR with SPIR-V dependencies info"), cl::Optional, cl::init(false)) ( "spv-dump-deps"  ,
cl::desc("Dump MIR with SPIR-V dependencies info")  ,
cl::Optional  ,
cl::init(false)   
)
static