MLIR  17.0.0git
Namespaces | Macros | Functions
DeserializeOps.cpp File Reference
#include "Deserializer.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/Location.h"
#include "mlir/Target/SPIRV/SPIRVBinaryUtils.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include <optional>
#include "mlir/Dialect/SPIRV/IR/SPIRVSerialization.inc"
+ Include dependency graph for DeserializeOps.cpp:

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::spirv
 

Macros

#define DEBUG_TYPE   "spirv-deserialization"
 
#define GET_DESERIALIZATION_FNS
 

Functions

static spirv::Opcode extractOpcode (uint32_t word)
 Extracts the opcode from the given first word of a SPIR-V instruction. More...
 
template<>
LogicalResult mlir::spirv::Deserializer::processOp< spirv::EntryPointOp > (ArrayRef< uint32_t > words)
 
template<>
LogicalResult mlir::spirv::Deserializer::processOp< spirv::ExecutionModeOp > (ArrayRef< uint32_t > words)
 
template<>
LogicalResult mlir::spirv::Deserializer::processOp< spirv::FunctionCallOp > (ArrayRef< uint32_t > operands)
 
template<>
LogicalResult mlir::spirv::Deserializer::processOp< spirv::CopyMemoryOp > (ArrayRef< uint32_t > words)
 
template<>
LogicalResult mlir::spirv::Deserializer::processOp< spirv::GenericCastToPtrExplicitOp > (ArrayRef< uint32_t > words)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "spirv-deserialization"

Definition at line 27 of file DeserializeOps.cpp.

◆ GET_DESERIALIZATION_FNS

#define GET_DESERIALIZATION_FNS

Definition at line 560 of file DeserializeOps.cpp.

Function Documentation

◆ extractOpcode()

static spirv::Opcode extractOpcode ( uint32_t  word)
inlinestatic

Extracts the opcode from the given first word of a SPIR-V instruction.

Definition at line 34 of file DeserializeOps.cpp.