Added build rules for HLO and LHLO ops MD.

PiperOrigin-RevId: 373373920
This commit is contained in:
Itai Zukerman 2021-05-12 08:22:41 -07:00 committed by TensorFlow MLIR Team
parent 8895262330
commit 30779f0c2f
1 changed files with 21 additions and 1 deletions

22
BUILD
View File

@ -1,4 +1,4 @@
load("@llvm-project//mlir:tblgen.bzl", "gentbl", "td_library")
load("@llvm-project//mlir:tblgen.bzl", "gentbl", "gentbl_filegroup", "td_library")
package(
default_visibility = ["//visibility:public"],
@ -236,6 +236,26 @@ gentbl(
deps = [":hlo_ops_td_files"],
)
gentbl_filegroup(
name = "hlo_ops_doc_gen",
tbl_outs = [
("-gen-dialect-doc", "g3doc/hlo_ops.md"),
],
tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td",
deps = [":hlo_ops_td_files"],
)
gentbl_filegroup(
name = "lhlo_ops_doc_gen",
tbl_outs = [
("-gen-dialect-doc", "g3doc/lhlo_ops.md"),
],
tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td",
deps = [":hlo_ops_td_files"],
)
cc_library(
name = "hlo_ops_common",
srcs = ["lib/Dialect/mhlo/IR/hlo_ops_common.cc"],