Skip to content

Commit 9576a10

Browse files
authored
[bazel] Port llvm#152474: RemarkEngine (llvm#154792)
1 parent eed5f06 commit 9576a10

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ cc_library(
398398
":SymbolInterfacesIncGen",
399399
":TensorEncodingIncGen",
400400
":config",
401+
"//llvm:Core",
402+
"//llvm:Remarks",
401403
"//llvm:Support",
402404
"//llvm:config",
403405
],
@@ -485,6 +487,24 @@ mlir_c_api_cc_library(
485487
],
486488
)
487489

490+
cc_library(
491+
name = "RemarkStreamer",
492+
srcs = glob([
493+
"lib/Remark/*.cpp",
494+
]),
495+
hdrs = glob([
496+
"include/mlir/Remark/*.h",
497+
]),
498+
includes = ["include"],
499+
deps = [
500+
":IR",
501+
"//llvm:BitstreamReader",
502+
"//llvm:Core",
503+
"//llvm:Remarks",
504+
"//llvm:Support",
505+
],
506+
)
507+
488508
mlir_c_api_cc_library(
489509
name = "CAPIInterfaces",
490510
srcs = [
@@ -3727,6 +3747,7 @@ cc_library(
37273747
":DialectUtils",
37283748
":GPUDialect",
37293749
":IR",
3750+
":IndexDialect",
37303751
":LLVMDialect",
37313752
":LoopLikeInterface",
37323753
":SCFTransforms",

utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ cc_test(
3737
"IR/*.cpp",
3838
]),
3939
deps = [
40+
"//llvm:Core",
41+
"//llvm:Remarks",
4042
"//llvm:Support",
4143
"//mlir:BytecodeReader",
4244
"//mlir:CallOpInterfaces",
4345
"//mlir:FunctionInterfaces",
4446
"//mlir:IR",
4547
"//mlir:MemRefDialect",
4648
"//mlir:Parser",
49+
"//mlir:RemarkStreamer",
4750
"//mlir:Support",
4851
"//mlir/test:TestDialect",
4952
"//third-party/unittest:gmock",

0 commit comments

Comments
 (0)