MLIR: lib/Target/SPIRV/Deserialization/Deserialization.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

10

12

13 using namespace mlir;

14

19

21 return nullptr;

22

23 return deserializer.collect();

24 }

static llvm::ManagedStatic< PassManagerOptions > options

MLIRContext is the top-level object for a collection of MLIR operations.

A SPIR-V module serializer.

LogicalResult deserialize()

Deserializes the remembered SPIR-V binary module.

OwningOpRef< spirv::ModuleOp > collect()

Collects the final SPIR-V ModuleOp.

OwningOpRef< spirv::ModuleOp > deserialize(ArrayRef< uint32_t > binary, MLIRContext *context, const DeserializationOptions &options={})

Deserializes the given SPIR-V binary module and creates a MLIR ModuleOp in the given context.

Include the generated interface declarations.