My Project
|
#include "mlir/Dialect/SPIRV/SPIRVOps.h"
#include "mlir/Support/LogicalResult.h"
#include <cstdint>
#include "mlir/Dialect/SPIRV/SPIRVSerialization.inc"
Go to the source code of this file.
Namespaces | |
mlir | |
mlir::spirv | |
Macros | |
#define | GET_SPIRV_SERIALIZATION_UTILS |
Auto-generated getOpcode<*Op>() specializations. More... | |
Functions | |
void | mlir::spirv::appendModuleHeader (SmallVectorImpl< uint32_t > &header, uint32_t idBound) |
Appends a SPRI-V module header to header with the given idBound . More... | |
uint32_t | mlir::spirv::getPrefixedOpcode (uint32_t wordCount, spirv::Opcode opcode) |
Returns the word-count-prefixed opcode for an SPIR-V instruction. More... | |
LogicalResult | mlir::spirv::encodeStringLiteralInto (SmallVectorImpl< uint32_t > &binary, StringRef literal) |
Encodes an SPIR-V literal string into the given binary vector. More... | |
Variables | |
constexpr unsigned | mlir::spirv::kHeaderWordCount = 5 |
SPIR-V binary header word count. More... | |
constexpr uint32_t | mlir::spirv::kMagicNumber = 0x07230203 |
SPIR-V magic number. More... | |
constexpr uint32_t | mlir::spirv::kGeneratorNumber = 22 |
The serializer tool ID registered to the Khronos Group. More... | |
#define GET_SPIRV_SERIALIZATION_UTILS |
Auto-generated getOpcode<*Op>() specializations.