mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
[MLIR] Move JitRunner to live with ExecutionEngine
The JitRunner library is logically very close to the execution engine, and shares similar dependencies. find -name "*.cpp" -exec sed -i "s/Support\/JitRunner/ExecutionEngine\/JitRunner/" "{}" \; Differential Revision: https://reviews.llvm.org/D79899
This commit is contained in:
parent
444720c250
commit
ec44e08940
@ -6,6 +6,7 @@ set(LLVM_OPTIONAL_SOURCES
|
||||
ExecutionEngine.cpp
|
||||
RunnerUtils.cpp
|
||||
OptUtils.cpp
|
||||
JitRunner.cpp
|
||||
)
|
||||
|
||||
add_mlir_library(MLIRExecutionEngine
|
||||
@ -42,6 +43,31 @@ add_mlir_library(MLIRExecutionEngine
|
||||
MLIRTargetLLVMIR
|
||||
)
|
||||
|
||||
add_mlir_library(MLIRJitRunner
|
||||
JitRunner.cpp
|
||||
|
||||
EXCLUDE_FROM_LIBMLIR
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
Core
|
||||
OrcJIT
|
||||
JITLink
|
||||
Support
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRExecutionEngine
|
||||
MLIRIR
|
||||
MLIRParser
|
||||
MLIRStandardOps
|
||||
MLIRTargetLLVMIR
|
||||
MLIRTransforms
|
||||
MLIRStandardToLLVM
|
||||
MLIRSupport
|
||||
)
|
||||
|
||||
add_mlir_library(mlir_c_runner_utils
|
||||
SHARED
|
||||
CRunnerUtils.cpp
|
||||
|
@ -14,7 +14,7 @@
|
||||
// transformation.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Support/JitRunner.h"
|
||||
#include "mlir/ExecutionEngine/JitRunner.h"
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/ExecutionEngine/ExecutionEngine.h"
|
@ -1,6 +1,5 @@
|
||||
set(LLVM_OPTIONAL_SOURCES
|
||||
FileUtilities.cpp
|
||||
JitRunner.cpp
|
||||
MlirOptMain.cpp
|
||||
StorageUniquer.cpp
|
||||
ToolUtilities.cpp
|
||||
@ -34,30 +33,3 @@ add_mlir_library(MLIROptLib
|
||||
MLIRParser
|
||||
MLIRSupport
|
||||
)
|
||||
|
||||
# Exclude from libMLIR.so because the JIT infrastructure
|
||||
# is a big dependency which most don't need.
|
||||
add_mlir_library(MLIRJitRunner
|
||||
JitRunner.cpp
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
|
||||
EXCLUDE_FROM_LIBMLIR
|
||||
|
||||
LINK_COMPONENTS
|
||||
Core
|
||||
OrcJIT
|
||||
JITLink
|
||||
Support
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRExecutionEngine
|
||||
MLIRIR
|
||||
MLIRParser
|
||||
MLIRStandardOps
|
||||
MLIRTargetLLVMIR
|
||||
MLIRTransforms
|
||||
MLIRStandardToLLVM
|
||||
MLIRSupport
|
||||
)
|
||||
|
@ -12,11 +12,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/ExecutionEngine/JitRunner.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
#include "mlir/InitAllDialects.h"
|
||||
#include "mlir/Support/JitRunner.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
mlir::registerAllDialects();
|
||||
|
@ -22,13 +22,13 @@
|
||||
#include "mlir/Dialect/GPU/Passes.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/ExecutionEngine/JitRunner.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/InitAllDialects.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Support/JitRunner.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
|
@ -19,11 +19,11 @@
|
||||
#include "mlir/Dialect/GPU/Passes.h"
|
||||
#include "mlir/Dialect/SPIRV/Passes.h"
|
||||
#include "mlir/Dialect/SPIRV/SPIRVOps.h"
|
||||
#include "mlir/ExecutionEngine/JitRunner.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
#include "mlir/InitAllDialects.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Support/JitRunner.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user