Skip to content

Commit cd9f98d

Browse files
committed
[mlir][bazel] add bazel rule for XeGPU
1 parent e6e9319 commit cd9f98d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,45 @@ cc_library(
36873687
],
36883688
)
36893689

3690+
gentbl_cc_library(
3691+
name = "XeGPUPassIncGen",
3692+
tbl_outs = [
3693+
(
3694+
[
3695+
"-gen-pass-decls",
3696+
"-name=XeGPU",
3697+
],
3698+
"include/mlir/Dialect/XeGPU/Transforms/Passes.h.inc",
3699+
),
3700+
],
3701+
tblgen = ":mlir-tblgen",
3702+
td_file = "include/mlir/Dialect/XeGPU/Transforms/Passes.td",
3703+
deps = [":PassBaseTdFiles"],
3704+
)
3705+
3706+
cc_library(
3707+
name = "XeGPUTransforms",
3708+
srcs = glob([
3709+
"lib/Dialect/XeGPU/Transforms/*.cpp",
3710+
]),
3711+
hdrs = glob([
3712+
"include/mlir/Dialect/XeGPU/Transforms/*.h",
3713+
]),
3714+
includes = ["include"],
3715+
deps = [
3716+
":AffineUtils",
3717+
":IR",
3718+
":MemRefDialect",
3719+
":Pass",
3720+
":SideEffectInterfaces",
3721+
":Support",
3722+
":TransformUtils",
3723+
":XeGPUDialect",
3724+
":XeGPUPassIncGen",
3725+
//llvm:Support",
3726+
],
3727+
)
3728+
36903729
td_library(
36913730
name = "FuncTdFiles",
36923731
srcs = [
@@ -9229,6 +9268,7 @@ cc_library(
92299268
":X86VectorDialect",
92309269
":X86VectorTransforms",
92319270
":XeGPUDialect",
9271+
":XeGPUTransforms",
92329272
":config",
92339273
],
92349274
)

0 commit comments

Comments
 (0)