[mlir] Add missing registrations to runners.
This commit is contained in:
parent
16b192f497
commit
dc9d2e588d
|
@ -28,6 +28,7 @@
|
||||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||||
#include "mlir/Pass/Pass.h"
|
#include "mlir/Pass/Pass.h"
|
||||||
#include "mlir/Pass/PassManager.h"
|
#include "mlir/Pass/PassManager.h"
|
||||||
|
#include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h"
|
||||||
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
|
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
|
||||||
#include "mlir/Target/LLVMIR/Export.h"
|
#include "mlir/Target/LLVMIR/Export.h"
|
||||||
|
|
||||||
|
@ -111,6 +112,7 @@ int main(int argc, char **argv) {
|
||||||
registry.insert<mlir::arith::ArithDialect, mlir::LLVM::LLVMDialect,
|
registry.insert<mlir::arith::ArithDialect, mlir::LLVM::LLVMDialect,
|
||||||
mlir::gpu::GPUDialect, mlir::spirv::SPIRVDialect,
|
mlir::gpu::GPUDialect, mlir::spirv::SPIRVDialect,
|
||||||
mlir::func::FuncDialect, mlir::memref::MemRefDialect>();
|
mlir::func::FuncDialect, mlir::memref::MemRefDialect>();
|
||||||
|
mlir::registerBuiltinDialectTranslation(registry);
|
||||||
mlir::registerLLVMDialectTranslation(registry);
|
mlir::registerLLVMDialectTranslation(registry);
|
||||||
|
|
||||||
return mlir::JitRunnerMain(argc, argv, registry, jitRunnerConfig);
|
return mlir::JitRunnerMain(argc, argv, registry, jitRunnerConfig);
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "mlir/ExecutionEngine/JitRunner.h"
|
#include "mlir/ExecutionEngine/JitRunner.h"
|
||||||
#include "mlir/Pass/Pass.h"
|
#include "mlir/Pass/Pass.h"
|
||||||
#include "mlir/Pass/PassManager.h"
|
#include "mlir/Pass/PassManager.h"
|
||||||
|
#include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h"
|
||||||
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
|
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
|
||||||
#include "llvm/Support/InitLLVM.h"
|
#include "llvm/Support/InitLLVM.h"
|
||||||
#include "llvm/Support/TargetSelect.h"
|
#include "llvm/Support/TargetSelect.h"
|
||||||
|
@ -114,6 +115,7 @@ int main(int argc, char **argv) {
|
||||||
mlir::gpu::GPUDialect, mlir::spirv::SPIRVDialect,
|
mlir::gpu::GPUDialect, mlir::spirv::SPIRVDialect,
|
||||||
mlir::func::FuncDialect, mlir::memref::MemRefDialect,
|
mlir::func::FuncDialect, mlir::memref::MemRefDialect,
|
||||||
mlir::vector::VectorDialect>();
|
mlir::vector::VectorDialect>();
|
||||||
|
mlir::registerBuiltinDialectTranslation(registry);
|
||||||
mlir::registerLLVMDialectTranslation(registry);
|
mlir::registerLLVMDialectTranslation(registry);
|
||||||
|
|
||||||
return mlir::JitRunnerMain(argc, argv, registry, jitRunnerConfig);
|
return mlir::JitRunnerMain(argc, argv, registry, jitRunnerConfig);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user