Skip to content

Commit

Permalink
[bazel][NFC] Add Dialect/Func/Extensions library and deps
Browse files Browse the repository at this point in the history
Added in D120368
  • Loading branch information
rupprecht committed Jun 10, 2023
1 parent 10e8300 commit 261b693
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Expand Up @@ -3661,6 +3661,27 @@ cc_library(
],
)

cc_library(
name = "FuncExtensions",
srcs = glob(["lib/Dialect/Func/Extensions/*.cpp"]),
hdrs = glob(["include/mlir/Dialect/Func/Extensions/*.h"]),
includes = ["include"],
deps = [
":ControlFlowDialect",
":FuncDialect",
":IR",
":InferTypeOpInterface",
],
)

cc_library(
name = "AllExtensions",
hdrs = ["include/mlir/InitAllExtensions.h"],
deps = [
":FuncExtensions",
],
)

# TODO(zinenko): remove this after updating users.

gentbl_cc_library(
Expand Down Expand Up @@ -7629,6 +7650,7 @@ cc_binary(
srcs = ["tools/mlir-opt/mlir-opt.cpp"],
local_defines = ["MLIR_INCLUDE_TESTS"],
deps = [
":AllExtensions",
":AllPassesAndDialects",
":Analysis",
":IR",
Expand Down
Expand Up @@ -103,6 +103,7 @@ cc_binary(
"//mlir:ArithDialect",
"//mlir:CastInterfaces",
"//mlir:FuncDialect",
"//mlir:FuncExtensions",
"//mlir:IR",
"//mlir:MemRefDialect",
"//mlir:Parser",
Expand Down
Expand Up @@ -111,6 +111,7 @@ cc_binary(
"//mlir:ExecutionEngine",
"//mlir:ExecutionEngineUtils",
"//mlir:FuncDialect",
"//mlir:FuncExtensions",
"//mlir:FuncToLLVM",
"//mlir:IR",
"//mlir:LLVMCommonConversion",
Expand Down
Expand Up @@ -111,6 +111,7 @@ cc_binary(
"//mlir:ExecutionEngine",
"//mlir:ExecutionEngineUtils",
"//mlir:FuncDialect",
"//mlir:FuncExtensions",
"//mlir:FuncToLLVM",
"//mlir:IR",
"//mlir:LLVMCommonConversion",
Expand Down

0 comments on commit 261b693

Please sign in to comment.