2019-11-19 08:37:58 +08:00
|
|
|
|
|
|
|
import lit.llvm
|
|
|
|
|
|
|
|
config.llvm_tools_dir = "@MLIR_TOOLS_DIR@"
|
2020-01-07 04:59:19 +08:00
|
|
|
config.mlir_obj_root = "@LLVM_PROJ_BUILD@"
|
2019-11-19 08:37:58 +08:00
|
|
|
config.mlir_tools_dir = "@MLIR_TOOLS_DIR@"
|
|
|
|
config.suffixes = ['.mlir']
|
|
|
|
|
2020-03-17 21:16:33 +08:00
|
|
|
config.onnx_mlir_tools_dir = "@ONNX_MLIR_TOOLS_DIR@"
|
|
|
|
config.onnx_mlir_test_src_dir = "@ONNX_MLIR_LIT_TEST_SRC_DIR@"
|
|
|
|
config.onnx_mlir_test_build_dir = "@ONNX_MLIR_LIT_TEST_BUILD_DIR@"
|
2019-11-19 08:37:58 +08:00
|
|
|
|
|
|
|
lit.llvm.initialize(lit_config, config)
|
|
|
|
|
|
|
|
# Let the main config do the real work.
|
2020-03-17 21:16:33 +08:00
|
|
|
lit_config.load_config(config, "@ONNX_MLIR_LIT_TEST_SRC_DIR@/lit.cfg.py")
|