|
MLIR 24.0.0git
|
#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/DenseSet.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.
Classes | |
| struct | mlir::spirv::detail::ArrayTypeStorage |
| struct | mlir::spirv::detail::CooperativeMatrixTypeStorage |
| struct | mlir::spirv::detail::ImageTypeStorage |
| struct | mlir::spirv::detail::PointerTypeStorage |
| struct | mlir::spirv::detail::UntypedPointerTypeStorage |
| struct | mlir::spirv::detail::RuntimeArrayTypeStorage |
| struct | mlir::spirv::detail::SampledImageTypeStorage |
| struct | mlir::spirv::detail::StructTypeStorage |
| Type storage for SPIR-V structure types: More... | |
| struct | mlir::spirv::detail::MatrixTypeStorage |
| struct | mlir::spirv::detail::TensorArmTypeStorage |
Macros | |
| #define | STORAGE_CASE(storage, cap8, cap16) |
| #define | WIDTH_CASE(type, width) |
Functions | |
| static bool | containsMicroscalingTypeImpl (Type type, bool subByteOnly, llvm::SmallDenseSet< Type, 8 > &visited) |
| Find microscaling elements in composite types, including recursive structs. | |
| template<typename T> | |
| static constexpr unsigned | getNumBits () |
| template<> | |
| constexpr unsigned | getNumBits< Dim > () |
| template<> | |
| constexpr unsigned | getNumBits< ImageDepthInfo > () |
| template<> | |
| constexpr unsigned | getNumBits< ImageArrayedInfo > () |
| template<> | |
| constexpr unsigned | getNumBits< ImageSamplingInfo > () |
| template<> | |
| constexpr unsigned | getNumBits< ImageSamplerUseInfo > () |
| template<> | |
| constexpr unsigned | getNumBits< ImageFormat > () |
| #define STORAGE_CASE | ( | storage, | |
| cap8, | |||
| cap16 ) |
| #define WIDTH_CASE | ( | type, | |
| width ) |
|
static |
Find microscaling elements in composite types, including recursive structs.
Storage restrictions only apply to the sub-byte formats.
Definition at line 32 of file SPIRVTypes.cpp.
References containsMicroscalingTypeImpl().
Referenced by mlir::spirv::containsMicroscalingType(), and containsMicroscalingTypeImpl().
|
staticconstexpr |
Definition at line 404 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 408 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 420 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 414 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 438 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 432 of file SPIRVTypes.cpp.
|
constexpr |
Definition at line 426 of file SPIRVTypes.cpp.