[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:
Stephen Neuendorffer 2020-05-13 12:01:40 -07:00
parent 444720c250
commit ec44e08940
7 changed files with 31 additions and 33 deletions

View File

@ -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

View File

@ -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"

View File

@ -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
)

View File

@ -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();

View File

@ -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"

View File

@ -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"