From 9fc345c5c743335d8373bc5e56f3d5fb8fa0946f Mon Sep 17 00:00:00 2001 From: Emilio Cota Date: Wed, 26 Oct 2022 17:45:25 -0400 Subject: [PATCH] [bazel][mlir][arith] build fixes for arith fastmath flags --- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index f7811ce..3f1c993 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -9003,6 +9003,7 @@ td_library( ], includes = ["include"], deps = [ + ":ArithOpsInterfacesTdFiles", ":BuiltinDialectTdFiles", ":CastInterfacesTdFiles", ":InferIntRangeInterfaceTdFiles", @@ -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", @@ -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", @@ -9066,6 +9092,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", tbl_outs = [ @@ -9100,6 +9146,7 @@ cc_library( ":ArithBaseIncGen", ":ArithCanonicalizationIncGen", ":ArithOpsIncGen", + ":ArithOpsInterfacesIncGen", ":CommonFolders", ":IR", ":InferIntRangeInterface", -- 2.7.4