diff options
author | Christian Sigg <chsigg@users.noreply.github.com> | 2023-12-20 15:20:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 15:20:43 +0100 |
commit | 7153fa3daaaaa7b264d6dfa182ca9cc70143041e (patch) | |
tree | f3bcf8010ecab0d32a92735a38e66c6dfc97bab5 | |
parent | 64987c648f87613102eee70ccf9ff50e4f59f55e (diff) | |
download | llvm-7153fa3daaaaa7b264d6dfa182ca9cc70143041e.zip llvm-7153fa3daaaaa7b264d6dfa182ca9cc70143041e.tar.gz llvm-7153fa3daaaaa7b264d6dfa182ca9cc70143041e.tar.bz2 |
[mlir][bazel] Fix build after d9803841f2d539f6a740c07ebd0f3cb176812dbf
-rw-r--r-- | utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 4890310..c80d714 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -1625,6 +1625,22 @@ gentbl_cc_library( deps = [":EmitCTdFiles"], ) +gentbl_cc_library( + name = "EmitCPassIncGen", + tbl_outs = [ + ( + [ + "-gen-pass-decls", + "-name=EmitC", + ], + "include/mlir/Dialect/EmitC/Transforms/Passes.h.inc", + ), + ], + tblgen = ":mlir-tblgen", + td_file = "include/mlir/Dialect/EmitC/Transforms/Passes.td", + deps = [":PassBaseTdFiles"], +) + cc_library( name = "TargetCpp", srcs = glob([ @@ -3645,6 +3661,25 @@ cc_library( ) cc_library( + name = "EmitCTransforms", + srcs = glob([ + "lib/Dialect/EmitC/Transforms/*.cpp", + ]), + hdrs = glob([ + "include/mlir/Dialect/EmitC/Transforms/*.h", + ]), + includes = ["include"], + deps = [ + ":EmitCDialect", + ":EmitCPassIncGen", + ":IR", + ":Pass", + ":TransformUtils", + "//llvm:Support", + ], +) + +cc_library( name = "AsyncDialect", srcs = glob([ "lib/Dialect/Async/IR/*.cpp", @@ -8841,6 +8876,7 @@ cc_library( ":ConvertToLLVM", ":DLTIDialect", ":EmitCDialect", + ":EmitCTransforms", ":FuncDialect", ":FuncToLLVM", ":FuncToSPIRV", |