|
MLIR 23.0.0git
|
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"#include "mlir/Support/LLVM.h"#include <cstdint>#include <optional>Go to the source code of this file.
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::spirv |
Functions | |
| void | mlir::spirv::appendModuleHeader (SmallVectorImpl< uint32_t > &header, spirv::Version version, uint32_t idBound) |
| Appends a SPRI-V module header to header with the given version and idBound. | |
| uint32_t | mlir::spirv::getPrefixedOpcode (uint32_t wordCount, spirv::Opcode opcode) |
| Returns the word-count-prefixed opcode for an SPIR-V instruction. | |
| void | mlir::spirv::encodeStringLiteralInto (SmallVectorImpl< uint32_t > &binary, StringRef literal) |
| Encodes an SPIR-V literal string into the given binary vector. | |
| StringRef | mlir::spirv::decodeStringLiteral (ArrayRef< uint32_t > words, unsigned &wordIndex) |
| Decodes a string literal in words starting at wordIndex. | |
| std::optional< spirv::Opcode > | mlir::spirv::getContinuationOpcode (spirv::Opcode parent) |
| Returns the SPV_INTEL_long_composites continuation opcode that may follow parent, or std::nullopt if parent is not a splittable composite/struct op. | |
Variables | |
| constexpr unsigned | mlir::spirv::kHeaderWordCount = 5 |
| SPIR-V binary header word count. | |
| constexpr uint32_t | mlir::spirv::kMagicNumber = 0x07230203 |
| SPIR-V magic number. | |
| constexpr uint32_t | mlir::spirv::kGeneratorNumber = 22 |
| The serializer tool ID registered to the Khronos Group. | |
| constexpr uint32_t | mlir::spirv::kMaxWordCount = 65535 |
| Max number of words https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_universal_limits. | |
| constexpr uint32_t | mlir::spirv::kMaxLiteralWordCount = kMaxWordCount - 3 |
| Max number of words for literal. | |