26 lines
670 B
C++
26 lines
670 B
C++
#ifndef LUMELIB_H
|
|
#define LUMELIB_H
|
|
|
|
#include "mlir/IR/MLIRContext.h"
|
|
#include "llvm/Support/LogicalResult.h"
|
|
#include <llvm/Support/MemoryBuffer.h>
|
|
#include <mlir/Dialect/SPIRV/IR/SPIRVOps.h>
|
|
#include <mlir/Dialect/SPIRV/IR/SPIRVDialect.h>
|
|
#include <mlir/Target/SPIRV/Deserialization.h>
|
|
|
|
namespace lume {
|
|
|
|
mlir::OwningOpRef<mlir::spirv::ModuleOp>
|
|
CompileSPVToMLIR(std::unique_ptr<llvm::MemoryBuffer> input,
|
|
mlir::MLIRContext &context,
|
|
mlir::spirv::DeserializationOptions &options);
|
|
|
|
llvm::LogicalResult ConvertSPVDialectToLLVMDialect(
|
|
mlir::MLIRContext &context,
|
|
mlir::ModuleOp *module);
|
|
|
|
}
|
|
|
|
#endif
|
|
|