Skip to content

Commit

Permalink
add bazel build rule for IndexToSPIRV
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun authored and inbelic committed Oct 21, 2023
1 parent 56c054b commit 08947fe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7350,6 +7350,7 @@ cc_library(
":FuncDialect",
":FuncToSPIRV",
":IR",
":IndexToSPIRV",
":MemRefToSPIRV",
":Pass",
":SCFDialect",
Expand Down Expand Up @@ -9766,6 +9767,31 @@ cc_library(
],
)

cc_library(
name = "IndexToSPIRV",
srcs = glob([
"lib/Conversion/IndexToSPIRV/*.cpp",
"lib/Conversion/IndexToSPIRV/*.h",
]),
hdrs = glob([
"include/mlir/Conversion/IndexToSPIRV/*.h",
]),
includes = ["include"],
deps = [
":ConversionPassIncGen",
":IR",
":IndexDialect",
":Pass",
":SPIRVCommonConversion",
":SPIRVConversion",
":SPIRVDialect",
":Support",
":Transforms",
"//llvm:Core",
"//llvm:Support",
],
)

cc_library(
name = "IndexDialect",
srcs = glob(["lib/Dialect/Index/IR/*.cpp"]),
Expand Down

0 comments on commit 08947fe

Please sign in to comment.