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(
8203
8203
cc_library (
8204
8204
name = "MlirTranslateMain" ,
8205
8205
srcs = ["tools/mlir-translate/mlir-translate.cpp" ],
8206
+ local_defines = ["MLIR_INCLUDE_TESTS" ],
8206
8207
deps = [
8207
8208
":AllPassesAndDialects" ,
8208
8209
":AllTranslations" ,
8209
8210
":Support" ,
8210
8211
":TranslateLib" ,
8211
8212
"//llvm:Support" ,
8213
+ "//mlir/test:TestToLLVMIRTranslation" ,
8212
8214
],
8213
8215
)
8214
8216
Original file line number Diff line number Diff line change @@ -368,7 +368,10 @@ cc_library(
368
368
369
369
cc_library (
370
370
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
+ ),
372
375
hdrs = glob (["lib/Dialect/Test/*.h" ]),
373
376
includes = [
374
377
"lib/Dialect/Test" ,
@@ -410,6 +413,20 @@ cc_library(
410
413
],
411
414
)
412
415
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
+
413
430
cc_library (
414
431
name = "TestIR" ,
415
432
srcs = glob (["lib/IR/*.cpp" ]),
You can’t perform that action at this time.
0 commit comments