#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>
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()
template<typename T >
static constexpr unsigned getNumBits |
( |
| ) |
|
|
staticconstexpr |
◆ getNumBits< Dim >()
◆ getNumBits< ImageArrayedInfo >()
template<>
constexpr unsigned getNumBits< ImageArrayedInfo > |
( |
| ) |
|
|
constexpr |
◆ getNumBits< ImageDepthInfo >()
template<>
constexpr unsigned getNumBits< ImageDepthInfo > |
( |
| ) |
|
|
constexpr |
◆ getNumBits< ImageFormat >()
◆ getNumBits< ImageSamplerUseInfo >()
template<>
constexpr unsigned getNumBits< ImageSamplerUseInfo > |
( |
| ) |
|
|
constexpr |
◆ getNumBits< ImageSamplingInfo >()
template<>
constexpr unsigned getNumBits< ImageSamplingInfo > |
( |
| ) |
|
|
constexpr |