Skip to content

Commit

Permalink
[bazel][mlir][arith] build fixes for arith fastmath flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cota committed Oct 26, 2022
1 parent 637a594 commit 9fc345c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Expand Up @@ -9003,6 +9003,7 @@ td_library(
],
includes = ["include"],
deps = [
":ArithOpsInterfacesTdFiles",
":BuiltinDialectTdFiles",
":CastInterfacesTdFiles",
":InferIntRangeInterfaceTdFiles",
Expand All @@ -9013,6 +9014,17 @@ td_library(
],
)

td_library(
name = "ArithOpsInterfacesTdFiles",
srcs = [
"include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.td",
],
includes = ["include"],
deps = [
":OpBaseTdFiles",
],
)

gentbl_cc_library(
name = "ArithBaseIncGen",
strip_include_prefix = "include",
Expand Down Expand Up @@ -9057,6 +9069,20 @@ gentbl_cc_library(
["-gen-op-defs"],
"include/mlir/Dialect/Arith/IR/ArithOps.cpp.inc",
),
(
[
"-gen-attrdef-decls",
"-attrdefs-dialect=arith",
],
"include/mlir/Dialect/Arith/IR/ArithOpsAttributes.h.inc",
),
(
[
"-gen-attrdef-defs",
"-attrdefs-dialect=arith",
],
"include/mlir/Dialect/Arith/IR/ArithOpsAttributes.cpp.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/Arith/IR/ArithOps.td",
Expand All @@ -9065,6 +9091,26 @@ gentbl_cc_library(
],
)

gentbl_cc_library(
name = "ArithOpsInterfacesIncGen",
strip_include_prefix = "include",
tbl_outs = [
(
["-gen-op-interface-decls"],
"include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.h.inc",
),
(
["-gen-op-interface-defs"],
"include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.cpp.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.td",
deps = [
":ArithOpsInterfacesTdFiles",
],
)

gentbl_cc_library(
name = "ArithCanonicalizationIncGen",
strip_include_prefix = "include/mlir/Dialect/Arith/IR",
Expand Down Expand Up @@ -9100,6 +9146,7 @@ cc_library(
":ArithBaseIncGen",
":ArithCanonicalizationIncGen",
":ArithOpsIncGen",
":ArithOpsInterfacesIncGen",
":CommonFolders",
":IR",
":InferIntRangeInterface",
Expand Down

0 comments on commit 9fc345c

Please sign in to comment.