Skip to content

Commit

Permalink
[mlir][Bazel] Adjust BUILD.bazel according to 0d09120
Browse files Browse the repository at this point in the history
  • Loading branch information
akuegel committed Feb 6, 2024
1 parent 0716d31 commit d53043f
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ cc_library(
textual_hdrs = glob(MLIR_BINDINGS_PYTHON_HEADERS),
deps = [
":CAPIIRHeaders",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand All @@ -920,8 +920,8 @@ cc_library(
textual_hdrs = glob(MLIR_BINDINGS_PYTHON_HEADERS),
deps = [
":CAPIIR",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand Down Expand Up @@ -963,8 +963,8 @@ cc_library(
":MLIRBindingsPythonHeadersAndDeps",
":Support",
"//llvm:Support",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand All @@ -983,8 +983,8 @@ cc_library(
":CAPIIRHeaders",
":MLIRBindingsPythonHeaders",
"//llvm:Support",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand Down Expand Up @@ -1094,8 +1094,8 @@ cc_binary(
deps = [
":CAPIExecutionEngine",
":MLIRBindingsPythonHeadersAndDeps",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand All @@ -1114,8 +1114,8 @@ cc_binary(
deps = [
":CAPILinalg",
":MLIRBindingsPythonHeadersAndDeps",
"@pybind11",
"@local_config_python//:python_headers",
"@pybind11",
],
)

Expand Down Expand Up @@ -6886,8 +6886,8 @@ cc_library(
],
deps = [
":ConversionPassIncGen",
":FuncDialect",
":EmitCDialect",
":FuncDialect",
":IR",
":Pass",
":Support",
Expand Down Expand Up @@ -9039,6 +9039,7 @@ cc_library(
":NVVMDialect",
":NVVMTarget",
":OpenACCDialect",
":OpenACCTransforms",
":OpenMPDialect",
":OpenMPToLLVM",
":PDLDialect",
Expand Down Expand Up @@ -9812,6 +9813,42 @@ cc_library(
],
)

gentbl_cc_library(
name = "OpenACCPassIncGen",
tbl_outs = [
(
[
"-gen-pass-decls",
"-name=OpenACC",
],
"include/mlir/Dialect/OpenACC/Transforms/Passes.h.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/OpenACC/Transforms/Passes.td",
deps = [":PassBaseTdFiles"],
)

cc_library(
name = "OpenACCTransforms",
srcs = glob(
[
"lib/Dialect/OpenACC/Transforms/*.cpp",
"lib/Dialect/OpenACC/Transforms/*.h",
],
),
hdrs = glob(["include/mlir/Dialect/OpenACC/Transforms/*.h"]),
includes = ["include"],
deps = [
":FuncDialect",
":LLVMIRTransforms",
":OpenACCDialect",
":OpenACCPassIncGen",
":Pass",
":TransformUtils",
],
)

## OpenMP dialect

# TODO(gcmn): This is sticking td files in a cc_library
Expand Down

0 comments on commit d53043f

Please sign in to comment.