File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
utils/bazel/llvm-project-overlay/mlir Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -8203,12 +8203,14 @@ cc_library(
82038203cc_library (
82048204 name = "MlirTranslateMain" ,
82058205 srcs = ["tools/mlir-translate/mlir-translate.cpp" ],
8206+ local_defines = ["MLIR_INCLUDE_TESTS" ],
82068207 deps = [
82078208 ":AllPassesAndDialects" ,
82088209 ":AllTranslations" ,
82098210 ":Support" ,
82108211 ":TranslateLib" ,
82118212 "//llvm:Support" ,
8213+ "//mlir/test:TestToLLVMIRTranslation" ,
82128214 ],
82138215)
82148216
Original file line number Diff line number Diff line change @@ -368,7 +368,10 @@ cc_library(
368368
369369cc_library (
370370 name = "TestDialect" ,
371- srcs = glob (["lib/Dialect/Test/*.cpp" ]),
371+ srcs = glob (
372+ ["lib/Dialect/Test/*.cpp" ],
373+ exclude = ["lib/Dialect/Test/TestToLLVMIRTranslation.cpp" ],
374+ ),
372375 hdrs = glob (["lib/Dialect/Test/*.h" ]),
373376 includes = [
374377 "lib/Dialect/Test" ,
@@ -410,6 +413,20 @@ cc_library(
410413 ],
411414)
412415
416+ cc_library (
417+ name = "TestToLLVMIRTranslation" ,
418+ srcs = ["lib/Dialect/Test/TestToLLVMIRTranslation.cpp" ],
419+ deps = [
420+ ":TestDialect" ,
421+ "//llvm:Support" ,
422+ "//mlir:BuiltinToLLVMIRTranslation" ,
423+ "//mlir:IR" ,
424+ "//mlir:LLVMToLLVMIRTranslation" ,
425+ "//mlir:ToLLVMIRTranslation" ,
426+ "//mlir:TranslateLib" ,
427+ ],
428+ )
429+
413430cc_library (
414431 name = "TestIR" ,
415432 srcs = glob (["lib/IR/*.cpp" ]),
You can’t perform that action at this time.
0 commit comments