LLVM 23.0.0git
SPIRVBaseInfo.h File Reference
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringTable.h"
#include "llvm/Support/VersionTuple.h"
#include <string>
#include "SPIRVGenTables.inc"

Go to the source code of this file.

Classes

struct  llvm::SPIRV::ExtendedBuiltin

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::SPIRV
namespace  llvm::SPIRV::OperandCategory
namespace  llvm::SPIRV::Extension
namespace  llvm::SPIRV::Capability
namespace  llvm::SPIRV::Environment
namespace  llvm::SPIRV::SourceLanguage
namespace  llvm::SPIRV::AddressingModel
namespace  llvm::SPIRV::ExecutionModel
namespace  llvm::SPIRV::MemoryModel
namespace  llvm::SPIRV::MatrixMultiplyAccumulateOperands
namespace  llvm::SPIRV::ExecutionMode
namespace  llvm::SPIRV::StorageClass
namespace  llvm::SPIRV::Dim
namespace  llvm::SPIRV::SamplerAddressingMode
namespace  llvm::SPIRV::SamplerFilterMode
namespace  llvm::SPIRV::ImageFormat
namespace  llvm::SPIRV::ImageChannelOrder
namespace  llvm::SPIRV::ImageChannelDataType
namespace  llvm::SPIRV::ImageOperand
namespace  llvm::SPIRV::FPFastMathMode
namespace  llvm::SPIRV::FPRoundingMode
namespace  llvm::SPIRV::LinkageType
namespace  llvm::SPIRV::AccessQualifier
namespace  llvm::SPIRV::FunctionParameterAttribute
namespace  llvm::SPIRV::Decoration
namespace  llvm::SPIRV::BuiltIn
namespace  llvm::SPIRV::SelectionControl
namespace  llvm::SPIRV::LoopControl
namespace  llvm::SPIRV::FunctionControl
namespace  llvm::SPIRV::MemorySemantics
namespace  llvm::SPIRV::MemoryOperand
namespace  llvm::SPIRV::Scope
namespace  llvm::SPIRV::GroupOperation
namespace  llvm::SPIRV::KernelEnqueueFlags
namespace  llvm::SPIRV::KernelProfilingInfo
namespace  llvm::SPIRV::InstructionSet
namespace  llvm::SPIRV::OpenCLExtInst
namespace  llvm::SPIRV::GLSLExtInst
namespace  llvm::SPIRV::NonSemanticExtInst
namespace  llvm::SPIRV::Opcode
namespace  llvm::SPIRV::CooperativeMatrixLayout
namespace  llvm::SPIRV::CooperativeMatrixOperands
namespace  llvm::SPIRV::SpecConstantOpOperands
namespace  llvm::SPIRV::FPEncoding

Macros

#define GET_OperandCategory_DECL
#define GET_Extension_DECL
#define GET_Capability_DECL
#define GET_Environment_DECL
#define GET_SourceLanguage_DECL
#define GET_AddressingModel_DECL
#define GET_ExecutionModel_DECL
#define GET_MemoryModel_DECL
#define GET_MatrixMultiplyAccumulateOperands_DECL
#define GET_ExecutionMode_DECL
#define GET_StorageClass_DECL
#define GET_Dim_DECL
#define GET_SamplerAddressingMode_DECL
#define GET_SamplerFilterMode_DECL
#define GET_ImageFormat_DECL
#define GET_ImageChannelOrder_DECL
#define GET_ImageChannelDataType_DECL
#define GET_ImageOperand_DECL
#define GET_FPFastMathMode_DECL
#define GET_FPRoundingMode_DECL
#define GET_LinkageType_DECL
#define GET_AccessQualifier_DECL
#define GET_FunctionParameterAttribute_DECL
#define GET_Decoration_DECL
#define GET_BuiltIn_DECL
#define GET_SelectionControl_DECL
#define GET_LoopControl_DECL
#define GET_FunctionControl_DECL
#define GET_MemorySemantics_DECL
#define GET_MemoryOperand_DECL
#define GET_Scope_DECL
#define GET_GroupOperation_DECL
#define GET_KernelEnqueueFlags_DECL
#define GET_KernelProfilingInfo_DECL
#define GET_InstructionSet_DECL
#define GET_OpenCLExtInst_DECL
#define GET_GLSLExtInst_DECL
#define GET_NonSemanticExtInst_DECL
#define GET_Opcode_DECL
#define GET_CooperativeMatrixLayout_DECL
#define GET_CooperativeMatrixOperands_DECL
#define GET_SpecConstantOpOperands_DECL
#define GET_FPEncoding_DECL

Typedefs

using llvm::CapabilityList = SmallVector<SPIRV::Capability::Capability, 8>
using llvm::ExtensionList = SmallVector<SPIRV::Extension::Extension, 8>
using llvm::EnvironmentList = SmallVector<SPIRV::Environment::Environment, 8>
using llvm::ExtensionSet = DenseSet<SPIRV::Extension::Extension>

Enumerations

enum  llvm::SPIRV::InstFlags { llvm::SPIRV::INST_PRINTER_WIDTH16 = 1 , llvm::SPIRV::INST_PRINTER_WIDTH64 = INST_PRINTER_WIDTH16 << 1 }

Functions

std::string llvm::getSymbolicOperandMnemonic (SPIRV::OperandCategory::OperandCategory Category, int32_t Value)
VersionTuple llvm::getSymbolicOperandMinVersion (SPIRV::OperandCategory::OperandCategory Category, uint32_t Value)
VersionTuple llvm::getSymbolicOperandMaxVersion (SPIRV::OperandCategory::OperandCategory Category, uint32_t Value)
CapabilityList llvm::getSymbolicOperandCapabilities (SPIRV::OperandCategory::OperandCategory Category, uint32_t Value)
EnvironmentList llvm::getSymbolicOperandAllowedEnvironments (SPIRV::OperandCategory::OperandCategory Category, uint32_t Value)
CapabilityList llvm::getCapabilitiesEnabledByExtension (SPIRV::Extension::Extension Extension)
ExtensionList llvm::getSymbolicOperandExtensions (SPIRV::OperandCategory::OperandCategory Category, uint32_t Value)
std::string llvm::getLinkStringForBuiltIn (SPIRV::BuiltIn::BuiltIn BuiltInValue)
bool llvm::getSpirvBuiltInIdByName (llvm::StringRef Name, SPIRV::BuiltIn::BuiltIn &BI)
std::string llvm::getExtInstSetName (SPIRV::InstructionSet::InstructionSet Set)
SPIRV::InstructionSet::InstructionSet llvm::getExtInstSetFromString (std::string SetName)
std::string llvm::getExtInstName (SPIRV::InstructionSet::InstructionSet Set, uint32_t InstructionNumber)
template<class InstType>
std::string llvm::getSPIRVStringOperand (const InstType &MI, unsigned StartIndex)

Macro Definition Documentation

◆ GET_AccessQualifier_DECL

#define GET_AccessQualifier_DECL

Definition at line 133 of file SPIRVBaseInfo.h.

◆ GET_AddressingModel_DECL

#define GET_AddressingModel_DECL

Definition at line 53 of file SPIRVBaseInfo.h.

◆ GET_BuiltIn_DECL

#define GET_BuiltIn_DECL

Definition at line 148 of file SPIRVBaseInfo.h.

◆ GET_Capability_DECL

#define GET_Capability_DECL

Definition at line 38 of file SPIRVBaseInfo.h.

◆ GET_CooperativeMatrixLayout_DECL

#define GET_CooperativeMatrixLayout_DECL

Definition at line 223 of file SPIRVBaseInfo.h.

◆ GET_CooperativeMatrixOperands_DECL

#define GET_CooperativeMatrixOperands_DECL

Definition at line 228 of file SPIRVBaseInfo.h.

◆ GET_Decoration_DECL

#define GET_Decoration_DECL

Definition at line 143 of file SPIRVBaseInfo.h.

◆ GET_Dim_DECL

#define GET_Dim_DECL

Definition at line 83 of file SPIRVBaseInfo.h.

◆ GET_Environment_DECL

#define GET_Environment_DECL

Definition at line 43 of file SPIRVBaseInfo.h.

◆ GET_ExecutionMode_DECL

#define GET_ExecutionMode_DECL

Definition at line 73 of file SPIRVBaseInfo.h.

◆ GET_ExecutionModel_DECL

#define GET_ExecutionModel_DECL

Definition at line 58 of file SPIRVBaseInfo.h.

◆ GET_Extension_DECL

#define GET_Extension_DECL

Definition at line 33 of file SPIRVBaseInfo.h.

◆ GET_FPEncoding_DECL

#define GET_FPEncoding_DECL

Definition at line 238 of file SPIRVBaseInfo.h.

◆ GET_FPFastMathMode_DECL

#define GET_FPFastMathMode_DECL

Definition at line 118 of file SPIRVBaseInfo.h.

◆ GET_FPRoundingMode_DECL

#define GET_FPRoundingMode_DECL

Definition at line 123 of file SPIRVBaseInfo.h.

◆ GET_FunctionControl_DECL

#define GET_FunctionControl_DECL

Definition at line 163 of file SPIRVBaseInfo.h.

◆ GET_FunctionParameterAttribute_DECL

#define GET_FunctionParameterAttribute_DECL

Definition at line 138 of file SPIRVBaseInfo.h.

◆ GET_GLSLExtInst_DECL

#define GET_GLSLExtInst_DECL

Definition at line 208 of file SPIRVBaseInfo.h.

◆ GET_GroupOperation_DECL

#define GET_GroupOperation_DECL

Definition at line 183 of file SPIRVBaseInfo.h.

◆ GET_ImageChannelDataType_DECL

#define GET_ImageChannelDataType_DECL

Definition at line 108 of file SPIRVBaseInfo.h.

◆ GET_ImageChannelOrder_DECL

#define GET_ImageChannelOrder_DECL

Definition at line 103 of file SPIRVBaseInfo.h.

◆ GET_ImageFormat_DECL

#define GET_ImageFormat_DECL

Definition at line 98 of file SPIRVBaseInfo.h.

◆ GET_ImageOperand_DECL

#define GET_ImageOperand_DECL

Definition at line 113 of file SPIRVBaseInfo.h.

◆ GET_InstructionSet_DECL

#define GET_InstructionSet_DECL

Definition at line 198 of file SPIRVBaseInfo.h.

◆ GET_KernelEnqueueFlags_DECL

#define GET_KernelEnqueueFlags_DECL

Definition at line 188 of file SPIRVBaseInfo.h.

◆ GET_KernelProfilingInfo_DECL

#define GET_KernelProfilingInfo_DECL

Definition at line 193 of file SPIRVBaseInfo.h.

◆ GET_LinkageType_DECL

#define GET_LinkageType_DECL

Definition at line 128 of file SPIRVBaseInfo.h.

◆ GET_LoopControl_DECL

#define GET_LoopControl_DECL

Definition at line 158 of file SPIRVBaseInfo.h.

◆ GET_MatrixMultiplyAccumulateOperands_DECL

#define GET_MatrixMultiplyAccumulateOperands_DECL

Definition at line 68 of file SPIRVBaseInfo.h.

◆ GET_MemoryModel_DECL

#define GET_MemoryModel_DECL

Definition at line 63 of file SPIRVBaseInfo.h.

◆ GET_MemoryOperand_DECL

#define GET_MemoryOperand_DECL

Definition at line 173 of file SPIRVBaseInfo.h.

◆ GET_MemorySemantics_DECL

#define GET_MemorySemantics_DECL

Definition at line 168 of file SPIRVBaseInfo.h.

◆ GET_NonSemanticExtInst_DECL

#define GET_NonSemanticExtInst_DECL

Definition at line 213 of file SPIRVBaseInfo.h.

◆ GET_Opcode_DECL

#define GET_Opcode_DECL

Definition at line 218 of file SPIRVBaseInfo.h.

◆ GET_OpenCLExtInst_DECL

#define GET_OpenCLExtInst_DECL

Definition at line 203 of file SPIRVBaseInfo.h.

◆ GET_OperandCategory_DECL

#define GET_OperandCategory_DECL

Definition at line 28 of file SPIRVBaseInfo.h.

◆ GET_SamplerAddressingMode_DECL

#define GET_SamplerAddressingMode_DECL

Definition at line 88 of file SPIRVBaseInfo.h.

◆ GET_SamplerFilterMode_DECL

#define GET_SamplerFilterMode_DECL

Definition at line 93 of file SPIRVBaseInfo.h.

◆ GET_Scope_DECL

#define GET_Scope_DECL

Definition at line 178 of file SPIRVBaseInfo.h.

◆ GET_SelectionControl_DECL

#define GET_SelectionControl_DECL

Definition at line 153 of file SPIRVBaseInfo.h.

◆ GET_SourceLanguage_DECL

#define GET_SourceLanguage_DECL

Definition at line 48 of file SPIRVBaseInfo.h.

◆ GET_SpecConstantOpOperands_DECL

#define GET_SpecConstantOpOperands_DECL

Definition at line 233 of file SPIRVBaseInfo.h.

◆ GET_StorageClass_DECL

#define GET_StorageClass_DECL

Definition at line 78 of file SPIRVBaseInfo.h.