[bazel] Port #150146: xegpu/sliceattr (#152772)

This commit is contained in:
Jordan Rupprecht 2025-08-08 13:16:04 -05:00 committed by GitHub
parent 1a502da708
commit 4e58724036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -3631,21 +3631,35 @@ gentbl_cc_library(
deps = [":XeGPUAttrTdFiles"],
)
gentbl_cc_library(
name = "XeGPUAttrInterfaceIncGen",
tbl_outs = {
"include/mlir/Dialect/XeGPU/IR/XeGPUAttrInterface.h.inc": ["-gen-attr-interface-decls"],
"include/mlir/Dialect/XeGPU/IR/XeGPUAttrInterface.cpp.inc": ["-gen-attr-interface-defs"],
},
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td",
deps = [":XeGPUAttrTdFiles"],
)
cc_library(
name = "XeGPUDialect",
srcs = glob(["lib/Dialect/XeGPU/IR/*.cpp"]),
hdrs = glob(["include/mlir/Dialect/XeGPU/IR/*.h"]),
includes = ["include"],
deps = [
":AffineUtils",
":ArithDialect",
":ArithUtils",
":BytecodeOpInterface",
":DialectUtils",
":IR",
":IndexDialect",
":ShapedOpInterfaces",
":SideEffectInterfaces",
":VectorDialect",
":ViewLikeInterface",
":XeGPUAttrInterfaceIncGen",
":XeGPUEnumsIncGen",
":XeGPUIncGen",
"//llvm:Support",

View File

@ -1204,11 +1204,13 @@ cc_library(
deps = [
"//mlir:GPUDialect",
"//mlir:IR",
"//mlir:IndexDialect",
"//mlir:MemRefDialect",
"//mlir:Pass",
"//mlir:TransformUtils",
"//mlir:VectorTransforms",
"//mlir:XeGPUDialect",
"//mlir:XeGPUTransforms",
"//mlir:XeGPUUtils",
],
)