#include "mlir/Dialect/SPIRV/IR/SPIRVTypes.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVDialect.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include <cstdint>
#include <optional>
Go to the source code of this file.
◆ STORAGE_CASE
| #define STORAGE_CASE |
( |
| storage, |
|
|
| cap8, |
|
|
| cap16 ) |
Value: case StorageClass::storage: { \
if (bitwidth == 8) { \
static constexpr auto cap = Capability::cap8; \
capabilities.push_back(cap); \
return; \
} \
if (bitwidth == 16) { \
static constexpr auto cap = Capability::cap16; \
capabilities.push_back(cap); \
return; \
} \
\
\
} break
◆ WIDTH_CASE
| #define WIDTH_CASE |
( |
| type, |
|
|
| width ) |
Value: case width: { \
static constexpr auto cap = Capability::type##width; \
capabilities.push_back(cap); \
} break
◆ getNumBits()
◆ getNumBits< Dim >()
◆ getNumBits< ImageArrayedInfo >()
◆ getNumBits< ImageDepthInfo >()
◆ getNumBits< ImageFormat >()
◆ getNumBits< ImageSamplerUseInfo >()
◆ getNumBits< ImageSamplingInfo >()