Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions jaxlib/mosaic/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ cc_library(
] + glob([
"dialect/tpu/transforms/*.h",
]),
# compatible with libtpu
compatible_with = [
"//buildenv/target:libtpu",
"//buildenv/target:non_prod",
],
deps = [
":pass_boilerplate",
":serde",
Expand Down Expand Up @@ -104,7 +107,10 @@ cc_library(

gentbl_cc_library(
name = "tpu_inc_gen",
# compatible with libtpu
compatible_with = [
"//buildenv/target:libtpu",
"//buildenv/target:non_prod",
],
tbl_outs = {
"dialect/tpu/tpu_ops.h.inc": ["-gen-op-decls"],
"dialect/tpu/tpu_ops.cc.inc": ["-gen-op-defs"],
Expand Down Expand Up @@ -139,7 +145,10 @@ td_library(
srcs = [
"dialect/tpu/tpu.td",
],
# compatible with libtpu
compatible_with = [
"//buildenv/target:libtpu",
"//buildenv/target:non_prod",
],
deps = [
"@llvm-project//mlir:BuiltinDialectTdFiles",
"@llvm-project//mlir:ControlFlowInterfacesTdFiles",
Expand Down Expand Up @@ -263,7 +272,10 @@ filegroup(
cc_library(
name = "pass_boilerplate",
hdrs = ["pass_boilerplate.h"],
# compatible with libtpu
compatible_with = [
"//buildenv/target:libtpu",
"//buildenv/target:non_prod",
],
deps = [
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
Expand All @@ -275,7 +287,10 @@ cc_library(
name = "serde",
srcs = ["serde.cc"],
hdrs = ["serde.h"],
# compatible with libtpu
compatible_with = [
"//buildenv/target:libtpu",
"//buildenv/target:non_prod",
],
deps = [
"@llvm-project//llvm:Support",
"@llvm-project//mlir:DataLayoutInterfaces",
Expand Down
Loading