LLVM  15.0.0git
Namespaces | Enumerations | Functions
SPIRVBaseInfo.h File Reference
#include "llvm/ADT/StringRef.h"
#include <string>
Include dependency graph for SPIRVBaseInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Enumerations

enum  llvm::SPIRV::Capability : uint32_t {
  llvm::SPIRV::Capability::Matrix = 0, llvm::SPIRV::Capability::Shader = 1, llvm::SPIRV::Capability::Geometry = 2, llvm::SPIRV::Capability::Tessellation = 3,
  llvm::SPIRV::Capability::Addresses = 4, llvm::SPIRV::Capability::Linkage = 5, llvm::SPIRV::Capability::Kernel = 6, llvm::SPIRV::Capability::Vector16 = 7,
  llvm::SPIRV::Capability::Float16Buffer = 8, llvm::SPIRV::Capability::Float16 = 9, llvm::SPIRV::Capability::Float64 = 10, llvm::SPIRV::Capability::Int64 = 11,
  llvm::SPIRV::Capability::Int64Atomics = 12, llvm::SPIRV::Capability::ImageBasic = 13, llvm::SPIRV::Capability::ImageReadWrite = 14, llvm::SPIRV::Capability::ImageMipmap = 15,
  llvm::SPIRV::Capability::Pipes = 17, llvm::SPIRV::Capability::Groups = 18, llvm::SPIRV::Capability::DeviceEnqueue = 19, llvm::SPIRV::Capability::LiteralSampler = 20,
  llvm::SPIRV::Capability::AtomicStorage = 21, llvm::SPIRV::Capability::Int16 = 22, llvm::SPIRV::Capability::TessellationPointSize = 23, llvm::SPIRV::Capability::GeometryPointSize = 24,
  llvm::SPIRV::Capability::ImageGatherExtended = 25, llvm::SPIRV::Capability::StorageImageMultisample = 27, llvm::SPIRV::Capability::UniformBufferArrayDynamicIndexing = 28, llvm::SPIRV::Capability::SampledImageArrayDymnamicIndexing = 29,
  llvm::SPIRV::Capability::ClipDistance = 32, llvm::SPIRV::Capability::CullDistance = 33, llvm::SPIRV::Capability::ImageCubeArray = 34, llvm::SPIRV::Capability::SampleRateShading = 35,
  llvm::SPIRV::Capability::ImageRect = 36, llvm::SPIRV::Capability::SampledRect = 37, llvm::SPIRV::Capability::GenericPointer = 38, llvm::SPIRV::Capability::Int8 = 39,
  llvm::SPIRV::Capability::InputAttachment = 40, llvm::SPIRV::Capability::SparseResidency = 41, llvm::SPIRV::Capability::MinLod = 42, llvm::SPIRV::Capability::Sampled1D = 43,
  llvm::SPIRV::Capability::Image1D = 44, llvm::SPIRV::Capability::SampledCubeArray = 45, llvm::SPIRV::Capability::SampledBuffer = 46, llvm::SPIRV::Capability::ImageBuffer = 47,
  llvm::SPIRV::Capability::ImageMSArray = 48, llvm::SPIRV::Capability::StorageImageExtendedFormats = 49, llvm::SPIRV::Capability::ImageQuery = 50, llvm::SPIRV::Capability::DerivativeControl = 51,
  llvm::SPIRV::Capability::InterpolationFunction = 52, llvm::SPIRV::Capability::TransformFeedback = 53, llvm::SPIRV::Capability::GeometryStreams = 54, llvm::SPIRV::Capability::StorageImageReadWithoutFormat = 55,
  llvm::SPIRV::Capability::StorageImageWriteWithoutFormat = 56, llvm::SPIRV::Capability::MultiViewport = 57, llvm::SPIRV::Capability::SubgroupDispatch = 58, llvm::SPIRV::Capability::NamedBarrier = 59,
  llvm::SPIRV::Capability::PipeStorage = 60, llvm::SPIRV::Capability::GroupNonUniform = 61, llvm::SPIRV::Capability::GroupNonUniformVote = 62, llvm::SPIRV::Capability::GroupNonUniformArithmetic = 63,
  llvm::SPIRV::Capability::GroupNonUniformBallot = 64, llvm::SPIRV::Capability::GroupNonUniformShuffle = 65, llvm::SPIRV::Capability::GroupNonUniformShuffleRelative = 66, llvm::SPIRV::Capability::GroupNonUniformClustered = 67,
  llvm::SPIRV::Capability::GroupNonUniformQuad = 68, llvm::SPIRV::Capability::SubgroupBallotKHR = 4423, llvm::SPIRV::Capability::DrawParameters = 4427, llvm::SPIRV::Capability::SubgroupVoteKHR = 4431,
  llvm::SPIRV::Capability::StorageBuffer16BitAccess = 4433, llvm::SPIRV::Capability::StorageUniform16 = 4434, llvm::SPIRV::Capability::StoragePushConstant16 = 4435, llvm::SPIRV::Capability::StorageInputOutput16 = 4436,
  llvm::SPIRV::Capability::DeviceGroup = 4437, llvm::SPIRV::Capability::MultiView = 4439, llvm::SPIRV::Capability::VariablePointersStorageBuffer = 4441, llvm::SPIRV::Capability::VariablePointers = 4442,
  llvm::SPIRV::Capability::AtomicStorageOps = 4445, llvm::SPIRV::Capability::SampleMaskPostDepthCoverage = 4447, llvm::SPIRV::Capability::StorageBuffer8BitAccess = 4448, llvm::SPIRV::Capability::UniformAndStorageBuffer8BitAccess = 4449,
  llvm::SPIRV::Capability::StoragePushConstant8 = 4450, llvm::SPIRV::Capability::DenormPreserve = 4464, llvm::SPIRV::Capability::DenormFlushToZero = 4465, llvm::SPIRV::Capability::SignedZeroInfNanPreserve = 4466,
  llvm::SPIRV::Capability::RoundingModeRTE = 4467, llvm::SPIRV::Capability::RoundingModeRTZ = 4468, llvm::SPIRV::Capability::Float16ImageAMD = 5008, llvm::SPIRV::Capability::ImageGatherBiasLodAMD = 5009,
  llvm::SPIRV::Capability::FragmentMaskAMD = 5010, llvm::SPIRV::Capability::StencilExportEXT = 5013, llvm::SPIRV::Capability::ImageReadWriteLodAMD = 5015, llvm::SPIRV::Capability::SampleMaskOverrideCoverageNV = 5249,
  llvm::SPIRV::Capability::GeometryShaderPassthroughNV = 5251, llvm::SPIRV::Capability::ShaderViewportIndexLayerEXT = 5254, llvm::SPIRV::Capability::ShaderViewportMaskNV = 5255, llvm::SPIRV::Capability::ShaderStereoViewNV = 5259,
  llvm::SPIRV::Capability::PerViewAttributesNV = 5260, llvm::SPIRV::Capability::FragmentFullyCoveredEXT = 5265, llvm::SPIRV::Capability::MeshShadingNV = 5266, llvm::SPIRV::Capability::ShaderNonUniformEXT = 5301,
  llvm::SPIRV::Capability::RuntimeDescriptorArrayEXT = 5302, llvm::SPIRV::Capability::InputAttachmentArrayDynamicIndexingEXT = 5303, llvm::SPIRV::Capability::UniformTexelBufferArrayDynamicIndexingEXT = 5304, llvm::SPIRV::Capability::StorageTexelBufferArrayDynamicIndexingEXT = 5305,
  llvm::SPIRV::Capability::UniformBufferArrayNonUniformIndexingEXT = 5306, llvm::SPIRV::Capability::SampledImageArrayNonUniformIndexingEXT = 5307, llvm::SPIRV::Capability::StorageBufferArrayNonUniformIndexingEXT = 5308, llvm::SPIRV::Capability::StorageImageArrayNonUniformIndexingEXT = 5309,
  llvm::SPIRV::Capability::InputAttachmentArrayNonUniformIndexingEXT = 5310, llvm::SPIRV::Capability::UniformTexelBufferArrayNonUniformIndexingEXT = 5311, llvm::SPIRV::Capability::StorageTexelBufferArrayNonUniformIndexingEXT = 5312, llvm::SPIRV::Capability::RayTracingNV = 5340,
  llvm::SPIRV::Capability::SubgroupShuffleINTEL = 5568, llvm::SPIRV::Capability::SubgroupBufferBlockIOINTEL = 5569, llvm::SPIRV::Capability::SubgroupImageBlockIOINTEL = 5570, llvm::SPIRV::Capability::SubgroupImageMediaBlockIOINTEL = 5579,
  llvm::SPIRV::Capability::SubgroupAvcMotionEstimationINTEL = 5696, llvm::SPIRV::Capability::SubgroupAvcMotionEstimationIntraINTEL = 5697, llvm::SPIRV::Capability::SubgroupAvcMotionEstimationChromaINTEL = 5698, llvm::SPIRV::Capability::GroupNonUniformPartitionedNV = 5297,
  llvm::SPIRV::Capability::VulkanMemoryModelKHR = 5345, llvm::SPIRV::Capability::VulkanMemoryModelDeviceScopeKHR = 5346, llvm::SPIRV::Capability::ImageFootprintNV = 5282, llvm::SPIRV::Capability::FragmentBarycentricNV = 5284,
  llvm::SPIRV::Capability::ComputeDerivativeGroupQuadsNV = 5288, llvm::SPIRV::Capability::ComputeDerivativeGroupLinearNV = 5350, llvm::SPIRV::Capability::FragmentDensityEXT = 5291, llvm::SPIRV::Capability::PhysicalStorageBufferAddressesEXT = 5347,
  llvm::SPIRV::Capability::CooperativeMatrixNV = 5357
}
 
enum  llvm::SPIRV::SourceLanguage : uint32_t {
  llvm::SPIRV::SourceLanguage::Unknown = 0, llvm::SPIRV::SourceLanguage::ESSL = 1, llvm::SPIRV::SourceLanguage::GLSL = 2, llvm::SPIRV::SourceLanguage::OpenCL_C = 3,
  llvm::SPIRV::SourceLanguage::OpenCL_CPP = 4, llvm::SPIRV::SourceLanguage::HLSL = 5
}
 
enum  llvm::SPIRV::AddressingModel : uint32_t { llvm::SPIRV::AddressingModel::Logical = 0, llvm::SPIRV::AddressingModel::Physical32 = 1, llvm::SPIRV::AddressingModel::Physical64 = 2, llvm::SPIRV::AddressingModel::PhysicalStorageBuffer64EXT = 5348 }
 
enum  llvm::SPIRV::ExecutionModel : uint32_t {
  llvm::SPIRV::ExecutionModel::Vertex = 0, llvm::SPIRV::ExecutionModel::TessellationControl = 1, llvm::SPIRV::ExecutionModel::TessellationEvaluation = 2, llvm::SPIRV::ExecutionModel::Geometry = 3,
  llvm::SPIRV::ExecutionModel::Fragment = 4, llvm::SPIRV::ExecutionModel::GLCompute = 5, llvm::SPIRV::ExecutionModel::Kernel = 6, llvm::SPIRV::ExecutionModel::TaskNV = 5267,
  llvm::SPIRV::ExecutionModel::MeshNV = 5268, llvm::SPIRV::ExecutionModel::RayGenerationNV = 5313, llvm::SPIRV::ExecutionModel::IntersectionNV = 5314, llvm::SPIRV::ExecutionModel::AnyHitNV = 5315,
  llvm::SPIRV::ExecutionModel::ClosestHitNV = 5316, llvm::SPIRV::ExecutionModel::MissNV = 5317, llvm::SPIRV::ExecutionModel::CallableNV = 5318
}
 
enum  llvm::SPIRV::MemoryModel : uint32_t { llvm::SPIRV::MemoryModel::Simple = 0, llvm::SPIRV::MemoryModel::GLSL450 = 1, llvm::SPIRV::MemoryModel::OpenCL = 2, llvm::SPIRV::MemoryModel::VulkanKHR = 3 }
 
enum  llvm::SPIRV::ExecutionMode : uint32_t {
  llvm::SPIRV::ExecutionMode::Invocations = 0, llvm::SPIRV::ExecutionMode::SpacingEqual = 1, llvm::SPIRV::ExecutionMode::SpacingFractionalEven = 2, llvm::SPIRV::ExecutionMode::SpacingFractionalOdd = 3,
  llvm::SPIRV::ExecutionMode::VertexOrderCw = 4, llvm::SPIRV::ExecutionMode::VertexOrderCcw = 5, llvm::SPIRV::ExecutionMode::PixelCenterInteger = 6, llvm::SPIRV::ExecutionMode::OriginUpperLeft = 7,
  llvm::SPIRV::ExecutionMode::OriginLowerLeft = 8, llvm::SPIRV::ExecutionMode::EarlyFragmentTests = 9, llvm::SPIRV::ExecutionMode::PointMode = 10, llvm::SPIRV::ExecutionMode::Xfb = 11,
  llvm::SPIRV::ExecutionMode::DepthReplacing = 12, llvm::SPIRV::ExecutionMode::DepthGreater = 14, llvm::SPIRV::ExecutionMode::DepthLess = 15, llvm::SPIRV::ExecutionMode::DepthUnchanged = 16,
  llvm::SPIRV::ExecutionMode::LocalSize = 17, llvm::SPIRV::ExecutionMode::LocalSizeHint = 18, llvm::SPIRV::ExecutionMode::InputPoints = 19, llvm::SPIRV::ExecutionMode::InputLines = 20,
  llvm::SPIRV::ExecutionMode::InputLinesAdjacency = 21, llvm::SPIRV::ExecutionMode::Triangles = 22, llvm::SPIRV::ExecutionMode::InputTrianglesAdjacency = 23, llvm::SPIRV::ExecutionMode::Quads = 24,
  llvm::SPIRV::ExecutionMode::Isolines = 25, llvm::SPIRV::ExecutionMode::OutputVertices = 26, llvm::SPIRV::ExecutionMode::OutputPoints = 27, llvm::SPIRV::ExecutionMode::OutputLineStrip = 28,
  llvm::SPIRV::ExecutionMode::OutputTriangleStrip = 29, llvm::SPIRV::ExecutionMode::VecTypeHint = 30, llvm::SPIRV::ExecutionMode::ContractionOff = 31, llvm::SPIRV::ExecutionMode::Initializer = 33,
  llvm::SPIRV::ExecutionMode::Finalizer = 34, llvm::SPIRV::ExecutionMode::SubgroupSize = 35, llvm::SPIRV::ExecutionMode::SubgroupsPerWorkgroup = 36, llvm::SPIRV::ExecutionMode::SubgroupsPerWorkgroupId = 37,
  llvm::SPIRV::ExecutionMode::LocalSizeId = 38, llvm::SPIRV::ExecutionMode::LocalSizeHintId = 39, llvm::SPIRV::ExecutionMode::PostDepthCoverage = 4446, llvm::SPIRV::ExecutionMode::DenormPreserve = 4459,
  llvm::SPIRV::ExecutionMode::DenormFlushToZero = 4460, llvm::SPIRV::ExecutionMode::SignedZeroInfNanPreserve = 4461, llvm::SPIRV::ExecutionMode::RoundingModeRTE = 4462, llvm::SPIRV::ExecutionMode::RoundingModeRTZ = 4463,
  llvm::SPIRV::ExecutionMode::StencilRefReplacingEXT = 5027, llvm::SPIRV::ExecutionMode::OutputLinesNV = 5269, llvm::SPIRV::ExecutionMode::DerivativeGroupQuadsNV = 5289, llvm::SPIRV::ExecutionMode::DerivativeGroupLinearNV = 5290,
  llvm::SPIRV::ExecutionMode::OutputTrianglesNV = 5298
}
 
enum  llvm::SPIRV::StorageClass : uint32_t {
  llvm::SPIRV::StorageClass::UniformConstant = 0, llvm::SPIRV::StorageClass::Input = 1, llvm::SPIRV::StorageClass::Uniform = 2, llvm::SPIRV::StorageClass::Output = 3,
  llvm::SPIRV::StorageClass::Workgroup = 4, llvm::SPIRV::StorageClass::CrossWorkgroup = 5, llvm::SPIRV::StorageClass::Private = 6, llvm::SPIRV::StorageClass::Function = 7,
  llvm::SPIRV::StorageClass::Generic = 8, llvm::SPIRV::StorageClass::PushConstant = 9, llvm::SPIRV::StorageClass::AtomicCounter = 10, llvm::SPIRV::StorageClass::Image = 11,
  llvm::SPIRV::StorageClass::StorageBuffer = 12, llvm::SPIRV::StorageClass::CallableDataNV = 5328, llvm::SPIRV::StorageClass::IncomingCallableDataNV = 5329, llvm::SPIRV::StorageClass::RayPayloadNV = 5338,
  llvm::SPIRV::StorageClass::HitAttributeNV = 5339, llvm::SPIRV::StorageClass::IncomingRayPayloadNV = 5342, llvm::SPIRV::StorageClass::ShaderRecordBufferNV = 5343, llvm::SPIRV::StorageClass::PhysicalStorageBufferEXT = 5349
}
 
enum  llvm::SPIRV::Dim : uint32_t {
  llvm::SPIRV::Dim::DIM_1D = 0, llvm::SPIRV::Dim::DIM_2D = 1, llvm::SPIRV::Dim::DIM_3D = 2, llvm::SPIRV::Dim::DIM_Cube = 3,
  llvm::SPIRV::Dim::DIM_Rect = 4, llvm::SPIRV::Dim::DIM_Buffer = 5, llvm::SPIRV::Dim::DIM_SubpassData = 6
}
 
enum  llvm::SPIRV::SamplerAddressingMode : uint32_t {
  llvm::SPIRV::SamplerAddressingMode::None = 0, llvm::SPIRV::SamplerAddressingMode::ClampToEdge = 1, llvm::SPIRV::SamplerAddressingMode::Clamp = 2, llvm::SPIRV::SamplerAddressingMode::Repeat = 3,
  llvm::SPIRV::SamplerAddressingMode::RepeatMirrored = 4
}
 
enum  llvm::SPIRV::SamplerFilterMode : uint32_t { llvm::SPIRV::SamplerFilterMode::Nearest = 0, llvm::SPIRV::SamplerFilterMode::Linear = 1 }
 
enum  llvm::SPIRV::ImageFormat : uint32_t {
  llvm::SPIRV::ImageFormat::Unknown = 0, llvm::SPIRV::ImageFormat::Rgba32f = 1, llvm::SPIRV::ImageFormat::Rgba16f = 2, llvm::SPIRV::ImageFormat::R32f = 3,
  llvm::SPIRV::ImageFormat::Rgba8 = 4, llvm::SPIRV::ImageFormat::Rgba8Snorm = 5, llvm::SPIRV::ImageFormat::Rg32f = 6, llvm::SPIRV::ImageFormat::Rg16f = 7,
  llvm::SPIRV::ImageFormat::R11fG11fB10f = 8, llvm::SPIRV::ImageFormat::R16f = 9, llvm::SPIRV::ImageFormat::Rgba16 = 10, llvm::SPIRV::ImageFormat::Rgb10A2 = 11,
  llvm::SPIRV::ImageFormat::Rg16 = 12, llvm::SPIRV::ImageFormat::Rg8 = 13, llvm::SPIRV::ImageFormat::R16 = 14, llvm::SPIRV::ImageFormat::R8 = 15,
  llvm::SPIRV::ImageFormat::Rgba16Snorm = 16, llvm::SPIRV::ImageFormat::Rg16Snorm = 17, llvm::SPIRV::ImageFormat::Rg8Snorm = 18, llvm::SPIRV::ImageFormat::R16Snorm = 19,
  llvm::SPIRV::ImageFormat::R8Snorm = 20, llvm::SPIRV::ImageFormat::Rgba32i = 21, llvm::SPIRV::ImageFormat::Rgba16i = 22, llvm::SPIRV::ImageFormat::Rgba8i = 23,
  llvm::SPIRV::ImageFormat::R32i = 24, llvm::SPIRV::ImageFormat::Rg32i = 25, llvm::SPIRV::ImageFormat::Rg16i = 26, llvm::SPIRV::ImageFormat::Rg8i = 27,
  llvm::SPIRV::ImageFormat::R16i = 28, llvm::SPIRV::ImageFormat::R8i = 29, llvm::SPIRV::ImageFormat::Rgba32ui = 30, llvm::SPIRV::ImageFormat::Rgba16ui = 31,
  llvm::SPIRV::ImageFormat::Rgba8ui = 32, llvm::SPIRV::ImageFormat::R32ui = 33, llvm::SPIRV::ImageFormat::Rgb10a2ui = 34, llvm::SPIRV::ImageFormat::Rg32ui = 35,
  llvm::SPIRV::ImageFormat::Rg16ui = 36, llvm::SPIRV::ImageFormat::Rg8ui = 37, llvm::SPIRV::ImageFormat::R16ui = 38, llvm::SPIRV::ImageFormat::R8ui = 39
}
 
enum  llvm::SPIRV::ImageChannelOrder : uint32_t {
  llvm::SPIRV::ImageChannelOrder::R = 0, llvm::SPIRV::ImageChannelOrder::A = 1, llvm::SPIRV::ImageChannelOrder::RG = 2, llvm::SPIRV::ImageChannelOrder::RA = 3,
  llvm::SPIRV::ImageChannelOrder::RGB = 4, llvm::SPIRV::ImageChannelOrder::RGBA = 5, llvm::SPIRV::ImageChannelOrder::BGRA = 6, llvm::SPIRV::ImageChannelOrder::ARGB = 7,
  llvm::SPIRV::ImageChannelOrder::Intensity = 8, llvm::SPIRV::ImageChannelOrder::Luminance = 9, llvm::SPIRV::ImageChannelOrder::Rx = 10, llvm::SPIRV::ImageChannelOrder::RGx = 11,
  llvm::SPIRV::ImageChannelOrder::RGBx = 12, llvm::SPIRV::ImageChannelOrder::Depth = 13, llvm::SPIRV::ImageChannelOrder::DepthStencil = 14, llvm::SPIRV::ImageChannelOrder::sRGB = 15,
  llvm::SPIRV::ImageChannelOrder::sRGBx = 16, llvm::SPIRV::ImageChannelOrder::sRGBA = 17, llvm::SPIRV::ImageChannelOrder::sBGRA = 18, llvm::SPIRV::ImageChannelOrder::ABGR = 19
}
 
enum  llvm::SPIRV::ImageChannelDataType : uint32_t {
  llvm::SPIRV::ImageChannelDataType::SnormInt8 = 0, llvm::SPIRV::ImageChannelDataType::SnormInt16 = 1, llvm::SPIRV::ImageChannelDataType::UnormInt8 = 2, llvm::SPIRV::ImageChannelDataType::UnormInt16 = 3,
  llvm::SPIRV::ImageChannelDataType::UnormShort565 = 4, llvm::SPIRV::ImageChannelDataType::UnormShort555 = 5, llvm::SPIRV::ImageChannelDataType::UnormInt101010 = 6, llvm::SPIRV::ImageChannelDataType::SignedInt8 = 7,
  llvm::SPIRV::ImageChannelDataType::SignedInt16 = 8, llvm::SPIRV::ImageChannelDataType::SignedInt32 = 9, llvm::SPIRV::ImageChannelDataType::UnsignedInt8 = 10, llvm::SPIRV::ImageChannelDataType::UnsignedInt16 = 11,
  llvm::SPIRV::ImageChannelDataType::UnsigendInt32 = 12, llvm::SPIRV::ImageChannelDataType::HalfFloat = 13, llvm::SPIRV::ImageChannelDataType::Float = 14, llvm::SPIRV::ImageChannelDataType::UnormInt24 = 15,
  llvm::SPIRV::ImageChannelDataType::UnormInt101010_2 = 16
}
 
enum  llvm::SPIRV::ImageOperand : uint32_t {
  llvm::SPIRV::ImageOperand::None = 0x0, llvm::SPIRV::ImageOperand::Bias = 0x1, llvm::SPIRV::ImageOperand::Lod = 0x2, llvm::SPIRV::ImageOperand::Grad = 0x4,
  llvm::SPIRV::ImageOperand::ConstOffset = 0x8, llvm::SPIRV::ImageOperand::Offset = 0x10, llvm::SPIRV::ImageOperand::ConstOffsets = 0x20, llvm::SPIRV::ImageOperand::Sample = 0x40,
  llvm::SPIRV::ImageOperand::MinLod = 0x80, llvm::SPIRV::ImageOperand::MakeTexelAvailableKHR = 0x100, llvm::SPIRV::ImageOperand::MakeTexelVisibleKHR = 0x200, llvm::SPIRV::ImageOperand::NonPrivateTexelKHR = 0x400,
  llvm::SPIRV::ImageOperand::VolatileTexelKHR = 0x800, llvm::SPIRV::ImageOperand::SignExtend = 0x1000, llvm::SPIRV::ImageOperand::ZeroExtend = 0x2000
}
 
enum  llvm::SPIRV::FPFastMathMode : uint32_t {
  llvm::SPIRV::FPFastMathMode::None = 0x0, llvm::SPIRV::FPFastMathMode::NotNaN = 0x1, llvm::SPIRV::FPFastMathMode::NotInf = 0x2, llvm::SPIRV::FPFastMathMode::NSZ = 0x4,
  llvm::SPIRV::FPFastMathMode::AllowRecip = 0x8, llvm::SPIRV::FPFastMathMode::Fast = 0x10
}
 
enum  llvm::SPIRV::FPRoundingMode : uint32_t { llvm::SPIRV::FPRoundingMode::RTE = 0, llvm::SPIRV::FPRoundingMode::RTZ = 1, llvm::SPIRV::FPRoundingMode::RTP = 2, llvm::SPIRV::FPRoundingMode::RTN = 3 }
 
enum  llvm::SPIRV::LinkageType : uint32_t { llvm::SPIRV::LinkageType::Export = 0, llvm::SPIRV::LinkageType::Import = 1 }
 
enum  llvm::SPIRV::AccessQualifier : uint32_t { llvm::SPIRV::AccessQualifier::ReadOnly = 0, llvm::SPIRV::AccessQualifier::WriteOnly = 1, llvm::SPIRV::AccessQualifier::ReadWrite = 2 }
 
enum  llvm::SPIRV::FunctionParameterAttribute : uint32_t {
  llvm::SPIRV::FunctionParameterAttribute::Zext = 0, llvm::SPIRV::FunctionParameterAttribute::Sext = 1, llvm::SPIRV::FunctionParameterAttribute::ByVal = 2, llvm::SPIRV::FunctionParameterAttribute::Sret = 3,
  llvm::SPIRV::FunctionParameterAttribute::NoAlias = 4, llvm::SPIRV::FunctionParameterAttribute::NoCapture = 5, llvm::SPIRV::FunctionParameterAttribute::NoWrite = 6, llvm::SPIRV::FunctionParameterAttribute::NoReadWrite = 7
}
 
enum  llvm::SPIRV::Decoration : uint32_t {
  llvm::SPIRV::Decoration::RelaxedPrecision = 0, llvm::SPIRV::Decoration::SpecId = 1, llvm::SPIRV::Decoration::Block = 2, llvm::SPIRV::Decoration::BufferBlock = 3,
  llvm::SPIRV::Decoration::RowMajor = 4, llvm::SPIRV::Decoration::ColMajor = 5, llvm::SPIRV::Decoration::ArrayStride = 6, llvm::SPIRV::Decoration::MatrixStride = 7,
  llvm::SPIRV::Decoration::GLSLShared = 8, llvm::SPIRV::Decoration::GLSLPacked = 9, llvm::SPIRV::Decoration::CPacked = 10, llvm::SPIRV::Decoration::BuiltIn = 11,
  llvm::SPIRV::Decoration::NoPerspective = 13, llvm::SPIRV::Decoration::Flat = 14, llvm::SPIRV::Decoration::Patch = 15, llvm::SPIRV::Decoration::Centroid = 16,
  llvm::SPIRV::Decoration::Sample = 17, llvm::SPIRV::Decoration::Invariant = 18, llvm::SPIRV::Decoration::Restrict = 19, llvm::SPIRV::Decoration::Aliased = 20,
  llvm::SPIRV::Decoration::Volatile = 21, llvm::SPIRV::Decoration::Constant = 22, llvm::SPIRV::Decoration::Coherent = 23, llvm::SPIRV::Decoration::NonWritable = 24,
  llvm::SPIRV::Decoration::NonReadable = 25, llvm::SPIRV::Decoration::Uniform = 26, llvm::SPIRV::Decoration::UniformId = 27, llvm::SPIRV::Decoration::SaturatedConversion = 28,
  llvm::SPIRV::Decoration::Stream = 29, llvm::SPIRV::Decoration::Location = 30, llvm::SPIRV::Decoration::Component = 31, llvm::SPIRV::Decoration::Index = 32,
  llvm::SPIRV::Decoration::Binding = 33, llvm::SPIRV::Decoration::DescriptorSet = 34, llvm::SPIRV::Decoration::Offset = 35, llvm::SPIRV::Decoration::XfbBuffer = 36,
  llvm::SPIRV::Decoration::XfbStride = 37, llvm::SPIRV::Decoration::FuncParamAttr = 38, llvm::SPIRV::Decoration::FPRoundingMode = 39, llvm::SPIRV::Decoration::FPFastMathMode = 40,
  llvm::SPIRV::Decoration::LinkageAttributes = 41, llvm::SPIRV::Decoration::NoContraction = 42, llvm::SPIRV::Decoration::InputAttachmentIndex = 43, llvm::SPIRV::Decoration::Alignment = 44,
  llvm::SPIRV::Decoration::MaxByteOffset = 45, llvm::SPIRV::Decoration::AlignmentId = 46, llvm::SPIRV::Decoration::MaxByteOffsetId = 47, llvm::SPIRV::Decoration::NoSignedWrap = 4469,
  llvm::SPIRV::Decoration::NoUnsignedWrap = 4470, llvm::SPIRV::Decoration::ExplicitInterpAMD = 4999, llvm::SPIRV::Decoration::OverrideCoverageNV = 5248, llvm::SPIRV::Decoration::PassthroughNV = 5250,
  llvm::SPIRV::Decoration::ViewportRelativeNV = 5252, llvm::SPIRV::Decoration::SecondaryViewportRelativeNV = 5256, llvm::SPIRV::Decoration::PerPrimitiveNV = 5271, llvm::SPIRV::Decoration::PerViewNV = 5272,
  llvm::SPIRV::Decoration::PerVertexNV = 5273, llvm::SPIRV::Decoration::NonUniformEXT = 5300, llvm::SPIRV::Decoration::CountBuffer = 5634, llvm::SPIRV::Decoration::UserSemantic = 5635,
  llvm::SPIRV::Decoration::RestrictPointerEXT = 5355, llvm::SPIRV::Decoration::AliasedPointerEXT = 5356
}
 
enum  llvm::SPIRV::BuiltIn : uint32_t {
  llvm::SPIRV::BuiltIn::Position = 0, llvm::SPIRV::BuiltIn::PointSize = 1, llvm::SPIRV::BuiltIn::ClipDistance = 3, llvm::SPIRV::BuiltIn::CullDistance = 4,
  llvm::SPIRV::BuiltIn::VertexId = 5, llvm::SPIRV::BuiltIn::InstanceId = 6, llvm::SPIRV::BuiltIn::PrimitiveId = 7, llvm::SPIRV::BuiltIn::InvocationId = 8,
  llvm::SPIRV::BuiltIn::Layer = 9, llvm::SPIRV::BuiltIn::ViewportIndex = 10, llvm::SPIRV::BuiltIn::TessLevelOuter = 11, llvm::SPIRV::BuiltIn::TessLevelInner = 12,
  llvm::SPIRV::BuiltIn::TessCoord = 13, llvm::SPIRV::BuiltIn::PatchVertices = 14, llvm::SPIRV::BuiltIn::FragCoord = 15, llvm::SPIRV::BuiltIn::PointCoord = 16,
  llvm::SPIRV::BuiltIn::FrontFacing = 17, llvm::SPIRV::BuiltIn::SampleId = 18, llvm::SPIRV::BuiltIn::SamplePosition = 19, llvm::SPIRV::BuiltIn::SampleMask = 20,
  llvm::SPIRV::BuiltIn::FragDepth = 22, llvm::SPIRV::BuiltIn::HelperInvocation = 23, llvm::SPIRV::BuiltIn::NumWorkgroups = 24, llvm::SPIRV::BuiltIn::WorkgroupSize = 25,
  llvm::SPIRV::BuiltIn::WorkgroupId = 26, llvm::SPIRV::BuiltIn::LocalInvocationId = 27, llvm::SPIRV::BuiltIn::GlobalInvocationId = 28, llvm::SPIRV::BuiltIn::LocalInvocationIndex = 29,
  llvm::SPIRV::BuiltIn::WorkDim = 30, llvm::SPIRV::BuiltIn::GlobalSize = 31, llvm::SPIRV::BuiltIn::EnqueuedWorkgroupSize = 32, llvm::SPIRV::BuiltIn::GlobalOffset = 33,
  llvm::SPIRV::BuiltIn::GlobalLinearId = 34, llvm::SPIRV::BuiltIn::SubgroupSize = 36, llvm::SPIRV::BuiltIn::SubgroupMaxSize = 37, llvm::SPIRV::BuiltIn::NumSubgroups = 38,
  llvm::SPIRV::BuiltIn::NumEnqueuedSubgroups = 39, llvm::SPIRV::BuiltIn::SubgroupId = 40, llvm::SPIRV::BuiltIn::SubgroupLocalInvocationId = 41, llvm::SPIRV::BuiltIn::VertexIndex = 42,
  llvm::SPIRV::BuiltIn::InstanceIndex = 43, llvm::SPIRV::BuiltIn::SubgroupEqMask = 4416, llvm::SPIRV::BuiltIn::SubgroupGeMask = 4417, llvm::SPIRV::BuiltIn::SubgroupGtMask = 4418,
  llvm::SPIRV::BuiltIn::SubgroupLeMask = 4419, llvm::SPIRV::BuiltIn::SubgroupLtMask = 4420, llvm::SPIRV::BuiltIn::BaseVertex = 4424, llvm::SPIRV::BuiltIn::BaseInstance = 4425,
  llvm::SPIRV::BuiltIn::DrawIndex = 4426, llvm::SPIRV::BuiltIn::DeviceIndex = 4438, llvm::SPIRV::BuiltIn::ViewIndex = 4440, llvm::SPIRV::BuiltIn::BaryCoordNoPerspAMD = 4492,
  llvm::SPIRV::BuiltIn::BaryCoordNoPerspCentroidAMD = 4493, llvm::SPIRV::BuiltIn::BaryCoordNoPerspSampleAMD = 4494, llvm::SPIRV::BuiltIn::BaryCoordSmoothAMD = 4495, llvm::SPIRV::BuiltIn::BaryCoordSmoothCentroid = 4496,
  llvm::SPIRV::BuiltIn::BaryCoordSmoothSample = 4497, llvm::SPIRV::BuiltIn::BaryCoordPullModel = 4498, llvm::SPIRV::BuiltIn::FragStencilRefEXT = 5014, llvm::SPIRV::BuiltIn::ViewportMaskNV = 5253,
  llvm::SPIRV::BuiltIn::SecondaryPositionNV = 5257, llvm::SPIRV::BuiltIn::SecondaryViewportMaskNV = 5258, llvm::SPIRV::BuiltIn::PositionPerViewNV = 5261, llvm::SPIRV::BuiltIn::ViewportMaskPerViewNV = 5262,
  llvm::SPIRV::BuiltIn::FullyCoveredEXT = 5264, llvm::SPIRV::BuiltIn::TaskCountNV = 5274, llvm::SPIRV::BuiltIn::PrimitiveCountNV = 5275, llvm::SPIRV::BuiltIn::PrimitiveIndicesNV = 5276,
  llvm::SPIRV::BuiltIn::ClipDistancePerViewNV = 5277, llvm::SPIRV::BuiltIn::CullDistancePerViewNV = 5278, llvm::SPIRV::BuiltIn::LayerPerViewNV = 5279, llvm::SPIRV::BuiltIn::MeshViewCountNV = 5280,
  llvm::SPIRV::BuiltIn::MeshViewIndices = 5281, llvm::SPIRV::BuiltIn::BaryCoordNV = 5286, llvm::SPIRV::BuiltIn::BaryCoordNoPerspNV = 5287, llvm::SPIRV::BuiltIn::FragSizeEXT = 5292,
  llvm::SPIRV::BuiltIn::FragInvocationCountEXT = 5293, llvm::SPIRV::BuiltIn::LaunchIdNV = 5319, llvm::SPIRV::BuiltIn::LaunchSizeNV = 5320, llvm::SPIRV::BuiltIn::WorldRayOriginNV = 5321,
  llvm::SPIRV::BuiltIn::WorldRayDirectionNV = 5322, llvm::SPIRV::BuiltIn::ObjectRayOriginNV = 5323, llvm::SPIRV::BuiltIn::ObjectRayDirectionNV = 5324, llvm::SPIRV::BuiltIn::RayTminNV = 5325,
  llvm::SPIRV::BuiltIn::RayTmaxNV = 5326, llvm::SPIRV::BuiltIn::InstanceCustomIndexNV = 5327, llvm::SPIRV::BuiltIn::ObjectToWorldNV = 5330, llvm::SPIRV::BuiltIn::WorldToObjectNV = 5331,
  llvm::SPIRV::BuiltIn::HitTNV = 5332, llvm::SPIRV::BuiltIn::HitKindNV = 5333, llvm::SPIRV::BuiltIn::IncomingRayFlagsNV = 5351
}
 
enum  llvm::SPIRV::SelectionControl : uint32_t { llvm::SPIRV::SelectionControl::None = 0x0, llvm::SPIRV::SelectionControl::Flatten = 0x1, llvm::SPIRV::SelectionControl::DontFlatten = 0x2 }
 
enum  llvm::SPIRV::LoopControl : uint32_t {
  llvm::SPIRV::LoopControl::None = 0x0, llvm::SPIRV::LoopControl::Unroll = 0x1, llvm::SPIRV::LoopControl::DontUnroll = 0x2, llvm::SPIRV::LoopControl::DependencyInfinite = 0x4,
  llvm::SPIRV::LoopControl::DependencyLength = 0x8, llvm::SPIRV::LoopControl::MinIterations = 0x10, llvm::SPIRV::LoopControl::MaxIterations = 0x20, llvm::SPIRV::LoopControl::IterationMultiple = 0x40,
  llvm::SPIRV::LoopControl::PeelCount = 0x80, llvm::SPIRV::LoopControl::PartialCount = 0x100
}
 
enum  llvm::SPIRV::FunctionControl : uint32_t {
  llvm::SPIRV::FunctionControl::None = 0x0, llvm::SPIRV::FunctionControl::Inline = 0x1, llvm::SPIRV::FunctionControl::DontInline = 0x2, llvm::SPIRV::FunctionControl::Pure = 0x4,
  llvm::SPIRV::FunctionControl::Const = 0x8
}
 
enum  llvm::SPIRV::MemorySemantics : uint32_t {
  llvm::SPIRV::MemorySemantics::None = 0x0, llvm::SPIRV::MemorySemantics::Acquire = 0x2, llvm::SPIRV::MemorySemantics::Release = 0x4, llvm::SPIRV::MemorySemantics::AcquireRelease = 0x8,
  llvm::SPIRV::MemorySemantics::SequentiallyConsistent = 0x10, llvm::SPIRV::MemorySemantics::UniformMemory = 0x40, llvm::SPIRV::MemorySemantics::SubgroupMemory = 0x80, llvm::SPIRV::MemorySemantics::WorkgroupMemory = 0x100,
  llvm::SPIRV::MemorySemantics::CrossWorkgroupMemory = 0x200, llvm::SPIRV::MemorySemantics::AtomicCounterMemory = 0x400, llvm::SPIRV::MemorySemantics::ImageMemory = 0x800, llvm::SPIRV::MemorySemantics::OutputMemoryKHR = 0x1000,
  llvm::SPIRV::MemorySemantics::MakeAvailableKHR = 0x2000, llvm::SPIRV::MemorySemantics::MakeVisibleKHR = 0x4000
}
 
enum  llvm::SPIRV::MemoryOperand : uint32_t {
  llvm::SPIRV::MemoryOperand::None = 0x0, llvm::SPIRV::MemoryOperand::Volatile = 0x1, llvm::SPIRV::MemoryOperand::Aligned = 0x2, llvm::SPIRV::MemoryOperand::Nontemporal = 0x4,
  llvm::SPIRV::MemoryOperand::MakePointerAvailableKHR = 0x8, llvm::SPIRV::MemoryOperand::MakePointerVisibleKHR = 0x10, llvm::SPIRV::MemoryOperand::NonPrivatePointerKHR = 0x20
}
 
enum  llvm::SPIRV::Scope : uint32_t {
  llvm::SPIRV::Scope::CrossDevice = 0, llvm::SPIRV::Scope::Device = 1, llvm::SPIRV::Scope::Workgroup = 2, llvm::SPIRV::Scope::Subgroup = 3,
  llvm::SPIRV::Scope::Invocation = 4, llvm::SPIRV::Scope::QueueFamilyKHR = 5
}
 
enum  llvm::SPIRV::GroupOperation : uint32_t {
  llvm::SPIRV::GroupOperation::Reduce = 0, llvm::SPIRV::GroupOperation::InclusiveScan = 1, llvm::SPIRV::GroupOperation::ExclusiveScan = 2, llvm::SPIRV::GroupOperation::ClusteredReduce = 3,
  llvm::SPIRV::GroupOperation::PartitionedReduceNV = 6, llvm::SPIRV::GroupOperation::PartitionedInclusiveScanNV = 7, llvm::SPIRV::GroupOperation::PartitionedExclusiveScanNV = 8
}
 
enum  llvm::SPIRV::KernelEnqueueFlags : uint32_t { llvm::SPIRV::KernelEnqueueFlags::NoWait = 0, llvm::SPIRV::KernelEnqueueFlags::WaitKernel = 1, llvm::SPIRV::KernelEnqueueFlags::WaitWorkGroup = 2 }
 
enum  llvm::SPIRV::KernelProfilingInfo : uint32_t { llvm::SPIRV::KernelProfilingInfo::None = 0x0, llvm::SPIRV::KernelProfilingInfo::CmdExecTime = 0x1 }
 

Functions

StringRef llvm::SPIRV::getCapabilityName (Capability e)
 
StringRef llvm::SPIRV::getSourceLanguageName (SourceLanguage e)
 
StringRef llvm::SPIRV::getAddressingModelName (AddressingModel e)
 
StringRef llvm::SPIRV::getExecutionModelName (ExecutionModel e)
 
StringRef llvm::SPIRV::getMemoryModelName (MemoryModel e)
 
StringRef llvm::SPIRV::getExecutionModeName (ExecutionMode e)
 
StringRef llvm::SPIRV::getStorageClassName (StorageClass e)
 
StringRef llvm::SPIRV::getDimName (Dim dim)
 
StringRef llvm::SPIRV::getSamplerAddressingModeName (SamplerAddressingMode e)
 
StringRef llvm::SPIRV::getSamplerFilterModeName (SamplerFilterMode e)
 
StringRef llvm::SPIRV::getImageFormatName (ImageFormat e)
 
StringRef llvm::SPIRV::getImageChannelOrderName (ImageChannelOrder e)
 
StringRef llvm::SPIRV::getImageChannelDataTypeName (ImageChannelDataType e)
 
std::string llvm::SPIRV::getImageOperandName (uint32_t e)
 
std::string llvm::SPIRV::getFPFastMathModeName (uint32_t e)
 
StringRef llvm::SPIRV::getFPRoundingModeName (FPRoundingMode e)
 
StringRef llvm::SPIRV::getLinkageTypeName (LinkageType e)
 
StringRef llvm::SPIRV::getAccessQualifierName (AccessQualifier e)
 
StringRef llvm::SPIRV::getFunctionParameterAttributeName (FunctionParameterAttribute e)
 
StringRef llvm::SPIRV::getDecorationName (Decoration e)
 
StringRef llvm::SPIRV::getBuiltInName (BuiltIn e)
 
std::string llvm::SPIRV::getSelectionControlName (uint32_t e)
 
std::string llvm::SPIRV::getLoopControlName (uint32_t e)
 
std::string llvm::SPIRV::getFunctionControlName (uint32_t e)
 
std::string llvm::SPIRV::getMemorySemanticsName (uint32_t e)
 
std::string llvm::SPIRV::getMemoryOperandName (uint32_t e)
 
StringRef llvm::SPIRV::getScopeName (Scope e)
 
StringRef llvm::SPIRV::getGroupOperationName (GroupOperation e)
 
StringRef llvm::SPIRV::getKernelEnqueueFlagsName (KernelEnqueueFlags e)
 
StringRef llvm::SPIRV::getKernelProfilingInfoName (KernelProfilingInfo e)
 
template<class InstType >
std::string getSPIRVStringOperand (const InstType &MI, unsigned StartIndex)
 

Function Documentation

◆ getSPIRVStringOperand()

template<class InstType >
std::string getSPIRVStringOperand ( const InstType &  MI,
unsigned  StartIndex 
)

Definition at line 715 of file SPIRVBaseInfo.h.

References assert(), c, i, llvm::RISCVMatInt::Imm, MI, and s.

Referenced by getStringImm(), and llvm::SPIRVInstPrinter::printStringImm().