Skip to content

Commit ab29a11

Browse files
d0kAlexisPerry
authored andcommitted
[bazel] Port e035ef0
1 parent 5ff51ba commit ab29a11

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6880,6 +6880,110 @@ gentbl_cc_library(
68806880
],
68816881
)
68826882

6883+
td_library(
6884+
name = "PtrTdFiles",
6885+
srcs = [
6886+
"include/mlir/Dialect/Ptr/IR/PtrAttrDefs.td",
6887+
"include/mlir/Dialect/Ptr/IR/PtrDialect.td",
6888+
"include/mlir/Dialect/Ptr/IR/PtrOps.td",
6889+
],
6890+
includes = ["include"],
6891+
deps = [
6892+
":AttrTdFiles",
6893+
":BuiltinDialectTdFiles",
6894+
":DataLayoutInterfacesTdFiles",
6895+
":OpBaseTdFiles",
6896+
],
6897+
)
6898+
6899+
gentbl_cc_library(
6900+
name = "PtrDialectIncGen",
6901+
tbl_outs = [
6902+
(
6903+
["-gen-dialect-decls"],
6904+
"include/mlir/Dialect/Ptr/IR/PtrOpsDialect.h.inc",
6905+
),
6906+
(
6907+
["-gen-dialect-defs"],
6908+
"include/mlir/Dialect/Ptr/IR/PtrOpsDialect.cpp.inc",
6909+
),
6910+
(
6911+
["-gen-typedef-decls"],
6912+
"include/mlir/Dialect/Ptr/IR/PtrOpsTypes.h.inc",
6913+
),
6914+
(
6915+
["-gen-typedef-defs"],
6916+
"include/mlir/Dialect/Ptr/IR/PtrOpsTypes.cpp.inc",
6917+
),
6918+
],
6919+
tblgen = ":mlir-tblgen",
6920+
td_file = "include/mlir/Dialect/Ptr/IR/PtrDialect.td",
6921+
deps = [
6922+
":PtrTdFiles",
6923+
],
6924+
)
6925+
6926+
gentbl_cc_library(
6927+
name = "PtrOpsIncGen",
6928+
tbl_outs = [
6929+
(
6930+
["-gen-op-decls"],
6931+
"include/mlir/Dialect/Ptr/IR/PtrOps.h.inc",
6932+
),
6933+
(
6934+
["-gen-op-defs"],
6935+
"include/mlir/Dialect/Ptr/IR/PtrOps.cpp.inc",
6936+
),
6937+
],
6938+
tblgen = ":mlir-tblgen",
6939+
td_file = "include/mlir/Dialect/Ptr/IR/PtrOps.td",
6940+
deps = [
6941+
":PtrTdFiles",
6942+
],
6943+
)
6944+
6945+
gentbl_cc_library(
6946+
name = "PtrAttrsIncGen",
6947+
tbl_outs = [
6948+
(
6949+
["-gen-attrdef-decls"],
6950+
"include/mlir/Dialect/Ptr/IR/PtrOpsAttrs.h.inc",
6951+
),
6952+
(
6953+
["-gen-attrdef-defs"],
6954+
"include/mlir/Dialect/Ptr/IR/PtrOpsAttrs.cpp.inc",
6955+
),
6956+
],
6957+
tblgen = ":mlir-tblgen",
6958+
td_file = "include/mlir/Dialect/Ptr/IR/PtrAttrDefs.td",
6959+
deps = [
6960+
":PtrTdFiles",
6961+
],
6962+
)
6963+
6964+
cc_library(
6965+
name = "PtrDialect",
6966+
srcs = glob(
6967+
[
6968+
"lib/Dialect/Ptr/IR/*.cpp",
6969+
],
6970+
),
6971+
hdrs = glob([
6972+
"include/mlir/Dialect/Ptr/IR/*.h",
6973+
]),
6974+
includes = ["include"],
6975+
deps = [
6976+
":BytecodeOpInterface",
6977+
":DataLayoutInterfaces",
6978+
":IR",
6979+
":InliningUtils",
6980+
":PtrAttrsIncGen",
6981+
":PtrDialectIncGen",
6982+
":PtrOpsIncGen",
6983+
"//llvm:Support",
6984+
],
6985+
)
6986+
68836987
td_library(
68846988
name = "SPIRVOpsTdFiles",
68856989
srcs = glob(["include/mlir/Dialect/SPIRV/IR/*.td"]),
@@ -9388,6 +9492,7 @@ cc_library(
93889492
":PDLInterpDialect",
93899493
":PDLToPDLInterp",
93909494
":PolynomialDialect",
9495+
":PtrDialect",
93919496
":QuantOps",
93929497
":ROCDLDialect",
93939498
":ROCDLTarget",

0 commit comments

Comments
 (0)