//===- Serialization.cpp - MLIR SPIR-V Serialization ----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines the MLIR SPIR-V module to SPIR-V binary serialization entry // point. // //===----------------------------------------------------------------------===// #include "Serializer.h" #include "mlir/Target/SPIRV/Serialization.h" #include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h" #include "llvm/Support/Debug.h" #define DEBUG_TYPE … namespace mlir { LogicalResult spirv::serialize(spirv::ModuleOp module, SmallVectorImpl<uint32_t> &binary, const SerializationOptions &options) { … } } // namespace mlir